/* Палитра адаптации: основной #3B82F6, акцент #22C55E, фон #FFFFFF, текст #1F2937 */
:root {
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;
  --primary-rgb: 59, 130, 246;
  --accent-50: #f0fdf4;
  --accent-100: #dcfce7;
  --accent-200: #bbf7d0;
  --accent-300: #86efac;
  --accent-400: #4ade80;
  --accent-500: #22c55e;
  --accent-600: #16a34a;
  --accent-700: #15803d;
  --accent-rgb: 34, 197, 94;
  --neutral-50: #ffffff;
  --neutral-100: #f9fafb;
  --neutral-200: #f3f4f6;
  --neutral-300: #e5e7eb;
  --neutral-500: #6b7280;
  --neutral-700: #374151;
  --neutral-900: #1f2937;
  --surface-primary: #ffffff;
  --surface-secondary: #f9fafb;
  --surface-accent: #eff6ff;
  --text-primary: #1f2937;
  --text-secondary: #374151;
  --text-accent: #3b82f6;
  --button-primary-bg: #3b82f6;
  --button-primary-text: #ffffff;
  --button-secondary-bg: #f3f4f6;
  --button-secondary-text: #1f2937;
  --border-light: #e5e7eb;
  --border-medium: #9ca3af;
}


.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 40rem;
  margin-inline: auto;
  display: none;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgb(1 4 9 / 0.55);
  padding: 1.5rem;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner__title { font-size: 1.125rem; font-weight: 700; color: #1f2937; margin-bottom: 0.5rem; }
.cookie-banner__text { color: #374151; font-size: 0.875rem; line-height: 1.6; margin-bottom: 1.25rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cookie-panel {
  position: fixed; inset: 0; z-index: 210; display: none;
  align-items: center; justify-content: center; padding: 1rem;
  background-color: rgb(1 4 9 / 0.55);
}
.cookie-panel.is-visible { display: flex; }
.cookie-panel__dialog {
  width: min(100%, 32rem); max-height: min(90vh, 40rem); overflow: auto;
  background-color: #ffffff; border-radius: 1rem; border: 1px solid #e5e7eb;
  box-shadow: 0 25px 50px -12px rgb(1 4 9 / 0.55); padding: 1.5rem;
}
.cookie-panel__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.cookie-panel__header h2 { font-size: 1.25rem; font-weight: 700; color: #1f2937; }
.cookie-panel__close {
  width: 44px; height: 44px; border: 1px solid #e5e7eb; border-radius: 0.5rem;
  background-color: #ffffff; color: #1f2937; flex-shrink: 0;
}
.cookie-panel__close:hover { background-color: #e7f0fe; border-color: #3b82f6; }
.cookie-panel__text { color: #374151; font-size: 0.875rem; line-height: 1.6; margin-bottom: 1.25rem; }
.cookie-panel__options { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.cookie-option {
  display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; padding: 1rem;
  border: 1px solid #e5e7eb; border-radius: 0.75rem; background-color: #e7f0fe;
}
.cookie-option input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; accent-color: #3b82f6; }
.cookie-option__title { font-weight: 700; color: #1f2937; }
.cookie-option__desc { margin: 0; color: #374151; font-size: 0.875rem; }
.cookie-panel__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cookie-toggle {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 190;
  min-width: 44px; min-height: 44px; padding: 0.7rem 0.95rem; border-radius: 999px;
  border: 1px solid #e5e7eb; background-color: #3b82f6; color: #ffffff;
  box-shadow: 0 10px 15px -3px rgb(1 4 9 / 0.55); display: inline-flex; align-items: center;
  gap: 0.4rem; font-size: 0.875rem; font-weight: 600;
}
.cookie-toggle:hover { background-color: #326ed1; }
.cookie-btn {
  min-height: 44px; padding: 0.625rem 1.25rem; border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.cookie-btn--primary { background-color: #3b82f6; color: #ffffff; border: 0; }
.cookie-btn--primary:hover { background-color: #326ed1; }
.cookie-btn--secondary { background-color: #e7f0fe; color: #3b82f6; border: 1px solid #e5e7eb; }
.cookie-btn--secondary:hover { border-color: #3b82f6; }
.cookie-btn--ghost { background-color: #ffffff; color: #374151; border: 1px solid #e5e7eb; }
.cookie-btn--ghost:hover { background-color: #e7f0fe; color: #3b82f6; }
@media (min-width: 768px) {
  .cookie-banner { left: auto; right: 1.5rem; bottom: 5.5rem; margin-inline: 0; }
  .cookie-toggle { right: 1.5rem; bottom: 1.5rem; }
}
