/* Контакты */
.contacts-page {
    padding: 60px 0;
}

.contacts-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    margin-top: 40px;
}

/* Контактная информация */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 24px;
    color: var(--white);
}

.info-content h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 10px;
}

.info-content p {
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.6;
}

.info-content a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.info-content a:hover {
    color: var(--secondary-color);
}

/* Социальные сети */
.social-section {
    padding: 30px;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    color: var(--white);
}

.social-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.social-links-large {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    text-decoration: none;
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

.social-link i {
    font-size: 24px;
}

.social-link.vk:hover {
    background: #0077FF;
}
.social-link.max:hover {
    background: #0077FF;
}
.social-link.telegram:hover {
    background: #0088cc;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Форма */
.contact-form-section {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-form-section h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 15px;
}

.form-description {
    color: var(--text-light);
    margin-bottom: 30px;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.alert-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.alert ul {
    list-style: none;
    margin: 0;
}

/* Карта */
.map-section {
    margin-top: 80px;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Адаптивность */
@media (max-width: 968px) {
    .contacts-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form-section {
        order: 1;
    }
}

/* --- Стилизация контейнера формы --- */
.contact-form-section {
    background: var(--white);
    padding: 40px;
    border-radius: 15px; /* Более сильное скругление */
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); /* Мягкая тень */
    border: 1px solid rgba(0,0,0,0.02);
}

.contact-form-section h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.form-description {
    color: #666;
    margin-bottom: 35px;
    font-size: 15px;
}

/* --- Исправление сетки формы (Главное исправление) --- */
.contact-form-section .form-group {
    margin-bottom: 25px;
    display: flex;       /* Включаем флекс */
    flex-direction: column; /* Элементы строго друг под другом */
    width: 100%;
}

/* --- Красивые лейблы (Заголовки полей) --- */
.contact-form-section label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px; /* Отступ от текста до поля */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

/* --- Поля ввода (Inputs & Textarea) --- */
.contact-form-section input[type="text"],
.contact-form-section input[type="email"],
.contact-form-section input[type="tel"],
.contact-form-section textarea {
    width: 100%;
    box-sizing: border-box; /* Чтобы padding не ломал ширину */
    padding: 16px 20px;     /* Просторные поля */
    font-size: 16px;
    color: #333;
    background-color: #f8f9fa; /* Светло-серый фон */
    border: 2px solid #eaebed; /* Светлая рамка */
    border-radius: 10px;       /* Скругленные углы */
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

/* Эффекты при наведении и нажатии */
.contact-form-section input:hover,
.contact-form-section textarea:hover {
    background-color: #fff;
    border-color: #d1d1d1;
}

.contact-form-section input:focus,
.contact-form-section textarea:focus {
    background-color: #fff;
    border-color: var(--primary-color); /* Цвет бренда при фокусе */
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); /* Легкое свечение */
}

/* Исправление для textarea */
.contact-form-section textarea {
    min-height: 140px;
    resize: vertical;
}

/* --- Кнопка отправки --- */
.contact-form-section .btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* Тень кнопки */
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.contact-form-section .btn:hover {
    transform: translateY(-3px); /* Кнопка приподнимается */
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.contact-form-section .btn:active {
    transform: translateY(-1px);
}

/* Иконка внутри кнопки */
.contact-form-section .btn i {
    font-size: 18px;
}

/* Сообщения об успехе/ошибке (Alerts) */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 14px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

