@media (max-width: 768px) {
  .header__mobile__wrapper {
    flex: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    grid-column: 12 / span 1;
  }

  .nav {
    max-width: 500px;
    height: 100vh;
    width: 100%;
    background-color: var(--primary);
    position: fixed;
    left: 0;
    margin-left: -100%;
    top: 0;
    z-index: 111;
    padding: 50px;
    display: flex;
    text-align: center;
    transition: all 0.5s;
    align-items: center;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
  }

  div.nav.is-open {
    margin-left: 0;
    visibility: visible;
    opacity: 1;
  }

  #menu-main-menu a {
    font-size: 24px !important;
    line-height: 1.6em;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--accent);
  }
  #menu-main-menu ul.sub-menu {
    padding: 0;
  }
  #menu-main-menu ul.sub-menu li a {
    font-size: 16px;
  }

  .menu-main-menu-container {
    width: 100%;
  }

  #menu-main-menu {
    width: 100%;
    padding: 0;
    margin: 0;
    justify-content: center;
    display: flex;
    flex-direction: column;
  }

  #menu-main-menu li {
    list-style-type: none;
  }

  .nav__wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .modal-open {
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: all 0.5s;
  }

  .modal-open-body {
    overflow: hidden;
  }

  .nav__logo {
    max-width: 250px;
    margin: 0 auto;
    display: block;
  }

  /*css menü */
  .menu-icon {
    position: relative;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 111;
  }
  .menu-icon .menu-icon__cheeckbox {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    z-index: 2;
    -webkit-touch-callout: none;
    position: absolute;
    opacity: 0;
  }
  .menu-icon div {
    margin: auto;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 22px;
    height: 12px;
  }
  .menu-icon span {
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text);
    border-radius: 1px;
    transition: all 0.2s cubic-bezier(0.1, 0.82, 0.76, 0.965);
  }

  .menu-icon.active span {
    background-color: var(--accent);
  }

  .menu-icon__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap; /* Prevent text from wrapping */
    border: 0;
  }

  .menu-icon span:first-of-type {
    top: 0;
  }
  .menu-icon span:last-of-type {
    bottom: 0;
  }
  .menu-icon.active span:first-of-type,
  .menu-icon .menu-icon__cheeckbox:checked + div span:first-of-type {
    transform: rotate(45deg);
    top: 5px;
  }
  .menu-icon.active span:last-of-type,
  .menu-icon .menu-icon__cheeckbox:checked + div span:last-of-type {
    transform: rotate(-45deg);
    bottom: 5px;
  }
  .menu-icon.active:hover span:first-of-type,
  .menu-icon.active:hover span:last-of-type,
  .menu-icon:hover .menu-icon__cheeckbox:checked + div span:first-of-type,
  .menu-icon:hover .menu-icon__cheeckbox:checked + div span:last-of-type {
    width: 22px;
  }

  .nav {
    padding: 24px;
  }
  #menu-main-menu a {
    font-size: 28px;
  }
}
