/* ========================================
   COOKIE-БАННЕР (Адаптация под бренд)
   ======================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(26, 32, 44, 0.98); /* --color-dark с прозрачностью */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(227, 30, 36, 0.4); /* Красный акцент */
  padding: 10px 20px;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner-hiding {
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-banner-text {
  color: #ffffff;
  font-size: 12px; /* Чуть увеличил для читаемости */
  line-height: 1.4;
  margin: 0;
  flex: 1;
}

.cookie-banner-text a {
  color: #E31E24; /* Красный */
  text-decoration: underline;
}

.cookie-banner-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: #E31E24; /* Красный */
  color: #ffffff;
}

.cookie-btn-accept:hover {
  background: #C4191E;
}

.cookie-btn-reject {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== Панель настроек ===== */
.cookie-settings-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 380px;
  max-width: calc(100vw - 40px);
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  z-index: 10000;
  border: 1px solid #e2e8f0;
}

.cookie-settings-panel h3 {
  font-size: 18px;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.cookie-settings-desc {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 18px;
  line-height: 1.5;
}

.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  border: 1px solid #e2e8f0;
}

.cookie-category input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.cookie-category div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cookie-category strong {
  font-size: 14px;
  color: #0f172a;
}

.cookie-category span {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.cookie-settings-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.cookie-settings-actions .cookie-btn {
  flex: 1;
  padding: 10px;
  font-size: 13px;
}

/* Адаптив */
@media (max-width: 900px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cookie-banner-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .cookie-banner-buttons {
    flex-direction: column;
  }
  .cookie-btn {
    width: 100%;
    padding: 10px;
  }
}