.header__search #searchform {
  padding-top: 0;
  top: 20px;
  right: 20px;
}

.active-search:not(.opened-menu) #searchform {
  width: calc(100% - 20px);
  right: 20px;
}

.header__search form > label {
  display: flex;
  position: relative;
}

.header__search #searchform picture {
  position: absolute;
  height: 100%;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  transform: translateY(-50%);
  right: 26px;
  opacity: 0.9;
}

.header__controls {
  margin-left: 20px;
  padding: 0;
}

.header__controls .header__search {
  padding: 0;
}

.header-content {
  width: 100%;
}

.main-logo {
  width: 218px;
  box-sizing: content-box;
}

@media (max-width: 1200px) {
}
@media (max-width: 767px) {
  .main-logo {
    width: 176px;
  }
}

.main-logo.main-logo--alternative {
}

.menu-icon {
  margin-left: 0;
}

.header-search-close-icon {
  position: static;
  transform: none;
}

.header-new .container-new {
  width: 100%;
}

.search-toggle {
  position: relative;
  display: flex;
  height: 50px;
  min-width: 50px;
  align-items: center;
  justify-content: center;
  background-color: #f2f2f2;
  margin-left: auto;
  margin-right: 0;
}

#searchform input {
  transition: 1s;
}

#searchform input.failse {
  background: #ffd9d9;
}

.header-menu li a img {
  min-width: 24px;
  max-width: 26px;
  max-height: 24px;
}

.mobile-menu-items .menu-icon {
  width: 24px;
  display: none;
}

.mobile-menu-close {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f1f1;
  border-radius: 50%;
}

.mobile-menu-close svg rect:not(:first-child) {
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover svg rect:not(:first-child) {
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  fill: #3f69ff;
}

.mobile-menu-header svg {
  margin: 0 auto;
}

.header__search-form-mobile .search-toggle {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f1f1;
  border-radius: 50%;
  position: relative;
}

.mobile {
  position: relative;
}

.header__search-form-mobile .search-toggle svg {
  width: 100%;
  margin: 0 auto;
}

.fixed-header .header .container-new {
  padding-top: 0;
}

.mobile-menu {
  z-index: 10;
}

.new-category > .container {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.new-category {
  padding-top: 20px;
  padding-bottom: 40px;
}

.new-category ~ footer.footer {
  margin-top: 0;
}

.new-category .post .post__title {
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.new-category .post:hover .post__title {
  color: #3381df;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.new-category .post .post-category:hover {
  color: #3381df;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

@media (max-width: 1200px) {
  .header__controls {
    display: flex;
  }
}

@media screen and (min-width: 767px) {
  .new-category .post-grid .post.big-post .post__image {
    width: calc(50% - 4px);
    margin-right: 10px;
  }

  .container-new .posts {
    padding-bottom: 20px;
  }

  .new-category .grid {
    display: grid;
    grid-template-rows: auto;
    gap: 10px 10px;
    grid-auto-columns: 1fr 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  .new-category .grid.grid-block:after {
    display: none;
  }

  .new-category .grid .post {
    margin-bottom: 0;
    width: 100%;
  }
}

@media screen and (max-width: 1200px) {
  .header .main-logo {
    width: 120px;
  }

  .header .main-logo.main-logo--alternative {
    width: 90px;
    display: flex;
  }
}
@media screen and (max-width: 1396px) {
}
@media (max-width: 1150px) {
  .header-menu li a img {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
  }
}

@media (max-width: 1070px) {
  .header-menu li a {
    padding: 10px 13px;
  }
}

@media (max-width: 1200px) {
  .header .main-logo.main-logo--alternative {
    display: none;
  }

  .mobile-menu-items-bottom .main-logo.main-logo--alternative {
    display: flex;
    width: 104px;
  }

  .header .main-logo {
    width: auto;
  }

  .search-toggle {
    height: 38px;
    min-width: 38px;
  }

  .header__search #searchform {
    right: 55px;
    top: 20px;
  }

  .active-search:not(.opened-menu) #searchform {
    width: calc(100% - 50px);
    right: 50px;
  }

  .main-logo {
    transition: opacity 0.3s;
  }

  .active-search .main-logo {
    opacity: 0;
  }

  .opened-menu .main-logo {
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .mobile-menu-header {
    padding-top: 20px;
    padding-left: 32px;
    padding-right: 32px;
    padding-bottom: 10px;
  }

  .active-search .header__search-form-mobile #searchform {
    top: 12px;
    right: 65px;
  }

  .mobile-menu-items {
    padding-left: 0;
  }

  .header__search-mobile #searchform {
    top: 12px;
    margin-right: 0;
  }
}

@media screen and (max-width: 767px) {
  .header .container-new {
    padding-top: 0;
  }

  .header__controls {
    margin-left: 0;
  }

  .header__search {
    margin-right: 0;
  }

  .header-content {
    padding: 20px 0 20px 0;
  }

  .header__search #searchform {
    top: 21px;
    right: 50px;
  }

  .opened-menu .header__search-form-mobile #searchform {
    top: 13px;
    right: 67px;
  }

  .active-search .header__search-form-mobile #searchform,
  .header__search-form-mobile #searchform {
    top: 13px;
    right: 67px;
  }

  .opened-menu .header__search-form-mobile #searchform {
    top: 21px;
    right: 86px;
  }

  .opened-menu .header__search-form-mobile #searchform picture {
    right: 26px;
  }

  .mobile-menu-items li {
    margin-left: 32px;
  }
}

@media screen and (max-width: 500px) {
  .active-search .header__search-form-mobile #searchform {
    width: calc(100% - 110px);
  }

  .active-search:not(.opened-menu) #searchform {
    width: calc(100% - 50px);
  }

  .mobile-menu-logo,
  .main-logo {
    transition: 0.3s;
  }

  .active-search .mobile-menu-logo,
  .active-search .main-logo {
    opacity: 0;
  }

  .mobile-menu-header {
    margin-bottom: 0;
    padding-bottom: 20px;
  }

  .fixed-header.opened-menu .mobile-menu-header {
    padding-top: 12px;
  }

  .header__search #searchform picture {
    right: 25px;
  }

  .header__search #searchform {
    top: 21px;
  }

  .header__search-form-mobile #searchform picture {
    right: 20px;
  }

  .header__search-form-mobile #searchform {
    top: 13px;
    right: 70px;
  }

  .opened-menu .header__search:not(.header__search-mobile) #searchform {
    top: 13px;
    right: 70px;
    width: 0;
    transition: none;
  }

  .opened-menu .header__search-form-mobile #searchform {
    top: 21px;
    right: 80px;
    transition: 0.5s;
  }

  .active-search .header__search-form-mobile #searchform,
  .header__search-form-mobile #searchform {
    top: 21px;
    right: 80px;
    transition: 0.5s;
  }

  .header__search-form-mobile #searchform {
    transition: none;
  }
}

@media screen and (max-width: 440px) {
  .new-category > .container,
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .related-posts .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .active-search .header__search-form-mobile #searchform,
  .opened-menu .header__search-form-mobile #searchform,
  .header__search-form-mobile #searchform {
    top: 16px;
  }

  .main-logo,
  .mobile-menu-logo {
    height: 38px;
  }

  .fixed-header.opened-menu .mobile-menu-header {
    padding-top: 16px;
  }

  .active-search .header__search #searchform {
    width: calc(100% - 45px);
    right: 45px;
  }

  .opened-menu .header__search #searchform {
    width: 0;
    right: 70px;
  }

  .mobile-menu .header__search-form-mobile #searchform {
    right: 65px;
    top: 16px;
  }

  .opened-menu.active-search .header__search-form-mobile #searchform {
    width: calc(100% - 80px);
  }

  .opened-menu .header__search #searchform picture {
    right: 25px;
  }

  .header__search #searchform {
    top: 16px;
    right: 50px;
    width: 0;
  }

  .header__search #searchform picture {
    right: 30px;
  }

  .header-search-close-icon {
    opacity: 0;
    transition-delay: 0s;
    transition: 0.3s;
  }

  .active-search .header-search-close-icon {
    opacity: 1;
    transition-delay: 0.3s;
  }

  .mobile-menu-header {
    padding-top: 16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .mobile-menu-items li {
    margin-left: 16px;
  }
}

/*----------------*/

/* Слайдер с подборками */

.compilation-wrapper .сompilation-style-1 img {
  text-align: center;
}
