.newsletter-hero {
  background: #f3f6f7;
  border-bottom: 1px solid #dce6e9;
  overflow: hidden;
}
.newsletter-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.68fr);
  gap: 8%;
  align-items: center;
  min-height: 520px;
  padding-top: 58px;
  padding-bottom: 58px;
}
.newsletter-hero-copy h1 {
  font-size: clamp(48px, 5.6vw, 76px);
  line-height: 1.06;
  max-width: 720px;
}
.newsletter-hero-copy p {
  max-width: 590px;
  font-size: 19px;
  line-height: 1.62;
  margin-top: 25px;
}
.newsletter-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  margin-top: 30px;
  padding-bottom: 9px;
  border-bottom: 2px solid #dcae48;
  color: #315b78;
  font-size: 17px;
  font-weight: 700;
}
.newsletter-subscribe:hover {
  color: #2074a7;
  gap: 40px;
}
.newsletter-hero-image {
  max-width: 360px;
  justify-self: end;
  background: #fff;
  padding: 12px;
  box-shadow: 0 20px 50px rgba(42, 70, 90, 0.12);
  transform: rotate(2deg);
}
.newsletter-hero-image img {
  width: 100%;
  height: auto;
}
.newsletter-archive {
  padding: 100px 0 114px;
}
.newsletter-archive-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}
.newsletter-archive-head h2 {
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.1;
}
.newsletter-archive-head p {
  margin-top: 12px;
  max-width: 520px;
  font-size: 17px;
}
.newsletter-filter {
  display: flex;
  gap: 5px;
  padding: 5px;
  border: 1px solid #dce6ea;
  border-radius: 5px;
  background: #f4f7f8;
  flex-shrink: 0;
}
.newsletter-filter button {
  min-height: 42px;
  padding: 7px 16px;
  border-radius: 3px;
  color: #526c7d;
  font-size: 14px;
  font-weight: 700;
}
.newsletter-filter button.is-active {
  background: #315b78;
  color: #fff;
}
.newsletter-filter button:hover:not(.is-active) {
  background: #e4edf1;
}
.newsletter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}
.newsletter-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 0;
  text-align: left;
  border: 1px solid #dce6e9;
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.newsletter-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 17px 40px rgba(43, 74, 96, 0.11);
}
.newsletter-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1.18;
  background: #f4f6f7;
  padding: 19px;
  overflow: hidden;
}
.newsletter-card-image img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  box-shadow: 0 3px 15px rgba(36, 58, 71, 0.12);
}
.newsletter-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 21px 22px 23px;
}
.newsletter-card-title {
  color: #304b65;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
}
.newsletter-card-year {
  display: block;
  color: var(--copy);
  font-size: 13px;
  font-weight: 600;
  margin-top: 3px;
}
.newsletter-card-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid #aac0cb;
  border-radius: 50%;
  color: #315b78;
  font-size: 20px;
  line-height: 1;
}
.newsletter-error {
  padding: 24px;
  border: 1px solid #dce6e9;
}
.newsletter-bottom {
  background: #fff5df;
  padding: 73px 0;
}
.newsletter-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.newsletter-bottom h2 {
  font-size: clamp(32px, 3.4vw, 48px);
}
.newsletter-bottom p {
  margin-top: 8px;
  font-size: 17px;
}
.newsletter-bottom-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 15px 22px;
  background: #315b78;
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
}
.newsletter-bottom-link:hover {
  background: #234968;
  color: #fff;
}
.newsletter-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(1100px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: auto;
  background: #f3f6f7;
  box-shadow: 0 25px 80px rgba(22, 47, 65, 0.35);
}
.newsletter-dialog::backdrop {
  background: rgba(34, 61, 80, 0.78);
}
.newsletter-dialog-top,
.newsletter-dialog-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 14px 22px;
  background: #fff;
}
.newsletter-dialog-top strong {
  font-size: 17px;
  color: #31536c;
}
.newsletter-dialog-top button {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  font-size: 29px;
  line-height: 1;
  color: #315b78;
}
.newsletter-dialog-image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-height: calc(100dvh - 165px);
  overflow: auto;
  padding: 18px;
}
.newsletter-dialog-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: none;
  box-shadow: 0 8px 25px rgba(33, 62, 79, 0.15);
}
.newsletter-dialog-controls {
  display: flex;
  gap: 8px;
}
.newsletter-dialog-bottom button,
.newsletter-dialog-bottom a {
  padding: 8px 12px;
  border: 1px solid #cad9df;
  border-radius: 3px;
  color: #315b78;
  font-size: 13px;
  font-weight: 700;
}
.newsletter-dialog-bottom button:hover,
.newsletter-dialog-bottom a:hover {
  background: #eef4f7;
}
.newsletter-dialog-bottom button:disabled {
  opacity: 0.4;
  cursor: default;
}
.newsletter-dialog-bottom a {
  white-space: nowrap;
}
@media (max-width: 850px) {
  .newsletter-hero-grid {
    gap: 5%;
    min-height: 400px;
  }
  .newsletter-hero-image {
    max-width: 260px;
  }
  .newsletter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .newsletter-archive-head {
    align-items: start;
    flex-direction: column;
  }
  .newsletter-bottom-inner {
    align-items: start;
    flex-direction: column;
    gap: 24px;
  }
}
@media (max-width: 590px) {
  .newsletter-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 55px;
    padding-bottom: 55px;
  }
  .newsletter-hero-copy h1 {
    font-size: clamp(44px, 12vw, 58px);
  }
  .newsletter-hero-copy p {
    font-size: 17px;
  }
  .newsletter-hero-image {
    display: none;
  }
  .newsletter-archive {
    padding: 68px 0 75px;
  }
  .newsletter-archive-head {
    gap: 25px;
    margin-bottom: 27px;
  }
  .newsletter-filter {
    max-width: 100%;
  }
  .newsletter-filter button {
    font-size: 13px;
    padding: 7px 12px;
  }
  .newsletter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .newsletter-card-image {
    aspect-ratio: 0.84;
    padding: 9px;
  }
  .newsletter-card-meta {
    padding: 13px 11px;
    gap: 5px;
  }
  .newsletter-card-title {
    font-size: 15px;
  }
  .newsletter-card-year {
    font-size: 12px;
  }
  .newsletter-card-arrow {
    display: none;
  }
  .newsletter-bottom {
    padding: 60px 0;
  }
  .newsletter-bottom-link {
    white-space: normal;
    width: 100%;
    justify-content: space-between;
  }
  .newsletter-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
  }
  .newsletter-dialog-top,
  .newsletter-dialog-bottom {
    padding: 11px 12px;
  }
  .newsletter-dialog-bottom {
    align-items: stretch;
    flex-direction: column;
  }
  .newsletter-dialog-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .newsletter-dialog-bottom a {
    text-align: center;
  }
  .newsletter-dialog-image {
    max-height: calc(100dvh - 200px);
    padding: 8px;
  }
}
.newsletter-arrow,
.newsletter-card-arrow::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-top: 1.8px solid currentColor;
  border-right: 1.8px solid currentColor;
  transform: rotate(45deg);
}
