/* ============================================
   ЛИЧНЫЙ КАБИНЕТ — ИНЖЕНЕРНЫЙ МИНИМАЛИЗМ
   ПОЛНОСТЬЮ СООТВЕТСТВУЕТ ЭТАЛОНУ styles.css
   ВЕРСИЯ 3.0 — ПРОФЕССИОНАЛЬНЫЙ ШРИФТ 16px
   ============================================ */

:root {
    /* Цвета — ТОЧНО как в эталоне конструкторов */
    --gray-200: #e5e7eb;
    --gray-300: #d0d5db;
    --gray-400: #9aa3ae;
    --gray-500: #6b7280;
    --gray-600: #4a5568;
    --gray-700: #2d3748;
    --gray-800: #1a1a1a;
    
    --primary: #1e40af;
    --primary-light: #eef4ff;
    
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #fcfeff;
    padding: 20px;
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.5;
}

/* Контейнер */
.container {
    max-width: 1280px;
    margin: 0;
    width: 100%;
}

/* ===== ШАПКА ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.header h1 {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 0;
}

/* ===== КНОПКИ — КАК В ЭТАЛОНЕ ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* НЕТ ЧЁРНЫХ КНОПОК — ТОЛЬКО СЕРЫЕ, КАК В ЭТАЛОНЕ */
.btn-primary {
    background: #f3f4f6;
    color: #1f2937;
    border: 1px solid var(--gray-200);
}

.btn-primary:hover {
    background: #e5e7eb;
}

.btn-secondary {
    background: #f0f2f5;
    color: #2d3748;
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    background: #e4e7eb;
}

.btn-danger {
    background: transparent;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.btn-danger:hover {
    background: #fff5f5;
}

/* ===== ТАБЛИЦЫ ===== */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.table th,
.table td {
    border-bottom: 1px solid var(--gray-200);
    padding: 12px 8px;
    text-align: left;
}

.table th {
    background: transparent;
    color: var(--gray-500);
    font-weight: 500;
    font-size: 14px;
}

.table tr:hover td {
    background: #fafbfc;
}

/* ===== ФОРМЫ ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #374151;
}

.form-group input,
.form-group select,
.form-select {
    padding: 12px 12px;
    font-size: 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: white;
    width: 100%;
    transition: border-color 0.15s ease;
}

/* СТИЛИЗОВАННЫЙ СЕЛЕКТ */
.form-group select,
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
    cursor: pointer;
}

.form-group select:hover,
.form-select:hover {
    border-color: var(--gray-500);
}

.form-group select:focus,
.form-select:focus {
    border-color: var(--primary);
    outline: none;
}

.form-group select option,
.form-select option {
    font-size: 16px;
    padding: 8px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group small {
    display: block;
    font-size: 14px;
    color: var(--gray-400);
    margin-top: 4px;
}

/* ===== СЕЛЕКТЫ БЕЗ КЛАССОВ (ГЛОБАЛЬНО) ===== */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding: 12px 36px 12px 12px;
    font-size: 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background-color: white;
    cursor: pointer;
    font-family: inherit;
    width: auto;
    min-width: 180px;
}

select:hover {
    border-color: var(--gray-500);
}

select:focus {
    outline: none;
    border-color: var(--primary);
}

select option {
    font-size: 16px;
    padding: 8px;
    background-color: white;
    color: #1a1a1a;
}

/* ===== КАРТОЧКИ ===== */
.project-info {
    background: white;
    padding: 16px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.project-info div {
    margin-bottom: 6px;
    font-size: 16px;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.empty-state i {
    font-size: 48px;
    color: var(--gray-300);
}

.empty-state p {
    margin-top: 12px;
    color: var(--gray-400);
    font-size: 16px;
}

/* ===== АЛЕРТЫ ===== */
.alert-info {
    background: white;
    border-left: 3px solid var(--primary);
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    font-size: 16px;
    color: #4a5568;
    border: 1px solid var(--gray-200);
    border-left-width: 3px;
}

/* ===== FAQ ===== */
.faq-section {
    margin-top: 40px;
    background: white;
    padding: 20px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.faq-section summary {
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
}

.faq-item {
    margin-top: 14px;
}

.faq-question {
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 4px;
}

.faq-answer {
    font-size: 16px;
    color: var(--gray-500);
    margin-left: 16px;
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    max-width: 420px;
    width: 90%;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--gray-200);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 500;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-400);
}

/* Шаги */
.step-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
    color: #4a5568;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f3f4f6;
    color: #1f2937;
    border-radius: 50%;
    font-weight: 500;
    font-size: 14px;
    flex-shrink: 0;
}

/* ===== СТАТУСЫ ===== */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 10px;
    margin-right: 8px;
    vertical-align: middle;
}

.status-black { background: var(--gray-400); }
.status-blue { background: var(--primary); }
.status-green { background: #2e7d32; }
.status-gray { background: var(--gray-300); }

/* ===== ТИПОГРАФИКА ===== */
h2 {
    font-size: 22px;
    font-weight: 500;
    margin: 24px 0 16px 0;
}

h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 16px 0 10px 0;
}

p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--gray-500);
}

/* ===== ФОРМА РЕДАКТИРОВАНИЯ ===== */
.edit-contacts {
    margin: 20px 0;
}

.edit-contacts summary {
    cursor: pointer;
    background: white;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 500;
    border: 1px solid var(--gray-200);
}

.edit-contacts-form {
    padding: 16px;
    background: white;
    border-radius: var(--radius);
    margin-top: 10px;
    border: 1px solid var(--gray-200);
}


/* ===== ПЕЧАТЬ ===== */
@media print {
    body {
        background: white;
        padding: 0;
    }
    .btn,
    .edit-contacts,
    .faq-section {
        display: none;
    }
}