.header-scroll,
header {
  position: sticky;
  top: 0;
}

.header__navigation-mobile .full-width .menu-item,
.main-navigation ul ul a {
  width: 100%;
}

.hide-plate-btn,
.social-list {
  margin-right: 15px;
}

.hide-plate,
body.toggle .logo {
  padding: 12px 0;
}

@media only screen and (max-width: 1200px) {
  .hide-plate {
    padding: 10px 0;
  }
}

#burger-btn,
body.toggle .header .menu-item-has-children:hover {
  cursor: pointer;
}

header {
  background-color: #f6f6f6;
  color: var(--color-gray-blue);
  z-index: 999;
}

.header__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 45px;
}

.header__menu {
  gap: 24px;
}

header .menu-item-has-children>a:after {
  content: "";
  display: inline-block;
  width: 20px;
  aspect-ratio: 1 / 1;
  background-image: url("data:image/svg+xml,%3Csvg width='21' height='22' viewBox='0 0 21 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.00195 9.24902L10.5017 12.7488L14.0015 9.24902' stroke='%2327383F' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  vertical-align: middle;
  position: relative;
  top: -1px;
  transition: transform 0.4s ease;
}

.main-navigation ul li:hover>a::after {
  transform: rotate(180deg);
}

@media only screen and (max-width: 1200px) {
  header .menu-item-has-children>a:after {
    display: none;
  }
}

.header__navigation {
  width: auto;
  font-size: 14px;
  font-weight: 700;
  line-height: 175%;
  text-transform: uppercase;
}

.header__menu .sub-menu li,
.hide-plate-title {
  font-size: 16px;
  font-weight: 400;
}

@media only screen and (max-width: 1200px) {
  .hide-plate-title {
    font-size: 14px;
  }
}

.header__menu li a {
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

.header__menu:hover a:not(:hover) {
  opacity: 0.6;
}

.header__menu .sub-menu {
  background-color: #fff;
  padding: 24px 10px 24px 32px;
  flex-direction: column;
  left: -25px;
  right: -135%;
  max-width: 230px;
  width: auto;
  gap: 15px;
}

.header__menu li .sub-menu li {
  position: static;
}

.header__menu li .sub-menu li>a {
  display: flex;
}

.header__menu li .sub-menu li>a::after {
  transform: rotate(-90deg);
  margin-left: auto;
}

.header__menu li .sub-menu li:hover a::after {
  transform: rotate(-90deg);
}

.header__menu li .sub-menu li .sub-menu {
  left: 100%;
  z-index: -1;
  top: -1px;
  color: var(--color-gray-blue);
  height: 101%;
  box-shadow: none;
}

.header__menu .sub-menu li {
  text-transform: none;
  transition: 0.3s;
}

#burger-menu,
body.toggle .header {
  transition: 0.5s ease-in-out;
  width: 100%;
}

#burger-menu .button-main {
  width: auto;
}

.header__menu .sub-menu li a {
  transition: color 0.4s ease;
  opacity: 1 !important;
}

.header__menu .sub-menu li a:hover,
.header__menu .sub-menu li a:focus {
  color: #3593ff;
}

.main-navigation ul li>ul {
  /* clip-path: inset(0px 0px 100%); */
  transition: 0.3s ease-in;
  opacity: 0;
  visibility: hidden;
}

.header__menu .sub-menu li.current_page_item a {
  font-weight: 600;
}

.main-navigation ul li:hover>ul {
  /* clip-path: inset(0px 0px -4px); */
  left: -25px;
  opacity: 1;
  visibility: visible;
}

.hide-plate {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--color-gray-blue);
  color: #fff;
}

.hide-plate-title {
  display: flex;
  align-items: center;
  margin-left: auto;
  font-style: normal;
  line-height: 155%;
  text-align: center;
  font-weight: 600;
  transition: opacity 0.4s ease;
}

@media only screen and (max-width: 575px) {
  .hide-plate-title {
    font-size: 12px;
    line-height: 0.75;
    margin-left: 15px;
  }
}

.hide-plate-title svg {
  display: block;
  position: relative;
  top: 1px;
  margin-left: 10px;
  transition: transform 0.4s ease;
}

@media only screen and (max-width: 575px) {
  .hide-plate-title svg {
    display: none;
  }
}

.hide-plate-title:hover,
.hide-plate-title:focus {
  opacity: 0.85;
}

.hide-plate-title:hover svg,
.hide-plate-title:focus svg {
  transform: translateX(25%);
}

.hide-plate-btn {
  margin-left: auto;
  cursor: pointer;
  padding: 5px;
}

.hide-plate-btn svg {
  display: block;
}

.hide-plate-btn svg path {
  transition: stroke 0.4s ease;
}

.hide-plate-btn:hover svg path,
.hide-plate-btn:focus svg path {
  stroke: white;
}

.hide-plate.disabled,
body.toggle .hide-plate {
  display: none;
}

.header__wrapper {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: inherit;
  height: 100px;
}

@media only screen and (max-width: 1200px) {
  .header__wrapper {
    height: 70px;
  }
}

.main-navigation {
  margin-left: auto;
  margin-right: 85px;
}

@media only screen and (max-width: 1400px) {
  .main-navigation {
    margin-right: 60px;
  }
}

@media only screen and (max-width: 1360px) {
  .main-navigation {
    margin-right: 30px;
  }
}

.header__menu {
  gap: 25px;
}

@media only screen and (max-width: 1360px) {
  .header__menu {
    gap: 15px;
  }
}

.header__button .button-main {
  padding: 22px 28px;
  min-width: 0;
}

.header__navigation-mobile {
  margin-left: auto;
  display: none;
}

.header-scroll {
  box-shadow: 0 3px 5px 0.3px rgba(0, 0, 0, 0.1);
  z-index: 800;
}

#burger-btn,
.logo-alt,
body.toggle .header .menu-item-has-children {
  position: relative;
}

.logo-alt,
body.toggle .header #burger-btn {
  z-index: 10;
}

#burger-btn {
  height: 25px;
  width: 25px;
  overflow: visible;
  z-index: 2;
}

#burger-btn span,
#burger-btn span:after,
#burger-btn span:before {
  background: #27383f;
  display: block;
  height: 2px;
  opacity: 1;
  position: absolute;
  transition: 0.3s ease-in-out;
  border-radius: 20px;
}

#burger-btn span:after,
#burger-btn span:before {
  content: "";
}

#burger-btn span {
  right: 13px;
  top: 12px;
  width: 24px;
}

#burger-btn span:before {
  left: 0;
  top: -7px;
  width: 24px;
}

#burger-btn span:after {
  left: 0;
  top: 7px;
  width: 24px;
}

#burger-btn.close {
  height: 48px;
  width: 48px;
  background: #f7f7f7;
}

#burger-btn.close span {
  top: 48%;
  right: 34%;
  transform: rotate(-45deg);
  width: 14px;
}

#burger-btn.close span:before {
  top: 0;
  transform: rotate(90deg);
  width: 14px;
}

#burger-btn.close span:after {
  top: 0;
  left: 0;
  transform: rotate(90deg);
  opacity: 0;
  width: 0;
}

.header__menu .sub-menu {
  top: calc(30% + 35px);
  border: 1px solid #f3f3f3;
  box-shadow: -5px 4px 20px rgba(0, 0, 0, 0.04);
}

.header__menu .sub-menu li:hover {
  color: #0672e2;
}

#burger-menu {
  padding-top: 30px;
  min-height: calc(100vh - 70px - 60px);
  z-index: 999;
  padding-bottom: 30px;
  box-sizing: content-box;
  left: 0;
  background: #fff;
  position: absolute;
  top: 70px;
  transform: translateX(-120%);
}

#burger-menu .menu-item {
  display: flex;
  flex-direction: column;
  align-items: start;
  margin-bottom: 33px;
}

#burger-menu .menu-item a {
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 135%;
  color: var(--color-black);
  letter-spacing: -0.02em;
}

#burger-menu .header__menu .sub-menu a,
#burger-menu .sub-menu a {
  font-style: normal;
  font-weight: 400;
  line-height: 155%;
  color: rgba(0, 0, 0, 0.7);
  font-size: 18px;
}

#burger-menu .sub-menu {
  margin-left: 15px;
  margin-top: 15px;
  opacity: 1;
  max-height: 0;
  visibility: visible;
  overflow: hidden;
  transition: max-height 0.3s;
}

#burger-menu .menu-item.active .sub-menu {
  opacity: 1;
  max-height: 100%;
  visibility: visible;
  margin-top: 15px;
}

#burger-menu .sub-menu a::after {
  content: "";
  display: none;
}

#burger-menu .header__menu .sub-menu {
  padding: 0;
  margin: 0;
  max-width: 100%;
}

#burger-menu .header__menu .sub-menu .menu-item {
  margin-top: 16px;
  margin-bottom: 0;
}

#burger-menu .header__menu .sub-menu a {
  margin-left: 16px;
}

#burger-menu .header__button {
  margin: 0 auto;
  max-width: 335px;
}

#burger-menu .social-list {
  display: flex;
  justify-content: center;
  margin: 24px auto 0;
  max-width: 335px;
}

#burger-menu .social-list a {
  width: 36px;
  height: 36px;
  color: var(--color-gray-blue);
}

#burger-menu .social-list i {
  margin-top: 2px;
}

.logo-alt {
  display: none;
  width: 120px;
  height: 62px;
}

body.toggle,
html.toggle {
  height: 100vh;
  overflow: hidden;
}

body.toggle .header {
  position: fixed;
  top: 0;
  height: 100%;
  background-color: #fff;
  z-index: 800;
  overflow: scroll;
}

body.toggle .header #burger-btn span,
body.toggle .header #burger-btn span:after,
body.toggle .header #burger-btn span:before {
  background: #27383f;
}

body.toggle .header #burger-menu {
  transform: translateZ(0);
}

body.toggle .header .menu-item-has-children::after {
  content: "";
  width: 7.5px;
  height: 7.5px;
  border-top: 2px solid #1d1d1d;
  border-left: 2px solid #1d1d1d;
  transform: rotate(227deg) translateX(-50%);
  position: absolute;
  top: 0;
  right: 25px;
  transition: 0.5s;
}

body.toggle .header .menu-item .sub-menu .menu-item::after {
  display: none;
}

body.toggle .header .menu-item-has-children.active::after {
  transform: rotate(47deg) !important;
  top: 7px !important;
}

body.toggle .header .menu-item-has-children .menu-item {
  margin-bottom: 15px !important;
  text-align: left;
}

body.toggle .header .menu-item-has-children .menu-item:last-child {
  margin-bottom: 0 !important;
}

body.toggle .header .social-list {
  gap: 6px;
}

body.toggle .header a {
  position: initial;
}

body.toggle .logo-alt {
  display: block;
}

.header .logo {
  padding: 10px 0;
}

.additional-menu {
  padding: 18px 0;
  background: #f6f6f6;
  border-top: 1px solid rgba(204, 204, 204, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.additional-menu .container {
  max-width: 1200px;
}

.additional-menu__links {
  display: flex;
  justify-content: space-evenly;
}

.additional-menu__link {
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  color: #8d8d8d !important;
  transition: color 0.5s;
}

.additional-menu__link::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ffc300;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.additional-menu__link:hover,
.additional-menu__link:focus {
  color: #27383f !important;
}

.additional-menu__link:hover::before,
.additional-menu__link:focus::before {
  opacity: 1;
}

.custom-logo-link {
  margin-right: 10px;
}

.custom-logo-link,
.custom-logo-link img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 156px;
}

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

  .custom-logo-link,
  .custom-logo-link img {
    max-width: 120px;
  }
}

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

  .header .header__button,
  .header .header__navigation,
  .header .social-list {
    display: none;
  }

  .header__navigation-mobile,
  body.toggle .header .header__burger-menu .header__button,
  body.toggle .header .header__burger-menu .header__navigation,
  body.toggle .header .header__burger-menu .social-list {
    display: block;
  }
}