/* contacts.css - ВОЗВРАЩАЕМ СТАРЫЙ РАБОЧИЙ КОД И ДОБАВЛЯЕМ ИСПРАВЛЕНИЯ */

.page-contacts {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

/* СЕКЦИЯ КОНТАКТОВ */
.contacts {
    margin: 40px 0;
}

.contacts-split {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    align-items: flex-start;
}

@media (max-width: 992px) {
    .contacts-split {
        flex-direction: column;
    }
}

/* ЛЕВАЯ КОЛОНКА - КОНТАКТЫ */
.contacts-left {
    flex: 1;
    min-width: 300px;
}

.contact-card {
    background: hsl(220 35% 8%);
    border: 1px solid hsl(200 30% 18%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.contact-header h3 {
    color: hsl(195 100% 50%);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.contact-header p {
    color: hsl(200 20% 70%);
    margin-bottom: 25px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-list-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 24px;
    color: hsl(195 100% 50%);
    min-width: 40px;
    text-align: center;
}

.contact-details h4 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-details p {
    color: hsl(200 20% 70%);
    line-height: 1.5;
}

.contact-details strong {
    color: white;
}

/* БЫСТРАЯ СВЯЗЬ */
.quick-contact {
    background: hsl(220 35% 8%);
    border: 1px solid hsl(200 30% 18%);
    border-radius: 12px;
    padding: 25px;
}

.quick-contact h3 {
    color: hsl(195 100% 50%);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.quick-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.quick-btn {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: hsl(200 30% 12%);
    border: 1px solid hsl(200 30% 18%);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-btn:hover {
    background: hsl(195 100% 50%);
    border-color: hsl(195 100% 50%);
    color: hsl(220 40% 5%);
}

.quick-icon {
    font-size: 20px;
}

/* ПРАВАЯ КОЛОНКА - ФОРМА */
.contacts-right {
    flex: 1.5;
    min-width: 300px;
}

.form-card {
    background: hsl(220 35% 8%);
    border: 1px solid hsl(200 30% 18%);
    border-radius: 12px;
    padding: 30px;
}

.form-header h2 {
    color: hsl(195 100% 50%);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.form-subtitle {
    color: hsl(200 20% 70%);
    margin-bottom: 25px;
}

/* СТИЛИ ФОРМЫ */
.contact-form-split {
    /* Стили для уведомлений */
    .form-notification {
        padding: 15px;
        border-radius: 8px;
        margin: 20px 0;
        text-align: center;
        font-weight: 500;
    }
    
    .form-success {
        background: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }
    
    .form-error {
        background: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }
    
    /* Стили для подсветки полей */
    .form-input-split.valid {
        border-color: #4CAF50 !important;
        box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1) !important;
        background-color: rgba(76, 175, 80, 0.05) !important;
    }
    
    .form-input-split.invalid {
        border-color: #f44336 !important;
        box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1) !important;
    }
    
    .form-hint {
        font-size: 12px;
        color: #666;
        margin-top: 5px;
        transition: all 0.3s ease;
    }
    
    .form-hint.valid-hint {
        color: #4CAF50;
        font-weight: 500;
    }
    
    /* Счетчик символов */
    .textarea-counter-split {
        text-align: right;
        font-size: 12px;
        color: #666;
        margin-top: 5px;
        transition: all 0.3s ease;
    }
    
    .textarea-counter-split.warning {
        color: #ff9800;
    }
    
    .textarea-counter-split.error {
        color: #f44336;
    }
    
    .textarea-counter-split.valid {
        color: #4CAF50;
    }
    
    /* Индикатор загрузки */
    .form-loading {
        display: none;
        text-align: center;
        padding: 10px;
        color: #666;
    }
    
    .form-loading.active {
        display: block;
    }
}

/* Группы полей формы */
.form-row-split {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row-split {
        flex-direction: column;
        gap: 0;
    }
}

.form-group-split {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-split.full-width {
    width: 100%;
}

/* Лейблы */
.form-label-split {
    font-size: 0.9rem;
    color: hsl(200 20% 70%);
    display: block;
}

/* Inputs и textarea */
.form-input-split,
.form-textarea-split {
    appearance: none;
    background: hsl(200 30% 12%);
    border: 1px solid hsl(200 30% 18%);
    border-radius: 8px;
    padding: 12px 14px;
    color: white;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.3s ease;
}

.form-input-split:focus,
.form-textarea-split:focus {
    outline: 2px solid hsl(195 100% 50%);
    outline-offset: 2px;
}

.form-textarea-split {
    resize: vertical;
    min-height: 120px;
}

/* Счетчик символов */
.textarea-counter-split {
    font-size: 0.8rem;
    color: hsl(200 20% 60%);
    text-align: right;
}

/* Чекбокс */
.form-agreement-split {
    margin: 25px 0;
}

.checkbox-wrapper-split {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-checkbox-split {
    margin-top: 3px;
    accent-color: hsl(195 100% 50%);
    width: 18px;
    height: 18px;
}

.checkbox-label-split {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: hsl(200 20% 70%);
    font-size: 0.9rem;
}

/* Кнопка отправки */
.form-submit-split {
    margin-top: 30px;
}

.btn-submit-split {
    width: 100%;
    padding: 15px;
    background: hsl(195 100% 50%);
    color: hsl(220 40% 5%);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-split:hover {
    box-shadow: 0 0 20px hsl(195 100% 50% / 0.4);
}

/* Стили для карты */
.map {
    padding: 40px 0;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid hsl(200 30% 18%);
    margin-top: 20px;
}

#map {
    width: 100%;
    height: 100%;
    background: #1a1a2e;
}

@media (max-width: 768px) {
    .map-container {
        height: 300px;
    }
}

/* ===== ИСПРАВЛЕНИЯ ДЛЯ МОБИЛЬНОЙ ВЕРСИИ ===== */

@media (max-width: 768px) {
    /* УВЕЛИЧИВАЕМ БАЗОВЫЙ РАЗМЕР ШРИФТА ТОЛЬКО ДЛЯ МОБИЛЬНЫХ */
    body {
        font-size: 16px !important;
        line-height: 1.5;
    }
    
    /* ХЕДДЕР НА МОБИЛЬНЫХ */
    .header__inner {
        padding: 8px 15px !important;
        min-height: 50px !important;
    }
    
    .logo {
        font-size: 1.1rem !important;
    }
    
    .header__order-btn {
        padding: 10px 15px !important;
        font-size: 0.9rem !important;
    }
    
    /* ГЛАВНЫЙ ЭКРАН */
    .hero-slide__content {
        padding: 25px 20px !important;
        margin: 0 15px !important;
    }
    
    .hero-slide__title {
        font-size: 1.8rem !important;
        margin-bottom: 15px;
    }
    
    .hero-slide__text {
        font-size: 1.1rem !important;
    }
    
    .btn-hero {
        padding: 12px 25px !important;
        font-size: 1rem !important;
    }
    
    /* ЗАГОЛОВКИ СЕКЦИЙ */
    .section-title {
        font-size: 1.6rem !important;
        padding: 0 15px;
        margin-bottom: 20px;
    }
    
    /* КОНТАКТНАЯ СТРАНИЦА */
    .page-contacts {
        margin: 20px auto;
        padding: 0 10px;
    }
    
    .contacts {
        margin: 20px 0;
    }
    
    .contacts-split {
        gap: 20px;
        margin-top: 20px;
    }
    
    .contact-card,
    .quick-contact,
    .form-card {
        padding: 20px !important;
    }
    
    .contact-list-item h4 {
        font-size: 1rem !important;
    }
    
    .contact-list-item p {
        font-size: 0.95rem !important;
    }
    
    /* ФОРМА */
    .form-input-split,
    .form-textarea-split {
        font-size: 16px !important;
        padding: 14px !important;
    }
    
    .btn-submit-split {
        padding: 16px !important;
        font-size: 1rem !important;
    }
    
    /* КНОПКИ БЫСТРОЙ СВЯЗИ */
    .quick-btn {
        padding: 16px !important;
        font-size: 0.95rem !important;
        min-width: 100% !important;
        margin-bottom: 10px;
    }
    
    /* УВЕЛИЧИВАЕМ ТАП-ЗОНЫ */
    .btn, button, .quick-btn, .btn-submit-split {
        min-height: 48px !important;
    }
}

@media (max-width: 480px) {
    .hero-slide__title {
        font-size: 1.6rem !important;
    }
    
    .section-title {
        font-size: 1.4rem !important;
    }
    
    .contact-icon {
        font-size: 20px !important;
    }
    
    .quick-icon {
        font-size: 18px !important;
    }
}