/* Cookie Consent — site6.com, палитра: винный, тёмно-синий */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal.hidden { display: none; }

.cookie-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 39, 68, 0.6);
  backdrop-filter: blur(4px);
}

.cookie-modal-content {
  position: relative;
  background: #FFFFF0;
  border-radius: 12px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(15, 39, 68, 0.25);
  border: 1px solid #e8e4df;
}

.cookie-modal-title {
  font-size: 1.35rem;
  font-weight: bold;
  color: #0f2744;
  margin-bottom: 10px;
}

.cookie-modal-text {
  color: #3d2314;
  margin-bottom: 20px;
  line-height: 1.55;
  font-size: 0.95rem;
}

.cookie-categories { margin-bottom: 20px; }

.cookie-category {
  border: 1px solid #e8e4df;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
  background: #fffef9;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.cookie-category-label {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #0f2744;
  cursor: pointer;
}

.cookie-category-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  cursor: pointer;
  accent-color: #722F37;
}

.cookie-category-label input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.cookie-category-status { font-size: 0.75rem; color: #5C4033; font-weight: normal; }

.cookie-category-description {
  color: #5C4033;
  font-size: 0.875rem;
  line-height: 1.45;
  margin: 0;
}

.cookie-modal-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cookie-btn {
  flex: 1;
  min-width: 130px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.cookie-btn-primary {
  background: #722F37;
  color: #FFFFF0;
}

.cookie-btn-primary:hover {
  background: #5a262c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(114, 47, 55, 0.35);
}

.cookie-btn-secondary {
  background: #0f2744;
  color: #FFFFF0;
}

.cookie-btn-secondary:hover {
  background: #0a1c2e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 39, 68, 0.35);
}

.cookie-btn-tertiary {
  background: #e8e4df;
  color: #3d2314;
}

.cookie-btn-tertiary:hover {
  background: #ddd8d0;
  transform: translateY(-1px);
}

.cookie-modal-footer {
  text-align: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e8e4df;
}

.cookie-policy-link {
  color: #722F37;
  text-decoration: none;
  font-size: 0.875rem;
}

.cookie-policy-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .cookie-modal-content { padding: 18px; max-height: 95vh; }
  .cookie-modal-title { font-size: 1.15rem; }
  .cookie-modal-buttons { flex-direction: column; }
  .cookie-btn { width: 100%; }
  .cookie-category-header { flex-direction: column; align-items: flex-start; gap: 6px; }
}
