.category {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.category-page--wrapper {
  background-color: #F5F5F5;
  display: flex;
  flex-direction: column-reverse;
}

.category-page--wrapper main {
  margin: 24px 0;
  max-width: 540px;
}

.category-page--wrapper aside {
  margin: 24px 0;
}

.category-page--wrapper main h2 {
  font-size: 24px;
  margin: 8px 0 16px;
}

.category-page--wrapper main p {
  font-family: "Times New Roman";
  font-size: 18px;
  line-height: 1.4;
  color: var(--color-grey);
  margin-top: 0;
}

.category-page--wrapper main a {
  font-family: "Times New Roman";
  color: var(--color-grey);
  text-decoration: underline;
  display: flex;
  align-content: center;
  align-items: center;
}

.category-page--wrapper main svg {
  margin-left: 6px;
}

.category-page--wrapper main svg path {
  fill: var(--color-grey);
}

.category-page--wrapper aside {
  display: flex;
  justify-content: center;
}

.category-page--wrapper aside img {
  max-width: 135px;
  object-fit: contain;
}


@media (min-width: 768px) {
  .category-page--wrapper {
    margin-top: 32px;
    flex-direction: row;
    justify-content: space-between;
  }

  .category-page--wrapper main h2 {
    font-size: 28px;
  }
}

.category-main-title {
  padding: 18px 0;
  margin: 0;
  font-size: 24px;
}

.category__title {
  display: block;
  color: var(--color-red);
  white-space: nowrap;
  padding-top: 32px;
  font-size: 16px;
  font-weight: 400;
}

@media (min-width: 768px) {
  .category-main-title {
    font-size: 28px;
    padding: 26px 0;
  }

  .category__title {
    padding-top: 42px;
  }
}

.category__title a {
  color: var(--color-red);
}

.regions .category__title img {
  top: 0;
  margin-left: 0;
  max-width: 167px;
}

@media (min-width: 768px) {
  .regions .category__title img {
    max-width: 238px;
    top: 0;
    margin-left: 0;
  }
}

.category__title svg path {
  stroke: var(--color-red);
}

.category__all {
  box-sizing: content-box;
  padding: 40px 0;
  flex-direction: column;
}

@media (min-width: 768px) {
  .category__all {
    padding: 40px 0 20px 0;
  }
}

.category__link {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 48px;
}

@media (min-width: 768px) {
  .category__link {
    padding-left: 50px;
    justify-content: flex-start;
  }
}

.category__link:hover,
.category__link:focus {
  background: #f5f5f5;
}

.category__link.current-page {
  background: #ebebeb;
}

.category__link.current-page .category__check {
  display: block;
}

.category__check {
  display: none;
  position: absolute;
  left: 22px;
  top: 10px;
}

.category__result .padding--row {
  padding: 0;
}

@media (min-width: 768px) {
  .category__result .padding--row {
    padding: inherit;
  }
}

.category__result .author__info-box {
  margin: 0;
  background: transparent;
}

.category__result .authors-result .profile {
  display: flex;
  width: 100%;
}

@media (min-width: 768px) {
  .category__result .authors-result .profile {
    width: 33.33%;
  }

  .category__result .authors-result {
    margin-bottom: 26px;
  }
}

/* Filter. */
.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #D9D9D9;
  -webkit-transition: .3s;
  transition: .3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: var(--color-white);
  -webkit-transition: .3s;
  transition: .3s;
}

input:checked + .slider {
  background-color: var(--color-red);
}

input:checked + .slider:before {
  -webkit-transform: translateX(16px);
  -ms-transform: translateX(16px);
  transform: translateX(16px);
}

.slider::after {
  content: url('../../assets/images/icons/check-red.svg');
  position: absolute;
  left: 3px;
  top: 1px;
  opacity: 0;
  transition: .3s;
  -webkit-transition: .3s;
}

input:checked + .slider:after {
  left: 19px;
  opacity: 1;
  transition: .3s;
  -webkit-transition: .3s;
}

/* Rounded sliders */

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Search style.  */

.search {
  padding-top: 15px;
}

.search__info {
  display: block;
  margin: 0 auto 29px;
  font-size: 24px;
}

.search .category__all {
  padding-top: 12px;
}

.search .search-form__button {
  stroke: #3d3434;
}

.search .category {
  border-top: 0;
  padding-top: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid #ebebeb;
}

.search .category__title {
  border-top: 0;
  padding-top: 0;
  font-size: 16px;
}

.search .article__title {
  margin-top: 7px;
}

/* Serach form  */
.search-form {
  display: flex;
}

.search-form__form {
  position: relative;
  width: 100%;
}

.search-form__form input[type="submit"] {
  display: none;
}

.search-form__form input[type="text"] {
  width: 100%;
  padding-left: 43px;
  padding-right: 43px;
  border-radius: 4px;
  height: 49px;
  font-size: 16px;
  border: 1px solid #D8D8D8;
}

.search-form__form svg {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.search-form__form svg.search-icon {
  left: 22px;
  top: 25px;
  width: 15px;
}

.search-form__form svg.search-clear {
  display: block;
  right: 3px;
  width: 25px;
}

.search-form__form svg.search-clear:hover,
.search-form__form svg.search-clear:focus {
  cursor: pointer;
}

.search-form__form svg.search-clear circle,
.search-form__form svg.search-clear circle {
  transition: fill 0.32s ease;
}

.search-form__form svg.search-clear:hover circle,
.search-form__form svg.search-clear:focus circle {
  fill: rgba(216, 216, 216, 0.6)
}

.search-form__form svg.search-clear path,
.search-form__form svg.search-clear path {
  transition: stroke 0.32s ease;
}

.search-form__form svg.search-clear:hover path,
.search-form__form svg.search-clear:focus path {
  stroke: rgba(255, 255, 255, 0.6)
}

@media (min-width: 1024px) {
  .search {
    padding-top: 23px;
  }

  .search .category__all {
    padding-top: 16px;
  }

  .search__info {
    margin: 0 auto 28px;
    font-size: 28px;
  }

  .search .category__title {
    padding-bottom: 0;
  }
}

.career-page > div > main {
    display: none;
}

@media (min-width: 768px) {
    .career-page > div > main {
        display: flex;
    }
}
