.show-from-tablet {
  display: none !important;
}

button {
  border: none;
  outline: none;
  background: none;
  padding: 0;
}

.mobile-menu-modal ul {
  list-style: none;
  padding: 0;
}

.mobile-menu-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 100;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.5s;
}

.mobile-menu-modal.visible {
  pointer-events: all;
  transform: translateX(0);
}

.mobile-burger-btn {
  display: flex;
  background-color: transparent;
  outline: none;
  border: none;
  width: 24px;
  height: 24px;
  background-image: url(../../images/cosmetology/burger.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  margin-left: auto;
}

.mobile-burger-btn.white {
  background-image: url(../../images/cosmetology/burger-white.svg);
}

.mobile-menu-modal__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 16px 20px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.mobile-menu-modal__close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.mobile-menu-modal__close-btn img {
  display: block;
  object-fit: contain;
}

.mobile-menu-modal__logo {
  max-width: 280px;
}

.mobile-menu-modal__search-row {
  display: grid;
  grid-template-columns: 270px 1fr;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.mobile-menu-modal__search-col {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pad: 0 20px;
  border-right: 1px solid rgba(0, 0, 0, 0.15);
  position: relative;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-form::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background-image: url("../../images/cosmetology/search.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

.search-input,
.search-input::placeholder {
  border: none;
  background: transparent;
  padding: 3px;
  font-size: 16px;
  font-family: "Magistralc";
  font-weight: 500;
  color: rgba(56, 65, 83, 0.5);
  outline: none;
}

.loader {
  width: 48px;
  height: 48px;
  border: 5px solid #fff;
  border-bottom-color: #0a8dbd;
  border-radius: 50%;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  margin: 0 auto;
  display: none;
}

.mobile-menu-modal .back-btn {
  display: flex;
  justify-self: flex-start;
  align-items: center;
  position: absolute;
  left: 20px;
  font-size: 16px;
  font-family: "Magistralc";
  font-weight: 500;
  color: rgba(56, 65, 83, 0.5);
  opacity: 0;
  pointer-events: none;
}

.mobile-menu-modal .back-btn::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background-image: url(../../images//cosmetology/back.webp);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

.mobile-menu-modal .back-btn.visible {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-modal .language-chooser {
  padding: 0 20px;
  display: flex;
  gap: 20px;
}

.mobile-menu-modal .language-chooser a {
  font-family: "Magistralc";
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  color: #9ba0a9;
  padding-bottom: 5px;
  position: relative;
}

.mobile-menu-modal .language-chooser a::after {
  content: "";
  width: 100%;
  height: 3px;
  border-radius: 5px;
  background-color: #384153;
  position: absolute;
  bottom: 0;
  left: 0;
  display: none;
}

.mobile-menu-modal .language-chooser > li.active a::after {
  display: block;
}

.mobile-menu-modal .language-chooser > li.active a {
  color: #384153 !important;
}

.mobile-menu-modal .language-chooser > li:first-child::after {
  display: none;
}

.mobile-menu-modal .language-chooser > li {
  padding: 0 !important;
}

.mobile-menu-modal__body {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  height: calc(100dvh - 160px);
  transition: height 0.3s;
}

.mobile-menu-modal__nav {
  background-color: #ecf0f8;
  padding: 20px 30px 20px 20px;
}

.mobile-main-menu {
  display: flex;
  gap: 30px 30px;
  flex-direction: column;
  max-height: 280px;
  flex-wrap: wrap;
  position: relative;
}

.mobile-main-menu__text {
  font-family: "Magistralc";
  color: #384153;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.mobile-main-menu .text-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.mobile-main-menu .text-dropdown::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background-image: url(../../images/cosmetology/dropdown-icon.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  transform: translateY(2px);
}

.mobile-main-menu .dropdown-wrap.visible .dropdown-list {
  opacity: 1;
  pointer-events: all;
}

.mobile-main-menu .dropdown-list {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #ecf0f8;
  z-index: 1;
  transition: opacity 0.3s;
}

.mobile-menu-modal .sublist,
.mobile-menu-modal .sublist__item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu-modal .sublist__link {
  font-family: "Magistralc";
  display: block;
  color: var(--color-text);
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

/* Buttons */

.book-btn {
  font-family: "Magistralc";
  display: flex;
  justify-content: center;
  align-items: center;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  /* border: 1px solid var(--color-red); */
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  color: #384153;
  text-align: center;
  position: relative;
  background-color: rgba(255, 255, 255, 0.8);
}

.book-btn::before {
  content: "";
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--color-red);
  position: absolute;
  top: 0;
  left: 0;
  animation: pulse 2s infinite;
}

.mobile-menu-modal__bottom {
  display: grid;
  grid-template-columns: 230px 1fr;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.mobile-menu-modal__bottom-col {
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-modal__bottom-col:not(:last-child) {
  border-right: 1px solid rgba(0, 0, 0, 0.15);
}

.socilal-links {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.mobile-menu-modal__bottomMail {
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mail-link {
  font-family: "Magistralc";
  display: flex;
  align-items: center;
  gap: 8px;
  color: #384153;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.mail-link::before {
  content: "";
  width: 24px;
  height: 24px;
  background-image: url("../../images/cosmetology/mail-icon.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(237, 28, 35, 0.5);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 10px rgba(237, 28, 35, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 50px rgba(237, 28, 35, 0);
  }
}

.w-nav-overlay {
  opacity: 0;
}

@media (min-width: 768px) {
  .w-nav-overlay {
    opacity: 1;
  }

  .show-from-tablet {
    display: flex !important;
  }

  .hide-from-tablet {
    display: none !important;
  }
}

@media (min-width: 1250px) {
  .show-from-tablet {
    display: none !important;
  }
}
