.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
}

.main-container > .footer {
    margin-top: auto;
}

.footer {
    --footer-ink: #0f0f18;
    --footer-body: #454649;
    --footer-muted: #626468;
    --footer-line: #dedee2;
    --footer-icon-surface: #eeeeef;
    --footer-accent: #3c46dc;
    --footer-accent-hover: #5566ff;
    position: relative;
    color: var(--footer-body);
    background: #ffffff;
    border-top: 1px solid var(--footer-line);
    overflow-wrap: break-word;
}

.footer .container {
    width: 100%;
    max-width: 1280px;
    margin-right: auto;
    margin-left: auto;
}

.footer-main > .container {
    padding: 32px 30px 20px;
}

.footer-main__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    justify-content: center;
}

.footer-brand img {
    display: block;
    width: 120px;
    height: auto;
    opacity: 1;
}

.footer-contact {
    margin-top: 18px;
    color: var(--footer-body);
    text-align: center;
}

.footer-contact__identity {
    margin: 0;
    font-style: normal;
}

.footer-contact__legal {
    max-width: 68ch;
    margin: 0;
    color: var(--footer-muted);
    font-size: 15px;
    line-height: 20px;
    font-variant-numeric: tabular-nums;
}

.footer-contact__company {
    color: var(--footer-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.02em;
}

.footer-contact__line {
    color: var(--footer-muted);
}

.footer-contact__channels {
    display: grid;
    width: max-content;
    max-width: 100%;
    gap: 0;
    margin: 16px auto 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.footer-contact__channels li {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 0;
}

.footer-contact__icon {
    display: grid;
    box-sizing: border-box;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    color: var(--footer-body);
    background: var(--footer-icon-surface);
    border-radius: 50%;
}

.footer-icon {
    display: block;
    width: 18px;
    height: 18px;
}

.footer-contact__link {
    display: flex;
    align-items: center;
    min-height: 44px;
    min-width: 0;
    color: var(--footer-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 24px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.footer-contact__link--phone {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.footer-contact__link:not(.footer-contact__link--phone) {
    text-decoration: underline;
    text-decoration-color: var(--footer-line);
    text-underline-offset: 4px;
}

.footer-contact__link:hover,
.footer-contact__link:focus {
    color: var(--footer-accent);
    text-decoration-color: currentColor;
}

.footer-action {
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

.footer .footer-main .footer-action .button.footer-action__button {
    display: inline-flex !important;
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 11px 20px;
    color: var(--footer-accent);
    background: transparent;
    border: 1px solid var(--footer-accent);
    border-radius: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.footer .footer-main .footer-action .button.footer-action__button:hover,
.footer .footer-main .footer-action .button.footer-action__button:focus-visible {
    color: #ffffff;
    background: var(--footer-accent);
    border-color: var(--footer-accent);
}

.footer-action__icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

.footer-utility > .container {
    padding: 20px 30px max(72px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--footer-line);
}

.footer-utility__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    max-width: 860px;
    margin: 0 auto;
}

.footer .footer-nav,
.footer .payment-methods {
    display: block !important;
}

.footer-nav ul {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(44px, auto);
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-nav ul::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    content: "";
    background: var(--footer-line);
}

.footer-nav ul li {
    display: flex;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.footer-nav a {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 7px 12px 7px 0;
    color: var(--footer-body);
    font-size: 13px;
    line-height: 22px;
    text-align: left;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.footer-nav li:nth-child(even) a {
    padding-right: 0;
    padding-left: 12px;
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: var(--footer-accent);
}

.footer-nav a > span {
    min-width: 0;
}

.footer-nav__icon {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    color: currentColor;
}

.footer .payment-methods {
    padding-top: 16px;
    margin-top: 16px;
    text-align: center;
    border-top: 1px solid var(--footer-line);
}

.footer .payment-methods__icons {
    display: flex;
    width: max-content;
    max-width: 100%;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0 auto;
    list-style: none;
    white-space: nowrap;
}

.footer .payment-methods__icons li {
    display: grid;
    flex: 0 1 54px;
    width: 54px;
    height: 36px;
    place-items: center;
    min-width: 0;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.footer .payment-methods__icons img {
    display: block;
    box-sizing: border-box;
    width: 54px;
    height: auto;
    aspect-ratio: 3 / 2;
    max-width: 100%;
    background: #ffffff;
    border: 0;
    border-radius: 2px;
    object-fit: contain;
}

.footer .payment-methods__icons .payment-logo--amex {
    width: 36px;
    background: #0690ff;
}

.footer-utility__bottom {
    display: flex;
    max-width: 860px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    margin: 16px auto 0;
    border-top: 1px solid var(--footer-line);
}

.footer-copyright {
    min-width: 0;
    flex-shrink: 0;
}

.footer-copyright p {
    margin: 0;
    color: var(--footer-muted);
    font-size: 13px;
    line-height: 20px;
}

.footer-copyright__brand,
.footer-copyright__rights {
    white-space: nowrap;
}

@media screen and (max-width: 767px) {
    .footer-utility__bottom {
        flex-wrap: wrap;
    }
}

.footer .footer-main a:focus-visible,
.footer .footer-utility a:focus-visible {
    outline: 2px solid var(--footer-accent);
    outline-offset: 3px;
}

.back-to-top-nav {
    width: 0;
    height: 0;
}

#gototop {
    --footer-body: #454649;
    --footer-accent: #3c46dc;
    box-sizing: border-box;
    position: fixed;
    right: 20px;
    bottom: -64px;
    z-index: 200;
    display: flex !important;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--footer-body) !important;
    background: #ffffff;
    border: 1.5px solid #8c8e90;
    border-radius: 50%;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    text-decoration: none;
    transition: bottom 0.2s ease-out, opacity 0.2s ease-out, color 0.2s ease, border-color 0.2s ease;
}

.back-to-top__icon {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

#gototop::before {
    display: none;
}

#gototop.is-visible {
    bottom: max(20px, env(safe-area-inset-bottom));
    opacity: 1;
    pointer-events: auto;
}

#gototop:hover {
    color: var(--footer-accent) !important;
    border-color: var(--footer-accent);
}

#gototop:focus-visible {
    outline: 2px solid var(--footer-accent);
    outline-offset: 3px;
}

#gototop.is-hidden {
    display: none !important;
}

@media screen and (min-width: 992px) {
    .footer-main > .container {
        padding: 48px 60px 32px;
    }

    .footer-main__grid {
        grid-template-columns: 145px minmax(0, 1fr) 280px;
        gap: 48px;
        max-width: 1060px;
        align-items: center;
        text-align: left;
    }

    .footer-brand {
        justify-content: flex-start;
    }

    .footer-brand img {
        width: 145px;
    }

    .footer-contact {
        margin-top: 0;
        text-align: left;
    }

    .footer-contact__channels {
        margin-right: 0;
        margin-left: 0;
    }

    .footer-action {
        margin-top: 0;
    }

    .footer-utility > .container {
        padding: 34px 60px max(72px, env(safe-area-inset-bottom));
    }

    .footer-utility__grid {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 64px;
        max-width: 1060px;
        align-items: center;
    }

    .footer .payment-methods {
        padding-top: 0;
        margin-top: 0;
        text-align: right;
        border-top: 0;
    }

    .footer .payment-methods__icons {
        gap: 10px;
        justify-content: flex-end;
        margin-right: 0;
        margin-left: auto;
    }

    .footer-utility__bottom {
        max-width: 1060px;
    }
}

@media screen and (max-width: 359px) {
    .footer-main > .container,
    .footer-utility > .container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .footer-utility__bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media screen and (max-width: 380px) {
    .footer-utility > .container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .footer-nav a {
        gap: 2px;
        padding-right: 4px;
        font-size: 12px;
    }

    .footer-nav li:nth-child(even) a {
        padding-right: 0;
        padding-left: 4px;
    }

    .footer-nav__icon {
        flex-basis: 12px;
        width: 12px;
        height: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #gototop,
    .footer a,
    .footer a > * {
        transition-duration: 0.01ms !important;
    }
}
