* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #ded39a;
  color: #fff;
  font-family: "Trebuchet MS", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.menu-page {
  width: calc(100% - 50px);
  min-height: calc(100vh - 34px);
  margin-left: 50px;
  padding: 72px 70px 64px;
  background: #000;
}

.menu-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

.menu-nav a {
  position: relative;
  display: inline-block;
  line-height: 1.2;
}

.menu-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  transform: translateX(-50%);
}

.search-mark {
  width: 34px;
  height: 34px;
  border: 4px solid #fff;
  border-radius: 50%;
  position: relative;
}

.search-mark::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: -8px;
  width: 17px;
  height: 4px;
  border-radius: 3px;
  background: #fff;
  transform: rotate(-45deg);
}

.close-link {
  margin-left: auto;
  width: 42px;
  height: 42px;
  position: relative;
}

.close-link::before,
.close-link::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  width: 42px;
  height: 4px;
  border-radius: 2px;
  background: #fff;
}

.close-link::before {
  transform: rotate(45deg);
}

.close-link::after {
  transform: rotate(-45deg);
}

.menu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  column-gap: 90px;
  margin-top: clamp(130px, 17vh, 205px);
}

.menu-title {
  margin: 0 0 90px;
  font-size: clamp(68px, 7vw, 118px);
  font-weight: 500;
  line-height: 1;
}

.menu-list {
  display: grid;
  gap: 42px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(42px, 4.4vw, 68px);
  line-height: 1.12;
}

.side-list {
  display: grid;
  align-content: start;
  gap: 58px;
  margin: 220px 0 0;
  padding: 0;
  list-style: none;
  font-size: 26px;
  font-weight: 700;
}

.side-list a,
.menu-list a {
  display: inline-block;
}

.side-list a:hover,
.menu-list a:hover,
.menu-nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}

.contact-page {
  min-height: 100vh;
  background: #f8f2d8;
  color: #000;
}

.offline-note {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  padding: 10px 14px;
  border: 2px solid #000;
  background: #f8f2d8;
  color: #000;
  font-size: 14px;
  display: none;
}

@media (max-width: 900px) {
  .menu-page {
    width: calc(100% - 18px);
    min-height: calc(100vh - 18px);
    margin-left: 18px;
    padding: 34px 28px 48px;
  }

  .menu-nav {
    flex-wrap: wrap;
    gap: 22px;
    font-size: 18px;
  }

  .close-link {
    width: 32px;
    height: 32px;
  }

  .close-link::before,
  .close-link::after {
    top: 15px;
    width: 32px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    row-gap: 48px;
    margin-top: 90px;
  }

  .menu-title {
    margin-bottom: 52px;
  }

  .menu-list {
    gap: 28px;
  }

  .side-list {
    margin: 20px 0 0;
    gap: 28px;
  }
}
