:root {
    --primary: #0f4c81;
    --primary-hover: #0a365c;
    --secondary: #f8f9fa;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border: #e2e8f0;
    --success: #38a169;
    --danger: #e53e3e;
    --warning: #d69e2e;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

/* ЗАПРЕТ ВЫДЕЛЕНИЯ КУРСOРОМ ДЛЯ КНОПОК И ИНТЕРФЕЙСА */
button, .btn, .btn-secondary, .btn-login, .btn-logout, 
header a, .logo, .feature-card, .service-card, .admin-link {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Header */
header {
    background: white;
    color: var(--primary);
    padding: 0 40px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px; }
nav { display: flex; gap: 20px; align-items: center; }
header a { color: var(--text-dark); text-decoration: none; font-weight: 500; font-size: 15px; transition: color 0.2s; }
header a:hover { color: var(--primary); }
.admin-link { color: var(--warning) !important; font-weight: 600 !important; background: #fffbeb; padding: 6px 12px; border-radius: var(--radius); }

.user-panel { font-size: 14px; display: flex; align-items: center; gap: 15px; }
.btn-logout { color: var(--danger); font-weight: 500; text-decoration: none; border: 1px solid rgba(229, 62, 62, 0.2); padding: 6px 12px; border-radius: var(--radius); transition: all 0.2s; }
.btn-logout:hover { background: var(--danger); color: white; }
.btn-login { background: var(--primary); color: white !important; padding: 8px 16px; border-radius: var(--radius); transition: background 0.2s; }
.btn-login:hover { background: var(--primary-hover); }

/* Main Container */
.container { max-width: 1200px; margin: 40px auto; flex-grow: 1; width: 100%; padding: 0 20px; box-sizing: border-box; }
.content-box { background: white; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Hero Section (Home) */
.hero { background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%); color: white; padding: 60px 40px; border-radius: var(--radius); text-align: center; margin-bottom: 40px; box-shadow: var(--shadow); }
.hero h1 { margin: 0 0 15px 0; font-size: 36px; font-weight: 700; }
.hero p { margin: 0; font-size: 18px; opacity: 0.9; max-width: 600px; margin: 0 auto; line-height: 1.6; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature-card { background: white; padding: 25px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; border-top: 4px solid var(--primary); }
.feature-card h3 { margin-top: 0; color: var(--primary); }

/* Services */
.services-grid { display: grid; gap: 20px; }
.service-card { 
    background: #fff; border: 1px solid var(--border); padding: 20px; 
    border-radius: var(--radius); display: flex; gap: 25px; align-items: center; 
    transition: transform 0.2s, box-shadow 0.2s; cursor: pointer;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.service-img { width: 160px; height: 160px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.service-info { flex-grow: 1; }
.service-info h3 { margin: 0 0 10px 0; font-size: 20px; color: var(--primary); }
.service-info p { color: var(--text-light); line-height: 1.5; margin-bottom: 15px; }
.service-price { display: inline-block; background: #ebf8ff; color: #2b6cb0; padding: 6px 12px; border-radius: 20px; font-weight: 600; font-size: 14px; }

/* Форма заказа на странице услуги */
.order-form-container { background: #f8fafc; border: 1px solid var(--border); padding: 30px; border-radius: var(--radius); box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); }
.order-form-container h3 { margin-top: 0; color: var(--primary); font-size: 20px; }

/* Articles */
.article { border-bottom: 1px solid var(--border); padding-bottom: 25px; margin-bottom: 25px; }
.article:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.article h2 { color: var(--primary); margin-top: 0; }
.article-meta { color: var(--text-light); font-size: 13px; font-weight: 500; }

/* Forms & Buttons */
.form-container { max-width: 450px; margin: 0 auto; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 14px; color: var(--text-dark); }
.form-group input, .form-group textarea { 
    width: 100%; padding: 12px 15px; border: 1px solid var(--border); 
    border-radius: var(--radius); box-sizing: border-box; font-family: inherit; font-size: 15px; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1); }

button, .btn { background: var(--primary); color: white; padding: 12px 24px; border: none; border-radius: var(--radius); cursor: pointer; font-size: 15px; font-weight: 600; font-family: inherit; transition: background 0.2s; width: 100%; }
button:hover, .btn:hover { background: var(--primary-hover); }
.btn-secondary { background: #edf2f7; color: #4a5568; text-decoration: none; padding: 10px 20px; border-radius: var(--radius); font-weight: 500; font-size: 14px; transition: background 0.2s; }
.btn-secondary:hover { background: #e2e8f0; }

/* CRM Селекторы статусов */
.status-select { padding: 6px 10px; border-radius: 6px; font-weight: 600; font-family: inherit; font-size: 13px; cursor: pointer; border: 1px solid var(--border); }
.status-select[data-status="Новый"] { background: #fffbeb; color: #b45309; border-color: #fef3c7; }
.status-select[data-status="В обработке"] { background: #eff6ff; color: #1d4ed8; border-color: #dbeafe; }
.status-select[data-status="Выполнен"] { background: #ecfdf5; color: #047857; border-color: #d1fae5; }
.status-select[data-status="Отменен"] { background: #fef2f2; color: #b91c1c; border-color: #fee2e2; }

/* Tables */
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.table th, .table td { border-bottom: 1px solid var(--border); padding: 15px; text-align: left; vertical-align: middle; }
.table th { background-color: var(--secondary); color: var(--text-light); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.table tbody tr:hover { background-color: #f8fafc; }

/* Alerts */
.alert { padding: 15px 20px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 500; }
.alert-error { background: #fff5f5; color: var(--danger); border-left: 4px solid var(--danger); }
.alert-success { background: #f0fff4; color: var(--success); border-left: 4px solid var(--success); }

/* Footer */
footer { background: white; color: var(--text-light); text-align: center; padding: 25px; margin-top: auto; border-top: 1px solid var(--border); font-size: 14px; line-height: 1.5; }