:root {
    --bg-0: #07101a;
    --bg-1: #0b1320;
    --accent: #57c4a0;
    --muted: #9aa5a0;
    --glass: rgba(255, 255, 255, 0.04);
    --card: rgba(255, 255, 255, 0.02);
    --radius: 12px;
    --container: 1200px;
    --gap: 1px;
    --text: #e6efea;
    --transition: 220ms cubic-bezier(.2, .9, .3, 1);
    --heading-size: 20px;
}

a {
    color: inherit;
    text-decoration: none;
}

.footer {
    background: linear-gradient(180deg, rgba(59, 138, 107, 0.04) 0%, rgba(11, 19, 32, 0.72) 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
        var(--bg-1);
    padding: 26px 20px;
    color: var(--text);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 -6px 30px rgba(2, 6, 23, 0.45) inset;
}

.wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 360px 250px 340px 180px;
    gap: var(--gap);
    align-items: start;
    grid-auto-flow: row;
}

.footer-grid>* {
    min-width: 0;
}

.brand-column .logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.brand-column .logo-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.45);
    flex-shrink: 0;
}

.brand-column img {
    max-width: 53px;
    max-height: 53px;
    border-radius: 8px;
    display: block;
}

.brand-column .logo-title {
    font-weight: 800;
    font-size: var(--heading-size);
    color: var(--accent);
    letter-spacing: 0.6px;
}

.brand-column .tag {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
    max-width: 420px;
    margin-top: 20px;
    text-align: justify;
}

.brand-column .social {
    display: flex;
    gap: 8px;
    margin-top: 25px;
}

.brand-column .social a {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--glass);
    color: var(--accent);
    transition: transform var(--transition), background var(--transition);
}

.brand-column .social a:hover {
    transform: translateY(-4px);
    background: var(--accent);
    color: white;
}

.links h4 {
    margin: 10px 0 16px 0;
    color: var(--accent);
    text-align: center;
    font-size: var(--heading-size);
    font-weight: 800;
}

.links ul {
    list-style: none;
    padding: 0;
    margin-top: 37px;
    align-items: center;
    text-align: center;
}

.links li {
    margin-bottom: 18px;
}

.links a {
    color: var(--muted);
    font-size: 16px;
    transition: color var(--transition);
}

.links a:hover {
    color: var(--text);
}

.contact h4 {
    margin-top: 10px;
    text-align: center;
    color: var(--accent);
    font-size: var(--heading-size);
    font-weight: 800;
}

.contact .meta {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    gap: 5px;
    align-items: center;
    text-align: center;
}

.contact .meta a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    color: var(--muted);
    font-size: 14px;
    transition: color var(--transition);
    border-radius: 8px;
}

.contact .meta a:hover {
    color: var(--text);
}

.contact .meta a i {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    min-height: 34px;
    border-radius: 8px;
    background: rgba(59, 138, 107, 0.08);
    color: var(--accent);
    font-size: 16px;
    flex-shrink: 0;
}

.galleryf {
    display: grid;
    grid-template-columns: fr;
    gap: 12px;
    margin-top: 10px;
    align-items: center;
    justify-items: center;
}

.galleryf img {
    max-width: 100%;
    height: 70px;
    justify-content: center;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.45);
    display: block;
}


.galleryf-columnf {
    justify-self: end;
}


@media (max-width:1280px) {

    html,
    body {
        margin: 0;
        padding: 0;
    }

    .footer {
        padding: 36px 22px;
    }

    .wrap {
        padding: 0 12px;
    }

    .footer-grid {
        grid-template-columns: 280px 300px 320px 160px;
        gap: -4px !important;
        margin-right: 0 !important;
    }

    .galleryf img {
        max-width: 160px;
        height: 80px;
    }

    .galleryf-columnf {
        justify-self: end;
    }

    .brand-column .tag {
        max-width: none;
    }
}


@media (max-width:1107px) {

    html,
    body {
        margin: 0;
        padding: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .brand-column,
    .links-column,
    .contact,
    .galleryf-columnf {
        grid-column: auto;
    }

    .galleryf-columnf {
        justify-self: center !important;
        align-self: center !important;
        width: auto !important;
    }

    .galleryf {
        display: grid !important;
        justify-items: center !important;
        justify-content: center !important;
        align-items: center !important;
        margin-top: 12px !important;
        gap: 10px !important;
        margin-right: 0 !important;
        padding: 0 !important;
        grid-auto-rows: min-content;
    }

    .galleryf img {
        display: block !important;
        margin: 0 auto !important;
        height: 70px;
        align-self: center !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
        border: 1px solid rgba(255, 255, 255, 0.03) !important;
        box-shadow: 0 8px 18px rgba(2, 6, 23, 0.45) !important;
    }

    .brand-column .logo-section {
        gap: 0px;
    }

    .brand-column .logo-wrap {
        margin-left: 0;
    }

    .brand-column .logo-title {
        text-align: center;
    }

    .brand-column .tag {
        text-align: center;
        margin-top: 14px;
    }

    .brand-column .social {
        justify-content: center;
    }

    .contact h4 {
        text-align: center;
    }

    .contact .meta a {
        justify-content: center;
        padding: 8px 0;
        align-items: center;
        text-align: center;
    }

    .brand-column .logo-section {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        text-align: center;
    }

}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
    margin-bottom: -20px;
}