header {
  position: fixed;
  top: 0;
  width: 100%;
  transition: transform 0.3s ease;
  z-index: 1000;
  background-color: var(--background);
  border-radius: 0 0 32px 32px;
}
.mainWrapper {
  padding-top: 144px;
}
.headerWrapper {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 24px;
  align-items: center;
}
.headerNav {
  display: flex;
  border-radius: var(--small-border-radius);

  gap: 32px;
  align-items: center;
}
.headerItem {
  color: #fff;
  text-decoration: none;
  font-family: "PT Sans", sans-serif;
}
.headerItem.active {
  color: var(--green);
}
.headerSocials {
  display: flex;
  align-items: center;
  gap: 24px;
}
.headerSocials a {
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-family: "PT Sans", sans-serif;
}
.burger {
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}
.burgerWrapper .headerSocials {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.burger-icon {
  transition: transform 0.3s ease;
  pointer-events: none;
}

.line {
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Анимация при активации */
.burger.active .top {
  transform: translateY(8px) translateX(-4px) rotate(45deg);
  transform-origin: 50% 50%;
}

.burger.active .middle {
  opacity: 0;
}

.burger.active .bottom {
  transform: translateY(-8px) translateX(-4px) rotate(-45deg);
  transform-origin: 50% 50%;
}
.headerItem {
  padding: 14px 0 14px 0;
}
.headerItem svg {
  margin-left: 5px;
  transition: transform 0.3s ease;
}
#dropdown-menu {
  position: relative;
}
#dropdown-menu a {
  transition: color 0.3s ease;
  color: var(--lightgrey);
  text-decoration: none;
}
#dropdown-menu a:hover {
  color: var(--green);
}
.categoryDropdownWrapper {
  display: none;
}
.categoryMobileDropdownWrapper {
  display: none;
}
.categoryDropdown .borderRadius1,
.categoryDropdown .borderRadius2 {
  fill: var(--graycards);
  margin: 0;
}
.categoryDropdown .borderRadius1 {
  position: absolute;
  right: 100%;
  top: 0;
}
.categoryDropdown .borderRadius2 {
  position: absolute;
  left: 100%;
  top: 0;
}
.categoryDropdown {
  position: absolute;
  top: 100%;
  left: -8px;
  background-color: var(--graycards);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 8px 8px 8px;
  border-radius: 0 0 16px 16px;
  z-index: 10;
  width: fit-content;
  min-width: max-content;
}

.categoryDropdown a {
  display: block;
  min-width: max-content;
  font-size: 16px;
  color: var(--lightgrey);
  text-decoration: none;
  transition: color 0.3s ease;
}
.categoryDropdown .active {
  color: var(--green) !important;
}
.categoryDropdown a:hover {
  color: var(--green);
}

.rotate {
  transform: rotate(180deg);
}
.link-hovered {
  color: var(--green) !important;
}
#catalogLink.active {
  color: var(--green) !important;
}
#catalogLink.active .dropdown-arrow path {
  fill: var(--green);
}
#catalogLink .dropdown-arrow path {
  fill: var(--lightgrey);
}
.link-hovered .dropdown-arrow path {
  fill: var(--green) !important;
}
.burgerWrapper {
  position: fixed;
  right: -100%;
  top: 56px;
  background-color: var(--background);
  width: 100%;
  z-index: 10;
  height: calc(100svh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--lightgrey);
  padding: 22px 16px 48px 16px;
  transition: right 0.3s ease;
}
.burgerNav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}
.burgerWrapper.open {
  right: 0;
}
.burgerWrapper .headerItem {
  width: 100%;
  text-align: left;
}
.burgerMenuButton {
  justify-self: flex-end;
}
.mobileCatalogButton {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
#mobileCatalogArrow path {
  fill: white;
}
.mobileCatalogArrow-active {
  transform: rotate(180deg);
}
.mobileCatalogArrow-active path {
  fill: var(--green) !important;
}
.no-scroll {
  overflow: hidden;
}
.modalWrapper {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1001;
  display: none;
  padding: 16px;
}
.modalBody {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  padding: 48px;
  background-color: var(--grey);
  border-radius: 32px;
  width: calc(100% - 32px);
  max-width: 650px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.modalMenuBody {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  padding: 32px 48px;
  background-color: var(--grey);
  border-radius: 32px;
  width: calc(100% - 32px);
  max-width: 850px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: center;
}
.modalMenuBody .menuName {
  font-size: 48px;
  margin-bottom: 20px;
}
.modalMenuBody p {
  margin-bottom: 20px;
  color: #fff;

  text-align: left;
  width: 100%;
}
.menuListWrapper {
  max-height: 350px;
  overflow: auto;
}
.modalBody p {
  margin-bottom: 20px;
  color: #fff;
  max-width: 500px;
}
.modalBody button {
  width: 100%;
}
.modalCross {
  position: absolute;
  right: 48px;
  top: 32px;
  cursor: pointer;
}
.modalForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.modalForm button {
  margin-top: 20px;
  width: 100%;
}
.modalButtonGroup {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.modalButtonGroup button,
.modalButtonGroup a {
  flex: 1;
}
.modalButtonGroupVertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.modalButtonGroupVertical a {
  width: 100%;
}

@media (max-width: 1024px) {
  .mainWrapper {
    padding-top: 88px;
  }
  .headerNav {
    display: none;
  }
  .headerSocials {
    display: none;
  }
  .burger {
    display: flex;
  }
  .headerWrapper .logo {
    width: 147px;
  }
  .categoryDropdown .borderRadius1,
  .categoryDropdown .borderRadius2 {
    display: none;
  }
  .categoryDropdown {
    background-color: transparent;
    position: static;
    border-bottom: 1px solid var(--grey);
    border-radius: 0;
    padding-top: 8px;
  }
  .headerItem {
    padding: 0;
    width: 100%;
    display: inline-block;
  }
  .headerItem a {
    display: flex;
    align-items: center;
    width: 100%;
  }
  .headerWrapper button {
    display: none;
  }
}
@media (max-width: 950px) {
  .logo {
    font-size: 24px !important;
  }
  .mainWrapper {
    padding-top: 100px;
  }
}
@media (max-width: 800px) {
  .burgerMenuButton {
    width: 100%;
    max-width: 800px;
  }
  .modalButtonGroupVertical {
    gap: 8px;
  }
  .modalMenuBody .menuName {
    font-size: 32px;
    margin-bottom: 8px;
  }
  .menuTitle {
    font-size: 16px;
  }
}
@media (max-width: 500px) {
  .modalBody {
    padding: 16px 20px 20px 20px;
    gap: 12px;
  }
  .modalMenuBody {
    padding: 16px 20px 20px 20px;
  }
  .modalBody p {
    margin-bottom: 4px;
  }
  .modalLogo {
    width: 126px;
  }
  .modalForm {
    gap: 8px;
  }
  .modalForm button {
    margin-top: 8px;
  }
  .modalCross {
    width: 24px;
    height: 24px;
    top: 10px;
    right: 10px;
  }
  .modalImageSucess {
    width: 160px;
  }
  .modalImageCookie {
    width: 160px;
  }
  .modalButtonGroup {
    gap: 8px;
  }
}
