.site-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 99999;
}

.site-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
}

.site-modal-card {
  position: relative;
  width: min(100%, 420px);
  padding: 32px 28px 24px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  text-align: center;
  z-index: 1;
}

.site-modal-status {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.site-modal-status.success {
  background: #e9f9ef;
  color: #138a36;
}

.site-modal-status.error {
  background: #fff0f0;
  color: #c62828;
}

.site-modal-title {
  margin: 0 0 10px;
  color: #172033;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.site-modal-text {
  margin: 0;
  color: #5d6881;
  font-size: 16px;
  line-height: 1.6;
}

.site-modal-actions {
  margin-top: 22px;
}

.site-modal-button {
  min-width: 160px;
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  background: #1e73be;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-modal-button:hover,
.site-modal-button:focus {
  background: #155a96;
  transform: translateY(-1px);
}

.site-modal-button:focus-visible {
  outline: 3px solid rgba(30, 115, 190, 0.25);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .site-modal {
    padding: 16px;
  }

  .site-modal-card {
    padding: 28px 20px 20px;
    border-radius: 16px;
  }

  .site-modal-title {
    font-size: 24px;
  }

  .site-modal-text {
    font-size: 15px;
  }
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #172033;
  color: #ffffff;
  box-shadow: 0 14px 38px rgba(6, 15, 32, 0.36);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.cookie-banner.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.cookie-banner__content {
  min-width: 0;
}

.cookie-banner__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.cookie-banner__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #dbe4ff;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-banner__btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.cookie-banner__btn--secondary {
  background: #2d3a56;
  color: #ffffff;
}

.cookie-banner__btn--secondary:hover,
.cookie-banner__btn--secondary:focus {
  background: #354566;
}

.cookie-banner__btn--primary {
  background: #7bad09;
  color: #111111;
}

.cookie-banner__btn--primary:hover,
.cookie-banner__btn--primary:focus {
  background: #8dc40a;
}

@media (max-width: 767px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }

  .cookie-banner__actions {
    justify-content: stretch;
  }

  .cookie-banner__btn {
    flex: 1;
  }
}
