/* ============================================ */
/* ОБЩИЙ СТИЛЬ ДЛЯ ВСЕХ СТРАНИЦ АВТОШКОЛЫ       */
/* ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, 'Segoe UI', 'Roboto', sans-serif;
}

body {
    background: linear-gradient(145deg, #e9f0fc 0%, #d9e2ef 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 20px;
}

/* ========== КАРТОЧКИ ========== */
.card {
    max-width: 500px;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 48px;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.card-wide {
    max-width: 1400px;
    background: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

/* ========== ШАПКА ========== */
.header {
    background: #1a2c3e;
    color: white;
    padding: 32px 32px;
    text-align: center;
}

.header h1 {
    margin: 0 0 8px 0;
    font-weight: 600;
    font-size: 1.9rem;
}

.header p {
    margin: 0;
    opacity: 0.85;
    font-size: 0.95rem;
}

/* ========== КОНТЕНТ ========== */
.content {
    padding: 32px;
}

/* ========== КНОПКИ ========== */
.btn {
    display: block;
    width: 100%;
    background: #1f6e43;
    color: white;
    text-align: center;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #0f5538;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #2c5f8a;
    margin-top: 12px;
}

.btn-secondary:hover {
    background: #1e4663;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #2c5f8a;
    color: #2c5f8a;
    margin-top: 12px;
}

.btn-outline:hover {
    background: #2c5f8a;
    color: white;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* ========== ИНФО-СЕКЦИЯ ========== */
.info-section {
    background: #f8fafc;
    border-radius: 28px;
    padding: 24px;
    margin-bottom: 25px;
    text-align: center;
    border: 1px solid #e2edf7;
}

.info-section h2 {
    color: #1a2c3e;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.info-section p {
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 8px;
}

.info-section .hours {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2edf7;
}

/* ========== ФОРМЫ ========== */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a2c3e;
}

.form-group label .required {
    color: #f87171;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #cfdfed;
    border-radius: 20px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2c5f8a;
}

/* ========== СООБЩЕНИЯ ========== */
.message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 20px;
    text-align: center;
    display: none;
}

.message.success {
    background: #e0f2e9;
    color: #1f6e43;
    display: block;
}

.message.error {
    background: #fee2e2;
    color: #dc2626;
    display: block;
}

.message.info {
    background: #e0f2fe;
    color: #2c5f8a;
    display: block;
}

.error-message {
    color: #f87171;
    font-size: 0.75rem;
    margin-top: 5px;
    display: none;
}

.message-area {
    margin-top: 15px;
    padding: 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-align: center;
    display: none;
}

/* ========== МОДАЛЬНЫЕ ОКНА ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 32px;
    padding: 28px;
    max-width: 450px;
    width: 90%;
    text-align: center;
}

.modal-content h3 {
    margin: 0 0 16px 0;
    color: #1a2c3e;
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.close-modal {
    float: right;
    font-size: 24px;
    cursor: pointer;
    color: #94a3b8;
}

/* ========== ССЫЛКИ ========== */
.footer-links {
    margin-top: 25px;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
}

.footer-links a {
    color: #2c5f8a;
    text-decoration: none;
}

.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: #2c5f8a;
    text-decoration: none;
}

/* ========== АДАПТИВ ========== */
@media (max-width: 550px) {
    .content { padding: 24px; }
    .header { padding: 24px; }
}