:root {
  --blue: #07124a;
  --faded: #e1e1e1;
}

header,
nav,
.div-1,
.div-2 {
  width: 100%;
}

header {
  padding-top: 120px;
}
nav {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
}

nav .div-1 {
  background-color: var(--blue);
  color: #fff;
}

nav .logo {
  width: 200px;
  padding: 10px 15px;
}

#menu-toggle {
  display: none;
}

.menu-toggler {
  position: absolute;
  top: 20px;
  right: 0;
  padding: 15px;
}

.menu-toggler div {
  width: 40px;
  height: 5px;
  margin: 7px;
  background: #fff;
}

.phones {
  background-color: #fff;
  text-align: right;
  color: var(--blue);
  font-size: 18px;
  font-weight: bold;
  height: 0;
  transition: height 0.5s ease, padding 0.5s ease;
  overflow: hidden;
  padding: 0 10px;
}
#menu-toggle:checked ~ div .phones {
  padding: 10px;
  height: 60px;
}

.phones p {
  margin: 0;
}

.phones p:first-child {
  font-size: 22px;
  margin-bottom: 2px;
}

.phones p:first-child img {
  width: 20px;
  position: relative;
  top: 4px;
}
.phones p:nth-child(2) img {
  width: 24px;
  position: relative;
  top: 6px;
}
nav .nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  transition: overflow 0.6s, height 0.5s ease;
  height: 0;
}

#menu-toggle:checked ~ div .nav-menu {
  height: 400px;
  background-color: transparent;
}

nav li {
  width: 100%;
  text-align: center;
  background: var(--faded);
}

nav ul a {
  display: inline-block;
  width: 100%;
  padding: 15px 0;
  font-size: 22px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--blue);
  color: var(--blue);
  transition: background 0.5s ease, color 0.5s ease;
}

nav ul a:hover,
nav ul a.active {
  background: var(--blue);
  color: #fff;
}

/* Estilos para telas acima de 655px */
@media only screen and (min-width: 655px) {
  nav {
    background-color: var(--blue);
  }
  .menu-toggler {
    display: none;
    visibility: hidden;
  }

  .div-1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
    margin: auto;
  }

  .phones {
    background-color: transparent;
    color: #fff;
    height: auto !important;
  }
  .phones p:first-child img {
    content: url('../img/phone-icon.png');
  }

  .div-2 {
    background-color: var(--faded);
    border-top: 4px solid #fff;
  }

  nav .nav-menu {
    flex-direction: row;
    height: auto !important;
    justify-content: flex-end;
    max-width: 1100px;
    margin: auto;
    overflow: visible;
  }

  nav li {
    width: 200px;
  }
  nav ul a {
    border-bottom: none;
    border-right: 1px solid var(--blue);
    padding: 10px 0;
    position: relative;
    font-size: 18px;
    padding: 10px 0;
  }
  nav ul li:last-child a {
    border: none;
  }
}
