 /* ===== CONTACTS BASE ===== */

.contacts-hero {
    padding: 30px 0 80px;
}

/* ===== UNIFIED CONTAINER PADDING ===== */

.contacts-hero__container,
.contacts-cards__container {
    font-family: "Manrope-Regular", sans-serif;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== HERO BACK ===== */

.contacts-hero__back {
    font-family: "Manrope-Regular", sans-serif;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    gap: 2px;
    background: rgba(0,0,0,.05);
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: .3s ease;
}

.contacts-hero__back:hover {
    background: rgba(0,0,0,.1);
}

/* ===== TITLE ===== */

.contacts-hero__title {
    font-family: "AV Fontimer-SemiBold", sans-serif;
    font-size: 80px;
    font-weight: 700;
    line-height: .95;
    color: #202020;
    margin: 0 0 50px 0;
}

/* ===== CONTENT ===== */

.contacts-hero__content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

/* ===== MAP ===== */

.contacts-hero__map {
    flex: 1.4;
    width: 100%;
}

#map {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
}

/* ===== INFO ===== */

.contacts-hero__info {
    font-family: "Manrope-Regular", sans-serif;
    flex: 1;
    padding-top: 40px;
}

.contacts-hero__company {
    font-family: "Manrope-Medium", sans-serif;
    color: #138a36;
    font-size: 35px;
    font-weight: 500;
    margin-bottom: 50px;
}

.contacts-hero__row {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.contacts-hero__row_1 {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.contacts-hero__label {
    min-width: 120px;
    color: #8f8f8f;
    font-size: 20px;
    line-height: 1.4;
}

.contacts-hero__value {
    color: #3b3b3b;
    font-size: 20px;
    line-height: 1.4;
}

/* ===== CARDS ===== */

.contacts-cards {
    padding: 40px 0 80px;
}

.contacts-cards__container {
    display: flex;
    gap: 20px;
}

/* ===== CARD ===== */

.contact-card {
    flex: 1;
    min-height: 420px;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.contact-card--brown { background: #b49f89; }
.contact-card--green-light { background: #9acc97; }
.contact-card--gray { background: #898989; }

/* ===== TEXT ===== */

.contact-card__title {
    font-family: "Manrope-Medium", sans-serif;
    font-size: 35px;
    font-weight: 400;
    color: #2b2b2b;
    margin-bottom: 30px;
}

.contact-card__title--white {
    color: black;
}

.contact-card__schedule {
    font-size: 20px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 50px;
}

.contact-card__person {
    font-family: "Manrope-SemiBold", sans-serif;
    color: black;
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 10px;
}

.contact-card__position {
    font-size: 15px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 50px;
}

/* ===== ITEMS ===== */

.contact-card__item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-card__item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.contact-card__item span {
    font-size: 18px;
    color: #333;
}

/* ===== QR ===== */

.contact-card__qr {
    margin-top: auto;
}

.contact-card__qr img {
    width: 180px;
    display: block;
}

/* ===== ANIMATIONS ===== */

.contact-card-animate {
    opacity: 0;
    transform: translateX(-60px);
}

.contact-card-animate.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== TABLET ==================== */

@media (max-width: 1240px) {

    /* контейнеры */
    .contacts-hero__container,
    .contacts-cards__container {
        padding: 0 16px;
    }

    /* общий вертикальный ритм */
    .contacts-hero {
        padding: 30px 0 80px;
    }

    .contacts-cards {
        padding: 40px 0 80px;
    }

    /* ===== HERO LAYOUT ===== */

    .contacts-hero__content {
        display: flex;
        flex-direction: column;
        gap: 30px; /* карта ↔ адреса */
    }

    /* карта на всю ширину контейнера */
    #map {
        width: 100%;
        /*height: 4px;*/
        border-radius: 12px;
    }

    /* заголовок */
    .contacts-hero__title {
        font-size: 56px;
    }

    /* перенос текста */
    .contacts-hero__value {
        max-width: 480px;
        line-height: 1.5;
        white-space: normal;
        word-break: break-word;
    }

    /* карточки */
    .contacts-cards__container {
        flex-direction: column;
        gap: 30px; /* между карточками */
    }
}


/* ==================== MOBILE ==================== */

@media (max-width: 480px) {

    .contacts-hero__container,
    .contacts-cards__container {
        padding: 0 16px;
    }

    /* общий ритм 80px сохраняем */
    .contacts-hero {
        padding: 20px 0 80px;
    }

    .contacts-hero__title {
         font-size: 56px;
         margin-top: -50px;
         margin-left: 55px;
    }

    .contacts-cards {
        padding: 30px 0 80px;
    }

    .contact-card__title {
            font-size: 24px;
            line-height: 1.2;
            overflow-wrap: break-word;
            word-break: break-word;
        }

    .contacts-hero__company {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .contacts-hero__content {
        display: flex;
        flex-direction: column;
        gap: 30px; /* карта ↔ адреса */
    }

    #map {
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        border-radius: 12px;
    }

    .contacts-hero__row,
    .contacts-hero__row_1 {
        flex-direction: column;
        gap: 6px;
        margin-bottom: 16px;
    }

    .contacts-hero__label {
        min-width: auto;
    }

    .contacts-hero__value {
        max-width: 370px;
        white-space: normal;
        word-break: normal;
        line-height: 1.5;
    }

    /* карточки */
    .contacts-cards__container {
        flex-direction: column;
        gap: 30px;
    }

    .back-text {
          display: none;
        }

        .back-icon {
          font-size: 18px;
        }
}