/* header */

.header {
  width: 100%;
  top: 0;
  left: 0;
  min-height: 50px;
}
.header__wrapper {
  transition: all 0.5s ease-out;
  width: 100%;
  left: 0;
  top: 0;
  z-index: 50;
}
/* .header__wrapper._wider {
  transition: all 0.5s ease-out;
  height: 190px;
} */
.header__body {
  display: flex;
  flex-wrap: wrap;
  min-height: 105px;
  align-items: center;
  padding: 10px 0;
  gap: 10px;
  position: relative;
  transition: min-height 0.3s ease 0s;
}
@media (max-width: 991.98px) {
  .header__body {
    min-height: 80px;
  }
}
@media (max-width: 767.98px) {
  .header__body {
    min-height: 50px;
  }
}
.header__top {
  display: flex;
  flex-basis: 100%;
  align-items: center;
}
.header__logo {
  z-index: 5;
}
.header__logo img {
  width: clamp(100px, 145px, 145px);
  height: auto;
}
.header__bottom {
  display: flex;
  flex-basis: 100%;
  justify-content: space-between;
  align-items: center;
}
@media (min-width: 991.98px) {
  .header__search {
    flex: 1 1 auto;
  }
}
.header__actions {
  justify-content: space-between;
  display: flex;
}
.menu {
  flex: 1 1 auto;
  padding-right: clamp(30px, 50px, 50px);
}
@media (max-width: 767.98px) {
  .menu__body {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: auto;
    top: 0;
    left: -100%;
    background-color: #fefefa;
    transition: left 0.3s ease 0s;
    padding: 70px 15px 30px 15px;
  }
  .menu__body::before {
    content: '';
    position: fixed;
    width: 100%;
    height: 50px;
    top: 0;
    left: 0;
    transition: left 0.3s ease 0s;
    background-color: #fefefa;
    z-index: 2;
  }
  .menu__body._active {
    left: 0;
    top: 95px;
  }
  .menu__body._active::before {
    left: 0;
  }
}
@media (min-width: 767.98px) {
  .menu__list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}
.menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0 3px;
  gap: 10px;
  position: relative;
}

.menu__item:focus-within {
  border: none;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.5);
}

@media (any-hover: hover) {
  .menu__item:hover .menu__sub-list {
    transform: translate(0px, 0px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .menu__item:hover .menu__arrow {
    transform: rotate(-135deg);
    border-color: var(--accent);
  }
  .menu__item:hover .menu__link {
    color: var(--accent);
  }
}
@media (max-width: 767.98px) {
  .menu__item {
    margin: 0px 0px 15px 0px;
  }
  .menu__item:last-child {
    margin-bottom: 0;
  }
}
@media (any-hover: hover) {
  .menu__item:hover .menu__sub-list {
    transform: translate(0px, 0px);
    opacity: 1;
    visibility: visible;
    height: auto;
    pointer-events: auto;
  }
  .menu__item:hover .menu__arrow {
    transform: rotate(-135deg);
    border-color: var(--accent);
  }
  .menu__item:hover .menu__link {
    color: var(--accent);
  }
}

.menu__arrow {
  transition: all 0.3s ease-out;
  width: 9px;
  height: 9px;
  border: 2px solid var(--primary);
  border-left: transparent;
  border-top: transparent;
  transform: rotate(45deg);
  transition: all 0.3s ease-out;
}

.menu__item .menu__arrow:focus-visible {
  box-shadow: none;
  border: 2px solid var(--primary);
  transform: rotate(-135deg);
  border-left: transparent;
  border-top: transparent;
}

@media (any-hover: hover) {
  .menu__arrow:hover {
    color: var(--accent);
  }
}
@media (max-width: 767.98px) {
  .menu__arrow {
    height: 16px;
    width: 16px;
  }
  .menu__arrow._active {
    transform: rotate(-135deg);
  }
}
.menu__sub-list {
  position: relative;
  background-color: var(--bg);
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  flex: 1 1 100%;
  transition: all 0.3s ease-out;
  padding: 15px;
}

@media (min-width: 767.98px) {
  .menu__sub-list {
    opacity: 0;
    transition: all 0.3s ease-out;
    transform: translate(0px, 10px);
    visibility: hidden;
    min-width: 300px;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    height: 0;
    z-index: 5;
    overflow: hidden;
  }
}
.menu__sub-item {
  line-height: 1em;
}
.menu__sub-item:not(:last-child) {
  margin: 0px 0px 10px 0px;
}
.menu__link {
  color: var(--primary);
  font-weight: bold;
  transition: all 0.3s ease-out;
}

.menu__link:focus-visible {
  box-shadow: unset;
}

@media (max-width: 767.98px) {
  .menu__link {
    font-size: 24px;
  }
}
.menu__sub-link {
  line-height: 120%;
  color: var(--primary);
  transition: all 0.3s ease-out;
  font-weight: bold;
  margin-bottom: 10px;
  display: block;
}
.menu__sub-link:active {
  color: var(--accent);
}
@media (any-hover: hover) {
  .menu__sub-link:hover {
    color: var(--accent);
  }
}
@media (max-width: 767.98px) {
  .menu__sub-link {
    font-size: 18px;
  }
}
.sub-menu__sub-item {
  line-height: normal;
}
.sub-menu__sub-item:not(:last-child) {
  margin: 0px 0px 10px 0px;
}
.sub-menu__sub-link {
  color: var(--primary);
  line-height: 120%;
  transition: all 0.3s ease-out;
  padding-left: 10px;
}
.sub-menu__sub-link:active {
  color: var(--accent);
}
@media (any-hover: hover) {
  .sub-menu__sub-link:hover {
    color: var(--accent);
  }
}
@media (max-width: 767.98px) {
  .sub-menu__sub-link {
    font-size: 18px;
  }
}
.search-form {
  color: var(--accent);
  gap: 20px;
  max-width: 430px;
}
.search-form._active .search-form__item {
  opacity: 1;
  visibility: visible;
  top: 50%;
}
.search-form._active .search-form__icon {
  height: 30px;
  width: 30px;
}
.search-form__icon {
  z-index: 5;
  height: 30px;
  width: 30px;
  position: relative;
  z-index: 5;
}
.search-form__icon svg {
  width: 30px;
  height: 30px;
  pointer-events: none;
}
@media (min-width: 991.98px) {
  .search-form__icon {
    display: none;
  }
}
.search-form__item {
  display: flex;
  align-items: center;
  border: 1px solid lightgray;
  border-radius: 2px;
  padding: 5px;
}
@media (max-width: 991.98px) {
  .search-form__item {
    box-shadow: 0 0 5px rgba(212, 209, 205, 0.3);
    position: absolute;
    width: 70%;
    left: 0;
    top: -100%;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
  }
}
.search-form__input {
  padding: 10px;
  font-size: 14px;
  width: 100%;
  margin: 0px 20px 0px 0px;
}
.search-form__btn {
  flex: 0 0 35px;
  height: 35px;
}
.search-form__btn-icon {
  width: 30px;
  height: 30px;
}

.search-form__btn-icon.icons__item {
  width: 30px;
  height: 30px;
}
.actions-header {
  display: flex;
  flex: 1 1 auto;
  justify-content: end;
  align-items: center;
  gap: 30px;
  z-index: 5;
}
.actions-header__phone svg {
  width: 35px;
  height: 35px;
  position: relative;
  z-index: 5;
}
@media (min-width: 479.98px) {
  .actions-header__phone svg {
    display: none;
  }
}
.actions-header__request-call,
.actions-header__phone {
  color: var(--primary);
  font-weight: bold;
  transition: all 0.3s ease-out;
}
@media (any-hover: hover) {
  .actions-header__request-call:hover,
  .actions-header__phone-number:hover {
    color: var(--accent);
  }
}
@media (max-width: 479.98px) {
  .actions-header__phone .phone-number {
    display: none;
  }
}

@media (min-width: 479.98px) {
  .actions-header__phone-number .phone-icon {
    display: none;
  }
}

/* бургер-меню */

.icon-menu {
  display: none;
}
@media (max-width: 767.98px) {
  .icon-menu {
    margin-left: clamp(15px, 15px, 32px);
    position: relative;
    display: block;
    flex: 0 0 30px;
    height: 18px;
    cursor: pointer;
    z-index: 5;
  }
  .icon-menu span {
    transition: all 0.3s ease 0s;
    top: calc(50% - 1px);
    left: 0px;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #000;
  }
  .icon-menu span:first-child {
    top: 0px;
  }
  .icon-menu span:last-child {
    top: auto;
    bottom: 0px;
  }
  .icon-menu._active span {
    transform: scale(0);
  }
  .icon-menu._active span:first-child {
    transform: rotate(-45deg);
    top: calc(50% - 1px);
  }
  .icon-menu._active span:last-child {
    transform: rotate(45deg);
    bottom: calc(50% - 1px);
  }
}
