/* Cookie consent — соответствие DSGVO/ePrivacy (opt-in) */
.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cc-overlay.cc-show { display: flex; }
body.cc-lock { overflow: hidden !important; }
.cc-banner {
  width: 100%;
  max-width: 480px;
  background: #161616;
  border: 1px solid rgba(0, 183, 74, 0.4);
  border-radius: 16px;
  color: #e6e6e6;
  padding: 26px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
.cc-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cc-text { font-size: 0.92rem; line-height: 1.55; color: #c8c8c8; }
.cc-text a { color: #00b74a; }
.cc-actions { display: flex; flex-direction: column; gap: 10px; }
.cc-actions .cc-btn { width: 100%; }
.cc-btn {
  border: none;
  border-radius: 50px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.cc-accept { background: #00b74a; color: #fff; }
.cc-accept:hover { background: #00a343; }
.cc-reject { background: rgba(255, 255, 255, 0.12); color: #fff; }
.cc-reject:hover { background: rgba(255, 255, 255, 0.22); }
.cc-customize { background: transparent; color: #c8c8c8; text-decoration: underline; }

.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cc-modal.cc-show { display: flex; }
.cc-dialog {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  max-width: 540px;
  width: 100%;
  padding: 24px;
  max-height: 90vh;
  overflow: auto;
}
.cc-dialog h3 { color: #00b74a; font-weight: 700; margin: 0 0 8px; }
.cc-dialog .cc-lead { color: #b0b0b0; font-size: 0.88rem; margin-bottom: 8px; }
.cc-cat {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.cc-cat h4 { font-size: 0.95rem; margin: 0 0 4px; color: #fff; }
.cc-cat p { font-size: 0.8rem; color: #9a9a9a; margin: 0; }
.cc-toggle { position: relative; width: 46px; height: 24px; flex: none; }
.cc-toggle input { opacity: 0; width: 0; height: 0; }
.cc-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #444;
  border-radius: 24px;
  transition: 0.2s;
}
.cc-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.cc-toggle input:checked + .cc-slider { background: #00b74a; }
.cc-toggle input:checked + .cc-slider::before { transform: translateX(22px); }
.cc-toggle input:disabled + .cc-slider { background: #00b74a; opacity: 0.5; cursor: not-allowed; }
.cc-dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.cc-dialog-actions .cc-btn { flex: 1 1 auto; text-align: center; }
.cc-link {
  background: none;
  border: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
}
