/* ============================================
   CONTACTS PAGE - Desktop (ПК)
   ============================================ */

/* Match Figma: right blue ellipse sits higher on contacts page */
body.page-contacts::after {
    top: 261px;
}

.page-contacts .contacts-page {
    padding: 40px 0 80px;
    position: relative;
    z-index: 1;
}

.page-contacts .breadcrumb {
    margin-bottom: 40px;
}

.page-contacts .contacts-title {
    margin: 0 0 40px 0;
}

.page-contacts .contacts-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.page-contacts .contacts-cards {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.page-contacts .contacts-card {
    flex: 1;
    min-height: 262px;
    background: #ffffff;
    border-radius: 30px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #4d4d4d;
}

.page-contacts .contacts-group {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.page-contacts .contacts-label {
    font-size: 18px;
    line-height: 1.3;
    margin: 0;
}

.page-contacts .contacts-value {
    font-size: 24px;
    line-height: 1.3;
    margin: 0;
}

.page-contacts .contacts-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-contacts .contacts-link {
    font-size: 24px;
    line-height: 1.3;
    color: #4d4d4d;
    text-decoration: none;
}

.page-contacts .contacts-link:hover {
    opacity: 0.7;
}

.page-contacts .contacts-map-btn {
    width: 100%;
    justify-content: space-between;
    text-decoration: none;
}

.page-contacts .contacts-map {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    background: #eeeeee;
}

/* Yandex map constructor injects its own container; force it to fill */
.page-contacts .contacts-map > * {
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.page-contacts .contacts-map iframe {
    border: 0;
}

/* ============================================
   RESPONSIVE DESIGN - Contacts Page
   ============================================ */
@media (max-width: 768px) {
    .page-contacts .contacts-page {
        padding: 30px 0 60px;
    }

    .page-contacts .contacts-cards {
        flex-direction: column;
    }

    .page-contacts .contacts-card {
        min-height: auto;
    }

    .page-contacts .contacts-map {
        height: 420px;
    }
}

/* ============================================
   MOBILE STYLES - До 480px (Contacts Page)
   ============================================ */
@media (max-width: 480px) {
    /* In the mobile layout breadcrumbs are not shown */
    .page-contacts .breadcrumb {
        display: none;
    }

    .page-contacts .contacts-page {
        padding: 20px 0 40px;
    }

    /* Match Figma: title is smaller than common section titles */
    .page-contacts .contacts-title {
        font-size: 24px;
        margin: 0 0 30px 0;
        text-align: center;
    }

    .page-contacts .contacts-cards {
        flex-direction: column;
        gap: 24px;
    }

    .page-contacts .contacts-card {
        min-height: auto;
        padding: 20px;
        border-radius: 30px;
        justify-content: flex-start;
        gap: 30px;
    }

    .page-contacts .contacts-label {
        font-size: 16px;
    }

    /* Slightly larger label for "Время работы" like in Figma */
    .page-contacts .contacts-card--info .contacts-group:last-child .contacts-label {
        font-size: 18px;
    }

    .page-contacts .contacts-value,
    .page-contacts .contacts-link {
        font-size: 20px;
    }

    /* Contacts button uses larger type on mobile compared to common btn-primary rule */
    .page-contacts .contacts-map-btn.btn-primary span {
        font-size: 16px;
        letter-spacing: 0.48px;
    }

    .page-contacts .contacts-map {
        height: 360px;
        border-radius: 20px;
    }
}

