/* ==========================================================================
   NBC Footer — подвал Яровой Кофе
   ========================================================================== */

.nbc-footer {
    --f-bg:      #3B1D09;
    --f-bg-deep: #060A1F;
    --f-text:    #F3F3F3;
    --f-muted:   rgba(243, 243, 243, .55);
    --f-gold:    #E09B3F;
    --f-line:    rgba(243, 243, 243, .1);

    --f-container: 1280px;
    --f-pad-x:     32px;

    background: var(--f-bg);
    color: var(--f-text);
    font-family: var(--nbc-font-body);
    font-size: 13px;
    line-height: 1.65;
    position: relative;
}
/* «Контакты» в шапке ведут на #contact — подвал вставал под шапку и полосу
   разделов, телефон оказывался за ними. Отступ якоря — их высота. */
.nbc-footer { scroll-margin-top: var(--h-height, 72px); }
body:has(.nbc-secbar) .nbc-footer { scroll-margin-top: calc(var(--h-height, 72px) + var(--h-bar-height, 60px)); }
.nbc-footer * { box-sizing: border-box; }
.nbc-footer a { color: inherit; text-decoration: none; transition: color .2s; }
.nbc-footer a:hover { color: var(--f-gold); }

.nbc-footer__top    { padding: 80px var(--f-pad-x) 60px; }
.nbc-footer__inner  { max-width: var(--f-container); margin: 0 auto; }
.nbc-footer__top .nbc-footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 1fr;
    gap: 60px;
}

/* -------- Контактная колонка -------- */
.nbc-footer__phone {
    display: inline-block;
    font-family: var(--nbc-font-head);
    font-size: 26px;
    font-weight: 500;
    color: var(--f-text);
    letter-spacing: .01em;
    margin-bottom: 14px;
}
.nbc-footer__phone:hover { color: var(--f-gold); }

.nbc-footer__hours {
    color: var(--f-muted);
    margin: 0 0 28px;
    font-size: 12px;
    line-height: 1.7;
}

.nbc-footer__mails { margin: 0 0 28px; }
.nbc-footer__mails p {
    margin: 0 0 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nbc-footer__mails span {
    font-size: 10px;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--f-muted);
}
.nbc-footer__mails a {
    color: var(--f-text);
    font-size: 14px;
}

.nbc-footer__social {
    display: flex;
    gap: 10px;
}
.nbc-footer__social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(243, 243, 243, .06);
    border: 1px solid var(--f-line);
    color: var(--f-gold);
    transition: background .2s, transform .2s, border-color .2s;
}
.nbc-footer__social a:hover {
    background: var(--f-gold);
    border-color: var(--f-gold);
    color: #000;
    transform: translateY(-2px);
}

.nbc-footer__social a[href*="t.me"] svg {
    width: 18px;
    height: 18px;
}

/* -------- Реквизиты -------- */
.nbc-footer__h {
    font-family: var(--nbc-font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--f-gold);
    margin: 0 0 24px;
}

.nbc-footer__dl {
    margin: 0;
    display: grid;
    gap: 10px;
}
.nbc-footer__dl > div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 16px;
    align-items: baseline;
}
.nbc-footer__dl dt {
    font-size: 10px;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--f-muted);
    margin: 0;
}
.nbc-footer__dl dd {
    margin: 0;
    font-size: 13px;
    color: var(--f-text);
    word-break: break-word;
}

.nbc-footer__privacy {
    margin: 22px 0 0;
}

/* Вторая правовая ссылка идёт вплотную под первой, а не через тот же отступ */
.nbc-footer__privacy + .nbc-footer__privacy {
    margin-top: 8px;
}

.nbc-footer__privacy a {
    font-size: 13px;
    font-weight: 600;
    color: var(--f-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s;
}

.nbc-footer__privacy a:hover {
    color: #fff;
    text-decoration: none;
}

/* -------- Навигация -------- */
.nbc-footer__menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}
.nbc-footer__menu li a {
    font-size: 14px;
    color: var(--f-text);
    position: relative;
    padding-left: 16px;
}
.nbc-footer__menu li a::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 6px; height: 1px;
    background: var(--f-gold);
    transform: translateY(-50%);
    transition: width .25s;
}
.nbc-footer__menu li a:hover::before { width: 12px; }

/* -------- Нижняя полоса -------- */
.nbc-footer__bottom {
    border-top: 1px solid var(--f-line);
    padding: 24px var(--f-pad-x);
}
.nbc-footer__bottom .nbc-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
.nbc-footer__copy {
    margin: 0;
    font-size: 12px;
    color: var(--f-muted);
}
.nbc-footer__rights {
    margin: 0;
    font-size: 11px;
    color: var(--f-muted);
    max-width: 560px;
    line-height: 1.6;
}
.nbc-footer__market {
    height: 44px !important;
    width: auto !important;
    max-width: 160px !important;
    flex: 0 0 auto;
    opacity: .8;
    transition: opacity .25s;
    object-fit: contain;
}
.nbc-footer__market:hover { opacity: 1; }

/* -------- Кнопка «Наверх» -------- */
.nbc-footer__up {
    position: fixed;
    right: 26px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--f-gold);
    color: #000 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .3s, transform .3s, background .2s;
    z-index: 99;
}
.nbc-footer__up:hover { background: #F2AD5A !important; }
body.nbc-uptop-on .nbc-footer__up {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ═══════════════════════ RESPONSIVE ═══════════════════════ */
@media (max-width: 1024px) {
    .nbc-footer { --f-pad-x: 24px; }
    .nbc-footer__top .nbc-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
    .nbc-footer__col--nav { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .nbc-footer { --f-pad-x: 18px; }
    .nbc-footer__top { padding: 60px var(--f-pad-x) 40px; }
    .nbc-footer__top .nbc-footer__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .nbc-footer__bottom .nbc-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .nbc-footer__up { right: 14px; bottom: 14px; }
}

/* ═══════════════════════════════════════════════
   Карта в подвале (07.10) — как на боевом опте

   На боевом карту рисует плагин через JS API Яндекса. Здесь встроенный
   виджет карт: ключ не нужен, плагин тоже. Поверх слева — белая карточка
   с логотипом, адресом и телефоном.
   ═══════════════════════════════════════════════ */

.nbc-footer__map {
    position: relative;
    height: 340px;
    background: #EFE7D6;
}
.nbc-footer__map-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(.25);
}
.nbc-footer__map-card {
    position: absolute;
    top: 50%;
    left: clamp(14px, 6vw, 110px);
    transform: translateY(-50%);
    z-index: 2;
    width: min(300px, calc(100% - 28px));
    padding: 24px 26px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(59, 29, 9, .18);
    text-align: center;
}
.nbc-footer__map-logo {
    display: block;
    height: 42px;
    width: auto;
    margin: 0 auto 16px;
}
.nbc-footer__map-addr {
    margin: 0 0 14px;
    font-family: var(--nbc-font-body);
    font-size: 14px;
    line-height: 1.5;
    color: #2B2520;
}
.nbc-footer__map-phone {
    font-family: var(--nbc-font-body);
    font-size: 16px;
    color: #2B2520 !important;
}
.nbc-footer__map-phone:hover { color: var(--nbc-gold, #E09B3F) !important; }

@media (max-width: 768px) {
    .nbc-footer__map { height: 420px; }
    .nbc-footer__map-card {
        top: 14px;
        left: 14px;
        right: 14px;
        transform: none;
        width: auto;
        padding: 18px 16px;
    }
}
