.az-page {
  min-height: 100vh;
  background: #eef3f7;
}

.az-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.az-search {
  padding: 0 0 26px;
}

.az-search label {
  display: block;
  margin: 0 0 8px;
  color: #001b3f;
  font-weight: 900;
}

.az-search input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  color: #14233a;
  background: #ffffff;
  border: 1px solid #c9d4df;
  border-radius: 8px;
  font-size: 1rem;
}

.az-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 20px;
}

.az-letters button {
  min-width: 48px;
  min-height: 48px;
  padding: 0 12px;
  color: #24364d;
  background: #f7fafc;
  border: 1px solid #cfd9e3;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.az-letters button.is-active,
.az-letters button:hover,
.az-letters button:focus-visible {
  color: #ffffff;
  background: #0085a8;
  border-color: #0085a8;
  outline: none;
}

.az-letters button[data-az-all] {
  min-width: 112px;
}

.az-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 24px;
  padding: 22px;
  color: #ffffff;
  background: #0085a8;
  border-radius: 10px;
}

.az-callout strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.12rem;
}

.az-callout p {
  margin: 0;
}

.az-callout a {
  flex: 0 0 auto;
  padding: 13px 18px;
  color: #00364c;
  background: #ffffff;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.az-count {
  margin: 0 0 18px;
  color: #324866;
}

.az-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.az-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 84px;
  padding: 16px 18px;
  color: #001b3f;
  background: #ffffff;
  border: 1px solid #d8e1ea;
  border-radius: 10px;
  text-decoration: none;
}

.az-item[hidden] {
  display: none;
}

.az-item:hover,
.az-item:focus-visible {
  border-color: #8dcce4;
  box-shadow: inset 4px 0 0 #0085a8;
  outline: none;
}

.az-item__title {
  position: relative;
  display: block;
  padding-left: 22px;
  font-weight: 900;
}

.az-item__title::before {
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 12px;
  height: 12px;
  background: #0085a8;
  border: 3px solid #dff5fb;
  border-radius: 50%;
  content: "";
}

.az-item__meta {
  display: block;
  margin-top: 6px;
  padding-left: 22px;
  color: #324866;
  font-size: 0.9rem;
}

.az-item__tag {
  padding: 8px 10px;
  color: #004a6a;
  background: #f3fbff;
  border: 1px solid #c6e3f1;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 900;
}

.az-empty {
  margin: 18px 0 0;
  padding: 18px;
  color: #344963;
  background: #ffffff;
  border: 1px dashed #b9c8d6;
  border-radius: 10px;
}

.az-empty[hidden] {
  display: none;
}

@media (max-width: 820px) {
  .az-main {
    width: min(100% - 24px, 680px);
    padding-top: 24px;
  }

  .az-callout {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .az-callout a {
    text-align: center;
  }

  .az-list,
  .az-item {
    grid-template-columns: 1fr;
  }

  .az-item__tag {
    width: fit-content;
    margin-left: 22px;
  }
}
