body.city-open {
  overflow-y: scroll;
  position: fixed;
  width: 100%;
  /* top: calc(-1 * var(--scroll-position)); */
}
body.city-open :is(.header, .footer) {
  /* pointer-events: none; */
  background-color: var(--primary-accent2);
}
.footer .footer-city__button {
  width: min-content;
  margin: 0 auto;
}

.city-button {
  --icon-fill: var(--primary-accent);

  display: flex;
  align-items: center;
  column-gap: 8px;
  cursor: pointer;
  color: var(--primary-accent);
  font-weight: 300;
  font-size: calc(12px + 4 * var(--window-resize));
  transition: color .3s ease;
}
body[class*="-full-width"] .city-button {
  color: var(--primary-accent);
}
.city-button:hover {
  color: var(--primary-accent2);
}
body[class*="-full-width"] .city-button:hover {
  color: var(--primary-accent3);
}
.city-button .icon {
  width: 20px;
  height: 20px;
}
body[class*="-full-width"] .city-button .icon {
  --icon-fill: var(--primary-accent);
}
.city-button:hover .icon {
  --icon-fill: var(--primary-accent2);
}
body[class*="-full-width"] .city-button:hover .icon {
  --icon-fill: var(--primary-accent3);
}

.city-wrap {
  z-index: 9999;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  padding-top: 50px;
  padding-bottom: 50px;
  background-color: var(--primary-accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, top .3s ease;
  overflow-y: auto;
  height: 100vh;

  @media screen and (max-width: 640px) {
    padding-top: 0;
    padding-bottom: 30px;
  }
}
.header-top ~ .header .city-wrap {
  height: calc(100vh - 130px);
  
  @media screen and (max-width: 640px) {
    height: calc(100vh - 40px);
  }
}
.footer .city-wrap {
  height: calc(100vh - 130px);
  
  @media screen and (max-width: 640px) {
    height: calc(100vh - 40px);
  }
}
body.city-open .city-wrap {
  opacity: 1;
  pointer-events: all;
}
body.city-open .header-top ~ .header .city-wrap {
  top: 130px;

  @media screen and (max-width: 640px) {
    top: 40px;
  }
}
.city-wrap .container {
  display: flex;
  row-gap: 24px;
  flex-direction: column;
  position: relative;
  padding-bottom: 200px;
}
.footer .city-wrap .container {
  padding-left: var(--container-offset);
  padding-right: var(--container-offset);
}

.city-popup-title {
  display: none;
  position: relative;

  width: 100%;
  min-height: 56px;
  text-transform: uppercase;
  color: var(--primary-accent4);
  font-weight: 400;
  font-size: calc(16px + 0 * var(--window-resize));
  border-bottom: 1px solid var(--primary-accent9);

  @media screen and (max-width: 640px) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }
}
.city-popup-close {
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -1px;
  transform: translateY(-50%);
}

.city-search {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--primary-opacity7);

  display: flex;
  align-items: center;
  justify-content: space-between;

  @media screen and (max-width: 640px) {
    padding-bottom: 20px;
  }
}
.city-search .field__control {
  --field-height: 26px;
  border: none;
  padding-left: 0;
  border-radius: 0;
  font-weight: 400;
}
.city-search .icon {
  --icon-size: 24px;
  --icon-fill: var(--primary-accent2);

  cursor: pointer;
  pointer-events: all;
}
.city-search-close {
  margin-left: 16px;

  @media screen and (max-width:640px){
    display: none;
  }
}
.city-result {
  position: absolute;
  left: var(--container-offset);
  top: 100%;
  margin-top: 24px;
}
.city-list, .city-result {
  width: 100%;
  display: grid;
  row-gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.city-result ~ .city-list {
  display: none;
}
.city-item {
  --link-color: var(--primary-color);

  font-weight: 500;
  font-size: calc(14px + 2 * var(--window-resize));
}