/* static/css/contacts.css - Стили для страницы контактов */

/* --- ОСНОВНОЙ КОНТЕЙНЕР --- */
.contact-container {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
}

.contact-container h1 {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* --- БЛОКИ С ИНФОРМАЦИЕЙ --- */
.contact-info-block {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-info-block .icon-wrapper {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--surface-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 1.5rem;
}

.contact-info-block h5 {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.contact-info-block p {
    margin: 0;
    color: #7f8c8d;
    line-height: 1.6;
}
.contact-info-block p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
.contact-info-block p a:hover {
    text-decoration: underline;
}

/* --- КАРТА --- */
.map-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- СОЦИАЛЬНЫЕ СЕТИ --- */
.social-links-title {
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #e9ecef;
    color: var(--secondary-color);
    border-radius: 50%;
    text-decoration: none;
    margin-right: 0.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--surface-color);
    transform: translateY(-3px);
}

/* --- МОБИЛЬНАЯ АДАПТАЦИЯ --- */
@media (max-width: 991.98px) {
    .contact-container {
        padding: 1.5rem 1rem; /* Уменьшаем отступы на мобильных */
    }

    .contact-container h1 {
        font-size: 1.75rem; /* Уменьшаем главный заголовок */
    }

    .map-container {
        margin-top: 2rem; /* Добавляем отступ сверху для карты */
        min-height: 350px; /* Немного уменьшаем высоту карты */
    }

    .social-links-title {
        text-align: center;
        font-size: 1rem;
    }

    .social-links {
        text-align: center; /* Центрируем иконки соцсетей */
    }
}

@media (max-width: 576px) {
    .contact-info-block {
        flex-direction: column; /* Ставим иконку над текстом */
        align-items: center;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .contact-info-block .icon-wrapper {
        width: 45px; /* Уменьшаем иконку */
        height: 45px;
        font-size: 1.1rem;
        margin-right: 0;
        margin-bottom: 0.75rem; /* Отступ под иконкой */
    }

    .contact-info-block h5 {
        font-size: 1rem; /* Уменьшаем подзаголовок */
    }

    .contact-info-block p, .contact-info-block p a {
        font-size: 0.9rem; /* Уменьшаем основной текст */
    }

    .social-links a {
        width: 36px; /* Уменьшаем иконки соцсетей */
        height: 36px;
        font-size: 1rem;
    }
}