.header {
  border-bottom: 1px solid #e7e9fc;
  box-shadow: 0 1px 6px 0 rgba(46, 47, 66, 0.08),
    0 1px 1px 0 rgba(46, 47, 66, 0.16), 0 2px 1px 0 rgba(46, 47, 66, 0.08);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu,
.header-contacts-list {
  display: none;
}

.logo {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #4d5ae5;
}

.header-logo-color {
  color: #2e2f42;
}

.header-logo {
  padding: 16px 0;
  display: block;
}

.mob-menu-btn {
  padding: 0;
  border: none;
  background: transparent;
}

.mob-menu-icon {
  display: block;
  fill: #2f2f37;
  cursor: pointer;
}

@media screen and (min-width: 768px) {
  .mobile-menu {
    display: none;
  }

  .mob-menu-btn {
    display: none;
  }
  .header-logo {
    padding: 24px 0;
    margin-right: 120px;
  }

  .nav {
    display: flex;
    align-items: center;
  }

  .nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
  }

  .nav-menu-link {
    padding: 24px 0;
    display: block;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.02em;
    font-weight: 500;
    color: #2e2f42;
    position: relative;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-menu-link::after {
    position: absolute;
    content: '';
    background-color: #404bbf;
    height: 4px;
    width: 100%;
    border-radius: 2px;
    bottom: -1px;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-menu-link.is-active {
    color: #404bbf;
  }

  .nav-menu-link:hover,
  .nav-menu-link:focus,
  .header-contacts-link:hover,
  .header-contacts-link:focus {
    color: #404bbf;
  }

  .nav-menu-link:hover::after,
  .nav-menu-link:focus::after,
  .nav-menu-link.is-active::after {
    transform: scaleX(1);
  }

  .header-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .header-contacts-link {
    font-family: 'Roboto', sans-serif;
    display: block;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #434455;
    font-weight: 400;
  }
}

@media screen and (min-width: 1158px) {
  .header-logo {
    margin-right: 76px;
  }

  .header-contacts-link {
    font-family: 'Roboto', sans-serif;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    letter-spacing: 0.02em;
    font-size: 16px;
    padding: 24px 0;
    line-height: 1.5;
    color: #434455;
  }

  .header-contacts-list {
    align-items: center;
    flex-direction: row;
    gap: 40px;
  }
}

.header-contacts-item {
  font-style: normal;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-container {
  position: relative;
  padding-top: 72px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  stroke-width: 1px;
  border-radius: 50%;
  background-color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e7e9fc;
}

.mobile-menu-icon {
  fill: #2e2f42;
}

.mobile-menu-first {
  margin-bottom: auto;
}

.mobile-menu-list {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 40px;
}

.mobile-menu-item {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: 0.02em;
  color: #2e2f42;
}

.mobile-menu-link:focus,
.mobile-menu-link.is-active {
  color: #404bbf;
}

.mobile-adres {
  margin-bottom: 48px;
}

.mobile-contacts-list {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 24px;
}

.mobile-contacts-item {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #434455;
  font-style: normal;
}

.mobile-contacts-link:focus,
.mobile-contacts-link.is-active {
  color: #4d5ae5;
}

.mobile-icons-list {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: row;
  gap: 40px;
}

.mobile-icons-link {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background-color: #4d5ae5;
}

.mobile-icon {
  fill: #f4f4fd;
}
