/* site footer: advantages row, link columns, address/map, trust badges, copyright */

.footer-widgets {
    padding: 34px 1.25rem 26px;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
    gap: 28px 24px;
    align-items: start;
}

.footer-col__title {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 13%, transparent);
    color: color-mix(in srgb, var(--primary-color) 55%, #fff);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.7;
}

.footer-col__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col__list li + li {
    margin-top: 9px;
}

.footer-col__list a,
.footer-col__list span {
    color: #3f4064;
    font-size: 12.5px;
    line-height: 1.9;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.25s ease;
}

.footer-col__list a:hover {
    color: var(--primary-color);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.footer-contact i {
    flex: 0 0 15px;
    margin-top: 3px;
    color: color-mix(in srgb, var(--primary-color) 55%, #fff);
    font-size: 15px;
}

.footer-badges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.footer-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    width: 100%;
    overflow: hidden;
    padding: 6px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 12%, transparent);
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.footer-badge:hover {
    border-color: color-mix(in srgb, var(--primary-color) 35%, transparent);
}

.footer-badge a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.footer-badge img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

footer.main-footer .copyright {
    padding: 12px 1.25rem 15px;
    border-top: 1px solid #e0e0e2;
    color: #3f4064;
    font-size: 12px;
    line-height: 2.17;
}

footer.main-footer .copyright p {
    padding-top: 0;
}

.footer-map {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-top: 14px;
    border: 1px dashed color-mix(in srgb, var(--primary-color) 24%, transparent);
    border-radius: 14px;
    background: color-mix(in srgb, var(--primary-color) 4%, #fff);
}

.footer-map > iframe,
.footer-map > img {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.footer-map:has(> iframe),
.footer-map:has(> img) {
    border-style: solid;
    border-color: color-mix(in srgb, var(--primary-color) 13%, transparent);
}

.footer-map__hint,
.footer-badge__hint {
    color: color-mix(in srgb, var(--primary-color) 45%, #fff);
    font-size: 12px;
    font-weight: 700;
}

.footer-map:has(> iframe) .footer-map__hint,
.footer-map:has(> img) .footer-map__hint {
    display: none;
}

.footer-badge--empty {
    border-style: dashed;
    background: color-mix(in srgb, var(--primary-color) 4%, #fff);
}

@media (max-width: 575.98px) {
    .footer-widgets {
        padding: 26px 1rem 20px;
    }

    .footer-cols {
        grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
        gap: 22px 18px;
    }

    footer.main-footer .copyright {
        padding-inline: 1rem;
    }
}

/* back-to-top arrow and advantage icons */

.footer_advantages_top .back_to_top_btn svg {
    width: 24px;
    height: 24px;
    fill: #a1a3a8;
}

.footer_advantages_icon {
    width: 56px;
    height: 56px;
    line-height: 0;
}

.footer_advantages_icon img {
    object-fit: cover;
}

.footer-badge img {
    cursor: pointer;
}

/* narrow phones: back-to-top becomes a round icon button (the label stays for screen readers) */
@media (max-width: 399.98px) {
    .footer_advantages_top .back_to_top_btn {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
    }

    .footer_advantages_top .back_to_top_btn .text-neutral-400 {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: 0 !important;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}
