/* ============================================================
   Окно согласия на файлы cookie. Подключается на всех страницах.
   2026-09
   ============================================================ */

.cc-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 10050;
    background: #fff;
    border-top: 3px solid #294079;
    box-shadow: 0 -2px 16px rgba(0,0,0,.18);
    padding: 18px 20px;
    font: 14px/1.5 Helvetica, Arial, sans-serif;
    color: #23374f;
    display: none;
}
.cc-bar.cc-on { display: block; }

.cc-inner { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.cc-text { flex: 1 1 auto; margin: 0; }
.cc-text a { color: #294079; text-decoration: underline; }
.cc-actions { flex: 0 0 auto; display: flex; gap: 10px; align-items: center; }

.cc-btn {
    display: inline-block;
    padding: 11px 22px;
    border: 1px solid #294079;
    border-radius: 4px;
    background: #fff;
    color: #294079;
    font: 600 14px/1 Helvetica, Arial, sans-serif;
    cursor: pointer;
    white-space: nowrap;
}
.cc-btn:hover { background: #eef1f7; }
.cc-btn.cc-primary { background: #294079; color: #fff; }
.cc-btn.cc-primary:hover { background: #1e3060; }
.cc-btn.cc-plain { border-color: transparent; text-decoration: underline; padding-left: 8px; padding-right: 8px; }

/* окно настроек */
.cc-overlay {
    position: fixed; inset: 0; z-index: 10060;
    background: rgba(20,28,45,.5);
    display: none;
}
.cc-overlay.cc-on { display: block; }

.cc-dialog {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 92%; max-width: 620px; max-height: 88vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff; border-radius: 6px;
    font: 14px/1.5 Helvetica, Arial, sans-serif; color: #23374f;
}
.cc-dialog h2 {
    margin: 0; padding: 18px 22px;
    background: #294079; color: #fff;
    font: 600 16px/1.2 Helvetica, Arial, sans-serif;
    border-radius: 6px 6px 0 0;
}
.cc-dialog .cc-body { padding: 8px 22px 4px; }
.cc-dialog .cc-foot {
    padding: 14px 22px 20px;
    display: flex; gap: 10px; flex-wrap: wrap;
    border-top: 1px solid #edf0f5;
}

.cc-group { padding: 16px 0; border-bottom: 1px solid #edf0f5; }
.cc-group:last-child { border-bottom: 0; }
.cc-group-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cc-group-name { font-weight: 600; }
.cc-group p { margin: 6px 0 0; color: #5c7099; font-size: 13px; }
.cc-group .cc-fixed { color: #8b97ab; font-size: 13px; white-space: nowrap; }

/* переключатель */
.cc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-switch span {
    position: absolute; inset: 0; border-radius: 26px;
    background: #c9d2e3; transition: background .15s ease; pointer-events: none;
}
.cc-switch span::before {
    content: ""; position: absolute; left: 3px; top: 3px;
    width: 20px; height: 20px; border-radius: 50%; background: #fff;
    transition: transform .15s ease;
}
.cc-switch input:checked + span { background: #294079; }
.cc-switch input:checked + span::before { transform: translateX(20px); }
.cc-switch input:focus-visible + span { outline: 2px solid #294079; outline-offset: 2px; }

/* ссылка в подвале */
.cc-link { background: none; border: 0; padding: 0; color: inherit;
           font: inherit; text-decoration: underline; cursor: pointer; }

@media (max-width: 767px) {
    .cc-bar { padding: 14px 15px; }
    .cc-inner { display: block; }
    .cc-text { margin-bottom: 12px; font-size: 13px; }
    .cc-actions { display: block; }
    .cc-actions .cc-btn { display: block; width: 100%; margin-bottom: 8px; text-align: center; }
    .cc-dialog h2 { font-size: 15px; padding: 15px 18px; }
    .cc-dialog .cc-body { padding: 6px 18px 2px; }
    .cc-dialog .cc-foot { padding: 12px 18px 18px; }
    .cc-dialog .cc-foot .cc-btn { flex: 1 1 100%; text-align: center; }
}
