/* Footer · Editorial skin: serif slogan row, hairline rules, tracked caps headings, accordions on mobile */
.hm-footer { padding-block: clamp(72px, 8vw, 128px) 36px; font-size: 14px; }
.hm-footer__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas:
        "logo   social"
        "slogan contacts"
        "nav    nav"
        "bottom bottom";
    grid-template-rows: auto auto auto auto;
    column-gap: clamp(32px, 6vw, 120px);
    row-gap: 0;
}

.hm-footer__logo { opacity: .92; transition: opacity var(--hm-dur); }
.hm-footer__logo:hover { opacity: 1; }
.hm-footer__logo-img { height: 44px; }

.hm-footer__social { justify-self: end; align-self: center; gap: 8px; }
.hm-footer__social a {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--hm-radius-btn);
    color: var(--hm-c-on-dark);
    transition: background-color var(--hm-dur) var(--hm-ease), color var(--hm-dur) var(--hm-ease), border-color var(--hm-dur);
}
.hm-footer__social a:hover { background: var(--hm-c-on-dark); color: var(--hm-c-dark); border-color: var(--hm-c-on-dark); }
.hm-footer__social svg { width: 18px; height: 18px; }

.hm-footer__slogan {
    display: block;
    grid-area: slogan;
    align-self: end;
    max-width: 13em;
    margin: clamp(56px, 7vw, 104px) 0 0;
    font-family: var(--hm-font-head);
    font-size: clamp(40px, 5vw, 76px);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -.015em;
    text-wrap: balance;
}
.hm-footer__slogan em { display: block; font-style: italic; color: var(--hm-c-accent-2); }

/* Contacts: big serif phone, quiet lines, square route button */
.hm-footer__contacts {
    align-self: end;
    justify-items: start;
    gap: 6px;
    margin-top: clamp(40px, 5vw, 72px);
    text-align: left;
}
.hm-footer__contact svg { display: none; }
.hm-footer__contact { font-weight: 300; font-size: 15px; color: var(--hm-c-on-dark-muted); }
.hm-footer__contact--phone {
    margin-bottom: 4px;
    font-family: var(--hm-font-head);
    font-size: clamp(28px, 2.6vw, 38px);
    line-height: 1.1;
    color: var(--hm-c-on-dark);
}
.hm-footer__contact:hover { color: var(--hm-c-accent-2); }
.hm-footer__address,
.hm-footer__hours { margin-top: 0; font-size: 15px; font-weight: 300; color: var(--hm-c-on-dark-muted); }
.hm-footer__route {
    --hm-btn-h: 50px;
    margin-top: 24px;
    padding-inline: 28px;
    font-size: var(--hm-btn-fs);
    border-color: rgba(255, 255, 255, .35);
}

/* Menu: hairline rule above, tracked caps headings in sand, no vertical rules */
.hm-footer__nav {
    --_cols: var(--hm-footer-cols, auto-fit);
    grid-template-columns: repeat(var(--_cols), minmax(150px, 1fr));
    column-gap: 32px;
    row-gap: 40px;
    margin-top: clamp(64px, 7vw, 104px);
    padding-top: clamp(40px, 4vw, 56px);
    border-top: 1px solid var(--hm-c-line);
}
.hm-footer__col,
.hm-footer__col + .hm-footer__col,
.hm-footer__col:first-child,
.hm-footer__col:last-child { padding: 0; border: 0; }
.hm-footer__col-title { margin-bottom: 20px; }
.hm-footer__col-title a {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .24em;
    color: var(--hm-c-accent-2);
}
.hm-footer__links { gap: 10px; }
.hm-footer__links a { font-size: 14px; font-weight: 300; color: var(--hm-c-on-dark-muted); white-space: normal; }
.hm-footer__col--plain .hm-footer__links { gap: 4px; }
.hm-footer__col--plain .hm-footer__links a {
    font-family: var(--hm-font-head);
    font-size: 23px;
    font-weight: 300;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: none;
    color: var(--hm-c-on-dark);
}
.hm-footer__nav a:hover { color: var(--hm-c-on-dark); }
.hm-footer__col--plain .hm-footer__links a:hover,
.hm-footer__col-title a:hover { color: var(--hm-c-accent-2); opacity: .8; }

.hm-footer__bottom {
    margin-top: clamp(56px, 6vw, 88px);
    padding-top: 28px;
    border-top: 1px solid var(--hm-c-line);
    max-width: none;
    font-size: 11.5px;
    font-weight: 300;
    line-height: 1.7;
    text-align: left;
}

@media (max-width: 1023px) {
    .hm-footer__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "logo     social"
            "slogan   slogan"
            "contacts contacts"
            "nav      nav"
            "bottom   bottom";
        grid-template-rows: none;
        row-gap: 0;
    }
    .hm-footer__slogan { max-width: 12em; }
    .hm-footer__nav { --_cols: 3; }
    .hm-footer__col:nth-child(3n + 1) { padding-left: 0; }
}

/* Mobile: link columns become an accordion separated by hairlines */
@media (max-width: 767px) {
    .hm-footer { padding-top: 64px; font-size: 14px; }
    .hm-footer__social a { width: 40px; height: 40px; }
    .hm-footer__social svg { width: 17px; height: 17px; }
    .hm-footer__slogan { margin-top: 48px; font-size: clamp(36px, 10.5vw, 46px); }
    .hm-footer__contacts { margin-top: 40px; }
    .hm-footer__contact { font-size: 15px; gap: 0; }
    .hm-footer__contact--phone { font-size: 30px; }
    .hm-footer__address, .hm-footer__hours { font-size: 15px; margin-top: 0; }
    .hm-footer__route { --hm-btn-h: 50px; width: 100%; padding-inline: 20px; font-size: var(--hm-btn-fs); }

    .hm-footer__nav {
        --_cols: 1;
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0;
        margin-top: 56px;
        padding-top: 0;
    }
    .hm-footer__col,
    .hm-footer__col + .hm-footer__col,
    .hm-footer__col:nth-child(n) { padding: 0; border: 0; border-bottom: 1px solid var(--hm-c-line); }
    .hm-footer__col.hm-footer__col--plain { padding-block: 24px; }
    .hm-footer__col-title { min-height: 60px; margin: 0; }
    .hm-footer__col-title a { font-size: 11px; }
    .hm-footer__toggle {
        display: grid;
        place-items: center;
        flex: none;
        width: 44px;
        height: 44px;
        margin-right: -12px;
        padding: 0;
        border: 0;
        background: none;
        color: var(--hm-c-on-dark);
        cursor: pointer;
    }
    .hm-footer__toggle::before {
        content: "+";
        font-size: 24px;
        font-weight: 300;
        line-height: 1;
        transition: transform var(--hm-dur) var(--hm-ease);
    }
    .hm-footer__col.is-open .hm-footer__toggle::before { transform: rotate(45deg); }
    .hm-footer.is-ready .hm-footer__col.has-toggle:not(.is-open) .hm-footer__links { display: none; }
    .hm-footer__col.has-toggle .hm-footer__links { padding-bottom: 24px; }
    .hm-footer__links a { font-size: 15px; }
    .hm-footer__col--plain .hm-footer__links a { font-size: 26px; }

    .hm-footer__bottom { margin-top: 40px; padding-top: 0; border-top: 0; }
}
