/* NewJeans — минималистичная страница. Токены и шрифт берутся из style.css (UI 3.0). */
.nj-body {
  --nj-ink: #111113;
  --nj-mute: #6d6d76;
  --nj-line: rgba(17, 17, 19, .1);
  --nj-pink: #ff49c2;
  --nj-blue: #7aa7ff;
  --nj-grad: linear-gradient(100deg, #ff49c2 0%, #b58cff 55%, #7aa7ff 100%);
  background: #fff;
  color: var(--nj-ink);
}
.nj .ico { width: 1.1em; height: 1.1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nj-wrap { max-width: 1180px; }

/* ---------- Появление при прокрутке ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ui-ease), transform .9s var(--ui-ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* ---------- Мягкое «северное сияние» ---------- */
.nj-aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.nj-aurora i { position: absolute; display: block; border-radius: 50%; filter: blur(80px); opacity: .6; will-change: transform; }
.nj-aurora i:nth-child(1) { width: 46vmax; height: 46vmax; top: -16%; right: -10%; background: #ffc2ea; animation: nj-float-a 22s ease-in-out infinite alternate; }
.nj-aurora i:nth-child(2) { width: 42vmax; height: 42vmax; bottom: -22%; left: -12%; background: #c3e0ff; animation: nj-float-b 26s ease-in-out infinite alternate; }
.nj-aurora i:nth-child(3) { width: 26vmax; height: 26vmax; top: 30%; left: 38%; background: #e4d8ff; opacity: .5; animation: nj-float-c 30s ease-in-out infinite alternate; }
@keyframes nj-float-a { to { transform: translate(-8vmax, 6vmax) scale(1.12); } }
@keyframes nj-float-b { to { transform: translate(9vmax, -5vmax) scale(1.1); } }
@keyframes nj-float-c { to { transform: translate(-6vmax, 7vmax) scale(.9); } }

/* ---------- Первый экран ---------- */
.nj-hero { position: relative; display: flex; align-items: center; min-height: min(calc(100vh - 80px), 880px); min-height: min(calc(100svh - 80px), 880px); padding: 3rem 0 5.5rem; overflow: hidden; }
.nj-hero .nj-wrap { position: relative; z-index: 1; width: 100%; }
.nj-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.5rem, 5vh, 3.5rem); }
.nj-eyebrow { display: inline-flex; align-items: center; gap: .8rem; font-size: .72rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--nj-mute); }
.nj-eyebrow::before { content: ""; width: 38px; height: 1px; background: currentColor; }
.nj-title { margin: 0; font-size: clamp(3.6rem, 16.5vw, 13rem); line-height: .88; letter-spacing: -.06em; font-weight: 100; color: var(--nj-ink); }
.nj-title b { display: block; font-weight: 900; background: var(--nj-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.nj-lead { max-width: 44ch; margin: clamp(1.5rem, 4vh, 2.5rem) 0 0; font-size: 1.08rem; line-height: 1.65; color: var(--nj-mute); }
.nj-stats { display: flex; flex-wrap: wrap; gap: 1.2rem 3rem; margin-top: clamp(2rem, 6vh, 3.5rem); }
.nj-stat { padding-left: 1rem; border-left: 1px solid var(--nj-line); }
.nj-stat b { display: block; font-size: 2.1rem; font-weight: 200; letter-spacing: -.03em; line-height: 1; }
.nj-stat span { display: block; margin-top: .45rem; font-size: .78rem; letter-spacing: .04em; color: var(--nj-mute); }
.nj-cue {
  position: absolute; left: 50%; bottom: 1.6rem; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; margin-left: -24px; border-radius: 50%;
  border: 1px solid var(--nj-line); background: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--nj-ink);
  animation: nj-bob 2.4s ease-in-out infinite; transition: background .3s, color .3s, border-color .3s;
}
.nj-cue:hover { background: var(--nj-ink); color: #fff; border-color: var(--nj-ink); }
@keyframes nj-bob { 50% { transform: translateY(7px); } }

/* ---------- Бегущая строка ---------- */
.nj-marquee { overflow: hidden; border-block: 1px solid var(--nj-line); padding: 1.05rem 0; background: #fff; }
.nj-track { display: flex; width: max-content; animation: nj-run 48s linear infinite; }
.nj-marquee:hover .nj-track { animation-play-state: paused; }
.nj-track span { display: inline-flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem; font-size: .82rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--nj-ink); white-space: nowrap; }
.nj-track span::after { content: "✦"; color: var(--nj-pink); font-size: .7rem; letter-spacing: 0; }
@keyframes nj-run { to { transform: translateX(-50%); } }

/* ---------- Общие секции ---------- */
.nj-section { padding: clamp(4rem, 10vw, 8rem) 0; }
.nj-label { display: inline-flex; align-items: center; gap: .8rem; margin-bottom: 1.4rem; font-size: .72rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--nj-mute); }
.nj-label::before { content: ""; width: 38px; height: 1px; background: currentColor; }
.nj-h2 { margin: 0; font-size: clamp(2.2rem, 6vw, 4.4rem); font-weight: 200; line-height: 1.02; letter-spacing: -.045em; }
.nj-h2 b { font-weight: 800; }

/* ---------- О группе ---------- */
.nj-about { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.nj-statement { margin: 0; font-size: clamp(1.5rem, 3.2vw, 2.35rem); font-weight: 300; line-height: 1.28; letter-spacing: -.025em; }
.nj-statement em { font-style: normal; background: var(--nj-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 500; }
.nj-cols { display: grid; gap: 1.8rem; }
.nj-note { padding-top: 1.1rem; border-top: 1px solid var(--nj-line); }
.nj-note h3 { margin: 0 0 .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.nj-note p { margin: 0; color: var(--nj-mute); line-height: 1.7; }

/* ---------- Участницы ---------- */
.nj-members-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.nj-count { font-size: clamp(2.2rem, 6vw, 4.4rem); font-weight: 100; letter-spacing: -.05em; line-height: 1; color: #c9c9d1; }
.nj-stage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.nj-photo { position: relative; }
.nj-photo::before { content: ""; position: absolute; inset: 0; border-radius: 34px; border: 1px solid var(--nj-pink); transform: translate(16px, 16px); opacity: .55; transition: transform .7s var(--ui-ease); }
.nj-photo:hover::before { transform: translate(10px, 10px); }
.nj-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 34px; overflow: hidden; background: #f1f1f4; box-shadow: 0 50px 80px -50px rgba(17, 17, 19, .55); }
.nj-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06);
  transition: opacity .8s var(--ui-ease), transform 1.4s var(--ui-ease);
}
.nj-frame img.is-active { opacity: 1; transform: none; }
.nj-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 17, 19, 0) 62%, rgba(17, 17, 19, .38)); pointer-events: none; }
.nj-index { position: absolute; left: 1.4rem; bottom: 1.2rem; z-index: 2; color: #fff; font-size: .8rem; font-weight: 500; letter-spacing: .24em; }
.nj-index b { font-size: 1.5rem; font-weight: 200; letter-spacing: 0; margin-right: .3rem; }

.nj-tabs { display: flex; gap: .5rem; margin: 0 0 2rem; padding: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nj-tabs::-webkit-scrollbar { display: none; }
.nj-tab {
  display: inline-flex; align-items: center; gap: .6rem; flex: none; padding: .35rem 1.05rem .35rem .35rem; border-radius: 999px; border: 1px solid var(--nj-line); background: #fff;
  font: inherit; font-size: .9rem; font-weight: 500; color: var(--nj-ink); cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ui-ease);
}
.nj-tab img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; filter: grayscale(.35); transition: filter .3s; }
.nj-tab:hover { transform: translateY(-2px); border-color: rgba(17, 17, 19, .3); }
.nj-tab[aria-selected="true"] { background: var(--nj-ink); color: #fff; border-color: var(--nj-ink); }
.nj-tab[aria-selected="true"] img, .nj-tab:hover img { filter: none; }
.nj-tab:focus-visible { outline: 3px solid rgba(255, 73, 194, .45); outline-offset: 2px; }

.nj-panel { display: none; }
.nj-panel.is-active { display: block; animation: nj-in .7s var(--ui-ease) both; }
@keyframes nj-in { from { opacity: 0; transform: translateY(14px); } }
.nj-kicker { margin: 0 0 .7rem; font-size: .72rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--nj-pink); }
.nj-name { margin: 0; font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 200; line-height: .95; letter-spacing: -.05em; }
.nj-name small { margin-left: .6rem; font-size: .38em; font-weight: 300; letter-spacing: .02em; color: #b2b2bb; }
.nj-real { margin: .7rem 0 0; font-size: .95rem; color: var(--nj-mute); }
.nj-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.nj-chips li { padding: .32rem .85rem; border-radius: 999px; border: 1px solid var(--nj-line); font-size: .8rem; font-weight: 500; }
.nj-chips li:first-child { background: var(--nj-ink); border-color: var(--nj-ink); color: #fff; }
.nj-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 2rem 0 0; border-top: 1px solid var(--nj-line); }
.nj-facts > div { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--nj-line); }
.nj-facts > div:nth-child(odd) { padding-right: 1.4rem; }
.nj-facts dt { margin: 0 0 .25rem; font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #9a9aa3; }
.nj-facts dd { margin: 0; font-size: 1.1rem; font-weight: 400; letter-spacing: -.01em; }
.nj-notes { margin: 1.8rem 0 0; padding: 0; list-style: none; display: grid; gap: .9rem; }
.nj-notes li { position: relative; padding-left: 1.5rem; line-height: 1.65; color: #3a3a42; }
.nj-notes li::before { content: ""; position: absolute; left: 0; top: .72em; width: 9px; height: 1px; background: var(--nj-pink); box-shadow: 0 0 0 .5px var(--nj-pink); }

/* ---------- Хронология ---------- */
.nj-tl { margin: clamp(2rem, 5vw, 3.5rem) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--nj-line); }
.nj-tl li { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 1rem 2rem; padding: 1.7rem 0; border-bottom: 1px solid var(--nj-line); transition: padding .5s var(--ui-ease), background .4s; }
.nj-tl li:hover { padding-left: 1rem; background: linear-gradient(90deg, rgba(255, 73, 194, .06), transparent 60%); }
.nj-date { font-size: 1.9rem; font-weight: 200; letter-spacing: -.04em; line-height: 1.1; }
.nj-date small { display: block; margin-top: .3rem; font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #9a9aa3; }
.nj-tl h3 { margin: 0 0 .4rem; font-size: 1.25rem; font-weight: 500; letter-spacing: -.015em; }
.nj-tl p { margin: 0; max-width: 62ch; color: var(--nj-mute); line-height: 1.7; }
.nj-tl .hl { color: var(--nj-ink); font-weight: 500; }

/* ---------- Низ ---------- */
.nj-foot { display: grid; justify-items: center; gap: 1.6rem; padding: clamp(3rem, 8vw, 6rem) 0 4.5rem; text-align: center; }
.nj-foot small { max-width: 60ch; color: #9a9aa3; line-height: 1.6; }

/* ---------- Страница пароля ---------- */
.nj-gate { position: relative; display: grid; place-items: center; min-height: 100vh; min-height: 100svh; padding: 1.5rem; overflow: hidden; }
.nj-gate .nj-aurora i { opacity: .7; }
.nj-card {
  position: relative; z-index: 1; width: min(100%, 440px); padding: 2.6rem 2.2rem 2.2rem; text-align: center; border-radius: 34px;
  background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 50px 90px -50px rgba(17, 17, 19, .5);
}
.nj-lock { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 1.4rem; border-radius: 20px; background: var(--nj-ink); color: #fff; }
.nj-lock .ico { width: 24px; height: 24px; }
.nj-card h1 { margin: 0 0 .5rem; font-size: 2rem; font-weight: 200; letter-spacing: -.04em; }
.nj-card h1 b { font-weight: 800; }
.nj-card p { margin: 0 0 1.6rem; color: var(--nj-mute); line-height: 1.6; }
.nj-input { width: 100%; height: 52px; margin-bottom: .8rem; padding: 0 1.4rem; border-radius: 999px; border: 1.5px solid var(--nj-line); background: #fff; font: inherit; font-size: 1rem; text-align: center; transition: border-color .25s, box-shadow .25s; }
.nj-input:focus { outline: none; border-color: var(--nj-pink); box-shadow: 0 0 0 4px rgba(255, 73, 194, .16); }
.nj-error { margin: 1rem 0 0; padding: .6rem 1rem; border-radius: 14px; background: #fff1f1; color: #c4373d; font-size: .9rem; }
.nj-gate .back { margin-top: 1.4rem; font-size: .85rem; }
.nj-gate .back a { color: var(--nj-mute); text-decoration: none; border-bottom: 1px solid var(--nj-line); }
.nj-gate .back a:hover { color: var(--nj-pink); border-color: var(--nj-pink); }

/* ---------- Адаптив ---------- */
@media (max-width: 991.98px) {
  .nj-about { grid-template-columns: 1fr; }
  .nj-stage { grid-template-columns: 1fr; gap: 2.5rem; }
  .nj-photo { max-width: 460px; margin: 0 auto 0 0; width: calc(100% - 16px); }
  .nj-tabs { margin-right: -1rem; padding-right: 1rem; }
}
@media (max-width: 575.98px) {
  .nj-hero { padding-bottom: 6rem; }
  .nj-stats { gap: 1rem 1.6rem; }
  .nj-stat b { font-size: 1.7rem; }
  .nj-tl li { grid-template-columns: 1fr; gap: .5rem; padding: 1.4rem 0; }
  .nj-date { font-size: 1.5rem; }
  .nj-facts dd { font-size: 1rem; }
  .nj-card { padding: 2rem 1.4rem; border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .nj-aurora i, .nj-track, .nj-cue { animation: none !important; }
  .rv { opacity: 1; transform: none; transition: none; }
  .nj-panel.is-active { animation: none; }
}
.no-js .nj-panel { display: block; margin-bottom: 2rem; }
