/* Плашка согласия на cookie */
.cc-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10000;
    background: #fff; color: #333;
    box-shadow: 0 -2px 12px rgba(0,0,0,.15);
    font-size: 14px; line-height: 1.5;
}
.cc-banner__inner {
    max-width: 1170px; margin: 0 auto; padding: 16px 15px;
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cc-banner__text { flex: 1 1 420px; }
.cc-banner__text a, .cc-modal a { color: #2a6db0; text-decoration: underline; }
.cc-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.cc-btn {
    display: inline-block; padding: 8px 16px; border: 1px solid #bbb; border-radius: 3px;
    background: #fff; color: #333; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.cc-btn:hover { border-color: #888; }
.cc-btn--primary { background: #2a6db0; border-color: #2a6db0; color: #fff; }
.cc-btn--primary:hover { background: #235c95; border-color: #235c95; }
.cc-btn--link { border-color: transparent; background: none; text-decoration: underline; padding-left: 6px; padding-right: 6px; }
.cc-btn:focus-visible, .cc-cat input:focus-visible + .cc-switch { outline: 2px solid #2a6db0; outline-offset: 2px; }

.cc-modal {
    position: fixed; inset: 0; z-index: 10001;
    background: rgba(0,0,0,.5);
    display: flex; align-items: center; justify-content: center; padding: 15px;
}
.cc-modal__box {
    position: relative; background: #fff; color: #333; max-width: 560px; width: 100%;
    max-height: 90vh; overflow: auto; padding: 24px; border-radius: 4px;
    font-size: 14px; line-height: 1.5;
}
.cc-modal__title { margin: 0 0 12px; font-size: 20px; }
.cc-modal__intro { margin-bottom: 16px; }
.cc-modal__close {
    position: absolute; top: 8px; right: 12px; border: 0; background: none;
    font-size: 28px; line-height: 1; cursor: pointer; color: #666;
}
.cc-cat { border-top: 1px solid #eee; padding: 12px 0; }
.cc-cat__head { display: flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; font-weight: 600; }
.cc-cat__head small { font-weight: 400; color: #777; }
.cc-cat__desc { margin: 6px 0 0 52px; color: #555; }
.cc-cat input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cc-switch {
    flex: none; position: relative; width: 42px; height: 24px; border-radius: 12px;
    background: #ccc; transition: background .2s;
}
.cc-switch::after {
    content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
    border-radius: 50%; background: #fff; transition: transform .2s;
}
.cc-cat input:checked + .cc-switch { background: #2a6db0; }
.cc-cat input:checked + .cc-switch::after { transform: translateX(18px); }
.cc-cat input:disabled + .cc-switch { opacity: .6; }
.cc-modal__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

@media (max-width: 600px) {
    .cc-banner__actions { width: 100%; }
    .cc-banner__actions .cc-btn { flex: 1 1 auto; text-align: center; }
}
