* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, 'Segoe UI', 'Roboto', sans-serif;
}

body {
    background: #f1f5f9;
    min-height: 100vh;
}

.app {
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Header */
.header {
    background: #0f172a;
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header h1 {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.logo-icon {
    font-size: 1.8rem;
}

.role-badge {
    background: #3b82f6;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: normal;
}

.menu-btn {
    background: #334155;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Ролевой селектор */
.role-selector {
    background: #1e293b;
    padding: 0.5rem;
    border-radius: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.role-btn {
    background: none;
    border: none;
    color: #94a3b8;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.role-btn.active {
    background: #3b82f6;
    color: white;
}

/* Drawer */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease;
}

.drawer-overlay.open {
    visibility: visible;
    opacity: 1;
}

.drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 12px rgba(0,0,0,0.2);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 101;
    padding: 1.5rem 0;
}

.drawer-overlay.open .drawer {
    transform: translateX(0);
}

.drawer-header {
    padding: 0 1rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    font-weight: bold;
    font-size: 1.2rem;
}

.drawer-nav {
    list-style: none;
    padding: 1rem 0;
}

.drawer-nav li {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: background 0.1s;
    font-weight: 500;
}

.drawer-nav li:hover {
    background: #eef2ff;
}

.drawer-nav li.active {
    background: #3b82f6;
    color: white;
}

.close-drawer {
    margin-top: 2rem;
    text-align: center;
    padding: 0.75rem;
    color: #64748b;
    cursor: pointer;
}

/* Content */
.content {
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero секция (пользовательская часть) */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.service-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Форма заявки */
.request-form {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #334155;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 500;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    border: 1px solid #cbd5e1;
    background: white;
    border-radius: 0.5rem;
    cursor: pointer;
}

.btn-success {
    background: #22c55e;
    color: white;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

/* Карточка заказа */
.order-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.1s;
}

.order-card.pending {
    border-left: 4px solid #f59e0b;
}

.order-card.in-progress {
    border-left: 4px solid #3b82f6;
}

.order-card.completed {
    border-left: 4px solid #22c55e;
    background: #f0fdf4;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.order-customer {
    font-weight: bold;
    font-size: 1.1rem;
}

.order-status {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-in-progress {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #dcfce7;
    color: #166534;
}

.order-info {
    font-size: 0.85rem;
    color: #334155;
    margin: 0.5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.order-problem {
    background: #f1f5f9;
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin: 0.5rem 0;
}

.order-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

/* Фильтры */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
    cursor: pointer;
}

.filter-btn.active {
    background: #3b82f6;
    color: white;
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
}

/* Статистика */
.stats-period {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.stats-btn {
    background: #e2e8f0;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    cursor: pointer;
}

.stats-btn.active {
    background: #3b82f6;
    color: white;
}

.date-range {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.stats-summary {
    background: #eef2ff;
    padding: 1rem;
    border-radius: 1rem;
    font-size: 1.1rem;
}

.stats-worker {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
    margin-top: 1rem;
}

/* Прайс */
.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

/* Работники */
.worker-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Адаптив */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .order-info {
        grid-template-columns: 1fr;
    }
}