/* cookie-consent.css — баннер согласия, слева внизу. Палитра проекта:
   тёмный #161616, акцент #6b5d4a / #9A8866, текст #444. */

.blcc {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 2147483000;
    width: 420px;
    max-width: calc(100vw - 48px);
    font-family: 'Gilroy', 'Alexandria', -apple-system, 'Segoe UI', Roboto, sans-serif;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .35s ease, transform .35s cubic-bezier(.22, .8, .3, 1);
    pointer-events: none;
}

.blcc.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.blcc.blcc-behind {
    z-index: 1030;   /* ниже .modal-backdrop (1040) на время открытой модалки */
}

.blcc[hidden] {
    display: none;
}

.blcc-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .04);
    overflow: hidden;
}

/* --- шапка: белая, тонкая золотая линия сверху, логотип + заголовок --- */
.blcc-card {
    border-top: 3px solid #9A8866;
}

.blcc-head {
    padding: 20px 22px 0;
}

.blcc-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.blcc-logo {
    height: 20px;
    width: auto;
    max-width: 160px;
    display: block;
}

.blcc-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f6f5f3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blcc-icon svg {
    width: 18px;
    height: 18px;
    fill: #9A8866;
}

.blcc-head strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: #161616;
    letter-spacing: .1px;
}

/* --- тело --- */
.blcc-view {
    padding: 10px 22px 20px;
}

.blcc-view[hidden] {
    display: none;
}

.blcc-intro {
    margin: 0 0 10px;
    font-size: .92rem;
    line-height: 1.6;
    color: #444;
}

.blcc-links {
    margin: 0 0 16px;
    font-size: .82rem;
    color: #999;
}

.blcc-links a {
    color: #6b5d4a;
    text-decoration: underline;
}

.blcc-links span {
    margin: 0 6px;
}

/* --- кнопки: главная широкая и тёмная, второстепенные тихие --- */
.blcc-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blcc .blcc-btn {
    font-family: inherit;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    border-radius: 9px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .12s ease;
}

.blcc .blcc-btn:focus-visible {
    outline: 2px solid #6b5d4a;
    outline-offset: 2px;
}

.blcc .blcc-btn-primary {
    width: 100%;
    height: 50px;
    background: #161616;
    color: #fff;
    border: 1px solid #161616;
}

.blcc .blcc-btn-primary:hover {
    background: #6b5d4a;
    border-color: #6b5d4a;
}

.blcc .blcc-btn-primary:active {
    transform: translateY(1px);
}

.blcc-actions-secondary {
    display: flex;
    gap: 10px;
}

.blcc .blcc-btn-ghost {
    flex: 1;
    height: 40px;
    background: #fff;
    color: #555;
    border: 1px solid #e2ded8;
    font-size: .8rem;
    letter-spacing: .5px;
}

.blcc .blcc-btn-ghost:hover {
    border-color: #6b5d4a;
    color: #161616;
}

/* --- категории --- */
.blcc-cats {
    list-style: none;
    margin: 0 0 16px;
    padding: 0 10px 0 0;          /* место под скроллбар, чтобы он не ложился на тумблеры */
    max-height: 46vh;
    overflow-y: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #d6d1ca transparent;
}

.blcc-cats::-webkit-scrollbar {
    width: 5px;
}

.blcc-cats::-webkit-scrollbar-thumb {
    background: #d6d1ca;
    border-radius: 5px;
}

.blcc-cats::-webkit-scrollbar-track {
    background: transparent;
}

.blcc-cat {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #efece7;
}

.blcc-cat:last-child {
    border-bottom: none;
}

.blcc-cat-name {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    color: #161616;
}

.blcc-cat-desc {
    display: block;
    margin-top: 3px;
    font-size: .8rem;
    line-height: 1.5;
    color: #666;
}

.blcc-always {
    flex-shrink: 0;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #6b5d4a;
    padding-top: 4px;
}

/* тумблер */
.blcc-switch {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 24px;
    margin: 2px 0 0;
    cursor: pointer;
}

.blcc-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.blcc-slider {
    position: absolute;
    inset: 0;
    background: #d6d1ca;
    border-radius: 24px;
    transition: background .2s ease;
}

.blcc-slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transition: transform .2s ease;
}

.blcc-switch input:checked + .blcc-slider {
    background: #6b5d4a;
}

.blcc-switch input:checked + .blcc-slider::before {
    transform: translateX(20px);
}

.blcc-switch input:focus-visible + .blcc-slider {
    outline: 2px solid #6b5d4a;
    outline-offset: 2px;
}

.blcc-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* --- мобильный: во всю ширину снизу --- */
@media (max-width: 600px) {
    .blcc {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
    }

    .blcc-card {
        border-radius: 16px 16px 0 0;
    }

    .blcc-head {
        padding: 18px 18px 0;
    }

    .blcc-view {
        padding: 8px 18px 18px;
    }

    .blcc-cats {
        max-height: 42vh;
        padding-right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blcc,
    .blcc-slider,
    .blcc-slider::before {
        transition: none;
    }
}

/* --- реквизиты Imprint внутри модалки: две колонки вместо пустого места от карты --- */
#privacyModal .blcc-imprint-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 32px;
    margin-bottom: 8px;
}

#privacyModal .blcc-imprint-grid p {
    margin: 0 0 10px;
}

@media (max-width: 600px) {
    #privacyModal .blcc-imprint-grid {
        grid-template-columns: 1fr;
    }
}
