/* =========================================================
   MAKDRIX — PUBLIC FOOTER
========================================================= */

.public-footer {
    background: #151519;

    color: #ffffff;
}


.public-footer-container {
    width: min(
        1180px,
        calc(100% - 40px)
    );

    margin: 0 auto;
}


/* =========================================================
   TOP
========================================================= */

.public-footer-top {
    display: grid;

    grid-template-columns:
        1.5fr
        repeat(4, 1fr);

    gap: 50px;

    padding:
        70px 0 55px;
}


/* =========================================================
   BRAND
========================================================= */

.footer-brand-column {
    max-width: 280px;
}


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

    gap: 11px;

    color: #ffffff;

    text-decoration: none;
}


.footer-brand-mark {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #6f36d8;

    color: #ffffff;

    font-size: 20px;
    font-weight: 900;
}


.footer-brand > span {
    font-size: 20px;
    font-weight: 800;

    letter-spacing: -0.02em;
}


.footer-brand-description {
    margin:
        20px 0 0;

    color: #a7a7b0;

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   SOCIAL
========================================================= */

.footer-socials {
    display: flex;

    gap: 9px;

    margin-top: 24px;
}


.footer-social-link {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid #34343b;

    border-radius: 10px;

    color: #ffffff;

    text-decoration: none;

    font-size: 13px;

    transition:
        background 0.2s,
        border-color 0.2s,
        transform 0.2s;
}


.footer-social-link:hover {
    border-color: #6f36d8;

    background: #6f36d8;

    transform:
        translateY(-2px);
}


/* =========================================================
   COLUMNS
========================================================= */

.footer-column-title {
    display: block;

    margin-bottom: 20px;

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
}


.footer-links {
    display: flex;
    flex-direction: column;

    gap: 13px;
}


.footer-links a {
    color: #9f9fa9;

    text-decoration: none;

    font-size: 12px;

    transition:
        color 0.2s;
}


.footer-links a:hover {
    color: #ffffff;
}


/* =========================================================
   DOWNLOAD
========================================================= */

.footer-download {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding:
        28px 0;

    border-top:
        1px solid #29292f;

    border-bottom:
        1px solid #29292f;
}


.footer-download > div:first-child {
    display: flex;
    flex-direction: column;

    gap: 5px;
}


.footer-download > div:first-child strong {
    font-size: 14px;
}


.footer-download > div:first-child span {
    color: #92929c;

    font-size: 11px;
}


.footer-store-links {
    display: flex;

    gap: 9px;
}


.footer-store-button {
    min-width: 135px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding:
        9px 12px;

    border:
        1px solid #37373e;

    border-radius: 9px;

    color: #ffffff;

    text-decoration: none;

    transition:
        background 0.2s,
        border-color 0.2s;
}


.footer-store-button:hover {
    border-color: #55555f;

    background: #202025;
}


.footer-store-icon {
    font-size: 19px;
}


.footer-store-button small,
.footer-store-button strong {
    display: block;
}


.footer-store-button small {
    color: #96969f;

    font-size: 7px;
}


.footer-store-button strong {
    margin-top: 2px;

    font-size: 11px;
}


/* =========================================================
   BOTTOM
========================================================= */

.public-footer-bottom {
    min-height: 85px;

    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    gap: 30px;
}


.footer-copyright {
    display: flex;
    flex-wrap: wrap;

    gap: 4px;

    color: #777781;

    font-size: 10px;
}


.footer-bottom-links {
    display: flex;

    gap: 20px;
}


.footer-bottom-links a {
    color: #777781;

    text-decoration: none;

    font-size: 10px;
}


.footer-bottom-links a:hover {
    color: #ffffff;
}


.footer-country {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 7px;

    color: #8d8d96;

    font-size: 10px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (
    max-width: 1000px
) {

    .public-footer-top {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .footer-brand-column {
        grid-column:
            1 / -1;

        max-width: 450px;
    }
}


@media (
    max-width: 700px
) {

    .public-footer-container {
        width:
            calc(100% - 30px);
    }


    .public-footer-top {
        grid-template-columns:
            repeat(2, 1fr);

        gap:
            40px 25px;

        padding:
            55px 0 40px;
    }


    .footer-download {
        flex-direction: column;

        align-items: flex-start;
    }


    .public-footer-bottom {
        grid-template-columns: 1fr;

        gap: 17px;

        padding:
            25px 0;
    }


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


    .footer-bottom-links {
        order: 2;
    }
}


@media (
    max-width: 450px
) {

    .public-footer-top {
        grid-template-columns: 1fr;
    }


    .footer-brand-column {
        grid-column: auto;
    }


    .footer-store-links {
        width: 100%;

        flex-direction: column;
    }


    .footer-store-button {
        box-sizing: border-box;

        width: 100%;
    }


    .footer-bottom-links {
        flex-wrap: wrap;

        gap:
            10px 18px;
    }
}