/* =========================================================
   FOOTER
   ========================================================= */

.rp-site-footer {
    background: #8dde00;
    color: var(--rp-color-text);
    padding: 56px 0 24px;
}

.rp-site-footer a {
    color: inherit;
    text-decoration: none;
}

.rp-site-footer__top {
    display: grid;
    grid-template-columns: minmax(280px, 1.15fr) minmax(460px, 1.85fr);
    gap: 64px;
    align-items: start;
}

.rp-site-footer__brand {
    max-width: 440px;
}

.rp-site-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
}

.rp-site-footer__logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
}

.rp-site-footer__logo-mark img {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 0 0.5px rgba(255, 255, 255, 0.9));
}

.rp-site-footer__logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    color: var(--rp-color-text);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.rp-site-footer__logo-text {
    color: var(--rp-color-text);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.rp-site-footer__description {
    margin: 30px 0 0;
    max-width: 420px;
    color: rgba(20, 24, 18, 0.78);
    font-size: 16px;
    line-height: 1.65;
}

.rp-site-footer__columns {
    display: grid;
    grid-template-columns: minmax(200px, 0.9fr) minmax(260px, 1.1fr);
    gap: 52px;
    align-items: start;
}

.rp-site-footer__column {
    min-width: 0;
}

.rp-site-footer__links {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rp-site-footer__links li {
    margin: 0;
}

.rp-site-footer__links a,
.rp-site-footer__contacts a {
    color: rgba(20, 24, 18, 0.84);
    font-size: 15px;
    line-height: 1.5;
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.rp-site-footer__links a:hover,
.rp-site-footer__links a:focus-visible,
.rp-site-footer__contacts a:hover,
.rp-site-footer__contacts a:focus-visible {
    color: var(--rp-color-text);
    opacity: 0.64;
}

.rp-site-footer__contacts {
    display: grid;
    gap: 10px;
    margin: 0;
    font-style: normal;
}

.rp-site-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.rp-site-footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(20, 24, 18, 0.22);
    border-radius: 50%;
    color: var(--rp-color-text);
    background: transparent;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease;
}

.rp-site-footer__socials a:hover,
.rp-site-footer__socials a:focus-visible {
    background: rgba(255, 255, 255, 0.42);
    border-color: rgba(20, 24, 18, 0.38);
}

.rp-site-footer__socials svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.rp-site-footer__message {
    margin-top: 44px;
    padding: 22px 0;
    border-top: 1px solid rgba(20, 24, 18, 0.14);
    border-bottom: 1px solid rgba(20, 24, 18, 0.14);
    color: rgba(20, 24, 18, 0.92);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.55;
}

.rp-site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 22px;
}

.rp-site-footer__bottom p {
    margin: 0;
    color: rgba(20, 24, 18, 0.62);
    font-size: 13px;
    line-height: 1.5;
}

.rp-site-footer__bottom a {
    color: rgba(20, 24, 18, 0.62);
    font-size: 13px;
    line-height: 1.5;
    text-align: right;
    text-underline-offset: 3px;
    transition:
        color 0.2s ease,
        opacity 0.2s ease,
        text-decoration-color 0.2s ease;
}

.rp-site-footer__bottom a:hover,
.rp-site-footer__bottom a:focus-visible {
    color: var(--rp-color-text);
    opacity: 1;
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.rp-site-footer a:focus-visible {
    outline: 2px solid var(--rp-color-text);
    outline-offset: 4px;
}


/* =========================================================
   FOOTER — TABLET
   ========================================================= */

@media (max-width: 960px) {
    .rp-site-footer {
        padding-top: 52px;
    }

    .rp-site-footer__top {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .rp-site-footer__brand {
        max-width: 620px;
    }

    .rp-site-footer__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 44px;
    }

    .rp-site-footer__message {
        margin-top: 40px;
    }
}


/* =========================================================
   FOOTER — MOBILE
   ========================================================= */

@media (max-width: 640px) {
    .rp-site-footer {
        padding: 42px 0 22px;
    }

    .rp-site-footer__top {
        gap: 36px;
    }

    .rp-site-footer__logo {
        gap: 11px;
    }

    .rp-site-footer__logo-mark,
    .rp-site-footer__logo-mark img,
    .rp-site-footer__logo-fallback {
        width: 48px;
        height: 48px;
    }

    .rp-site-footer__logo-text {
        font-size: 18px;
    }

    .rp-site-footer__description {
        margin-top: 24px;
        font-size: 15px;
        line-height: 1.6;
    }

    .rp-site-footer__columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .rp-site-footer__message {
        margin-top: 36px;
        padding: 20px 0;
        font-size: 16px;
    }

    .rp-site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
        padding-top: 20px;
    }

    .rp-site-footer__bottom a {
        text-align: left;
    }
}