*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --nx-deep: #0d3b45;
  --nx-main: #12626f;
  --nx-amber: #f4a259;
  --nx-amber-deep: #d97e2b;
  --nx-ink: #16262a;
  --nx-mute: #5b7076;
  --nx-bg: #f7fbfa;
  --nx-panel: #ffffff;
  --nx-line: #d9e8e6;
  --nx-font-head: Georgia, "Times New Roman", serif;
  --nx-font-ui: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --nx-r-sm: 10px;
  --nx-r-md: 18px;
  --nx-r-lg: 28px;
  --nx-sh-1: 0 6px 18px rgba(13, 59, 69, 0.07);
  --nx-sh-2: 0 16px 38px rgba(13, 59, 69, 0.11);
  --nx-sh-3: 0 26px 62px rgba(13, 59, 69, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--nx-font-head);
  color: var(--nx-ink);
  background:
    radial-gradient(circle at 88% -6%, rgba(244, 162, 89, 0.16), transparent 38%),
    radial-gradient(circle at 6% 4%, rgba(18, 98, 111, 0.13), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--nx-bg) 46%, #eef6f4 100%);
  min-height: 100%;
}

/* ── шапка ─────────────────────────────────────────────── */
.nx-topbar {
  padding: 17px 20px;
  text-align: center;
  background: rgba(247, 251, 250, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nx-line);
}
.nx-topbar__brand {
  display: inline-block;
  font-family: var(--nx-font-ui);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--nx-main);
  transition: color 0.2s ease;
}
.nx-topbar__brand:hover {
  color: var(--nx-deep);
}

/* ── заголовок над відео ───────────────────────────────── */
.nx-hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 58px 20px 26px;
}
.nx-hero__title {
  margin: 0;
  text-align: center;
  font-family: var(--nx-font-head);
  font-weight: 700;
  font-size: clamp(29px, 4.8vw, 55px);
  line-height: 1.16;
  color: var(--nx-deep);
}
.nx-hero__title--mark {
  display: inline-block;
  margin: 3px 4px;
  padding: 2px 16px 5px;
  border-radius: 999px;
  color: var(--nx-ink);
  background: linear-gradient(
    118deg,
    rgba(18, 98, 111, 0.16) 0%,
    rgba(244, 162, 89, 0.3) 100%
  );
  border: 1px solid rgba(217, 126, 43, 0.4);
  box-shadow: var(--nx-sh-1);
}

/* ── відео ─────────────────────────────────────────────── */
.nx-stage {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}
#nx-video-frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  height: auto;
  overflow: hidden;
  background: #000;
  border-radius: var(--nx-r-lg);
  border: 1px solid rgba(13, 59, 69, 0.12);
  box-shadow: var(--nx-sh-3);
}
.nx-stage__clip {
  display: block;
  width: 100%;
  height: auto;
}

/* кнопка запуску — скляна горизонтальна пігулка по центру відео */
#nx-play-gate {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 11px 26px 11px 12px;
  border-radius: 999px;
  cursor: pointer;
  text-align: left;
  color: #fff;
  background: rgba(13, 59, 69, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--nx-sh-2);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}
#nx-play-gate:hover {
  background: rgba(13, 59, 69, 0.56);
  transform: translate(-50%, calc(-50% - 3px));
  box-shadow: 0 26px 54px rgba(13, 59, 69, 0.42);
}
#nx-play-gate:focus-visible {
  outline: 2px solid var(--nx-amber);
  outline-offset: 3px;
}
.nx-play-gate__disc {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--nx-amber), var(--nx-amber-deep));
  box-shadow: 0 6px 16px rgba(217, 126, 43, 0.45);
}
.nx-play-gate__disc::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background: rgba(244, 162, 89, 0.34);
  animation: nx-aura 2.1s ease-out infinite;
  pointer-events: none;
}
@keyframes nx-aura {
  0% {
    transform: scale(0.82);
    opacity: 0.72;
  }
  70% {
    transform: scale(1.32);
    opacity: 0;
  }
  100% {
    transform: scale(1.32);
    opacity: 0;
  }
}
.nx-play-gate__icon {
  position: relative;
  width: 16px;
  height: 16px;
  fill: #fff;
}
.nx-play-gate__copy {
  display: block;
}
.nx-play-gate__title {
  display: block;
  font-family: var(--nx-font-ui);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.nx-play-gate__hint {
  display: block;
  margin-top: 2px;
  font-family: var(--nx-font-ui);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.03em;
  opacity: 0.86;
}
@media (max-width: 480px) {
  #nx-play-gate {
    gap: 11px;
    padding: 9px 18px 9px 9px;
  }
  .nx-play-gate__title {
    font-size: 14px;
  }
  .nx-play-gate__hint {
    font-size: 11px;
  }
}
.nx-is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#nx-wide-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(13, 59, 69, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
#nx-wide-btn:hover {
  background: rgba(13, 59, 69, 0.92);
}
#nx-wide-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#nx-video-frame:fullscreen,
#nx-video-frame:-webkit-full-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}
#nx-video-frame:fullscreen .nx-stage__clip,
#nx-video-frame:-webkit-full-screen .nx-stage__clip {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── форма замовлення ──────────────────────────────────── */
.nx-order {
  padding: 40px 16px 10px;
}
.nx-order__wrap {
  max-width: 600px;
  margin: 0 auto;
}
.nx-order-card {
  display: grid;
  gap: 0;
  background: var(--nx-panel);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-md);
  padding: 22px 20px 20px;
  box-shadow: var(--nx-sh-2);
}
.nx-order-card__title {
  text-align: center;
  font-family: var(--nx-font-ui);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--nx-deep);
  margin-bottom: 14px;
}
.nx-order-card__media {
  display: flex;
  justify-content: center;
  align-items: center;
}
.nx-order-card__media img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  border-radius: var(--nx-r-sm);
}
@media (max-width: 768px) {
  .nx-order-card__media img {
    max-height: 240px;
  }
}
@media (max-width: 480px) {
  .nx-order-card__media img {
    max-height: 200px;
  }
}
.nx-order-card__stock {
  text-align: center;
  margin: 12px 0 18px;
}
.nx-order-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 15px;
  border-radius: 999px;
  background: #edf6f5;
  border: 1px solid var(--nx-line);
  font-family: var(--nx-font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--nx-main);
}
.nx-order-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nx-amber);
  box-shadow: 0 0 0 3px rgba(244, 162, 89, 0.24);
  display: inline-block;
}
.nx-order-card__field {
  margin-bottom: 13px;
}
.nx-order-card__label {
  display: block;
  margin: 0 0 6px;
  font-family: var(--nx-font-ui);
  font-size: 14px;
  font-weight: 700;
  color: var(--nx-ink);
}
.nx-order-card__input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-sm);
  background: #fbfefd;
  font-family: var(--nx-font-ui);
  font-size: 16px;
  color: var(--nx-ink);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.nx-order-card__input::placeholder {
  color: #9db2b6;
}
.nx-order-card__input:focus {
  background: #fff;
  border-color: var(--nx-main);
  box-shadow: 0 0 0 4px rgba(18, 98, 111, 0.14);
}
.nx-order-card__submit {
  width: 100%;
  margin-top: 5px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  border: none;
  border-radius: var(--nx-r-sm);
  background: linear-gradient(135deg, var(--nx-amber), var(--nx-amber-deep));
  color: #2a1503;
  font-family: var(--nx-font-ui);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(217, 126, 43, 0.3);
  transition:
    filter 0.2s ease,
    transform 0.06s ease,
    box-shadow 0.2s ease;
}
.nx-order-card__submit:hover {
  filter: brightness(1.05);
  box-shadow: 0 16px 32px rgba(217, 126, 43, 0.38);
}
.nx-order-card__submit:active {
  transform: translateY(1px);
}
.nx-order-card__note {
  margin-top: 14px;
  text-align: center;
  font-family: var(--nx-font-ui);
  font-size: 12px;
  line-height: 1.6;
  color: var(--nx-mute);
}
.nx-order-card__trap {
  position: absolute;
  left: -9999px;
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
}

/* ── футер ─────────────────────────────────────────────── */
.nx-footer {
  margin-top: 34px;
  padding: 22px 20px 20px;
  background: #eef6f4;
  border-top: 1px solid var(--nx-line);
  font-family: var(--nx-font-ui);
  text-align: center;
}
.nx-footer__inner {
  max-width: 900px;
  margin: 0 auto;
}
.nx-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin-bottom: 10px;
}
.nx-footer__nav a {
  color: var(--nx-main);
  font-size: 11px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nx-footer__nav a:hover {
  color: var(--nx-amber-deep);
}
.nx-footer__note {
  font-size: 11px;
  color: var(--nx-mute);
}
.nx-footer__legal {
  max-width: 780px;
  margin: 10px auto 0;
  padding-top: 10px;
  border-top: 1px solid rgba(13, 59, 69, 0.1);
  font-size: 11px;
  line-height: 1.65;
  color: #7d9296;
}
