/* =========================================
   COOKIE-БАННЕР
   ========================================= */
.cc-banner {
    --cc-ink: #111111;
    --cc-paper: #FFFFFF;
    --cc-yellow: #FBBA06;
    --cc-purple: #4B1384;
    --cc-red: #9C0404;

    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 9999;
    width: min(600px, calc(100% - 32px));
    padding: 22px 24px 18px;
    background: var(--cc-paper);
    color: var(--cc-ink);
    border: 2px solid var(--cc-ink);
    border-radius: 25px;
    box-shadow: 8px 8px 0 var(--cc-ink);
    font-family: 'UbuntuLight', 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    text-align: left;

    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 24px);
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.35s;
}

.cc-banner.cc-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.cc-banner [hidden] {
    display: none !important;
}

.cc-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.cc-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.cc-banner .cc-title {
    margin: 0;
    font-family: 'CutoutOfFont', 'Arial Black', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--cc-ink);
}

.cc-banner .cc-text {
    margin: 0 0 16px;
    color: var(--cc-ink);
}

.cc-banner a {
    color: var(--cc-purple);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cc-banner a:hover {
    color: var(--cc-red);
}

/* --- Настройки --- */
.cc-settings {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 16px;
}

.cc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid #E2E2E2;
    border-radius: 15px;
}

.cc-row-text {
    display: flex;
    flex-direction: column;
}

.cc-row-text b {
    font-weight: 700;
}

.cc-row-text small {
    font-size: 0.82rem;
    color: #555555;
    line-height: 1.35;
}

.cc-switch {
    position: relative;
    flex-shrink: 0;
    width: 46px;
    height: 26px;
}

.cc-switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    z-index: 1;
}

.cc-slider {
    position: absolute;
    inset: 0;
    background: #D9D9D9;
    border: 2px solid var(--cc-ink);
    border-radius: 50px;
    transition: background 0.2s ease;
}

.cc-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--cc-paper);
    border: 2px solid var(--cc-ink);
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.cc-switch input:checked + .cc-slider {
    background: var(--cc-yellow);
}

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

.cc-switch input:focus-visible + .cc-slider {
    outline: 3px solid var(--cc-purple);
    outline-offset: 2px;
}

.cc-switch.is-locked {
    opacity: 0.55;
}

/* --- Кнопки --- */
.cc-actions {
    display: flex;
    gap: 10px;
}

.cc-btn {
    flex: 1 1 0;
    min-height: 48px;
    padding: 10px 16px;
    border: 2px solid var(--cc-ink);
    border-radius: 50px;
    font-family: 'CutoutOfFont', 'Arial Black', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.1;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cc-btn-dark {
    background: var(--cc-ink);
    color: var(--cc-paper);
}

.cc-btn-light {
    background: var(--cc-paper);
    color: var(--cc-ink);
}

.cc-btn:hover {
    transform: translateY(-2px);
}

.cc-btn-dark:hover {
    background: var(--cc-paper);
    color: var(--cc-ink);
}

.cc-btn-light:hover {
    background: var(--cc-yellow);
}

.cc-btn:focus-visible,
.cc-link:focus-visible {
    outline: 3px solid var(--cc-purple);
    outline-offset: 3px;
}

.cc-link {
    display: block;
    margin: 12px auto 0;
    padding: 2px 6px;
    background: none;
    border: 0;
    color: var(--cc-ink);
    font: inherit;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cc-link:hover {
    color: var(--cc-purple);
}

@media (max-width: 900px) {
    .cc-banner {
        bottom: 12px;
        width: calc(100% - 24px);
        padding: 18px 18px 14px;
        border-radius: 20px;
        box-shadow: 5px 5px 0 var(--cc-ink);
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .cc-actions {
        flex-direction: column;
    }

    .cc-banner .cc-title {
        font-size: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cc-banner,
    .cc-btn,
    .cc-slider,
    .cc-slider::after {
        transition: none;
    }
}

@media print {
    .cc-banner {
        display: none !important;
    }
}
