.mobile-menu {
  display: none;
}

.mobile-menu__to-personal-account {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #101828;
  font-size: 15px;
  font-weight: 700;
}

.mobile-menu__to-personal-account img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.mobile-menu .current-time {
  margin-top: 18px;
  padding: 0;
  border: none;
}

.mobile-menu .current-time__title {
  font-size: 20px;
}

.mobile-menu .current-time__info {
  padding: 12px 0;
  border-bottom: 1px solid #eaecf0;
}

.mobile-menu .current-time__time {
  color: #0039A6;
  font-size: 34px;
  font-weight: 800;
}

.mobile-menu .current-time__text {
  color: #475467;
  font-size: 15px;
}

@media screen and (max-width: 1160px) {
  .menu__icon {
    width: 36px;
    height: 36px;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 50;
    display: block;
    width: 0;
    height: 100%;
    overflow-x: hidden;
    background: #ffffff;
    box-shadow: -20px 0 60px rgba(16, 24, 40, 0.16);
    transition: width 0.3s ease;
  }

  .mobile-menu--open {
    width: 320px;
  }

  .mobile-menu__ul {
    display: flex;
    flex-direction: column;
    padding: 14px 18px 40px;
  }

  .mobile-menu__li-first {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    border-bottom: 1px solid #eef2f7;
  }

  .mobile-menu__main,
  .mobile-menu__submenu,
  .mobile-menu__current-time {
    padding-top: 24px;
  }

  .mobile-menu__directions-list,
  .mobile-menu__subjects-list,
  .mobile-menu__current-time {
    display: none;
  }

  .mobile-menu__diagnostic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border: none;
    border-radius: 14px;
    background: #0039A6;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0, 57, 166, 0.22);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  }

  .mobile-menu__diagnostic-btn:hover,
  .mobile-menu__diagnostic-btn:focus-visible {
    background: #08246F;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 57, 166, 0.28);
  }

  .mobile-menu__diagnostic-btn:active {
    background: #08246F;
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0, 57, 166, 0.18);
  }

  .mobile-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 50px;
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid #eef2f7;
    background: transparent;
    color: #101828;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
  }

  .mobile-menu__link:hover {
    color: #0039A6;
  }

  .mobile-menu__link.mobile-menu__to-submenu {
    color: #0039A6;
    position: relative;
    padding-right: 26px;
  }

  .mobile-menu__to-submenu::after {
    content: "›";
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-52%);
    color: #0039A6;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
  }

  .mobile-menu__link.mobile-menu__link--back {
    color: #101828;
    position: relative;
    padding-left: 26px;
  }

  .mobile-menu__link--back::before {
    content: "‹";
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-52%);
    color: #0039A6;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
  }

  .close-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #0039A6;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .close-menu:hover {
    background: #eff4ff;
  }

  .close-menu__svg {
    width: 20px;
    height: 20px;
    color: #0039A6;
    stroke: #0039A6;
  }

  .active-mobile-menu,
  .black-bg__active {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(16, 24, 40, 0.52);
  }
}
