.svgicons img {
  width: 44px;
}

.nav_overlay {
  position: fixed;
  top: 54px;
  left: 0;
  opacity: 0;
  z-index: 1;
  background: #000;
}
.nav_overlay.active {
  opacity: 0.5 !important;
  right: 0;
  bottom: 0;
}
.btn_menu {
  display: flex;
  display: none;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  width: 44px;
  height: 42px;
  border-radius: 3px;
  border-radius: 10px 2px 10px 2px;
  transform: skewX(-10deg);
  background-color: var(--main-red-color);
  z-index: 1;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease-out;
}
.btn_menu:hover {
  background-color: var(--main-active-red-color);
}
.btn_menu_icons {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}
.btn_menu_bars {
  width: 22px;
}
.btn_menu_close {
  display: none;
  width: 14px;
}
.btn_menu.active .btn_menu_close {
  display: block;
}
.btn_menu.active .btn_menu_bars {
  display: none;
}
.btn_menu_text {
  display: none;
}

/* menu --------------------------------------------------------------------------------------- */

.menu {
  /* display: none; */
  position: fixed;
  left: 0;
  width: 90%;
  height: 0px;
  margin-top: 54px;
  z-index: 21;
  overflow-y: hidden;
  background: #fafafa;
}
.menu_inner {
  position: relative;
  width: 100%;
  max-width: 1456px;
  margin: 0 auto;
  padding-bottom: 0;
  overflow-y: auto;
}
.menu.active {
  display: flex;
  flex-direction: column;
  height: calc(100% - 54px - 56px);
  padding: 0;
  overflow-y: visible;
  transition: height 0.2s ease;
}

/* ul.nav_categories -------------------------------------------------------------------------------------------- */

.nav_categories {
  display: flex;
  flex-direction: column;
  width: 100%;
  list-style-type: none;
}
.nav_category_title {
  padding: 8px 12px;
}
.nav_category_title {
  font-family: "Roboto", sans-serif;
  font-weight: bold;
}
.nav_category {
  position: relative;
  border-bottom: 1px solid #ccc;
}
.nav_category.active {
  background-color: #fff;
}
.nav_category a {
  font-family: "Roboto", sans-serif;
  white-space: nowrap;
}
.nav_category > a {
  display: block;
  padding: 16px 24px;
  cursor: pointer;
}
.nav_category,
.nav_category a:focus,
.nav_category a:active,
.nav_category > a:hover {
  text-decoration: none;
  outline: none;
  outline-style: none;
  outline-width: 0px !important;
  outline-color: none !important;
}

.nav_category-arrow {
  position: absolute;
  top: 0;
  right: 0;
  width: 64px;
  height: 100%;
}
.nav_category-arrow::after {
  position: absolute;
  content: "";
  width: 32px;
  height: 32px;
  left: 16px;
  top: 12px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' fill='%23999' d='M15.483 9.297l-3.9 3.9-3.9-3.9a.99.99 0 00-1.4 1.4l4.593 4.593a1 1 0 001.414 0l4.593-4.593a.99.99 0 10-1.4-1.4z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(125, 125, 125, 0.05);
  border-radius: 50%;
  transform: rotate(-90deg);
}
.nav_category.active .nav_category-arrow::after {
  transform: none;
}

.nav_category.active > a {
  color: var(--main-red-color);
}
.nav_categories.about {
  padding-bottom: 24px;
}
.nav_categories.about > li > a {
  font-weight: bold;
}
/* nav_subcategories_wrap -------------------------------------------------------------------------------------------- */

.nav_subcategories_wrap {
  /* display: none; */
  height: 0px;
  overflow: hidden;
  transition: 0.5s;
}
.nav_subcategories_title {
  display: none;
}
.nav_category.active .nav_subcategories_wrap {
  display: flex;
  flex-wrap: wrap;
  height: auto;
  margin-bottom: 16px;
  padding-top: 4px;
  transition: 0.5s;
}
.nav_subcategories {
  margin-top: 4px;
  list-style-type: none;
}
.nav_subcategories li {
  padding: 4px 0 16px 24px;
}
/* nav_subcategory_image -------------------------------------------------------------------------------------------- */

.nav_subcategory_images {
  display: none;
}

/* subcat3 -------------------------------------------------------------------------------------------- */

.nav_subcategories_wrap .our_works_list {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  list-style-type: none;
  padding: 0 24px;
}
.nav_subcategories_wrap .our_works_list li {
  width: 100%;
  margin-bottom: 0;
  padding: 4px 0;
}
.nav_subcategories_wrap .our_works_list h3 {
  padding: 0;
  line-height: 1.55;
  font-size: 15px;
  font-weight: normal;
  white-space: normal;
}
.nav_btn {
  margin: 24px auto;
  padding: 8px 51px;
  border: 3px solid #ddd;
  border-radius: 24px;
  color: #000;
  background-color: #fff;
}
.nav_btn:hover {
  border: 3px solid #777;
  text-decoration: none;
}
.nav_contacts_text {
  width: 100%;
  padding: 0 24px;
}
.nav_contacts_text.bank {
  display: none;
}
.nav_contacts_text h2 {
  margin-bottom: 16px;
  font-size: 15px;
}
.nav_contacts_text p {
  margin-bottom: 16px;
}
.nav_contacts_map {
  display: flex;
  width: 100%;
}
.nav_contacts_map img {
  display: none;
}
.menu.active .btn-menu-close {
  display: block;
  position: absolute;
  top: 10px;
  right: calc(-5% - 12px);
  color: #fff;
  text-align: center;
  pointer-events: none;
}
/* ********************************************************************************************************* */

@media screen and (min-width: 390px) {
  .nav_subcategories_wrap .our_works_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .nav_subcategories_wrap .our_works_list li {
    width: calc(50% - 12px);
  }
}
@media screen and (min-width: 640px) {
  .nav_subcategories_wrap {
    justify-content: space-between;
  }
  .nav_subcategories {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: calc(50% - 12px);
    width: 100%;
  }
  .nav_subcategory_image {
    width: calc(20% - 44px);
  }
  .nav_subcategory_image img {
    width: 100%;
  }
  .nav_subcategory_image figcaption {
    padding-top: 4px;
    font-size: 12px;
  }
  .nav_subcategories_wrap .our_works_list li {
    width: calc(50% - 4px);
  }
}

@media screen and (min-width: 720px) {
  .btn_menu i {
    /* иконка в мобильной версии */
    font-size: 30px;
    margin-top: 1px;
  }
}
@media screen and (min-width: 768px) {
  .btn_menu {
    display: flex;
    width: 36px;
    height: 36px;
  }
  .btn_menu_bars {
    width: 20px;
  }
  .btn_menu_close {
    display: none;
    width: 12px;
  }
  .nav_overlay {
    top: 68px;
  }
  .menu {
    margin-top: 68px;
  }
  .menu.active {
    height: calc(100% - 68px);
  }
  .nav_category_title {
    padding: 8px 24px;
  }
  .nav_category::after {
    content: none;
  }
  .nav_contacts_text {
    width: calc(100% / 2 - 8px);
  }
}

@media screen and (min-width: 960px) {
  .nav_subcategories_wrap .our_works_list li {
    width: calc((100% - 16px) / 3);
  }
}

@media screen and (min-width: 1024px) {
  .btn_menu {
    justify-content: space-between;

    width: 44px;
    height: 42px;
  }
  .btn_menu_icons {
    width: 44px;
    height: 44px;
  }
  .btn_menu_bars {
    width: 22px;
  }
  .btn_menu_close {
    display: none;
    width: 18px;
  }
  .nav_overlay {
    top: 112px;
  }
  .menu {
    width: 100%;
    max-height: 690px;
    max-height: 780px;
  }
  .menu.active {
    height: calc(100% - 76px);
    margin-top: 76px;
    background-image: linear-gradient(to right, #eee 256px, #fff 256px);
  }
  .menu_inner {
    height: 100%;
    overflow-y: visible;
  }
  .nav_categories {
    width: 256px;
  }
  .nav_category_title,
  .nav_category {
    position: static;
  }
  .nav_category-arrow {
    display: none;
  }
  .nav_category.active {
    background-color: #fff;
    border-right: 4px solid var(--main-red-color);
  }
  .nav_subcategories_wrap {
    transition: 0s;
  }
  .nav_category.active .nav_subcategories_wrap {
    position: absolute;
    top: 0;
    left: 256px;
    align-items: start;
    justify-content: space-between;
    width: calc(100% - 256px);
    height: 100%;
    padding: 0 24px 0 64px;
    transition: 0s;
    overflow: auto;
  }
  .nav_subcategories_title {
    display: block;
    width: 100%;
    margin: 24px 0;
    padding: 0 0 16px;
    border-bottom: 2px solid var(--main-red-color);
    text-transform: none;
    color: #7d7d7d;
    font-family: Roboto, sans-serif;
    font-size: 2em;
    font-weight: bold;
    line-height: 1.15;
  }
  .nav_subcategories {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 0 0;
  }
  .nav_subcategories li {
    padding: 4px 0;
    width: calc(100% / 2 - 12px);
  }
  .nav_subcategory_images {
    display: flex;
    align-self: flex-end;
    justify-content: space-between;
    margin: 32px 0;
  }
  .nav_subcategory_image {
    width: calc(100% / 6);
  }
  /* Our works & Contacts ************************* */
  .nav_subcategories_wrap .our_works_list {
    margin-top: 24px;
    padding: 0;
  }
  .nav_subcategories_wrap .our_works_list li {
    margin-bottom: 16px;
    padding: 0;
  }
  .nav_subcategories_wrap .our_works_list img {
    display: block;
  }
  .nav_subcategories_wrap .our_works_list h3 {
    margin-top: 8px;
  }
  .nav_contacts_text {
    width: calc(100% / 3 - 8px);
    margin-top: 24px;
    padding: 0 24px 0 0;
  }
  .nav_contacts_text.bank {
    display: block;
    padding-right: 0;
  }
  .nav_contacts_map {
    width: 100%;
  }
  .nav_contacts_map .nav_btn {
    display: none;
  }
  .nav_contacts_map img {
    display: block;
  }
  .menu.active .btn-menu-close {
    top: 32px;
    right: 24px;
    color: #333;
    pointer-events: all;
    cursor: pointer;
  }
}

@media screen and (min-width: 1200px) {
  .btn_menu {
    width: auto;
  }
  .btn_menu_text {
    display: block;
    padding-right: 12px;
    height: 18px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
  }
  .menu.active {
    height: calc(100% - 112px);
    margin-top: 112px;
  }
  .nav_subcategories,
  .nav_subcategory_image {
    padding: 0;
  }
  .nav_subcategories {
    margin-right: 0;
  }
  .nav_subcategories li {
    width: calc(100% / 3 - 12px);
  }
}

@media screen and (min-width: 1456px) {
  .menu.active {
    background-image: linear-gradient(to right, #eee 22%, #fff 22%);
  }
  .menu_inner {
    position: relative;
    width: 100%;
  }
  .nav_categories {
    width: 22%;
  }
  * .nav_categories::before {
    content: "";
    width: 320px;
    background: #eee;
    position: absolute;
    top: 0;
    pointer-events: none;
    z-index: -1;
    bottom: 0;
  }
  .nav_category.active .nav_subcategories_wrap {
    left: 22%;
    width: 78%;
  }
  .menu.active .btn-menu-close {
    right: calc((100% - 1456px) / 2 + 24px);
  }
}
