/**
 * Футер сайта КОНТЕНТЗАВОД — карта с наложенной белой карточкой и вордмарком.
 * Тот же, что на главной (Contentzavod.html); подключается на странице блога
 * и на страницах статей, чтобы футер не расходился между разделами.
 *
 * Важно: подключать ПОСЛЕ styles/main.css — там остались правила старого
 * тёмного футера (.footer-section, .footer-link) с той же специфичностью.
 */

.footer-section {
    width: 100%;
    background: #FFFFFF;
    padding: 0;
    border-top: none;
}

.footer-map-wrapper {
    width: 100%;
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.footer-map {
    width: 100%;
    flex: 1;
    min-height: 500px;
    /* путь относительно этого файла, а не документа */
    background-image: url('../image/карта2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.footer-overlay-card {
    position: relative;
    z-index: 1;
    background: #FFFFFF;
    border-radius: 50px 50px 0 0;
    padding: 20px 40px;
    margin-top: auto;
    max-width: 1240px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.footer-overlay-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer-brand {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 130px;
    line-height: 1.2;
    color: #000000;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-block;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-inn,
.footer-link,
.footer-credits {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    color: #000000;
}

.footer-link {
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #082E74;
}

.footer-credits {
    margin-left: auto;
}

.footer-credits a {
    color: #000000;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-credits a:hover {
    color: #082E74;
}

/* === RESPONSIVE — точки те же, что на лендинге === */

@media (max-width: 1024px) {
    .footer-map-wrapper,
    .footer-map {
        min-height: 400px;
    }

    .footer-overlay-card {
        padding: 50px 30px;
    }

    .footer-brand {
        font-size: 56px;
    }
}

@media (max-width: 768px) {
    .footer-map-wrapper,
    .footer-map {
        min-height: 350px;
    }

    .footer-overlay-card {
        padding: 40px 20px;
        border-radius: 20px 20px 0 0;
    }

    .footer-overlay-content {
        gap: 24px;
    }

    .footer-brand {
        font-size: 40px;
    }

    .footer-legal {
        gap: 16px;
    }

    .footer-credits {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .footer-brand {
        font-size: 30px;
    }
}
