/* ============================================
   Footer Section - Grinevich School (Final Premium Transformation)
   ============================================ */
.footer {
    background-color: #0b0b0b;
    padding: 30px 0 0;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .container {
    max-width: 1300px;
    /* Slightly wider to accommodate 5 buttons comfortably */
    margin: 0 auto;
    padding: 0 20px;
}

.footer__main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer__contacts {
    flex: 3;
}

.footer__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    color: #c9a961;
    text-transform: uppercase;
}

.footer__location {
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-weight: 500;
    color: #a0a0a0;
}

.footer__btn-group {
    display: flex;
    flex-direction: row;
    /* Strict horizontal row for desktop */
    flex-wrap: nowrap;
    gap: 6px;
    /* Optimized tight gap for 5 buttons */
}

.footer__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(to bottom, #d94444 0%, #a30000 100%);
    color: #ffffff;
    padding: 10px 12px;
    /* Denser padding for row efficiency */
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    /* Slightly smaller font to ensure fit */
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(163, 0, 0, 0.2);
    flex: 1;
    /* All 5 buttons take equal width */
    white-space: nowrap;
}

.footer__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(163, 0, 0, 0.3);
    background: linear-gradient(to bottom, #ee5555 0%, #ba0000 100%);
}

.footer__btn-icon svg {
    width: 14px;
    height: 14px;
}

.footer__info {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.footer__logo-wrapper {
    margin-bottom: 0;
}

.footer__logo {
    height: 290px;
    /* INCREASED by 20% (from 240px) */
    width: auto;
    filter: drop-shadow(0 0 30px rgba(201, 169, 97, 0.35));
    transition: transform 0.3s ease;
}

.footer__logo:hover {
    transform: scale(1.03);
}

.footer__bottom {
    background-color: #000000;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer__copyright {
    font-size: 0.8rem;
    color: #a0a0a0;
    /* Improved contrast (was #666666) */
    font-weight: 500;
}

.footer__legal-group {
    display: flex;
    gap: 8px;
}

.footer__legal-link {
    font-size: 0.7rem;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    transition: all 0.2s ease;
    color: #b0b0b0 !important;
    /* Improved contrast (was #777777) */
    text-decoration: none;
    text-transform: uppercase;
}

.footer__legal-link:hover {
    border-color: #a30000;
    color: #ffffff !important;
    background: rgba(163, 0, 0, 0.1);
}

/* RESPONSIVE */

@media (max-width: 1200px) {
    .footer__btn-group {
        flex-wrap: wrap;
    }

    .footer__btn {
        flex: none;
        width: calc(33.333% - 6px);
        /* 3 buttons in row on mid-tablets */
    }
}

@media (max-width: 900px) {
    .footer__main {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }

    .footer__info {
        align-items: center;
        text-align: center;
    }

    .footer__logo {
        height: 215px;
        /* INCREASED by 20% (from 180px) */
    }

    .footer__btn-group {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .footer__btn {
        width: 100%;
        /* Full width stack for mobile */
    }

    .footer__logo {
        height: 170px;
        /* INCREASED by 20% (from 140px) */
    }

    .footer__bottom-container {
        flex-direction: column;
        gap: 15px;
    }

    .footer__copyright {
        order: 3;
        /* Always at the very bottom */
    }

    .footer__legal-link--privacy {
        order: 2;
        /* After the offer group */
    }

    .footer__legal-group {
        order: 1;
        /* Public Offer group first in mobile */
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .footer__legal-link {
        width: 100%;
        text-align: center;
    }
}