/* =========================================
   СТИЛИ ДЛЯ СТРАНИЦЫ "КОНТАКТЫ" (contacts.css)
   ========================================= */


/* --- Шапка раздела --- */

.page-header.contacts-header {
    height: 300px;
    /* Чуть компактнее, чем в новостях */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/5229221703811009620.jpg');
    background-size: cover;
    background-position: center 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    margin-bottom: 60px;
}


/* --- Сетка карточек контактов --- */

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 колонки для специалистов */
    gap: 30px;
    margin-bottom: 60px;
}


/* --- Карточка контакта --- */

.contact-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 4px solid transparent;
    /* Полоска теперь сверху */
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-top-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
    font-size: 22px;
    color: #111;
    margin-bottom: 2px;
}

.contact-card .position {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: #444;
}

.contact-item strong {
    color: #111;
    min-width: 70px;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: none;
}


/* --- Контейнер для Яндекс Карты --- */

.map-section {
    padding-bottom: 100px;
}

.map-container {
    width: 100%;
    height: 500px;
    background-color: #E1E8E2;
    border-radius: 16px;
    overflow: hidden;
    /* Чтобы углы карты скруглились */
    box-shadow: var(--shadow);
}


/* --- АДАПТИВ ДЛЯ КОНТАКТОВ --- */

@media (max-width: 1024px) {
    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    .map-container {
        height: 350px;
    }
}