/* Баннер согласия на cookie */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1055;
    padding: 0.85rem clamp(0.85rem, 3vw, 1.5rem) calc(0.85rem + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
}

.cookie-consent.is-visible {
    pointer-events: auto;
}

.cookie-consent__panel {
    max-width: 42rem;
    margin: 0 auto;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    background: rgba(20, 20, 20, 0.96);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}

.cookie-consent__title {
    margin: 0 0 0.45rem;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
}

.cookie-consent__text {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
}

.cookie-consent__text a {
    color: #d8b995;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.cookie-consent__text a:hover {
    color: #fff;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cookie-consent__actions .btn-outline-light {
    --bs-btn-color: #fff;
    --bs-btn-border-color: rgba(255, 255, 255, 0.35);
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.08);
    --bs-btn-hover-border-color: rgba(255, 255, 255, 0.5);
    --bs-btn-hover-color: #fff;
}

@media (max-width: 575.98px) {
    .cookie-consent__actions .btn {
        flex: 1 1 auto;
        min-width: 9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent__panel {
        backdrop-filter: none;
    }
}
