footer {
    padding: 0;
}

.ce-footer {
    background-color: #111111;
    color: white;
    font-size: 16px;

    @media (min-width: 768px) {
        padding-block: 2em;
    }

    @media (min-width: 992px) {
        padding-block: 4em;
    }

    p {
        font-size: 13px;
        line-height: 1.7;
        color: rgba(255, 255, 255, 0.45);
        font-weight: 200;

        &:last-child {
            margin-block-end: 0;
        }
    }

    a {
        display: block;
        color: rgba(255, 255, 255, 0.45);
        text-decoration: none;
        font-size: 13px;
        font-weight: 300;
        margin-bottom: 0.6em;
        transition: color 0.3s;

        &:last-child {
            margin-block-end: 0;
        }

        &:hover, &:focus-visible {
            color: #41A428;
        }
    }

    h5 {
        font-weight: 500;
        font-size: 11px;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        margin-bottom: 1em;
    }

    .ce-footer__logo {
        display: block;
        width: 100%;
        height: auto;
        max-width: 10em;
        margin-block-end: 1.5em;
    }

    .ce-footer__showhouse {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.06);
        padding: 1.5em;

        h5 {
            color: #41A428;
            margin-block-start: 0;
        }

        a {
            color: white;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            font-weight: 400;
            font-size: 11px;

            &:hover, &:focus-visible {
                color: #41A428;
            }
        }
    }

    .ce-footer__social {
        display: flex;
        gap: 1rem;
        align-items: center;

        a {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: rgba(255, 255, 255, 0.4);
            transition: all 0.3s;
            text-decoration: none;
            margin: 0;

            &:hover, &:focus-visible {
                border-color: #41A428;
                color: #41A428;
            }
        }

        svg {
            width: 16px;
            height: 16px;
        }
    }

    .ce-footer__certs {
        display: flex;
        gap: 1.5rem;
        align-items: center;

        .ce-footer__cert {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 11px;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.3);

            svg {
                width: 18px;
                height: 18px;
                color: #41A428;
            }
        }
    }

    .ce-footer__legal {
        display: flex;
        gap: 1.2rem;
    }

    .ce-footer__main,
    .ce-footer__middle,
    .ce-footer__bottom {
        max-width: 100%;
        width: 100%;
        margin-inline: auto;
        padding-inline: 15px;

        @media (min-width: 768px) {
            width: 750px;
        }

        @media (min-width: 992px) {
            width: 970px;
        }

        @media (min-width: 1200px) {
            width: 1170px;
        }

        @media (min-width: 1560px) {
            width: 1560px;
        }
    }

    .ce-footer__main {
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 2em;
        padding-block: 1.5em;

        @media (min-width: 768px) {
            grid-template-columns: 1fr 1fr;
        }

        @media (min-width: 992px) {
            grid-template-columns: 1fr 1fr 1fr 1fr;
        }
    }

    .ce-footer__middle {
        display: flex;
        flex-flow: column;
        gap: 1em;
        padding-block: 1.5em;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);

        @media (min-width: 768px) {
            flex-flow: row nowrap;
            justify-content: space-between;
            align-items: center;
        }
    }

    .ce-footer__bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.8em;
        padding-block: 1.5em;

        p, a {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.2);
            text-decoration: none;
            margin: 0;
            line-height: 1.7;
        }

        a {
            &:hover, &:focus-visible {
                color: #41A428;
            }
        }
    }
}
