/* ==========================
   contact.css
   Стили для страницы контактов MUL
   ========================== */

/* Отступ от шапки */
.section-with-top-margin {
    margin-top: 130px;
}

/* Контейнер секции */
.contacts-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contacts-content {
    text-align: center;
}

.contacts-content h1 {
    font-size: 2.2rem;
    color: #f25c05;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.contacts-subtitle {
    font-size: 1.2rem;
    color: #0d1b2a;
    margin-bottom: 30px;
    line-height: 1.5;
}

.contacts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* Левая колонка — карта */
.contacts-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#map {
    width: 100%;
    height: 400px;
    position: relative;
    z-index: 1;
}

/* Правая колонка — информация */
.contacts-info {
    flex: 1;
    min-width: 300px;
    text-align: left;
    padding: 20px;
}

.contacts-info h2 {
    font-size: 1.8rem;
    color: #1a3c5e;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.contact-details {
    margin-top: 20px;
}

.contact-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-icon {
    width: 20px;
    height: 20px;
    fill: #ff6e00;
}

.contact-entry span {
    font-size: 1rem;
    color: #0d1b2a;
}

.contact-entry a {
    color: #ff6e00;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-entry a:hover {
    color: #d94a00;
}

/* ==========================
   Кастомизация стандартного балуна Яндекс.Карт
   ========================== */

/* Основной контейнер */
.ymaps-2-1-79-balloon__layout,
.ymaps-2-1-79-balloon,
.ymaps-2-1-79-balloon__content,
.ymaps-2-1-79-balloon__content-body,
.ymaps-2-1-79-balloon__shadow {
    background: white !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    border: none !important;
}

/* Содержимое балуна */
.ymaps-2-1-79-balloon__content {
    padding: 15px 20px !important;
    white-space: normal !important;
    color: #0d1b2a !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    font-family: 'Inter', sans-serif !important;
}

/* Убираем внутренние просветы и фоны */
.ymaps-2-1-79-balloon__layout > ymaps {
    border: none !important;
    background: transparent !important;
    border-radius: 10px !important;
}

/* Кнопка закрытия */
.ymaps-2-1-79-balloon__close {
    top: 8px !important;
    right: 12px !important;
    width: 20px !important;
    height: 20px !important;
    background: none !important;
    opacity: 0.6 !important;
    transition: opacity 0.2s ease;
}

.ymaps-2-1-79-balloon__close:hover {
    opacity: 1 !important;
    filter: brightness(0) saturate(100%) invert(35%) sepia(92%) saturate(3062%) hue-rotate(3deg) brightness(97%) contrast(95%) !important;
}


/* Стандартный хвостик Яндекса без тени */
.ymaps-2-1-79-balloon__tail {
    filter: none !important;
    box-shadow: none !important;
}


/* ==========================
   Адаптивность
   ========================== */

@media screen and (max-width: 768px) {
    .contacts-content h1 {
        font-size: 1.8rem;
    }

    .contacts-subtitle {
        font-size: 1rem;
    }

    .contacts-grid {
        flex-direction: column;
        gap: 20px;
    }

    .contacts-info {
        padding: 10px;
    }

    .contacts-info h2 {
        font-size: 1.5rem;
    }

    .contact-entry span {
        font-size: 0.95rem;
    }

    #map {
        height: 300px;
    }
}

@media screen and (max-width: 480px) {
    .section-with-top-margin {
        margin-top: 100px;
    }

    .contacts-section {
        margin: 20px auto;
        padding: 20px 15px;
    }

    .contacts-content h1 {
        font-size: 1.5rem;
    }

    .contacts-subtitle {
        font-size: 0.9rem;
    }

    #map {
        height: 250px;
    }
}
