.rm-footer {
    --rm-footer-yellow: #ffdc18;
    --rm-footer-black: #1d1d1e;
    --rm-footer-panel: #272728;
    --rm-footer-muted: #a9a9ac;
    --rm-footer-border: rgba(255, 255, 255, .12);
    position: relative;
    z-index: 2;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    color: #fff;
    background: var(--rm-footer-black);
    font-family: Montserrat, Arial, sans-serif;
    overflow: hidden;
}

.rm-footer *,
.rm-footer *::before,
.rm-footer *::after { box-sizing: border-box; }

.rm-footer a { border: 0; text-decoration: none; }

.rm-footer__shell {
    width: min(100% - 48px, 1240px);
    margin-inline: auto;
}

.rm-footer__newsletter {
    color: var(--rm-footer-black);
    background: var(--rm-footer-yellow);
}

.rm-footer__newsletter-inner {
    display: grid;
    grid-template-columns: minmax(250px, .8fr) minmax(420px, 1.3fr) minmax(220px, .7fr);
    align-items: center;
    gap: 36px;
    min-height: 164px;
    padding-block: 30px;
}

.rm-footer__eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.rm-footer__newsletter-title {
    margin: 0;
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.rm-footer__newsletter-copy p {
    max-width: 470px;
    margin: 12px 0 0;
    color: rgba(29, 29, 30, .72);
    font-size: 14px;
    line-height: 1.55;
}

.rm-footer__subscribe-form form { display: block; }

.rm-footer__subscribe-form form > .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 10px;
    width: 100%;
    margin: 0;
}

.rm-footer__subscribe-form form > .row > [class*="col-"] {
    flex: none;
    width: auto;
    max-width: none;
    padding: 0;
}

.rm-footer__subscribe-form input[type="email"],
.rm-footer__subscribe-form input[type="text"] {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    color: var(--rm-footer-black);
    background: #fff;
    border: 1px solid rgba(29, 29, 30, .12);
    border-radius: 10px;
    outline: none;
}

.rm-footer__subscribe-form input:focus { border-color: var(--rm-footer-black); }

.rm-footer__subscribe-form input[type="submit"],
.rm-footer__subscribe-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    min-height: 52px;
    padding: 0 24px;
    color: #fff;
    background: var(--rm-footer-black);
    border: 0;
    border-radius: 10px;
    font: 700 12px/1 Montserrat, Arial, sans-serif;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease;
}

.rm-footer__subscribe-form button span { display: inline; }
.rm-footer__subscribe-form button i {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    color: currentColor;
    background: transparent;
    font-size: 14px;
    line-height: 1;
    transform: none;
}

.rm-footer__subscribe-form input[type="submit"]:hover,
.rm-footer__subscribe-form button:hover { background: #000; transform: translateY(-1px); }

.rm-footer__subscribe-form label,
.rm-footer__subscribe-form .agreement,
.rm-footer__subscribe-form .subscribe_agreement {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.4;
}

.rm-footer__benefits {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    font-weight: 600;
}

.rm-footer__benefits li { display: flex; gap: 10px; align-items: center; }
.rm-footer__benefits li::before { content: "↗"; font-size: 17px; line-height: 1; }

.rm-footer__main { padding: 54px 0 44px; }

.rm-footer__grid {
    display: grid;
    grid-template-columns: minmax(230px, 1.25fr) minmax(0, 3fr);
    gap: 68px;
}

.rm-footer__brand { min-width: 0; }

.rm-footer__logo {
    display: block;
    width: 202px;
    max-width: 100%;
    margin-bottom: 28px;
}

.rm-footer__logo img { display: block; width: 100%; height: auto; }

.rm-footer__showroom {
    display: grid;
    gap: 5px;
    margin-bottom: 22px;
    color: #fff;
}

.rm-footer__showroom strong { font-size: 14px; line-height: 1.35; }
.rm-footer__showroom span { color: var(--rm-footer-muted); font-size: 12px; line-height: 1.45; }

.rm-footer__cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    max-width: 290px;
    min-height: 52px;
    padding: 0 18px;
    color: var(--rm-footer-black);
    background: var(--rm-footer-yellow);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    transition: transform .2s ease, background-color .2s ease;
}

.rm-footer__cta::after { content: "→"; font-size: 18px; }
.rm-footer__cta:hover { color: var(--rm-footer-black); background: #ffe65a; transform: translateY(-2px); }

.rm-footer__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.rm-footer__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    color: var(--rm-footer-muted);
    background: var(--rm-footer-panel);
    border: 1px solid var(--rm-footer-border) !important;
    border-radius: 9px;
    font-size: 12px;
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.rm-footer__contact-link i { color: var(--rm-footer-yellow); font-size: 16px; }
.rm-footer__contact-link:hover { color: #fff; border-color: rgba(255, 220, 24, .65) !important; transform: translateY(-1px); }

.rm-footer__columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px;
}

.rm-footer__column { min-width: 0; }
.rm-footer__column summary { list-style: none; cursor: default; }
.rm-footer__column summary::-webkit-details-marker { display: none; }

.rm-footer__column-title {
    margin: 0 0 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.rm-footer__menu {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    margin-top: 12px;
}

.rm-footer__menu li { margin: 0; padding: 0; }
.rm-footer__menu a { color: var(--rm-footer-muted); font-size: 12px; line-height: 1.45; transition: color .2s ease; }
.rm-footer__menu a:hover { color: var(--rm-footer-yellow); }

.rm-footer__bottom {
    border-top: 1px solid var(--rm-footer-border);
    background: #19191a;
}

.rm-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}

.rm-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rm-footer__legal a,
.rm-footer__copyright { color: #77777b; font-size: 11px; line-height: 1.4; }
.rm-footer__legal a:hover { color: #fff; }

.rm-footer .button_totop {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    padding: 0;
    left: auto;
    right: 22px;
    bottom: 22px;
    color: var(--rm-footer-black);
    background: var(--rm-footer-yellow);
    border-radius: 50%;
}

.rm-footer .button_totop i {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    padding: 0;
    color: var(--rm-footer-black);
    background: transparent;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
}

@media (max-width: 1100px) {
    .rm-footer__newsletter-inner { grid-template-columns: 1fr 1.3fr; }
    .rm-footer__benefits { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
    .rm-footer__grid { grid-template-columns: 220px 1fr; gap: 42px; }
    .rm-footer__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 38px; }
}

@media (max-width: 767px) {
    .rm-footer__shell { width: min(100% - 32px, 1240px); }
    .rm-footer__newsletter-inner { display: block; min-height: 0; padding-block: 30px 34px; }
    .rm-footer__newsletter-copy { margin-bottom: 22px; }
    .rm-footer__newsletter-copy p { font-size: 13px; }
    .rm-footer__subscribe-form form > .row { grid-template-columns: 1fr; }
    .rm-footer__subscribe-form input[type="submit"],
    .rm-footer__subscribe-form button { width: 100%; }
    .rm-footer__benefits { display: none; }
    .rm-footer__main { padding: 36px 0 26px; }
    .rm-footer__grid { grid-template-columns: 1fr; gap: 34px; }
    .rm-footer__brand { padding-bottom: 28px; border-bottom: 1px solid var(--rm-footer-border); }
    .rm-footer__logo { width: 170px; margin-bottom: 22px; }
    .rm-footer__columns { display: block; }
    .rm-footer__column { border-bottom: 1px solid var(--rm-footer-border); }
    .rm-footer__column summary {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 54px;
        cursor: pointer;
    }
    .rm-footer__column summary::after { content: "+"; color: var(--rm-footer-yellow); font-size: 22px; font-weight: 400; }
    .rm-footer__column[open] summary::after { content: "−"; }
    .rm-footer__column-title { margin: 0; font-size: 12px; }
    .rm-footer__menu { gap: 8px; padding: 2px 0 22px; margin-top: 0px; }
    .rm-footer__menu a { font-size: 13px; }
    .rm-footer__bottom-inner { align-items: flex-start; flex-direction: column; min-height: 0; padding: 22px 0 26px; }
    .rm-footer__legal { display: grid; gap: 10px; }
    .rm-footer .button_totop {
        left: 16px !important;
        right: auto !important;
        bottom: 16px;
        width: 45px !important;
        height: 45px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rm-footer__cta,
    .rm-footer__contact-link,
    .rm-footer__subscribe-form button,
    .rm-footer__subscribe-form input[type="submit"] { transition: none; }
}
