




#overlay {
  position: fixed;
  top: 0;
  left: 0;
  display: none;/*block*/
  width: 100%;
  height: 100%;
  z-index: 999;
  -webkit-animation: fade .6s;
  -moz-animation: fade .6s;
  animation: fade .6s;
  overflow: auto;
}

.bgc {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  background-color: #494747;
  opacity: 0.5;
  display: block;
  overflow: auto;
}

/* модальный блок */
.popup {
  top: 25%;
  left: 0;
  right: 0;
  font-size: 14px;
  margin: auto;
  max-width: 600px;
  min-width: 320px;
  position: absolute;
  padding: 15px 20px;
  background: #fff;
  z-index: 1000;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  border-radius: 48px;
  font: 14px/18px 'Tahoma', Arial, sans-serif;
  -webkit-animation: fade .6s;
  -moz-animation: fade .6s;
  animation: fade .6s;
  opacity: 1;
}

.popup__head {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 36px;
  font-weight: 700;
}

.popup__logo {
  width: 145px;
  height: 64px;
}

.popup__cities {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  align-items: center;
  gap: 40px;
  font-size: 32px;
}

.popup__link {
  text-decoration: none;
  color: #000000;
  transition: text-decoration 0.3s linear;
}

.popup__link:hover {
  text-decoration: underline;
}

@media (max-width:1000px) {
  .popup {
    max-width: 400px;
    min-width: 200px;
  }

  .popup__head {
    gap: 30px;
    font-size: 20px;
  }

  .popup__logo {
    width: 100px;
    height: auto;
  }

  .popup__cities {
    gap: 20px;
    font-size: 20px;
  }
}

@media (max-width:600px) {
  .popup {
    max-width: 320px;
    min-width: auto;
  }

  .popup__head {
    gap: 20px;
    font-size: 20px;
  }

  .popup__cities {
    gap: 20px;
    font-size: 20px;
  }
}

@media (max-width:350px) {
  .popup {
    max-width: 300px;
    min-width: auto;
  }

  .popup__head {
    gap: 20px;
    font-size: 14px;
  }

  .popup__cities {
    gap: 12px;
    font-size: 16px;
  }
}

/* анимация при появлении блоков с содержанием */
@-moz-keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1
  }
}

@-webkit-keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1
  }
}