/**
 * Footer v5 — layout-v.2.0.php only (local).
 * Contacts left, three link columns, bottom bar. Matches header-pc-v2 palette.
 */
.cb-footer-v5 {
    --cb-footer-line: #222222;
    background: var(--cb-header-bg, #000000);
    border-top: 1px solid var(--cb-header-accent, #ffbb00);
    color: var(--cb-header-text, #ffffff);
    clear: both;
    font-family: 'Roboto Condensed', sans-serif;
    padding: 28px 24px 18px;
}

.cb-footer-v5 a {
    color: var(--cb-header-text, #ffffff);
    text-decoration: none;
}

.cb-footer-v5 a:hover {
    color: var(--cb-header-accent, #ffbb00);
}

html[data-theme="dark"] .cb-footer-v5 a:link,
html[data-theme="dark"] .cb-footer-v5 a:visited,
html[data-theme="dark"] .cb-footer-v5 a:active {
    color: var(--cb-header-text, #ffffff);
}

html[data-theme="dark"] .cb-footer-v5 a:hover {
    color: var(--cb-header-accent, #ffbb00);
}

html[data-theme="dark"] .cb-footer-v5-price a:link,
html[data-theme="dark"] .cb-footer-v5-price a:visited,
html[data-theme="dark"] .cb-footer-v5-price a:active {
    color: var(--cb-header-muted, #b8b8b8);
}

html[data-theme="dark"] .cb-footer-v5-price a:hover {
    color: var(--cb-header-accent, #ffbb00);
}

.cb-footer-v5-inner {
    display: grid;
    gap: 40px;
    grid-template-columns: 30% 66%;
    margin: 0 auto;
    max-width: 1200px;
}

.cb-footer-v5-logo {
    display: inline-block;
    line-height: 0;
    padding-bottom: 10px;
}

.cb-footer-v5-logo img {
    display: block;
    height: 40px;
    max-width: 155px;
    width: auto;
}

.cb-footer-v5-tagline {
    color: var(--cb-header-muted, #b8b8b8);
    font-size: 12px;
    margin-top: 4px;
}

.cb-footer-v5-phone {
    color: var(--cb-header-accent, #ffbb00);
    display: block;
    font-size: 22px;
    font-weight: 500;
    margin: 10px 0 12px;
}

.cb-footer-v5-muted {
    color: var(--cb-header-muted, #b8b8b8);
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
}

.cb-footer-v5-muted + .cb-footer-v5-muted {
    margin-top: 6px;
}

.cb-footer-v5-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.cb-footer-v5-social a {
    display: inline-flex;
    line-height: 0;
}

.cb-footer-v5-social img {
    display: block;
    height: 23px;
    opacity: 0.9;
    width: 23px;
}

.cb-footer-v5-cols {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
    padding-top: 10px;
}

.cb-footer-v5-title {
    /* color: var(--cb-header-accent, #ffbb00); */
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cb-footer-v5-accordion {
    display: block;
}

.cb-footer-v5-accordion summary.cb-footer-v5-title {
    list-style: none;
    margin-bottom: 12px;
}

.cb-footer-v5-accordion summary.cb-footer-v5-title::-webkit-details-marker {
    display: none;
}

.cb-footer-v5-chevron {
    display: none;
}

.cb-footer-v5-panel {
    display: block;
}

@media (min-width: 769px) {
    .cb-footer-v5-accordion summary.cb-footer-v5-title {
        pointer-events: none;
    }

    .cb-footer-v5-accordion .cb-footer-v5-panel {
        display: block !important;
    }
}

.cb-footer-v5-link {
    display: block;
    font-size: 14px;
    line-height: 1.9;
}

.cb-footer-v5-bar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 20px auto 0;
    max-width: 1200px;
    padding-top: 16px;
}

.cb-footer-v5-copy {
    color: var(--cb-header-muted, #b8b8b8);
    font-size: 12px;
}

.cb-footer-v5-price {
    color: var(--cb-header-muted, #b8b8b8);
    font-size: 12px;
}

.cb-footer-v5-price a {
    color: var(--cb-header-muted, #b8b8b8);
}

.cb-footer-v5-price a:hover {
    color: var(--cb-header-accent, #ffbb00);
}

@media (max-width: 768px) {
    .cb-footer-v5 {
        padding: 20px 16px 16px;
    }

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

    .cb-footer-v5-contact {
        align-items: center;
        display: flex;
        flex-direction: column;
        padding-bottom: 20px;
        text-align: center;
    }

    .cb-footer-v5-logo {
        margin: 0 auto;
    }

    .cb-footer-v5-social {
        justify-content: center;
    }

    .cb-footer-v5-cols {
        gap: 0;
        grid-template-columns: 1fr;
    }

    .cb-footer-v5-section {
        border-bottom: 1px solid var(--cb-footer-line);
        border-top: 1px solid var(--cb-footer-line);
        padding: 0;
    }

    .cb-footer-v5-section:last-child {
        border-bottom: 1px solid var(--cb-footer-line);
    }

    .cb-footer-v5-accordion summary.cb-footer-v5-title {
        align-items: center;
        cursor: pointer;
        display: flex;
        font-size: 16px;
        justify-content: space-between;
        margin-bottom: 0;
        padding: 14px 0;
    }

    .cb-footer-v5-chevron {
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 6px solid var(--cb-header-text, #ffffff);
        display: block;
        flex-shrink: 0;
        height: 0;
        margin-left: 12px;
        transition: transform 0.2s ease;
        width: 0;
    }

    .cb-footer-v5-accordion[open] .cb-footer-v5-chevron {
        transform: rotate(180deg);
    }

    .cb-footer-v5-panel {
        padding-bottom: 12px;
    }

    .cb-footer-v5-link {
        font-size: 15px;
        line-height: 2;
    }

    .cb-footer-v5-bar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* /bottled-beers, /beer-sets: mobile footer full viewport width (layout body.cb-page-catalog-mobile-footer) */
@media (max-width: 768px) {
    body.cb-page-catalog-mobile-footer {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    body.cb-page-catalog-mobile-footer .wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: visible;
    }

    body.cb-page-catalog-mobile-footer .cb-footer-v5,
    body.cb-page-catalog-mobile-footer .cb-footer-legal {
        position: relative;
        left: 50%;
        right: auto;
        width: 100vw;
        max-width: 100vw;
        margin-left: -50vw;
        margin-right: 0;
        box-sizing: border-box;
    }
}

/* Юридический блок подвала (бывший .footer3) — layout-v.2.0.php only */
.cb-footer-legal {
    background: #000;
    color: #ffffff;
    padding: 30px 0;
    text-align: center;
}

.cb-footer-legal-inner {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1000px;
    padding: 0;
    width: 100%;
}

.cb-footer-legal-admin {
    clear: both;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.cb-footer-legal-admin-item {
    float: left;
    padding: 0 5px;
}

.cb-footer-legal-clear {
    clear: both;
}

.cb-footer-legal-disclaimer {
    clear: both;
    font-size: 13px;
    margin: 0 auto 10px;
    width: calc(100% - 20px);
}

.cb-footer-legal-age {
    clear: both;
    font-size: 13px;
}

.cb-footer-legal-address-row {
    clear: both;
    color: #ffbb00;
    font-size: 16px;
}

.cb-footer-legal-address {
    display: flex;
    float: left;
    height: 25px;
    justify-content: right;
    margin: 0 auto;
    width: 50%;
}

.cb-footer-legal-address--hours {
    justify-content: left;
}

.cb-footer-legal-address-text {
    margin: 0 20px;
}

.cb-footer-legal-copyright {
    clear: both;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.cb-footer-legal-copyright-item {
    float: left;
    padding: 0 5px;
}

.cb-footer-legal-spacer {
    clear: both;
    margin-bottom: 20px;
}

html[data-theme="dark"] .cb-footer-legal {
    background-color: #000;
    color: #e8e8e8;
}

@media (max-width: 990px) {
    .cb-footer-legal-address {
        clear: both;
        float: none;
        height: 25px;
        justify-content: center;
        margin: 0 auto;
        width: 100%;
    }

    .cb-footer-legal-address--hours {
        justify-content: center;
    }
}
