.site-footer {
    margin-top: 48px;
    background: #20252a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__content {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
    padding: 42px 0 38px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(300px, 1.15fr) minmax(300px, 0.95fr) minmax(150px, 0.45fr);
    gap: 48px;
    align-items: start;
}

.site-footer__brand-link {
    display: inline-flex;
    align-items: center;
}

.site-footer__brand-logo {
    height: 52px;
    width: auto;
}

.site-footer__heading,
.site-footer__title {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer__nav {
    text-align: left;
    justify-self: start;
}

.site-footer__text {
    max-width: 520px;
    margin-top: 12px;
    font-size: 1.02rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.94);
}

.site-footer__text--muted {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.62);
}

.site-footer__legal-block {
    margin-top: 34px;
}

.site-footer__cert-text {
    margin: 8px 0 0;
    font-size: 0.92rem;
    line-height: 1.55;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.68);
}

.site-footer__cert-text + .site-footer__cert-text {
    margin-top: 2px;
}

.site-footer__company {
    margin: 16px 0 0;
    font-size: 0.95rem;
    line-height: 1.45;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer__contact-list {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
}

.site-footer__contact-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 18px;
    font-size: 0.94rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer__contact-row dt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 800;
}

.site-footer__contact-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.82;
}

.site-footer__contact-row dd {
    margin: 0;
}

.site-footer__list {
    margin-top: 16px;
    padding-left: 0;
    list-style: none;
}

.site-footer__list-item {
    font-size: 0.94rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.94);
}

.site-footer__list-item + .site-footer__list-item {
    margin-top: 6px;
}

.site-footer__link {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer__link:hover {
    color: #ffffff;
    opacity: 0.78;
}

.site-footer__legal {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.72);
}

.scroll-to-top {
    position: fixed;
    right: 24px;
    bottom: 70px;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(10, 12, 18, 0.88);
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top:hover {
    background: rgba(0, 167, 160, 0.94);
    border-color: rgba(255, 255, 255, 0.28);
}

.scroll-to-top:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.48);
    outline-offset: 4px;
}

.scroll-to-top__icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (min-width: 1400px) {
    .site-footer__content {
        width: min(1320px, calc(100% - 48px));
    }

    .site-footer__grid {
        grid-template-columns: minmax(360px, 1fr) minmax(320px, 0.8fr) minmax(180px, 0.45fr);
        gap: clamp(72px, 7vw, 140px);
    }
}

@media (max-width: 900px) {
    .site-footer__content {
        width: min(1220px, calc(100% - 32px));
        margin: 0 auto;
        padding: 52px 0 24px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .site-footer__nav {
        justify-self: start;
    }
}

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

    .site-footer__content {
        width: min(1220px, calc(100% - 32px));
        padding: 44px 0 24px;
    }

    .site-footer__grid {
        gap: 28px;
    }

    .site-footer__brand-logo {
        height: 44px;
    }

    .site-footer__text,
    .site-footer__list-item,
    .site-footer__legal,
    .site-footer__link {
        font-size: 0.98rem;
    }

    .site-footer__cert-text {
        font-size: 0.98rem;
    }

    .site-footer__heading,
    .site-footer__title {
        font-size: 1.25rem;
    }

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

    .scroll-to-top {
        right: 16px;
        bottom: 80px;
        width: 46px;
        height: 46px;
    }
}
