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

.site-footer {
    position: relative;
    flex-shrink: 0;
    margin-top: 100px;
}

.site-footer__frame {
    width: 100vw;
    max-width: none;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    border-radius: 16px;
    color: #ffffff;
    background: var(--color-accent);
}

.site-footer__container {
    padding-top: 136px;
    padding-bottom: 18px;
}


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

.site-footer__card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 34px 40px 38px;
    border-radius: 4px;
    color: var(--color-text);
    background: var(--color-background);
}


/* =========================================================
   FOOTER BACKGROUND LOGO
========================================================= */

.site-footer__card::before {
    position: absolute;
    z-index: 0;
    top: 112px;
    left: 50%;
    display: block;
    width: 1275px;
    height: 308px;
    background-image: url('/wp-content/themes/cosmet-expert/assets/images/logo_footer.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    content: "";
    pointer-events: none;
    transform: translateX(-50%);
}

.site-footer__watermark {
    display: none;
}

.site-footer__top,
.site-footer__middle,
.site-footer__bottom {
    position: relative;
    z-index: 1;
}


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

.site-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: start;
    gap: 60px;
    padding-bottom: 20px;
}

.site-footer__heading {
    max-width: 830px;
    margin: 0;
    color: var(--color-accent);
    font-size: 68px;
    line-height: 0.96;
    font-weight: 250;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.site-footer__media {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.site-footer__email {
    display: block;
    margin-bottom: 20px;
    color: var(--color-accent);
    font-size: 16px;
    line-height: 1.25;
    font-weight: 500;
    text-align: center;
    transition: opacity 0.2s ease;
}

.site-footer__email:hover {
    opacity: 0.65;
}

.site-footer__image {
    width: 240px;
    height: 134px;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: rgba(44, 44, 44, 0.05);
}

.site-footer__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-footer__socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.site-footer__social {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(44, 44, 44, 0.08);
    border-radius: 50%;
    color: var(--color-text);
    background: transparent;
    font-size: 20px;
    line-height: 1;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.site-footer__social:hover {
    border-color: var(--color-accent);
    color: #ffffff;
    background: var(--color-accent);
}

.site-footer__social svg {
    display: block;
    width: 22px;
    height: 22px;
}


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

.site-footer__middle {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 60px;
    min-height: 232px;
    padding: 25px 0 30px;
    border-top: 1px solid rgba(44, 44, 44, 0.08);
    border-bottom: 1px solid rgba(44, 44, 44, 0.08);
}

.site-footer__column-title {
    margin-bottom: 16px;
    color: rgba(44, 44, 44, 0.55);
    font-size: 13px;
    line-height: 1.25;
}

.footer-menu {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu li {
    margin: 0;
    padding: 0;
}

.footer-menu a {
    display: inline-block;
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.35;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-menu a:hover {
    color: var(--color-accent);
    transform: translateX(4px);
}

.site-footer__contacts {
    max-width: 500px;
}

.site-footer__contact-row {
    display: grid;
    grid-template-columns: 75px minmax(0, 1fr);
    gap: 2px;
    margin-bottom: 13px;
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.4;
}

.site-footer__contact-row:last-child {
    margin-bottom: 0;
}

.site-footer__contact-row a {
    color: inherit;
    transition: color 0.2s ease;
}

.site-footer__contact-row a:hover {
    color: var(--color-accent);
}


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

.site-footer__bottom {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: end;
    gap: 42px;
    padding-top: 38px;
}

.site-footer__copyright {
    color: rgba(44, 44, 44, 0.42);
    font-size: 12px;
    line-height: 1.35;
}

.site-footer__legal-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(44, 44, 44, 0.42);
    font-size: 12px;
    line-height: 1.4;
}

.site-footer__legal-links a {
    color: inherit;
    transition: color 0.2s ease;
}

.site-footer__legal-links a:hover {
    color: var(--color-accent);
}


/* =========================================================
   LEGAL TEXT BELOW CARD
========================================================= */

.site-footer__legal-text {
    padding-top: 25px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    line-height: 1.5;
}

.site-footer__legal-text p {
    margin: 0 0 16px;
    font: inherit;
}

.site-footer__legal-text p:last-child {
    margin-bottom: 0;
}


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

@media (max-width: 1240px) {
    .site-footer__container {
        padding-top: 120px;
    }

    .site-footer__heading {
        font-size: clamp(52px, 5.5vw, 68px);
    }
}


/* =========================================================
   FOOTER — SMALL TABLET / MOBILE
========================================================= */

@media (max-width: 991px) {
    .site-footer {
        margin-top: 90px;
    }

    .site-footer__frame {
        width: 100vw;
        max-width: none;
        margin-right: calc(50% - 50vw);
        margin-left: calc(50% - 50vw);
        border-radius: 16px;
    }

    .site-footer__container {
        padding-top: 90px;
        padding-bottom: 18px;
    }

    .site-footer__card {
        padding: 24px 24px 28px;
        border-radius: 4px;
    }

    .site-footer__card::before {
        top: 96px;
        width: 760px;
        height: 184px;
    }

    .site-footer__top {
        grid-template-columns: minmax(0, 1fr) 210px;
        gap: 90px;
    }

    .site-footer__heading {
        font-size: 42px;
    }

    .site-footer__email {
        font-size: 18px;
    }

    .site-footer__image {
        width: 210px;
        height: 120px;
    }
}


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

@media (max-width: 767px) {
    .site-footer {
        margin-top: 90px;
    }

    .site-footer__container {
        padding-top: 70px;
    }

    .site-footer__card {
        padding: 20px;
    }

    .site-footer__card::before {
        top: 76px;
        width: 455px;
        height: 110px;
    }

    .site-footer__top {
        grid-template-columns: 1fr;
        gap: 90px;
        padding-bottom: 20px;
    }

    .site-footer__heading {
        max-width: 310px;
        font-size: 32px;
        line-height: 1.02;
    }

    .site-footer__media {
        align-items: stretch;
    }

    .site-footer__email {
        margin-bottom: 20px;
        font-size: 20px;
        text-align: center;
    }

    .site-footer__image {
        width: 100%;
        height: auto;
        aspect-ratio: 320 / 178;
        border-radius: 10px;
    }

    .site-footer__socials {
        justify-content: space-between;
        gap: 16px;
        margin-top: 20px;
    }

    .site-footer__social {
        width: 86px;
        height: 86px;
        font-size: 24px;
    }

    .site-footer__social svg {
        width: 25px;
        height: 25px;
    }

    .site-footer__middle {
        grid-template-columns: 1fr;
        gap: 36px;
        min-height: 0;
        padding: 24px 0;
    }

    .site-footer__column-title {
        margin-bottom: 16px;
        font-size: 14px;
    }

    .footer-menu {
        gap: 17px;
    }

    .footer-menu a {
        font-size: 14px;
    }

    .site-footer__contact-row {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 0;
        margin-bottom: 15px;
        font-size: 14px;
    }

    .site-footer__bottom {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-top: 18px;
    }

    .site-footer__legal-links {
        gap: 10px;
    }

    .site-footer__legal-text {
        padding-top: 24px;
        font-size: 12px;
        line-height: 1.45;
    }

    .site-footer__legal-text p {
        margin-bottom: 18px;
    }
}


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

@media (max-width: 480px) {
    .site-footer__container {
        padding-top: 64px;
    }

    .site-footer__card {
        padding: 20px;
    }

    .site-footer__card::before {
        top: 76px;
        width: 455px;
        height: 110px;
    }

    .site-footer__top {
        gap: 90px;
    }

    .site-footer__heading {
        font-size: 32px;
    }

    .site-footer__contact-row {
        grid-template-columns: 74px minmax(0, 1fr);
        font-size: 14px;
    }

    .site-footer__social {
        width: 86px;
        height: 86px;
    }
}

@media (max-width: 380px) {
    .site-footer__card::before {
        top: 78px;
        width: 420px;
        height: 101px;
    }

    .site-footer__top {
        gap: 90px;
    }

    .site-footer__social {
        width: 78px;
        height: 78px;
    }
}