.footer {
    padding: 12px;
}

.footer .container {
    position: relative;
    overflow: hidden;
    background: #0d0d0d;
    color: #fff;
    min-height: 653px;
    height: auto;
    padding-block: 90px;
    border-radius: 28px;
}

.footer-flex {
    display: flex;
    gap: 60px;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.footer-logo img {
    width: 192px;
}

.footer-column h4 {
    margin-bottom: 34px;
    font-weight: 600;
}

.footer-column h3 span {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 500;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 24px;
}

.footer-column a {
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    transition: .3s;
    font-family: var(--font-redhat-display);
}

.footer-column a:hover {
    color: #67d48f;
}

.footer-watermark {
    position: absolute;
    bottom: -28px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 320px;
    font-weight: 800;
    color: rgba(255, 255, 255, .03);
    white-space: nowrap;
    line-height: .8;
    pointer-events: none;
    user-select: none;
}

.footer-bottom {
    position: absolute;
    left: 90px;
    bottom: -18px;
    background: #67d48f;
    color: #fff;
    padding: 16px 25px 30px 25px;
    font-size: 18px;
    border-radius: 13px;
    z-index: 3;
}

.footer-bottom strong {
    font-weight: 700;
}

.back-to-top {
    position: absolute;
    right: 40px;
    bottom: 40px;
    transition: .3s;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-self: center;
    align-items: center;
    gap: 15px;
}

.back-to-top:hover {
    transform: translateY(-6px);
}

.back-to-top div {
    width: 36px;
    height: 36px;
    background: #f89b1d;
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    padding: 10px;
}

.back-to-top div img {
    width: 100%;
    height: 100%;
}

@media (max-width: 1024px) {
    .footer .container {
        padding-block: 70px;
    }

    .footer-flex {
        flex-direction: column;
        gap: 30px;
    }

    .footer-brand {
        width: 100%;
    }

    .footer-column {
        flex: 1 1 180px;
    }

    .footer-links-grid {
        gap: 45px;
    }

    .back-to-top {
        right: 24px;
        bottom: 24px;
    }
}

@media (max-width: 720px) {
    .footer {
        padding: 8px;
    }

    .footer .container {
        padding-block: 40px;
        border-radius: 20px;
    }

    .footer-flex {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 26px 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-logo img {
        width: 150px;
    }

    .footer-column h4 {
        margin-bottom: 18px;
        font-size: 1rem;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-column li {
        margin-bottom: 12px;
    }

    .footer-column a {
        font-size: 0.92rem;
    }

    .footer-watermark {
        bottom: 90px;
    }

    .footer-watermark img {
        max-width: 400px;
    }

    .footer-bottom {
        position: static;
        padding: 12px 14px 14px;
        font-size: 13px;
        margin-top: 12px;
    }

    .back-to-top {
        right: 18px;
        bottom: 18px;
        gap: 8px;
    }

    .back-to-top p {
        display: none;
    }

    .back-to-top div {
        width: 30px;
        height: 30px;
        padding: 8px;
    }
}

@media (max-width: 420px) {
    .footer-flex {
        grid-template-columns: 1fr;
    }

    .footer-column {
        width: 100%;
    }

    .footer-watermark {
        display: none;
    }
}