.contact-us-page__heading {
    margin: 40px 0 50px;
    text-align: center;
}

.contact-us-page__title {
    font-size: 48px;
    line-height: 24px;
    font-weight: 500;
    color: #140C01;
}

@media (max-width: 768px) {
    .contact-us-page__title {
        font-size: 32px;
    }
}

.contact-us-page__items {
    margin-bottom: 80px;
}

@media (max-width: 768px) {
    .contact-us-page__items {
        margin-bottom: 27px;
    }
}

.contact-us-page__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

@media (max-width: 1024px) {
    .contact-us-page__item {
        flex-direction: column;
        gap: 40px;
    }
}
@media (max-width: 992px) {
    .contact-us-page__item {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .contact-us-page__item {
        gap: 20px;
    }
}

.contact-us-page__item:not(:last-child) {
    margin-bottom: 80px;
}

@media (max-width: 768px) {
    .contact-us-page__item:not(:last-child) {
        margin-bottom: 40px;
    }
}

.contact-us-page__item:nth-child(even) {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .contact-us-page__item:nth-child(even) {
        flex-direction: column;
    }
}

.contact-us-page__item-content {
    flex: 0 1 730px;
}

@media (max-width: 768px) {
    .contact-us-page__item-content {
        flex-basis: 100%;
    }
}

.contact-us-page__item-image {
    flex: 0 1 522px;
    overflow: hidden;
}

.contact-us-page__item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    @media (max-width: 480px) {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .contact-us-page__item-image {
        flex-basis: 100%;
        width: 100%;
    }
}

.contact-us-page__item-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-us-page__item-title {
    font-size: 24px;
    line-height: 24px;
    font-weight: 500;
    color: #140C01;
    margin-bottom: 31px;
}

@media (max-width: 768px) {
    .contact-us-page__item-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

.contact-us-page__text p {
    font-size: 16px;
    line-height: 24px;
    color: #140C01;
    @media (max-width: 480px) {
        text-align: justify;
    }
}

.contact-us-page__text p:not(:last-child) {
    margin-bottom: 30px;
    @media (max-width: 480px) {
        margin-bottom: 20px;
    }
}

.contact-us-page__item-phone-number {
    font-weight: 500;
    color: #000;
    text-decoration: underline !important;
}

.contact-us-page__item-phone-number:hover {
    color: var(--color-text-link);
}

.contact-us-page__item-phone-number--red {
    color: var(--color-text-link);
}

.contact-us-page__item-phone-number--red:hover {
    opacity: 0.8;
}

.contact-us-page__map-address {
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .contact-us-page__map-address {
        margin-bottom: 30px;
    }
}

.contact-us-page__map-address p {
    font-size: 24px;
    line-height: 24px;
    font-weight: 500;
    color: #000;
}

.contact-us-page__map-wrapper {
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    .contact-us-page__map-wrapper {
        padding-bottom: 40px;
    }
}

/* Секція Intro та Контакти (Flex) */
.intro-section, .contact-info-section {
    display: flex;
    gap: 100px;
    margin-bottom: 60px;
    align-items: center;
    @media (max-width: 768px) {
        gap: 30px;
    }
    @media (max-width: 480px) {
        margin-bottom: 27px;
    }
}

.image-wrapper img, .map-wrapper img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.content-wrapper, .details-wrapper, .image-wrapper, .map-wrapper {
    flex: 1;
}

/* Список контактів */
.details-wrapper .social-icons-list {
    list-style: none;
    padding: 0;
}

.details-wrapper .social-icons-list li {
    margin-bottom: 20px;
}

.details-wrapper .social-icons-list li a,
.details-wrapper .social-icons-list li {
    display: flex;
    align-items: center;
    /* gap: 15px;  */
}

.social-icons-list .icon {
    display: flex;
    justify-content: center; /* Центрируем иконку внутри спана */
    width: 30px; /* ФИКСИРОВАННАЯ ШИРИНА блока для иконки */
    margin-right: 15px; /* Одинаковый отступ ОТ блока до текста */
    flex-shrink: 0; /* Чтобы иконка не сжималась, если текст длинный */
}

.social-icons-list .icon img {
    max-width: 100%;
    height: auto;
}

.details-wrapper i {
    color: var(--primary-red);
    font-size: 1.2rem;
}

.map-wrapper {
    /* Радіус заокруглення (змініть 20px на потрібне вам значення) */
    border-radius: 16px;

    /* Обов'язково додайте overflow: hidden, щоб кути карти всередині обрізалися */
    overflow: hidden;

    /* Додатково: якщо хочете тонку рамку навколо */
    /* border: 1px solid #ccc;  */

    /* Щоб уникнути проблем із відображенням у деяких браузерах */
    transform: translateZ(0);


    .map-wrapper iframe {
        display: block; /* Прибирає можливі відступи знизу */
    }
}
@media (max-width: 480px) {
    .map-wrapper iframe {
        height: 240px;
    }
}

/* Адаптивність для мобільних пристроїв (планшети та смартфони) */
@media (max-width: 768px) {


    /* 2. Секції (Сантехнік та Карта) */
    .intro-section,
    .contact-info-section {
        flex-direction: column; /* Стекуємо елементи вертикально */
        /*! gap: 20px; */

    }

    .image-wrapper,
    .map-wrapper,
    .content-wrapper,
    .details-wrapper {
        width: 100%; /* Кожен блок займає всю ширину */
    }

    /* Центрування іконок контактів у мобільній версії */
    .details-wrapper ul {
        display: inline-block;
        text-align: left;
    }
}