.footer {
    max-width: 1552px;
    margin: 0 auto;
    padding-bottom: 2rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.footer__container {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-radius: 23.753px;
    background: rgba(0, 0, 0, 0.2);
    box-shadow:
        0 3.959px 14.845px 0 rgba(0, 0, 0, 0.1),
        0 0.99px 0 0 rgba(255, 255, 255, 0.3) inset,
        0 3.959px 19.794px 0 rgba(255, 0, 23, 0.2) inset;
    backdrop-filter: blur(49.484535217285156px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__logo img {
    width: 150px;
    display: block;
}

.footer__info {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    max-width: max-content;
    text-align: center;
}

.footer__text {
    font-size: 0.875rem;
    line-height: 1.4;
}

.footer__tg-button {
    width: 3rem;
    height: 3rem;
    display: block;
}

.footer__tg-button svg {
    width: 100%;
    height: 100%;
    color: #83FF8F;
    transition: color 0.3s ease;
    outline: none;
}

.footer__tg-button:hover svg,
.footer__tg-button:focus svg,
.footer__tg-button:focus-visible svg {
    color: #dbffb5;
    outline: none;
}

.footer__tg-button svg:focus,
.footer__tg-button svg:focus-visible {
    outline: none;
}

.footer__tg-button:active svg {
    color: #a6ff8c;
}

@media (max-width: 1440px) {
        .footer {
        padding: 0 5rem;
    }
}

@media (max-width: 1280px) {
  .footer {
    padding: 0 4rem;
  }
}


/* Media queries moved to the end */

/* Tablet and below */
@media (max-width: 1023.98px) {
    .footer__container {
        gap: 2rem;
    }

    .footer__logo img {
        width: 120px;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .footer {
        padding: 0 1rem;
    }

    .footer__container {
        padding: 0.75rem;
        display: grid;
        grid-template-areas:
            "logo button"
            "info info";
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
    }

    .footer__logo {
        grid-area: logo;
        order: 1;
        justify-self: start;
    }

    .footer__logo img {
        width: 90px;
    }

    .footer__info {
        grid-area: info;
        order: 3;
        width: 100%;
        justify-self: center;
    }

    .footer__tg-button {
        order: 2;
        justify-self: end;
        grid-area: button;
    }
}
