.dictionaryBlock {
  color: #000000;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.dictionaryBlock__shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 64px 112px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.dictionaryBlock__heading {
  margin: 0;
  font-family: "Roboto", "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  color: #0f0f0f;
  letter-spacing: 0;
}

/* Filters */
.dictionaryBlock__filters {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.dictionaryBlock__letters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dictionaryBlock__letters::-webkit-scrollbar {
  display: none;
}

.dictionaryBlock__letterBtn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 12px 11px;
  border-radius: 5px;
  min-width: 33px;
  height: 41px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: "Roboto", "DM Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 25px;
  line-height: 1;
  color: #292929;
  text-transform: uppercase;
  white-space: nowrap;
  flex: 0 0 auto;
}

.dictionaryBlock__letterBtn.is-active {
  background: #ff8000;
}

.dictionaryBlock__letterBtn.is-disabled {
  opacity: 0.35;
  cursor: default;
}

.dictionaryBlock__cats {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.dictionaryBlock__catBtn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 5px;
  cursor: pointer;
  font: 600 18px/1.5 "DM Sans";
  letter-spacing: 0;
  text-transform: uppercase;
  color: #7d7d7d;
  white-space: nowrap;
}

.dictionaryBlock__catBtn.is-active {
  background: #151515;
  padding: 10px;
  color: #ffffff;
}

/* Sections */
.dictionaryBlock__sections {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.dictionaryBlock__sectionTitle {
  margin: 0 0 20px;
  font: 600 36px/1.2 "DM Sans";
  letter-spacing: 2px;
  color: #0f0f0f;
  text-transform: uppercase;
}

.dictionaryBlock__grid {
  display: grid;
  grid-template-columns: repeat(var(--dict-cols, 2), minmax(0, 1fr));
  column-gap: 86px;
  row-gap: 20px;
}

.dictionaryBlock__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dictionaryBlock__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: #000000;
  padding: 0 0 12px;
  border-bottom: 1px solid #d6d6d6;
  min-height: 36px;
}

.dictionaryBlock__item:hover .dictionaryBlock__itemText,
.dictionaryBlock__item:focus-visible .dictionaryBlock__itemText {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.dictionaryBlock__itemText {
  font: 400 18px/1.5 "DM Sans";
  color: #000000;
}

.dictionaryBlock__chev {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f0f0f;
}

.dictionaryBlock__empty {
  margin: 0;
  font: 600 16px/1.5 "DM Sans";
  color: #7d7d7d;
}

/* Responsive */
@media (max-width: 1024px) {
  .dictionaryBlock__shell {
    padding: 56px 32px 96px;
  }

  .dictionaryBlock__cats {
    gap: 18px;
  }

  .dictionaryBlock__grid {
    column-gap: 40px;
  }
}

@media (max-width: 768px) {
  .dictionaryBlock__shell {
    padding: 48px 20px 80px;
    gap: 48px;
  }

  .dictionaryBlock__cats {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .dictionaryBlock__cats::-webkit-scrollbar {
    display: none;
  }

  .dictionaryBlock__grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
}


