﻿:root {
    --am-foot-accent: #0F4C5C;
    --am-foot-link-shift: 4px;
}

.am-footer {
    margin-top: 40px;
    border-top: 1px solid #e8edf2;
    background: linear-gradient(180deg, #fbfcfd 0%, #f6f8fa 100%);
    color: #1f2937;
}

    .am-footer .am-container {
        padding-left: 16px;
        padding-right: 16px;
    }

.am-foot__grid {
    display: grid;
    grid-template-columns: 320px 1fr 1fr 1fr 340px;
    gap: 28px;
    padding: 34px 0 20px;
    align-items: start;
}

.am-foot__col {
    min-width: 0;
}

.am-foot__logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: min(100%, 260px);
    max-width: 100%;
    height: 86px;
    overflow: hidden;
    text-decoration: none;
    margin-bottom: 10px;
}

    .am-foot__logo img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: 260px;
        max-height: 86px;
        object-fit: contain;
        object-position: left center;
    }

.am-foot__title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 10px 0 14px;
    color: #667085;
}

.am-foot__list,
.am-foot__col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .am-foot__list li,
    .am-foot__col li {
        line-height: 1.65;
    }

        .am-foot__list li + li,
        .am-foot__col li + li {
            margin-top: 8px;
        }

    .am-foot__list a,
    .am-foot__col ul a {
        position: relative;
        display: inline-block;
        padding-left: 12px;
        color: #344054;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: transform .18s ease, color .18s ease, opacity .18s ease;
    }

        .am-foot__list a::before,
        .am-foot__col ul a::before {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            width: 5px;
            height: 5px;
            margin-top: -2.5px;
            border-radius: 50%;
            background: var(--am-foot-accent);
            opacity: 0;
            transform: translateX(-5px) scale(.7);
            transition: transform .18s ease, opacity .18s ease;
        }

        .am-foot__list a:hover,
        .am-foot__list a:focus-visible,
        .am-foot__col ul a:hover,
        .am-foot__col ul a:focus-visible {
            text-decoration: none;
            color: #101828;
            transform: translateX(var(--am-foot-link-shift));
        }

            .am-foot__list a:hover::before,
            .am-foot__list a:focus-visible::before,
            .am-foot__col ul a:hover::before,
            .am-foot__col ul a:focus-visible::before {
                opacity: 1;
                transform: translateX(0) scale(1);
            }

.am-foot__contact {
    margin: 6px 0 0;
}

    .am-foot__contact > div {
        display: grid;
        grid-template-columns: 110px 1fr;
        column-gap: 10px;
        align-items: start;
        margin: 0 0 12px 0;
    }

    .am-foot__contact dt {
        float: none;
        min-width: 0;
        margin: 0;
        font-size: 12px;
        font-weight: 700;
        color: #667085;
    }

    .am-foot__contact dd {
        margin: 0;
        font-size: 14px;
        line-height: 1.6;
        color: #344054;
        overflow-wrap: anywhere;
    }

    .am-foot__contact a {
        color: inherit;
        text-decoration: none;
        font-weight: 600;
        display: inline-block;
        transition: transform .18s ease, opacity .18s ease, color .18s ease;
    }

        .am-foot__contact a:hover,
        .am-foot__contact a:focus-visible {
            text-decoration: none;
            transform: translateX(2px);
            color: #101828;
            opacity: .95;
        }

.am-foot__newsletter {
    padding: 0;
}

.am-foot__newsletterText {
    margin: -4px 0 14px;
    color: #667085;
    font-size: 14px;
    line-height: 1.65;
}

.am-foot__newsletterForm {
    display: grid;
    gap: 10px;
}

.am-foot__newsletterRow {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.am-foot__newsletterInput {
    width: 100%;
    min-height: 46px;
    padding: 0 15px;
    border: 1px solid #d7dee7;
    border-radius: 14px;
    background: #fff;
    color: #101828;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

    .am-foot__newsletterInput::placeholder {
        color: #98a2b3;
    }

    .am-foot__newsletterInput:hover {
        border-color: #c6d0db;
    }

    .am-foot__newsletterInput:focus {
        outline: none;
        border-color: rgba(15,76,92,.42);
        box-shadow: 0 0 0 4px rgba(15,76,92,.08);
    }

.am-foot__newsletterBtn {
    flex: 0 0 auto;
    min-width: 112px;
    min-height: 46px;
    padding: 0 18px;
    border: none;
    border-radius: 14px;
    background: var(--am-foot-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
    box-shadow: 0 8px 18px rgba(15,76,92,.14);
}

    .am-foot__newsletterBtn:hover,
    .am-foot__newsletterBtn:focus-visible {
        transform: translateY(-1px);
        filter: saturate(1.03) brightness(.99);
        box-shadow: 0 12px 22px rgba(15,76,92,.18);
    }

.am-foot__newsletterResult {
    font-size: 13px;
    line-height: 1.55;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e5ebf1;
}

.am-foot__socialBlock--after-newsletter {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e7edf3;
}

.am-foot__mediaRow {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.am-foot__socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    flex: 0 0 auto;
}

    .am-foot__socials a {
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        color: #344054;
        background: #fff;
        border: 1px solid #e3e9ef;
        text-decoration: none;
        transition: transform .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
    }

        .am-foot__socials a:hover,
        .am-foot__socials a:focus-visible {
            transform: translateY(-2px);
            color: var(--am-foot-accent);
            border-color: rgba(15,76,92,.25);
            box-shadow: 0 8px 18px rgba(16,24,40,.08);
        }

    .am-foot__socials svg {
        width: 18px;
        height: 18px;
        display: block;
    }

.am-foot__etbis {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.am-foot__etbisImg {
    width: 96px;
    height: 96px;
    object-fit: contain;
    display: block;
}

.am-foot__bottom {
    border-top: 1px solid #e8edf2;
    padding-top: 14px;
    padding-bottom: 18px;
    text-align: center;
}

    .am-foot__bottom p {
        margin: 0;
        font-size: 13px;
        line-height: 1.6;
        color: #667085;
    }

    .am-foot__bottom .am-foot__powered,
    .am-foot__bottom .am-foot__powered:visited {
        color: inherit;
        text-decoration: none;
        font-weight: 700;
    }

        .am-foot__bottom .am-foot__powered:hover,
        .am-foot__bottom .am-foot__powered:focus-visible {
            text-decoration: none;
            opacity: .9;
        }

@media (prefers-reduced-motion: reduce) {
    .am-foot__list a,
    .am-foot__list a::before,
    .am-foot__col ul a,
    .am-foot__col ul a::before,
    .am-foot__contact a,
    .am-foot__newsletterBtn,
    .am-foot__socials a {
        transition: none;
    }
}

@media (max-width: 1200px) {
    .am-foot__grid {
        grid-template-columns: 260px 1fr 1fr 1fr;
    }

        .am-foot__grid > :last-child {
            grid-column: 1 / -1;
        }

    .am-foot__logo {
        width: min(100%, 230px);
        height: 76px;
    }

        .am-foot__logo img {
            max-width: 230px;
            max-height: 76px;
        }
}

@media (max-width: 640px) {
    .am-foot__grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 12px;
        row-gap: 18px;
        grid-template-areas:
            "cats account"
            "terms terms"
            "contact contact"
            "news news";
        padding: 20px 0 14px;
    }

        .am-foot__grid > .am-foot__col:nth-child(1) {
            grid-area: contact;
        }

        .am-foot__grid > .am-foot__col:nth-child(2) {
            grid-area: cats;
        }

        .am-foot__grid > .am-foot__col:nth-child(3) {
            grid-area: account;
        }

        .am-foot__grid > .am-foot__col:nth-child(4) {
            grid-area: terms;
        }

        .am-foot__grid > .am-foot__col:nth-child(5) {
            grid-area: news;
        }

        .am-foot__grid > .am-foot__col:nth-child(2) .am-foot__title,
        .am-foot__grid > .am-foot__col:nth-child(3) .am-foot__title {
            margin-top: 0;
        }

    .am-foot__logo {
        width: min(100%, 200px);
        height: 68px;
    }

        .am-foot__logo img {
            max-width: 200px;
            max-height: 68px;
        }

    .am-foot__title {
        font-size: 12px;
    }

    .am-foot__contact > div {
        grid-template-columns: 95px 1fr;
        column-gap: 8px;
        margin-bottom: 10px;
    }

    .am-foot__newsletterRow {
        flex-direction: column;
    }

    .am-foot__newsletterBtn {
        width: 100%;
    }

    .am-foot__grid > .am-foot__col:nth-child(4) ul:has(li:nth-child(6)) {
        column-count: 2;
        column-gap: 14px;
    }

    .am-foot__grid > .am-foot__col:nth-child(4) li {
        break-inside: avoid;
        -webkit-column-break-inside: avoid;
        page-break-inside: avoid;
    }

    .am-foot__grid > .am-foot__col:nth-child(4) a {
        display: inline-block;
        width: 100%;
    }
}
