/* ================= site-footer ================= */

.site-footer,
.site-footer *,
.site-footer *::before,
.site-footer *::after {
    box-sizing: border-box;
}

.site-footer {
    --line: rgba(255, 255, 255, .22);
    --muted: rgba(255, 255, 255, .84);

    position: relative;
    overflow: hidden;
    padding: 62px 0 30px;
    background: #6b0c26;
    background-image: linear-gradient(115deg, #5c081f 0%, #7a0f2d 60%, #660b24 100%);
    color: #fff;
    isolation: isolate;
}

.site-footer__decor {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.site-footer__decor-shape {
    position: absolute;
    border-radius: 50%;
}

.site-footer__decor-shape--br {
    right: -190px;
    bottom: -280px;
    width: 560px;
    height: 560px;
    background: rgba(255, 255, 255, .045);
}

.site-footer__decor-shape--br-ring {
    right: -260px;
    bottom: -360px;
    width: 720px;
    height: 720px;
    border: 1px solid rgba(255, 255, 255, .16);
}

.site-footer__decor-shape--bl {
    left: -240px;
    bottom: -300px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, .12);
}

.site-footer__top {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr 1.15fr;
    gap: 34px;
    padding-bottom: 42px;
}

.site-footer__col {
    position: relative;
    min-width: 0;
}

.site-footer__col--links + .site-footer__col--links::before,
.site-footer__col--links:first-of-type::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: -17px;
    width: 1px;
    background: var(--line);
}

.site-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 34px;
    color: #fff;
    text-decoration: none;
}

.site-footer__logo-img {
    display: block;
    max-width: 250px;
    width: 100%;
    height: auto;
}

.site-footer__contacts {
    display: grid;
    gap: 20px;
}

.site-footer__contact {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
    text-decoration: none;
}

.site-footer__contact--static {
    align-items: flex-start;
    color: var(--muted);
}

.site-footer__contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    transition: background-color .25s ease, transform .25s ease;
}

.site-footer__contact:hover .site-footer__contact-icon {
    background: rgba(255, 255, 255, .24);
    transform: translateY(-2px);
}

.site-footer__contact-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-footer__phone {
    font-size: 18px;
    font-weight: 500;
}

.site-footer__address p {
    margin: 0 0 6px;
}

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

.site-footer__title {
    position: relative;
    margin: 0 0 30px;
    padding-bottom: 14px;
    /* font-family: 'PT Serif', Georgia, serif; */
    font-size: 19px;
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
}

.site-footer__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 2px;
    background: rgba(255, 255, 255, .5);
}

.site-footer__menu {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__link {
    display: inline-block;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.site-footer__link:hover {
    color: #fff;
    transform: translateX(3px);
}

.site-footer__partners {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__partner {
    display: block;
    max-width: 210px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}

.site-footer__partner:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
}

.site-footer__partner img {
    display: block;
    width: 100%;
    height: auto;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.site-footer__copy {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.site-footer__author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
}

.site-footer__author a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer__author svg {
    width: 18px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
}

.site-footer__author:hover svg {
    transform: translateX(4px);
}

/* ================= adaptive ================= */

@media (max-width: 1500px) {
    .site-footer__top {
        gap: 28px;
    }

    .site-footer__logo-img {
        max-width: 230px;
    }
}

@media (max-width: 1200px) {
    .site-footer {
        padding: 52px 0 26px;
    }

    .site-footer__top {
        grid-template-columns: 1.3fr 1fr 1fr;
        gap: 32px 26px;
        padding-bottom: 34px;
    }

    .site-footer__col--partners {
        grid-column: 2 / -1;
    }

    .site-footer__col--links:first-of-type::before {
        display: none;
    }

    .site-footer__partners {
        grid-template-columns: repeat(2, minmax(0, 200px));
    }
}

@media (max-width: 1024px) {
    .site-footer__top {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .site-footer__title {
        margin-bottom: 22px;
        font-size: 18px;
    }

    .site-footer__logo-img {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 42px 0 24px;
    }

    .site-footer__top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 24px;
    }

    .site-footer__col--contacts {
        grid-column: 1 / -1;
    }

    .site-footer__col--partners {
        grid-column: 1 / -1;
    }

    .site-footer__col--links::before {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .site-footer {
        padding: 34px 0 20px;
    }

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

    .site-footer__logo {
        margin-bottom: 26px;
    }

    .site-footer__contacts {
        gap: 16px;
    }

    .site-footer__title {
        margin-bottom: 16px;
        padding-bottom: 10px;
        font-size: 17px;
    }

    .site-footer__menu {
        gap: 12px;
    }

    .site-footer__partners {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__partner {
        max-width: none;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer__link,
    .site-footer__partner,
    .site-footer__contact-icon,
    .site-footer__author svg {
        transition: none;
    }
}