.am-activity {
  background: #fff;
  border: 1px solid #d9dfdc;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(29, 36, 40, 0.08);
  overflow: hidden;
}

.am-activity-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.am-activity__image img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
  width: 100%;
}

.am-activity__body {
  padding: clamp(1.25rem, 4vw, 2.25rem);
}

.am-activity h2 {
  color: #1d2428;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.am-activity__date {
  color: #5f6d72;
  font-weight: 700;
  margin: 0 0 1.25rem;
}

.am-open-modal,
.am-registration-form button {
  background: #0f766e;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  padding: 0.72rem 1rem;
}

.am-modal {
  align-items: center;
  display: none;
  inset: 0;
  justify-content: center;
  padding: 1.25rem;
  position: fixed;
  isolation: isolate;
  z-index: 2147483647;
}

.am-modal.is-open {
  display: flex;
}

.am-modal__backdrop {
  background: rgba(29, 36, 40, 0.58);
  inset: 0;
  position: absolute;
  z-index: 0;
}

.am-modal__panel {
  background: #fff;
  border: 1px solid #d9dfdc;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(29, 36, 40, 0.22);
  color: #1d2428;
  max-height: min(760px, calc(100vh - 2.5rem));
  max-width: 620px;
  overflow: auto;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  position: relative;
  width: min(100%, 620px);
  z-index: 1;
}

.am-modal__close {
  align-items: center;
  background: transparent;
  border: 1px solid #d9dfdc;
  border-radius: 999px;
  color: #1d2428;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.5rem;
  height: 2.5rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 2.5rem;
}

.am-registration-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.am-registration-form label {
  color: #1d2428;
  font-weight: 800;
}

.am-registration-form input,
.am-registration-form select,
.am-registration-form textarea {
  border: 1px solid #d9dfdc;
  border-radius: 8px;
  color: #1d2428;
  font: inherit;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

body.am-modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .am-activity-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) and (max-width: 1020px) {
  .am-activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
