/* Footer layout only. The original brand blue, markup, links and images remain authoritative. */
.site-footer > .footer {
    padding-block: 56px 24px;
    line-height: 1.6;
}

.site-footer > .footer > .container {
    max-width: 1280px;
    padding-inline: 24px;
}

.site-footer > .footer .footer__content {
    grid-template-columns: 1.05fr 1fr 1.05fr 1.15fr;
    align-items: start;
    gap: 36px;
}

/* The existing two semantic navigation elements become separate grid columns. */
.site-footer > .footer .footer__col:nth-child(2) {
    display: contents;
}

.site-footer > .footer .footer__col {
    min-width: 0;
    gap: 22px;
}

.site-footer > .footer .footer__logo {
    align-items: center;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    line-height: 1.4;
}

.site-footer > .footer .footer__logo .logo__img {
    flex: 0 0 60px;
    width: 60px;
    height: auto;
}

.site-footer > .footer .footer__logo .logo__text {
    display: block;
    min-width: 0;
    max-width: 190px;
    font-size: 14px;
    font-weight: 600;
}

.site-footer > .footer .footer__col > p {
    max-width: 270px;
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
}

.site-footer > .footer .footer__links {
    gap: 10px;
}

.site-footer > .footer .links__item {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 160ms ease, border-color 160ms ease;
}

.site-footer > .footer .links__item:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.75);
}

.site-footer > .footer .footer-menu {
    min-width: 0;
    max-width: none;
    padding-top: 3px;
}

.site-footer > .footer .footer-menu__list {
    gap: 13px;
}

.site-footer > .footer .footer-menu__item {
    margin: 0;
    padding: 0;
    line-height: 1.55;
}

.site-footer > .footer .footer-menu__item a {
    display: inline-block;
    max-width: 100%;
    padding-block: 2px;
    color: #fff;
    font-size: 14px;
    text-underline-offset: 4px;
    overflow-wrap: break-word;
    transition: text-decoration-color 160ms ease;
}

.site-footer > .footer .footer__col:nth-child(3) {
    gap: 16px;
}

.site-footer > .footer .footer__search {
    display: block;
    min-width: 0;
    width: 100%;
}

.site-footer > .footer .search__input-wrapper {
    min-width: 0;
}

.site-footer > .footer .footer__search input.search__input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding-inline: 14px 46px;
    border-color: rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.06);
    font-size: 14px;
}

.site-footer > .footer .footer__search input.search__input::placeholder {
    color: #fff;
    opacity: 1;
}

.site-footer > .footer .footer__search .search__button {
    width: 44px;
    height: 44px;
}

.site-footer > .footer .footer__contacts {
    width: 100%;
    margin: 0;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.08);
}

.site-footer > .footer .footer__contacts .button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid #fff;
    border-radius: 8px;
    color: var(--color-primary, #427bbd);
    background-color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    white-space: normal;
    transition: background-color 160ms ease;
}

.site-footer > .footer .footer__contacts .button:hover {
    color: var(--color-primary, #427bbd);
    background-color: #f2f6fb;
    text-decoration: none;
}

.site-footer > .footer .footer__contacts-phone {
    gap: 5px;
    font-size: 12px;
    line-height: 1.6;
}

.site-footer > .footer .footer__contacts-phone a {
    width: fit-content;
    margin: 0 0 3px;
    color: #fff;
    font-size: 20px;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

.site-footer > .footer .footer__bottom {
    margin-top: 38px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    gap: 16px;
}

.site-footer > .footer .footer__copy {
    margin: 0;
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
}

.site-footer > .footer .footer__copy--map {
    display: inline-block;
    text-underline-offset: 4px;
}

.site-footer > .footer a:focus-visible,
.site-footer > .footer button:focus-visible,
.site-footer > .footer input:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
    border-radius: 4px;
}

@media (max-width: 1100px) {
    .site-footer > .footer .footer__content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 48px;
    }

    .site-footer > .footer .footer__logo .logo__text {
        max-width: 230px;
    }

    .site-footer > .footer .footer__col:nth-child(3) {
        max-width: 400px;
    }

    .site-footer > .footer .footer__col:first-child {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .site-footer > .footer {
        padding-block: 36px 24px;
    }

    .site-footer > .footer > .container {
        padding-inline: 20px;
    }

    .site-footer > .footer .footer__content {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .site-footer > .footer .footer-menu {
        padding-top: 22px;
        border-top: 1px solid rgba(255, 255, 255, 0.25);
    }

    .site-footer > .footer .footer-menu__list {
        gap: 10px;
    }

    .site-footer > .footer .footer-menu__item a {
        padding-block: 5px;
    }

    .site-footer > .footer .footer__col:nth-child(3) {
        max-width: none;
    }

    .site-footer > .footer .footer__contacts {
        padding: 20px;
    }

    .site-footer > .footer .footer__bottom {
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
        margin-top: 28px;
        gap: 12px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer > .footer a,
    .site-footer > .footer .links__item {
        transition: none;
    }
}
