:root {
    --footer-border: rgba(255, 255, 255, 0.14);
    --footer-text-soft: rgba(245, 243, 235, 0.86);
    --footer-text-muted: rgba(245, 243, 235, 0.72);
}

.site-footer {
    margin-top: 64px;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.footer-main {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
        linear-gradient(135deg, var(--green-dark) 0%, var(--green-secondary) 42%, #214b30 100%);
    padding: 72px 0 42px;
    box-shadow: var(--shadow-main);
}

.footer-main::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.footer-main::after {
    content: "";
    position: absolute;
    left: -80px;
    bottom: -110px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(107, 30, 17, 0.16);
}

.footer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
}

.footer-logo img {
    width: 190px;
    max-width: 100%;
    object-fit: contain;
}

.footer-brand-text {
    margin: 0;
    max-width: 300px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--footer-text-soft);
}

.footer-column h3 {
    margin: 0 0 18px;
    padding-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--white);
    position: relative;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 54px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--green-primary), rgba(245, 243, 235, 0.92));
}

.footer-links,
.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact a {
    display: inline-block;
    color: var(--footer-text-soft);
    font-size: 0.98rem;
    line-height: 1.68;
    transition: color var(--transition), transform var(--transition), opacity var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-map-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    padding: 12px 18px;
    border-radius: 16px;
    color: var(--white);
    font-weight: 800;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.footer-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.footer-bottom {
    background: linear-gradient(90deg, var(--green-primary), var(--red-primary), var(--green-primary));
    padding: 18px 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-bottom-content p {
    margin: 0;
    color: var(--white);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 34px 28px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        margin-top: 48px;
    }

    .footer-main {
        padding: 48px 0 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand-text {
        max-width: none;
    }

    .footer-logo img {
        width: 160px;
    }

    .footer-map-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-btn {
        width: 100%;
        max-width: 240px;
    }
}

@media (max-width: 576px) {
    .footer-main {
        padding: 40px 0 24px;
    }

    .footer-grid {
        gap: 26px;
    }

    .footer-column h3 {
        font-size: 1rem;
        margin-bottom: 16px;
    }

    .footer-links a,
    .footer-contact a,
    .footer-brand-text,
    .footer-bottom-content p {
        font-size: 0.94rem;
    }

    .footer-btn {
        max-width: none;
    }

    .footer-bottom {
        padding: 16px 0;
    }
}
