/* ========================================================================== */
/* ФУТЕР — footer.css */
/* ========================================================================== */

.footer {
    width: 100%;
    background-color: #2C5B5E;
    padding: 30px 0 20px 0;
}

.footer-container {
    width: 85%;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

/* Левая колонка — контакты */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-item a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #7dd8d8;
}

.contact-item p {
    color: white;
    margin: 0;
}

.contact-phone {
    margin-bottom: 0;
}

.contact-item .icon {
    font-size: 20px;
    flex-shrink: 0;
}

/* Центральная колонка — карта */
.footer-map {
    flex: 1;
    min-width: 200px;
}

.map-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.map-wrapper iframe {
    width: 100%;
    height: 250px;
    display: block;
    border: none;
    border-radius: 16px;
}

/* Правая колонка — фото и ссылка */
.footer-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.footer-photo img {
    width: 100%;
    max-width: 430px;
    height: auto;
    border-radius: 30px;
    margin-bottom: 15px;
}

.footer-photo a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-photo a:hover {
    color: #7dd8d8;
}

.footer__main-text {
    color: rgb(49, 201, 201);
    margin: 0;
    font-size: 16px;
}

.footer__main-title {
    color: white;
    margin: 0;
    font-size: 24px;
}

/* ========================================================================== */
/* АДАПТИВ ФУТЕРА */
/* ========================================================================== */

/* Планшеты */
@media (max-width: 1024px) {
    .footer-container {
        width: 92%;
        gap: 30px;
        flex-wrap: wrap;
    }

    .footer-photo img {
        max-width: 350px;
    }

    .footer__main-title {
        font-size: 20px;
    }
}

@media (max-width: 820px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }

    .contact-info {
        align-items: center;
        width: 100%;
    }

    .contact-item {
        justify-content: center;
    }

    .footer-map {
        width: 100%;
        max-width: 500px;
    }

    .map-wrapper iframe {
        height: 200px;
    }

    .footer-photo {
        width: 100%;
        max-width: 400px;
    }

    .footer-photo img {
        max-width: 100%;
    }

    .footer__main-title {
        font-size: 22px;
    }
}

/* Мобильные устройства */
@media (max-width: 600px) {
    .footer {
        padding: 25px 0 15px 0;
    }

    .footer-container {
        width: 95%;
        gap: 20px;
    }

    .footer__main-title {
        font-size: 18px;
    }

    .footer__main-text {
        font-size: 14px;
    }

    .contact-item {
        gap: 10px;
    }

    .contact-item .icon {
        font-size: 16px;
    }

    .contact-item a,
    .contact-item p {
        font-size: 14px;
    }

    .map-wrapper iframe {
        height: 160px;
    }

    .footer-photo img {
        border-radius: 20px;
        max-width: 100%;
    }

    .footer-photo a {
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .footer__main-title {
        font-size: 16px;
    }

    .contact-item a,
    .contact-item p {
        font-size: 12px;
    }

    .contact-item .icon {
        font-size: 14px;
    }

    .map-wrapper iframe {
        height: 140px;
    }
}