/* Cookie Consent — site7.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(30, 58, 95, 0.6);
  backdrop-filter: blur(4px);
}

.cookie-modal-content {
  position: relative;
  background: #FFFFFF;
  border-radius: 12px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(30, 58, 95, 0.2);
  border: 1px solid #E8ECF0;
}

.cookie-modal-title {
  font-size: 1.35rem;
  font-weight: bold;
  color: #1E3A5F;
  margin-bottom: 10px;
}

.cookie-modal-text {
  color: #2D3748;
  margin-bottom: 20px;
  line-height: 1.55;
  font-size: 0.95rem;
}

.cookie-categories { margin-bottom: 20px; }

.cookie-category {
  border: 1px solid #E8ECF0;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
  background: #F8FAFC;
}

.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: #1E3A5F;
  cursor: pointer;
}

.cookie-category-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  cursor: pointer;
  accent-color: #00B4D8;
}

.cookie-category-label input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.cookie-category-status { font-size: 0.75rem; color: #2D3748; font-weight: normal; }

.cookie-category-description {
  color: #2D3748;
  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: #00B4D8;
  color: #FFFFFF;
}

.cookie-btn-primary:hover {
  background: #0096B8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.35);
}

.cookie-btn-secondary {
  background: #1E3A5F;
  color: #FFFFFF;
}

.cookie-btn-secondary:hover {
  background: #152A47;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.35);
}

.cookie-btn-tertiary {
  background: #E8ECF0;
  color: #2D3748;
}

.cookie-btn-tertiary:hover {
  background: #D8DCE0;
  transform: translateY(-1px);
}

.cookie-modal-footer {
  text-align: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #E8ECF0;
}

.cookie-policy-link {
  color: #00B4D8;
  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; }
}
