/* ==========================================================================
   Файл: css/contacts.css
   ========================================================================== */

/* Подключаем шрифты */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500&family=Montserrat:wght@300;400;500&display=swap');

.custom-contacts-main {
    font-family: 'Montserrat', sans-serif;
    background-color: #fafafa; /* Цвет фона всей страницы */
    padding: 80px 15px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.contacts-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    background: #ffffff; /* Цвет фона карточки */
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    width: 100%;
}

/* --- Левая часть (Текст) --- */
.contacts-label {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #bfa78a;
    margin-bottom: 15px;
    font-weight: 500;
}

.contacts-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 54px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 40px;
    line-height: 1.1;
}

.contact-item {
    margin-bottom: 35px;
}

.contact-subtitle {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-text, 
.contact-link {
    font-size: 18px;
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #bfa78a;
}

.contacts-requisites {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #888;
    line-height: 1.8;
}

.contacts-requisites strong {
    color: #444;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

/* ==========================================================================
   Правая часть - Светлая карта с градиентным растворением (Маска)
   ========================================================================== */
.contacts-map-wrapper {
    width: 100%;
    height: 550px;
    position: relative;

    /* 
       CSS-Маска: делает края прозрачными, плавно уводя карту в фон под ней (#ffffff).
       black = видимая часть карты, transparent = прозрачная часть.
       Здесь маска растворяет карту со всех четырех сторон к центру.
    */
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
    mask-image: radial-gradient(circle at center, black 40%, transparent 90%);

    /* Если хотите растворение только слева (чтобы карта сливалась с текстом), 
       закомментируйте верхние две строки и раскомментируйте нижние:

       -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%, black 100%);
       mask-image: linear-gradient(to right, transparent 0%, black 30%, black 100%); 
    */
}

.contacts-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;

    /* Делаем карту чуть более бледной (пастельной), чтобы она не кричала цветами */
    filter: saturate(70%) contrast(90%);
}


/* ==========================================================================
   Адаптивность
   ========================================================================== */
@media (max-width: 992px) {
    .contacts-container {
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 0; /* Убираем дыру между текстом и картой */
    }
    .contacts-map-wrapper {
        height: 450px;
        /* На мобильном растворяем сверху и снизу */
        -webkit-mask-image: radial-gradient(circle, black 30%, transparent 90%);
        mask-image: radial-gradient(circle, black 30%, transparent 90%);
    }
}

@media (max-width: 576px) {
    .contacts-title {
        font-size: 38px;
    }
    .custom-contacts-main {
        padding: 40px 10px;
    }
    .contacts-map-wrapper {
        height: 350px;
    }
}