.ny-city[hidden],
.ny-city-fab[hidden] {
  display: none !important;
}

.ny-city,
.ny-city * {
  box-sizing: border-box;
}

.ny-city {
  align-items: center;
  background: rgba(3, 13, 25, 0.76);
  display: flex;
  font-family: "Lato", Arial, sans-serif;
  inset: 0;
  justify-content: center;
  overflow: auto;
  padding: 24px;
  position: fixed;
  z-index: 2147482000;
}

body.ny-city-lock {
  overflow: hidden !important;
}

.ny-city__dialog {
  background: #0d2a4b;
  border-radius: 14px;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.48);
  color: #fff;
  height: 427px;
  max-height: calc(100dvh - 48px);
  max-width: 1060px;
  overflow: hidden;
  padding: 0 !important;
  position: relative;
  width: calc(100vw - 48px);
}

.ny-city__visual {
  inset: 0;
  overflow: hidden;
  position: absolute;
}

.ny-city__visual::after {
  background: linear-gradient(
    90deg,
    rgba(4, 25, 50, 0.98) 0%,
    rgba(4, 25, 50, 0.92) 31%,
    rgba(4, 25, 50, 0.5) 52%,
    rgba(4, 25, 50, 0.05) 72%
  );
  content: "";
  inset: 0;
  position: absolute;
}

.ny-city__visual img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.ny-city__content {
  display: flex;
  flex-direction: column;
  height: 427px;
  padding: 38px 31px 23px 46px;
  position: relative;
  width: 50%;
  z-index: 2;
}

.ny-city__title {
  color: #fff;
  font-size: clamp(41px, 3.3vw, 47px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0 0 16px;
  padding: 0 !important;
  text-transform: none !important;
  text-wrap: balance;
}

.ny-city__amount {
  color: #cce8ff;
  font-size: 47px;
  font-weight: 900;
  line-height: 1;
  margin: 0 0 17px;
  white-space: nowrap;
}

.ny-city__amount span {
  font-size: 19px;
  font-weight: 400;
}

.ny-city__copy {
  color: #eef7ff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.42;
  margin: 0 0 19px;
  text-wrap: pretty;
}

.ny-no-wrap {
  white-space: nowrap;
}

.ny-city__cta {
  align-items: center;
  align-self: flex-start;
  background: #dcefff;
  border: 0;
  border-radius: 7px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  color: #12304d;
  cursor: pointer;
  display: inline-flex;
  font: 800 15px/1 Arial, sans-serif;
  gap: 24px;
  justify-content: center;
  min-height: 45px;
  padding: 13px 20px;
  text-decoration: none;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ny-city__cta:hover {
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
  color: #12304d;
  transform: translateY(-2px);
}

.ny-city__period {
  color: #c9dbea;
  font-size: 11px;
  line-height: 1.35;
  margin: auto 0 0;
  padding-top: 13px;
}

.ny-city__close {
  align-items: center;
  background: rgba(12, 42, 78, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  font: 400 31px/1 Arial, sans-serif;
  height: 44px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 44px;
  z-index: 4;
}

.ny-city__dialog:focus {
  outline: none;
}

.ny-city button:focus-visible,
.ny-city a:focus-visible,
.ny-city-fab:focus-visible {
  outline: 3px solid #cfeaff;
  outline-offset: 3px;
}

.ny-city-fab {
  background: transparent;
  border: 0;
  border-radius: 16px;
  bottom: max(92px, calc(env(safe-area-inset-bottom) + 22px));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
  cursor: pointer;
  height: 64px;
  padding: 0;
  position: fixed;
  right: 20px;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  width: 64px;
  z-index: 2147481000;
}

.ny-city-fab:hover {
  transform: translateY(-3px);
}

.ny-city-fab img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

@media (max-width: 720px) {
  .ny-city {
    padding: 12px;
  }

  .ny-city__dialog {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: calc(100dvh - 24px);
    max-width: 390px;
    overflow: auto;
    width: 100%;
  }

  .ny-city__visual {
    height: 183px;
    inset: auto;
    order: 1;
    position: relative;
    width: 100%;
  }

  .ny-city__visual::after {
    background: linear-gradient(180deg, transparent 68%, #0d2a4b 100%);
  }

  .ny-city__visual img {
    object-position: 61% center;
  }

  .ny-city__content {
    background: #0d2a4b;
    height: auto;
    min-height: 336px;
    order: 2;
    padding: 18px 20px 15px;
    width: 100%;
  }

  .ny-city__title {
    font-size: 30px;
    line-height: 1.04;
    margin-bottom: 14px;
  }

  .ny-city__amount {
    font-size: 40px;
    margin-bottom: 14px;
  }

  .ny-city__amount span {
    font-size: 18px;
  }

  .ny-city__copy {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 17px;
  }

  .ny-city__cta {
    font-size: 14px;
    min-height: 44px;
    padding: 12px 18px;
  }

  .ny-city__period {
    font-size: 10px;
    padding-top: 14px;
  }

  .ny-city__close {
    right: 8px;
    top: 8px;
  }

  .ny-city-fab {
    height: 58px;
    right: 14px;
    width: 58px;
  }
}

@media (max-width: 340px) {
  .ny-city__visual {
    height: 160px;
  }

  .ny-city__content {
    min-height: 325px;
    padding: 15px 15px 13px;
  }

  .ny-city__title {
    font-size: 28px;
  }

  .ny-city__copy {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ny-city__cta,
  .ny-city-fab {
    transition: none;
  }
}
