:root {
    --footer-text: rgba(245, 245, 245, 0.98);
    --footer-border: rgba(255, 255, 255, 0.24);
    --footer-divider: rgba(255, 255, 255, 0.38);
}

.site-footer {
    position: relative;
    width: 100%;
    margin-left: 0;
    margin-top: -1px;
    padding: 52px 0 26px;
    color: #f5f5f5;
    overflow: hidden;
    background: url("../img/background/footer.png") center / cover no-repeat;
}

.site-footer::before,
.site-footer::after {
    content: none;
}

.footer-shell {
    position: relative;
    z-index: 1;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 34px;
}

.footer-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
        "about info emblem"
        "metland contact desc";
    row-gap: 44px;
    align-items: start;
    padding: 10px 0 6px;
    background-image: linear-gradient(
        to right,
        transparent 0%,
        transparent calc(33.333% - 1px),
        var(--footer-divider) calc(33.333% - 1px),
        var(--footer-divider) calc(33.333% + 1px),
        transparent calc(33.333% + 1px),
        transparent calc(66.666% - 1px),
        var(--footer-divider) calc(66.666% - 1px),
        var(--footer-divider) calc(66.666% + 1px),
        transparent calc(66.666% + 1px),
        transparent 100%
    );
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.footer-block {
    min-width: 0;
    padding: 0 42px;
}

.footer-about {
    grid-area: about;
}

.footer-info {
    grid-area: info;
}

.footer-emblem {
    grid-area: emblem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.footer-block.footer-emblem {
    padding-left: 10px;
    padding-right: 10px;
}

.footer-emblem .footer-logo-uzbek {
    transform: translateY(-32px) scale(1.9);
    transform-origin: center top;
}

.footer-metland {
    grid-area: metland;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-contact {
    grid-area: contact;
}

.footer-desc {
    grid-area: desc;
}

.footer-heading {
    font-family: "Poppins", sans-serif;
    font-size: clamp(20px, 1.35vw, 26px);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 16px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.footer-list {
    list-style: none;
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 0;
}

.footer-list a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: clamp(16px, 1.15vw, 21px);
    line-height: 1.28;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-list a:hover {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.72);
    text-underline-offset: 4px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
}

.footer-logo {
    display: block;
    width: 100%;
    height: auto;
}

.footer-logo-metland {
    max-width: 260px;
}

.footer-logo-uzbek {
    max-width: 720px;
}

.footer-contact-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--footer-text);
    font-size: clamp(15px, 1.05vw, 20px);
    line-height: 1.52;
    margin-bottom: 14px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.footer-contact-item i {
    width: 18px;
    margin-top: 3px;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 6px;
}

.footer-social {
    color: #ffffff;
    font-size: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.footer-social:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.footer-social-instagram i {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-social-whatsapp i {
    color: #25d366;
}

.footer-social-tiktok i {
    color: #ffffff;
    text-shadow: -2px -2px 0 #00f2ea, 2px 2px 0 #ff004f;
}

.footer-description {
    color: rgba(245, 245, 245, 0.92);
    font-size: clamp(15px, 1.05vw, 20px);
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
    overflow-wrap: break-word;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.footer-bottom {
    margin-top: 28px;
    text-align: center;
    color: rgba(248, 248, 248, 0.95);
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom p:first-child {
    font-family: "Poppins", sans-serif;
    font-size: clamp(18px, 1.35vw, 22px);
    font-weight: 500;
    line-height: 1.1;
}

.footer-bottom p:last-child {
    margin-top: 4px;
    font-size: clamp(14px, 1vw, 16px);
}

@media (max-width: 980px) {
    .site-footer {
        padding-top: 50px;
    }

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

    .footer-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "about"
            "info"
            "emblem"
            "metland"
            "contact"
            "desc";
        row-gap: 28px;
        background-image: none;
    }

    .footer-block {
        padding: 0;
    }

    .footer-emblem {
        justify-content: flex-start;
    }

    .footer-logo-uzbek {
        max-width: 480px;
    }

    .footer-block.footer-emblem {
        padding-left: 0;
        padding-right: 0;
    }

    .footer-emblem .footer-logo-uzbek {
        transform: none;
    }
}

@media (max-width: 680px) {
    .site-footer {
        padding-top: 40px;
        padding-bottom: 16px;
    }

    .footer-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "about info"
            "metland emblem"
            "contact contact"
            "desc desc";
        column-gap: 28px;
        row-gap: 20px;
        background-image: linear-gradient(
            to right,
            transparent 49.6%,
            rgba(255, 255, 255, 0.35) 50%,
            rgba(255, 255, 255, 0.35) 50.6%,
            transparent 51%
        );
        background-repeat: no-repeat;
        background-position: top center;
        background-size: 100% 420px;
    }

    .footer-block {
        padding: 0 12px;
    }

    .footer-about {
        padding-left: 0;
        margin-left: 0;
    }

    .footer-about .footer-heading {
        margin-left: -6px;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 18px;
    }

    .footer-heading {
        margin-bottom: 10px;
        font-size: 20px;
        letter-spacing: 0.2px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
    }

    .footer-list a {
        font-size: 16px;
        line-height: 1.5;
        color: rgba(245, 245, 245, 0.98);
        font-weight: 600;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
    }

    .footer-contact-item {
        font-size: 16px;
        margin-bottom: 10px;
        color: rgba(245, 245, 245, 0.98);
        font-weight: 600;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
    }

    .footer-logo-metland {
        max-width: 200px;
        justify-content: flex-start;
    }

    .footer-logo-uzbek {
        max-width: none;
    }

    .footer-metland {
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .footer-emblem {
        justify-content: flex-end;
        align-items: center;
    }

    .footer-metland,
    .footer-emblem {
        min-height: 230px;
    }

    .footer-metland .footer-logo-metland {
        transform: translateY(-10px);
    }

    .footer-emblem .footer-logo-uzbek {
        width: 100%;
        height: 220px;
        object-fit: cover;
        object-position: 50% 45%;
    }
}

@media (max-width: 520px) {
    .footer-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "about info"
            "metland emblem"
            "contact contact"
            "desc desc";
        column-gap: 20px;
        row-gap: 18px;
        background-image: linear-gradient(
            to right,
            transparent 49.2%,
            rgba(255, 255, 255, 0.32) 50%,
            rgba(255, 255, 255, 0.32) 50.8%,
            transparent 51%
        );
        background-repeat: no-repeat;
        background-position: top center;
        background-size: 100% 380px;
    }

    .footer-block {
        padding: 0 10px;
    }

    .footer-about {
        padding-left: 0;
        margin-left: 0;
    }

    .footer-about .footer-heading {
        margin-left: -6px;
    }

    .footer-heading {
        font-size: 18px;
    }

    .footer-list a,
    .footer-contact-item {
        font-size: 14.5px;
        font-weight: 600;
    }

    .footer-logo-metland {
        max-width: 170px;
    }

    .footer-logo-uzbek {
        max-width: none;
    }

    .footer-metland .footer-logo-metland {
        transform: translateY(-8px);
    }

    .footer-metland,
    .footer-emblem {
        min-height: 210px;
    }

    .footer-emblem .footer-logo-uzbek {
        width: 100%;
        height: 200px;
        object-fit: cover;
        object-position: 50% 45%;
    }

    .footer-social {
        font-size: 26px;
    }
}

/* Keep two-column layout down to very small widths for side-by-side About / Uzbekistan info */
