/* ================================================================
   PAGE-CONTACTS.CSS
   Первый экран "Контакты"
   ================================================================ */

.page-contacts {
    background-color: #00060E;
}

/* ---------------- HERO ---------------- */

.contacts-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: #00060E;
    overflow: hidden; /* фон не вылезает, следующий блок можем "подсаживать" */
}

.contacts-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.contacts-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* можно менять под нужную компоновку */
}

/* заголовок внизу слева, как на других обложках */
.contacts-hero__content {
    position: absolute;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin-left: clamp(20px, 4vw, 60px);
    bottom: clamp(40px, 6vw, 80px);
}

.contacts-hero__title {
    text-align: left;
    margin: 0;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

/* ---------------- ADAPTIVE ---------------- */

@media (max-width: 767px) {
    .contacts-hero {
        justify-content: center;
        text-align: center;
    }

    .contacts-hero__content {
        margin-left: 0;
        padding: 0 clamp(20px, 4vw, 40px);
        bottom: clamp(30px, 6vw, 50px);
    }

    .contacts-hero__title {
        text-align: center;
    }
}

/* ================================================================
   CONTACTS — ТРИ КОЛОНКИ
   ================================================================ */

.contacts-tiles {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, #000710 0%, #010203 100%);
    padding: clamp(60px, 8vw, 120px) 0;
    overflow: hidden;
}

.contacts-tiles__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(30px, 4vw, 60px);
}

/* карточка */
.contacts-card {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contacts-card__image {
    width: 100%;
    max-width: 360px;
    margin-bottom: clamp(24px, 3vw, 32px);
}

.contacts-card__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* текст */
.contacts-card__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contacts-card__title {
    margin: 0;
    font-family: 'Archaica', system-ui, sans-serif;
    font-size: clamp(1.1rem, 1.1vw, 1.6rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
        font-family: 'Seenonim', Arial, sans-serif;
}

.contacts-card__subtitle {
    margin: 0;
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    color: #d0d0d0;
}

.contacts-card__subtitle--link {
    text-decoration: underline;
}

/* чтобы ссылки выглядели как текст */
.contacts-card__title:hover,
.contacts-card__subtitle--link:hover {
    opacity: 0.85;
}

/* ===================== ADAPTIVE ===================== */

@media (max-width: 1023px) {
    .contacts-tiles__inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .contacts-card {
        flex: 0 1 45%;
    }
}

@media (max-width: 767px) {
    .contacts-tiles__inner {
        flex-direction: column;
        align-items: center;
    }

    .contacts-card {
        flex: 0 1 auto;
        max-width: 420px;
    }

    .contacts-card__image {
        margin-bottom: 20px;
    }
}
/* ================================================================
   CONTACTS — Яндекс карта на весь экран
   ================================================================ */

.contacts-map {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 480px;
    background-color: #00060e;
    overflow: hidden;
}

.contacts-map__inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.contacts-map__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* чтобы на маленьких экранах карта не была слишком мелкой по высоте */
@media (max-width: 767px) {
    .contacts-map {
        height: 80vh;
        min-height: 360px;
    }
}
