/* Баннер cookie и окно настроек (consent.js). */
.ck-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 3000;
    width: min(1080px, calc(100% - 32px));
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: #FFFFFF;
    border: 1px solid #E7ECF6;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
    font-family: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
    color: #0F1115;
}

.ck-banner__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 13px;
    background: #F1F5FF;
    color: #1F62F5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ck-banner__text {
    margin: 0;
    flex-grow: 1;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #2B3240;
}

.ck-banner__actions,
.ck-dialog__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.ck-dialog__actions { justify-content: flex-end; }

.ck-link,
.ck-link-btn {
    color: #1F62F5;
    font-weight: 700;
    text-decoration: none;
}

.ck-link:hover,
.ck-link-btn:hover { text-decoration: underline; }

.ck-link-btn {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.ck-btn {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 13px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.ck-btn--quiet { border: 1px solid #E7ECF6; background: #FFFFFF; color: #4A5365; }
.ck-btn--ghost { border: 1px solid #C9D8FF; background: #FFFFFF; color: #1F62F5; }
.ck-btn--primary { border: 0; background: #1F62F5; color: #FFFFFF; }
.ck-btn:hover { filter: brightness(0.97); }
.ck-btn:focus-visible,
.ck-switch:focus-visible,
.ck-close:focus-visible { outline: 3px solid rgba(31, 98, 245, 0.45); outline-offset: 2px; }

.ck-modal {
    position: fixed;
    inset: 0;
    z-index: 3100;
    background: rgba(15, 17, 21, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
}

.ck-dialog {
    width: min(560px, 100%);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 26px;
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #0F1115;
}

.ck-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ck-dialog__title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }

.ck-close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #F4F6FB;
    color: #4A5365;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ck-list { display: flex; flex-direction: column; border: 1px solid #E7ECF6; border-radius: 18px; }
.ck-row { display: flex; gap: 16px; align-items: center; padding: 16px 18px; }
.ck-row + .ck-row { border-top: 1px solid #E7ECF6; }
.ck-row__body { flex-grow: 1; display: flex; flex-direction: column; gap: 4px; }
.ck-row__title { font-size: 15px; font-weight: 800; }
.ck-row__text { font-size: 13px; font-weight: 600; color: #5B6474; line-height: 1.45; }

.ck-chip {
    padding: 6px 11px;
    border-radius: 999px;
    background: #E9F8F1;
    color: #0F6B4B;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.ck-switch {
    width: 52px;
    height: 32px;
    padding: 3px;
    border: 0;
    border-radius: 999px;
    background: #D9E2F2;
    display: flex;
    justify-content: flex-start;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ck-switch[aria-checked="true"] { background: #1F62F5; justify-content: flex-end; }

.ck-switch__knob {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #FFFFFF;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.2);
}

.ck-note { margin: 0; font-size: 13px; font-weight: 600; color: #5B6474; }

@media (max-width: 860px) {
    .ck-banner { flex-wrap: wrap; bottom: 12px; padding: 16px; gap: 12px; }
    .ck-banner__icon { display: none; }
    .ck-banner__actions { width: 100%; flex-wrap: wrap; }
    .ck-banner__actions .ck-btn { flex: 1 1 auto; }
    .ck-dialog__actions { flex-wrap: wrap; }
    .ck-dialog__actions .ck-btn { flex: 1 1 auto; }
}

[data-theme="dark"] .ck-banner,
[data-theme="dark"] .ck-dialog {
    background: #111B2E;
    border-color: rgba(160, 183, 220, 0.22);
    color: #F2F6FF;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .ck-banner__text { color: #D5DFF2; }
[data-theme="dark"] .ck-banner__icon { background: rgba(71, 129, 235, 0.18); color: #5AA2FF; }
[data-theme="dark"] .ck-link,
[data-theme="dark"] .ck-link-btn { color: #5AA2FF; }
[data-theme="dark"] .ck-btn--quiet { background: transparent; border-color: rgba(160, 183, 220, 0.3); color: #D5DFF2; }
[data-theme="dark"] .ck-btn--ghost { background: transparent; border-color: rgba(90, 162, 255, 0.5); color: #8CC0FF; }
[data-theme="dark"] .ck-close { background: rgba(160, 183, 220, 0.12); color: #D5DFF2; }
[data-theme="dark"] .ck-list,
[data-theme="dark"] .ck-row + .ck-row { border-color: rgba(160, 183, 220, 0.2); }
[data-theme="dark"] .ck-row__text,
[data-theme="dark"] .ck-note { color: #9AADCC; }
[data-theme="dark"] .ck-chip { background: rgba(15, 107, 75, 0.25); color: #7FE0B6; }
[data-theme="dark"] .ck-switch { background: rgba(160, 183, 220, 0.3); }
[data-theme="dark"] .ck-switch[aria-checked="true"] { background: #3C7BFF; }
