/* ==========================================================================
   BARRA.PRO Final Minimal Unified Footer (2026-12-05 v2)
   Compact, refined, 3-column luxury footer + simplified checkout variant
   ========================================================================== */

.bf-footer,
.bf-footer * {
    box-sizing: border-box;
}

.bf-footer {
    position: relative;
    margin-top: 48px;
    background: linear-gradient(180deg, #faf7f0 0%, #f5f0e5 100%);
    border-top: 1px solid #e6dcc8;
    color: #1f1c18;
    font-family: "Roboto-Regular", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.bf-footer--compact {
    margin-top: 32px;
    background: #faf7f0;
}

.bf-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Compact Top Area */
.bf-top {
    padding: 26px 0 22px;
}

.bf-brand-bar {
    display: flex;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e8dfd0;
}

.bf-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    color: #1f1c18;
}

/* ~50% smaller elegant brand signature (was 28px -> now 14.5px) */
.bf-brand__logo {
    display: block;
    height: 14.5px !important;
    width: auto !important;
    max-width: 132px;
    flex-shrink: 0;
}

.bf-brand__sep {
    width: 1px;
    height: 14px;
    background: #d8ccb3;
    flex-shrink: 0;
}

.bf-brand__tagline {
    font-size: 13px;
    font-weight: 400;
    color: #776d5d;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

/* 3-Column Balanced Grid */
.bf-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) minmax(260px, 1.22fr);
    gap: 20px 44px;
    align-items: start;
}

.bf-col-title {
    margin: 0 0 11px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #937636;
}

.bf-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bf-links li {
    margin: 0;
    padding: 0;
}

.bf-links a {
    display: inline-block;
    color: #2b2620 !important;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.16s ease;
}

.bf-links a:hover {
    color: #9a7930 !important;
}

/* Contacts Column */
.bf-contact-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0 0 13px;
}

.bf-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 14px;
    color: #2b2620;
    line-height: 1.4;
}

.bf-contact-row svg {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    color: #a4843d;
    flex-shrink: 0;
}

.bf-contact-row a {
    color: #1f1c18 !important;
    text-decoration: none !important;
    transition: color 0.16s ease;
}

.bf-contact-row a:hover {
    color: #9a7930 !important;
}

.bf-contact-phone {
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.bf-contact-address {
    border-bottom: 1px dashed rgba(154, 121, 48, 0.42);
    padding-bottom: 1px;
}

.bf-contact-address:hover {
    border-bottom-color: #9a7930;
}

.bf-contact-hours {
    font-size: 13px;
    color: #6b6254;
}

/* Compact Messenger Widgets: Telegram & MAX side by side */
.bf-messengers {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.bf-msg-widget {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 13px 0 6px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e2d7c2;
    color: #24201b !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.15s ease;
}

.bf-msg-widget:hover {
    border-color: #c8a962;
    background: #fffdf8;
    color: #1f1c18 !important;
    transform: translateY(-1px);
}

.bf-msg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bf-msg-icon--tg {
    background: linear-gradient(135deg, #37aee2 0%, #1e96c8 100%);
}

.bf-msg-icon--tg svg {
    width: 12px;
    height: 12px;
    transform: translateX(-0.5px);
}

.bf-msg-icon--max {
    background: linear-gradient(135deg, #5468ff 0%, #8c38ff 100%);
}

.bf-msg-icon--max svg {
    width: 12px;
    height: 12px;
}

/* Bottom Legal & Copyright Strip */
.bf-bottom {
    padding: 14px 0 18px;
    border-top: 1px solid #e8dfd0;
}

.bf-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: #746a5b;
}

.bf-copyright {
    color: #746a5b;
}

.bf-legal-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.bf-legal-links a {
    color: #5d5447 !important;
    text-decoration: none !important;
    transition: color 0.16s ease;
}

.bf-legal-links a:hover {
    color: #9a7930 !important;
    text-decoration: underline !important;
}

/* Inline Collapsible Trigger for Requisites */
.bf-req-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    color: #5d5447;
    cursor: pointer;
    transition: color 0.16s ease;
}

.bf-req-trigger:hover {
    color: #9a7930;
}

.bf-req-trigger .bf-chevron {
    width: 13px;
    height: 13px;
    transition: transform 0.2s ease;
}

.bf-req-trigger.is-open .bf-chevron {
    transform: rotate(180deg);
}

.bf-req-panel {
    margin-top: 12px;
    padding: 13px 16px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e6dcc8;
    font-size: 12.5px;
    line-height: 1.55;
    color: #524a3e;
}

.bf-req-panel[hidden] {
    display: none !important;
}

.bf-req-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 20px;
}

.bf-req-grid strong {
    color: #1f1c18;
    font-weight: 600;
}

/* Desktop vs Mobile Accordion Behavior */
.bf-acc-head {
    display: none;
}

/* Simplified Checkout Footer (/personal/cart/order/) */
.bf-compact-inner {
    padding: 18px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bf-compact-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8dfd0;
}

.bf-compact-contacts {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.bf-compact-phone {
    font-size: 14.5px;
    font-weight: 600;
    color: #1f1c18 !important;
    text-decoration: none !important;
}

.bf-compact-email {
    font-size: 13.5px;
    color: #5d5447 !important;
    text-decoration: none !important;
}

.bf-compact-phone:hover,
.bf-compact-email:hover {
    color: #9a7930 !important;
}

/* Tablet */
@media (max-width: 960px) {
    .bf-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(240px, 1.15fr);
        gap: 18px 24px;
    }
    .bf-req-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile (Compact, Always-Visible Contacts + Collapsible Nav) */
@media (max-width: 768px) {
    .bf-footer {
        margin-top: 32px;
    }
    .bf-container {
        padding: 0 16px;
    }
    .bf-top {
        padding: 20px 0 12px;
    }
    .bf-brand-bar {
        padding-bottom: 14px;
        margin-bottom: 14px;
    }
    .bf-brand {
        gap: 10px;
    }
    .bf-brand__logo {
        height: 13px !important;
        max-width: 112px;
    }
    .bf-brand__sep {
        height: 12px;
    }
    .bf-brand__tagline {
        font-size: 12.5px;
    }
    .bf-grid {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .bf-col {
        width: 100%;
    }
    /* Contacts always visible first on mobile */
    .bf-col--contacts {
        order: -1;
        padding-bottom: 16px;
        margin-bottom: 2px;
        border-bottom: 1px solid #e8dfd0;
    }
    .bf-col--nav {
        border-bottom: 1px solid #e8dfd0;
    }
    .bf-col--nav:last-of-type {
        border-bottom: none;
    }
    .bf-col--nav .bf-col-title {
        display: none;
    }
    .bf-acc-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 44px;
        padding: 10px 0;
        background: transparent;
        border: none;
        font-family: inherit;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #2b2620;
        cursor: pointer;
        text-align: left;
    }
    .bf-acc-head svg {
        width: 16px;
        height: 16px;
        color: #9e7f3a;
        transition: transform 0.2s ease;
        flex-shrink: 0;
    }
    .bf-col--nav.is-open .bf-acc-head svg {
        transform: rotate(180deg);
    }
    .bf-col--nav .bf-links {
        display: none;
        padding: 0 0 12px;
        gap: 2px;
    }
    .bf-col--nav.is-open .bf-links {
        display: flex;
    }
    .bf-col--nav .bf-links a {
        display: block;
        padding: 6px 0;
        font-size: 14.5px;
    }
    .bf-msg-widget {
        height: 36px;
        padding: 0 14px 0 7px;
    }
    .bf-bottom {
        padding: 14px 0 22px;
    }
    .bf-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .bf-legal-links {
        gap: 8px 14px;
    }
    .bf-req-grid {
        grid-template-columns: 1fr;
    }
}
