/* ═══════════════════════════════════════════
   КУМЕКА — ОБЩИЕ СТИЛИ
   ═══════════════════════════════════════════ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fdf6f0;
    color: #333;
    min-height: 100vh;
}

/* Карточка */
.card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Заголовки */
h1 {
    font-size: 24px;
    color: #6b4226;
    margin-bottom: 8px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-bottom: 25px;
}

/* Поля ввода */
input, select, textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0d0c0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    margin-bottom: 12px;
    background: #fefefe;
    transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #c4956a;
}

textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    width: 100%;
    background: #6b4226;
    color: white;
}

.btn-primary:hover { background: #553319; }
.btn-primary:disabled { background: #ccc; cursor: not-allowed; }

.btn-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #999;
    text-decoration: none;
    font-size: 14px;
}

.btn-link:hover { color: #6b4226; }

/* Секции */
.section {
    margin-bottom: 20px;
}

.section-title {
    font-weight: 600;
    color: #6b4226;
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hint {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Сообщения */
.success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
    display: none;
    margin-bottom: 15px;
}

.success.show { display: block; }

.info {
    background: #fff8e1;
    border-left: 4px solid #f4a236;
    padding: 12px 16px;
    border-radius: 0 10px 10px 0;
    font-size: 14px;
    color: #8b6914;
    margin-bottom: 20px;
    display: none;
}

.info.show { display: block; }

/* Модальное окно */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show { display: flex; }

.modal {
    background: white;
    border-radius: 16px;
    padding: 30px 25px;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal h2 {
    font-size: 20px;
    color: #6b4226;
    margin-bottom: 20px;
    text-align: center;
}

.modal .btn-row {
    display: flex;
    gap: 10px;
}

.modal .btn-row button {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.modal .btn-save { background: #6b4226; color: white; }
.modal .btn-cancel { background: #eee; color: #666; }