.glossary-page {
  background: #020714;
  color: #fff;
  min-height: 100vh;
}

.glossary-page__content {
  padding: var(--spc60, 60px) 0 100px;
}

.glossary-page__container {
  max-width: 1600px;
}

.glossary-page__title {
  margin: 0 auto 40px;
}

.glossary-hero {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 58px;
  overflow: hidden;
  border-radius: 18px;
}

.glossary-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1400 / 450;
  object-fit: cover;
}

.glossary-layout {
  display: grid;
  grid-template-columns: minmax(300px, 455px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.glossary-sidebar {
  position: sticky;
  top: 125px;
}

.glossary-sidebar__title {
  margin: 0;
  padding-bottom: 8px;
  color: #fff;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 1.4px;
}

.glossary-letter {
  border-top: 1px solid #4d525e;
}

.glossary-letter:last-child {
  border-bottom: 1px solid #4d525e;
}

.glossary-letter summary {
  display: flex;
  min-height: 51px;
  align-items: center;
  justify-content: space-between;
  color: #cdd8ff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.glossary-letter summary::-webkit-details-marker {
  display: none;
}

.glossary-letter__icon {
  position: relative;
  width: 14px;
  height: 14px;
}

.glossary-letter__icon::before,
.glossary-letter__icon::after {
  position: absolute;
  top: 6px;
  left: 1px;
  width: 12px;
  height: 1px;
  background: currentColor;
  content: '';
}

.glossary-letter__icon::after {
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.glossary-letter[open] .glossary-letter__icon::after {
  transform: rotate(0deg);
}

.glossary-letter.is-empty summary {
  color: #8c93a7;
}

.glossary-letter ul {
  margin: 0;
  padding: 0 0 12px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  list-style: disc;
}

.glossary-letter li {
  padding: 7px 0 0 4px;
  color: #fff;
}

.glossary-letter a {
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
}

.glossary-letter li.is-active a {
  font-weight: 700;
}

.glossary-letter a:hover,
.glossary-letter a:focus-visible {
  color: #f08122;
}

.glossary-entry {
  min-width: 0;
}

.glossary-entry__title,
.glossary-next > h2 {
  margin: 0 0 26px;
  color: #b7bbc9;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
}

.glossary-entry__section {
  margin-bottom: 30px;
}

.glossary-entry__text h2,
.glossary-next__preview h2 {
  margin: 34px 0 14px;
  color: #b7bbc9;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}

.glossary-entry__text h2:first-child,
.glossary-next__preview h2:first-child {
  margin-top: 0;
}

.glossary-entry__text,
.glossary-entry__text p,
.glossary-next__preview,
.glossary-next__preview p {
  color: #b7bbc9;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
}

.glossary-entry__text p {
  margin: 0 0 14px;
}

.glossary-entry__text a {
  color: #cdd8ff;
  text-decoration: underline;
}

.glossary-next {
  position: relative;
  display: block;
  max-height: 520px;
  margin-top: 44px;
  overflow: hidden;
  color: inherit;
  filter: blur(2.4px);
  opacity: 0.42;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 100%);
  transition: opacity 0.2s ease;
}

.glossary-next:hover,
.glossary-next:focus-visible {
  opacity: 0.62;
}

.glossary-empty,
.glossary-entry__empty {
  color: #b7bbc9;
  font-size: 18px;
}

@media (max-width: 1024px) {
  .glossary-page__content {
    padding-top: 50px;
  }

  .glossary-layout {
    grid-template-columns: minmax(250px, 34%) minmax(0, 1fr);
    gap: 38px;
  }
}

@media (max-width: 767px) {
  .glossary-page__content {
    padding: 32px 0 70px;
  }

  .glossary-page__title {
    margin-bottom: 28px;
  }

  .glossary-hero {
    margin-bottom: 40px;
    border-radius: 12px;
  }

  .glossary-layout {
    display: block;
  }

  .glossary-sidebar {
    position: static;
    margin-bottom: 42px;
  }

  .glossary-sidebar__title,
  .glossary-entry__title {
    font-size: 24px;
  }

  .glossary-letter summary {
    min-height: 47px;
  }

  .glossary-letter a,
  .glossary-entry__text,
  .glossary-entry__text p {
    font-size: 16px;
  }

  .glossary-entry__text h2,
  .glossary-next__preview h2 {
    margin-top: 28px;
    font-size: 22px;
  }
}
