.aneks-body {
  counter-reset: section;
}

.aneks-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2%;
}

.aneks-container {
  width: 60%;
  margin-right: auto;
  margin-left: auto;
}

.aneks-title {
  margin: 1em 0 0 0;
  font-weight: 400;
  font-size: 3em;
  line-height: 1.1;
}

.aneks-intro {
  margin: 0.5em 0 0 0;
}

.aneks-subtitle {
  margin-top: 1.5em;
  margin-bottom: 0;
  font-weight: 400;
  font-size: 2em;
}

.aneks-list {
  position: relative;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

.aneks-list__item {
  border-radius: 100px 0 0 100px;
  border-bottom: 1px solid #c2c4c3;
}

.aneks-list__item a {
  display: block;
  padding: 10px 0 10px 15px;
  overflow: hidden;
  color: #000;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aneks-list__item a::before {
  content: counter(section) ". ";
  padding-right: 0.7ch;
  color: #c2c4c3;
  counter-increment: section;
}

.aneks-list__item:hover {
  border-bottom: 1px solid #000;
  background-color: #000;
}

.aneks-list__item:hover a {
  color: #fff;
}

.aneks-list__item:hover a::before {
  color: #fff;
}

.aneks-search-container {
  width: 100%;
}

.aneks-search-input {
  display: block;
  width: 90%;
  margin: 1.5em auto 0 auto;
  border: unset;
  border-radius: 0px;
  border-bottom: 2px #dadada solid;
  padding-bottom: 0.05em;
  outline: none;
  font-size: 2.5em;
  text-align: center;
  text-transform: lowercase;
  transition: 0.2s linear;
}

.aneks-search-input:focus {
  border-radius: 20px;
  border-bottom: 2px #000 solid;
}

.aneks-search-input::placeholder {
  color: #dadada;
  text-transform: none;
}

.aneks-search-dialog {
  margin: 2em 0;
  font-size: 1.3em;
  text-align: center;
}

.aneks-search-dialog__button {
  border: none;
  border-bottom: 2px dashed var(--linkUnderlineColor);
  padding: 0;
  color: var(--linkColor);
  font-size: 1em;
  background-color: #fff;
  transition: 0.2s linear;
  cursor: pointer;
}

.aneks-search-dialog__button:hover {
  border-bottom: 1.5px dashed var(--linkHoverColor);
  color: var(--linkHoverColor);
}

.aneks-search-answer {
  display: flex;
  flex-direction: column;
  gap: 2em;
  width: 60%;
  margin: 0 auto;
  padding-bottom: 3em;
}

.aneks-search-answer div {
  border-radius: 0px;
  border-bottom: 1.5px #dadada solid;
  transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.aneks-search-answer div:hover {
  border-radius: 20px;
  border-bottom: 1.5px #000 solid;
}

.aneks-search-answer a {
  display: block;
  padding: 0 20px 20px 20px;
  color: #000;
  text-decoration: none;
}

.aneks-search-answer__found {
  background-color: #e6c8ff;
}



@media only screen and (max-width: 600px) {

  .aneks-container {
    width: 100%;
  }

  .aneks-title {
    font-size: 2em;
  }

  .aneks-subtitle {
    font-size: 1.5em;
  }

  .aneks-search-input {
    width: 100%;
    font-size: 1.75em;
  }

  .aneks-search-answer {
    width: 100%;
  }

  .aneks-search-answer a {
    padding-left: 0;
  }

  /* Выключение ховеров */
  .aneks-list__item:hover {
    border-bottom: 1px solid #c2c4c3;
    background-color: unset;
  }

  .aneks-list__item:hover a {
    color: #000;
  }

  .aneks-list__item:hover a::before {
    color: #c2c4c3;
  }

  .aneks-search-answer div:hover {
    border-radius: 0;
    border-bottom: 1.5px #dadada solid;
  }

  .aneks-search-dialog__button:hover {
    border-bottom: 2px dashed var(--linkUnderlineColor);
    color: var(--linkColor);
  }
}