/* assets/css/overrides.css
   Слой правок: шапка, подвал, мобильное меню.
   Подключается после style.css. */

/* Якоря не заезжают под липкую шапку */

section[id],
[id="main"] {
    scroll-margin-top: 92px;
}

/* Шапка */

.header-hours,
.nav-hours {
    display: none;
}

.nav-link {
    white-space: nowrap;
}

.brand-name {
    max-width: 220px;
    line-height: 1.2;
    min-width: 0;
}

.nav-mail {
    font-size: 15px;
    color: var(--muted);
    text-decoration: none;
}

.nav-mail:hover {
    color: var(--accent);
}

.header-call {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--accent);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.header-call:hover {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: transparent;
}

.header-call:active {
    transform: translateY(1px);
}

@media (max-width: 1280px) {
    .nav-list {
        gap: 16px;
    }

    .nav-link {
        font-size: 14px;
    }

    .header-actions {
        gap: 12px;
    }
}

/* Подвал */

.site-footer {
    padding-block: clamp(32px, 4vw, 48px) 20px;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px 40px;
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.footer-name {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}

.footer-text {
    margin: 0;
    font-size: 14px;
}

.footer-text a {
    color: var(--ink);
    text-decoration: none;
}

.footer-text a:hover {
    color: var(--accent);
}

.footer-label {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.footer-mess {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 0;
    font-size: 14px;
}

.footer-mess a {
    color: var(--ink);
    text-decoration: none;
}

.footer-mess a:hover {
    color: var(--accent);
}

.footer-docs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-docs a {
    font-size: 14px;
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--line);
    text-underline-offset: 3px;
}

.footer-docs a:hover {
    color: var(--accent);
}

.footer-booking {
    align-self: flex-start;
    margin-top: 10px;
    padding: 10px 18px;
    font-size: 14px;
}

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

.footer-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    text-decoration: none;
}

.footer-brand:hover {
    color: var(--accent);
}

.footer-brand__logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* Мобильные правки */

@media (max-width: 1024px) {
    section[id],
    [id="main"] {
        scroll-margin-top: 78px;
    }

    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 24px;
    }

    .footer-col:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .header-row {
        min-height: 60px;
        gap: 8px;
    }

    .brand {
        gap: 8px;
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 17px;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
    }

    .brand-name {
        max-width: none;
        overflow: hidden;
        white-space: normal;
        text-overflow: clip;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        font-size: 13px;
        line-height: 1.15;
    }

    .header-actions {
        gap: 8px;
        margin-left: 0;
    }

    .header-actions .btn {
        padding: 10px 14px;
        font-size: 14px;
    }

    .header-call {
        display: none;
    }

    .burger {
        width: 40px;
        height: 40px;
    }

    section[id],
    [id="main"] {
        scroll-margin-top: 70px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-col:first-child {
        grid-column: auto;
    }

    .footer-bottom {
        text-align: left;
    }
}