.np-bar {
  background: #017cc2;
  color: #fff;
  font-family: "Lato", Arial, Helvetica, sans-serif;
}

.np-bar[hidden] {
  display: none !important;
}

.np-bar__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 16px;
  text-align: center;
}

.np-bar__text {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  max-width: 920px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.np-bar__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.np-bar__code {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 6px;
  padding: 0 10px;
  border-radius: 35px;
  background: #fff;
  color: #017cc2;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1;
  vertical-align: middle;
}

.np-popup__close,
.np-popup__copy {
  box-sizing: border-box;
  margin: 0;
  border: 0;
  box-shadow: none;
  font-family: "Lato", Arial, Helvetica, sans-serif;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  user-select: none;
}

.np-popup__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 28px;
}

.np-popup {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 24px 16px;
  background: rgba(0, 0, 0, 0.62);
}

.np-popup.is-open {
  display: flex;
}

.np-popup[hidden] {
  display: none !important;
}

.np-popup__card {
  position: relative;
  box-sizing: border-box;
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 42px 40px 36px;
  border-radius: 8px;
  background: #fff;
  color: #242424;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  font-family: "Lato", Arial, Helvetica, sans-serif;
  font-weight: 400;
  text-align: center;
}

.np-popup__close {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #242424;
}

.np-popup__logo {
  display: block;
  width: 230px;
  max-width: 78%;
  height: auto;
  margin: 0 auto 22px;
}

.np-popup__title,
.np-popup__offer,
.np-popup__lead {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

.np-popup__title {
  margin: 0 0 12px;
  color: #242424;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.np-popup__offer {
  margin: 0 0 18px;
  color: #017cc2;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.np-popup__lead {
  margin: 0;
  color: #242424;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.np-popup__text {
  margin: 8px 0 0;
  color: #5c5c5c;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

.np-popup__code {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  margin-top: 28px;
  padding: 12px 16px;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  color: #242424;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.np-popup__copy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  padding: 12px 20px;
  border-radius: 35px;
  background: #017cc2;
  color: #fff;
  font-size: 16px;
}

.np-popup__copy:hover,
.np-popup__copy:focus-visible {
  background: #0167a3;
}

@media (max-width: 768px) {
  .np-bar__inner {
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  .np-bar__text {
    font-size: 13px;
  }

  .np-popup {
    padding: 12px;
  }

  .np-popup__card {
    width: 100%;
    padding: 36px 20px 24px;
  }

  .np-popup__title {
    font-size: 32px;
  }

  .np-popup__offer {
    font-size: 30px;
  }
}

.np-popup--image {
  padding: 48px 16px;
}

.np-popup__card--image {
  width: min(520px, 100%);
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
  line-height: 0;
}

.np-popup__poster,
.np-popup__poster-link {
  display: block;
  width: 100%;
}

.np-popup__poster {
  height: auto;
}

.np-popup__close--image {
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 24px;
}

@media (max-width: 768px) {
  .np-popup__card--image {
    width: min(420px, 100%);
  }
}
