body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #20273a;
  background: #fafdff;
  font-size: 1.09rem;
  line-height: 1.4;
  margin: 0;
}
header {
  background: #ecf2fa;
  padding: 1.7rem 0 1.1rem 0;
  text-align: center;
}
h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #233c7a;
  margin: 0 0 1.3rem 0;
}
nav {
  margin-bottom: 0.5rem;
}
.range-btn {
  background: #f7f9ff;
  color: #233c7a;
  border: 1px solid #bed6fa;
  border-radius: 1.7rem;
  padding: 0.58em 1.7em;
  font-size: 1.03rem;
  font-weight: 600;
  margin: 0 0.45em;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}
.range-btn.active,
.range-btn:hover,
.range-btn:focus {
  background: #3959c9;
  color: #fff;
  border-color: #3959c9;
  outline: none;
}

main {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 0 1.5rem;
  background: #fff;
}
.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.event-card {
  background: #f5f8fe;
  border-radius: 1.7rem;
  box-shadow: 0 2px 9px 0 rgba(42,56,119,0.07);
  margin: 2.1rem auto 2.1rem auto;
  padding: 2.3rem 2.7rem 2.3rem 2.7rem;
  max-width: 55rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.event-figure {
  margin: 0 0 1rem 0;
  text-align: center;
}
.event-img {
  max-width: 100%;
  height: auto;
  border-radius: 1.1rem;
  box-shadow: 0 1px 8px 0 rgba(60,70,180,0.09);
}
.img-alt-photographer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.6em;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 0.3em;
  font-size: 0.99em;
}
.event-img-alt, .event-img-photographer {
  font-size: 0.99em;
  color: #3a4066;
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height: 1.38;
  text-align: center;
  word-break: break-word;
  white-space: normal;
}
@media (max-width: 35rem) {
  .img-alt-photographer {
    flex-direction: column;
    gap: 0.2em;
  }
}
.event-info {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.event-title {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  color: #233c7a;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.2em;
}
.event-title:hover, .event-title:focus {
  color: #3f87fa;
  text-decoration: underline;
}
.event-desc-short {
  font-size: 1.11rem;
  color: #2d3853;
  font-weight: 400;
  margin: 0.15rem 0 0.3rem 0;
  line-height: 1.32;
}
.event-field {
  margin-top: 0.3em;
}
.event-description {
  font-size: 1.11rem;
  color: #444d65;
  margin: 0.55em 0 0.4em 0;
  line-height: 1.2;
  word-break: break-word;
}
.event-description br {
  margin-bottom: 0.3em;
  display: block;
  content: "";
}

.event-tags {
  margin-top: 0.7em;
}
.event-tag {
  display: inline-block;
  background: #e6eeff;
  color: #233c7a;
  font-size: 0.98em;
  padding: 0.12em 0.9em 0.12em 0.9em;
  border-radius: 2em;
  margin: 0.1em 0.13em;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.event-homepage {
  margin-top: 1.1em;
  font-size: 1.01rem;
  text-align: left;
}
.event-homepage a {
  color: #3959c9;
  text-decoration: underline;
  word-break: break-all;
}
.event-homepage a:hover, .event-homepage a:focus {
  color: #7d5fff;
}
.status {
  text-align: center;
  color: #a14;
  font-size: 1.11rem;
  margin: 2rem 0 2.5rem 0;
}
.more-btn {
  display: block;
  margin: 2.5rem auto 2.5rem auto;
  padding: 0.7em 2.5em;
  background: linear-gradient(90deg, #3959c9 0%, #523dc9 100%);
  color: #fff;
  font-size: 1.18rem;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 2.5em;
  box-shadow: 0 2px 12px 0 rgba(60,70,180,0.09);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.04em;
}
.more-btn:hover, .more-btn:focus {
  background: linear-gradient(90deg, #3f87fa 0%, #7d5fff 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 20px 0 rgba(60,70,180,0.11);
}
.tags-list {
  margin-top: 3.7rem;
  margin-bottom: 2.3rem;
  text-align: center;
  font-size: 1.05rem;
}
.data-footer {
  color: #767676;
  background: #e8eaea;
  font-size: 0.92rem;
  padding: 2.2em 0 2.7em 0;
  text-align: center;
  margin-top: 3rem;
  line-height: 1.6;
}
.data-footer a {
  color: #868a99;
  text-decoration: underline;
}
.data-footer a:hover, .data-footer a:focus {
  color: #555;
}
@media (max-width: 48rem) {
  main {
    padding: 0.6rem 0.5rem 0 0.5rem;
  }
  .event-card {
    padding: 1.3rem 0.7rem 1.3rem 0.7rem;
  }
}
@media (max-width: 36rem) {
  .event-card {
    max-width: 98vw;
  }
  .event-info {
    padding: 0 0.2rem;
  }
}