/* ── Footer ──────────────────────────────────────────────────────────────── */
.nml-footer {
    background: linear-gradient(147deg, #040F2D 46.63%, #162F6F 139.96%);
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #FFFFFF;
}

.nml-footer .container{
    max-width: calc(1328px + var(--container-px) * 2);
}

/* ── Top section ─────────────────────────────────────────────────────────── */
.nml-footer__top {
    padding: 40px 0 48px;
}

.nml-footer__grid {
    display: grid;
    grid-template-columns: 323px 1fr;
    align-items: start;
    gap: 48px;
}

/* ── Left column ─────────────────────────────────────────────────────────── */
.nml-footer__left {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Logo */
.nml-footer__logo {
    display: block;
    text-decoration: none;
}

.nml-footer__logo img {
    display: block;
    width: auto;
    height: 40px;
}

/* Clutch */
.nml-footer__clutch {
    display: inline-flex;
    width: fit-content;
}

.nml-footer__clutch-logo {
    display: block;
    width: auto;
    height: 37px;
}

/* Section title */
.nml-footer__section-title {
    margin: 0 0 12px;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
}

/* Awards */
.nml-footer__awards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nml-footer__awards-grid a,
.nml-footer__awards-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nml-footer__awards-grid img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
}

/* Contacts */
.nml-footer__contacts-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nml-footer__contact-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 32px;
    height: 32px;
    padding: 6px;
    background: #FF4171;
    border: 1px solid #F1005B;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    flex-shrink: 0;
    justify-content: center;
}

.nml-footer__contact-btn:hover {
    background: #F1005B;
    border: 1px solid #FF4171;
}

.nml-footer__contact-btn img {
    width: 20px;
    height: 20px;
    display: block;
    filter: brightness(0) invert(1);
}

/* Address */
.nml-footer__address-text {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #FFFFFF;
}

.nml-footer__map {
    border-radius: 8px;
}

.nml-footer__map img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.nml-footer__map a {
    display: block;
    line-height: 0;
}

/* ── Menu columns ────────────────────────────────────────────────────────── */
.nml-footer__menus {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: start;
    gap: 32px;
}

.nml-footer__menu-heading {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: #FFFFFF;
    opacity: 0.5;
}

/* Второй заголовок в колонке — отбивка от списка предыдущего меню */
.nml-footer__menu-list + .nml-footer__menu-heading {
    margin-top: 32px;
}

.nml-footer__menu-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nml-footer__menu-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Plain link */
.nml-footer__menu-link {
    display: block;
    padding: 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s;
}

.nml-footer__menu-link:hover {
    color: #fff;
}

/* Accordion trigger */
.nml-footer__menu-trigger {
    display: flex;
    flex-direction: row;
    gap: 6px;
    padding: 0;
    background: transparent;
    border: none;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #FFFFFF;
    transition: all 0.3s;
    align-items: center;
}

.nml-footer__menu-trigger:hover{
    text-decoration: underline;
    cursor: pointer;
}

.nml-footer__menu-trigger svg {
    flex-shrink: 0;
    transition: transform 0.22s;
}

.nml-footer__menu-item.is-open .nml-footer__menu-trigger svg {
    transform: rotate(180deg);
}

/* Submenu */
.nml-footer__submenu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 10px 0 20px;
}



.nml-footer__menu-item.is-open .nml-footer__submenu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nml-footer__submenu li a {
    display: block;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #ffffff80;
    text-decoration: none;
    transition: all 0.3s;
}

.nml-footer__submenu li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ── Bottom bar ──────────────────────────────────────────────────────────── */
.nml-footer__bottom {
    padding: 0 0 40px 0;
}

.nml-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nml-footer__copyright {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--color-text-white);
}

.nml-footer__bottom-nav {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.nml-footer__bottom-nav a {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--color-text-white);
    text-decoration: none;
    transition: all 0.18s;
    white-space: nowrap;
    opacity: 0.7;
}

.nml-footer__bottom-nav a:hover {
    opacity: 1;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .nml-footer__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nml-footer__menus {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .nml-footer__top {
        padding: 40px 0 32px;
    }

    .nml-footer__menus {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .nml-footer__menu-heading {
        margin-bottom: 16px;
    }

    .nml-footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nml-footer__bottom-nav {
        gap: 16px;
        align-items: flex-start;
        flex-direction: column;
    }

    .nml-footer__bottom-nav a {
        opacity: 1;
    }

    .nml-footer__logo img {
        height: 32px;
    }

    .nml-footer__clutch-logo {
        height: 32px;
    }

    .nml-footer__section-title {
        font-size: 14px;
        line-height: 20px;
    }

    .nml-footer__awards-grid img {
        width: 34px;
        height: 34px;
    }

    .nml-footer__contact-btn {
        width: 40px;
        height: 40px;
    }

    .nml-footer__address-text {
        margin: 0 0 12px;
        font-size: 12px;
        line-height: 16px;
    }

    .nml-footer__menu-trigger{
        background: #FFFFFF1A;
        padding: 13px 16px;
        border-radius: 8px;
        justify-content: space-between;
    }

    .nml-footer__menu-link{
        display: flex;
        background: #FFFFFF1A;
        padding: 13px 16px;
        border-radius: 8px;
        justify-content: space-between;
    }

    .nml-footer__menu-list{
        gap: 6px;
    }

    .nml-footer__menu-item.is-open .nml-footer__submenu {
        gap: 2px;
        padding: 12px 0;
    }

    .nml-footer__submenu li a {
        font-size: 14px;
        line-height: 20px;
        font-weight: 500;
        color: #ffffff;
        padding: 8px 16px;
    }
}
