/* LightStatus & iLighter — 2026 redesign
   One idea drives everything: the page wears the mood you pick.
   --mood is the only accent; change it and the whole site re-lights.

   ───────────── ДЛЯ ПРОГРАММИСТА ─────────────
   Один файл стилей на все страницы (index, ru, privacy, privacy-ru, 404). Сборки нет:
   файл подключается как есть, зависимостей нет.

   Карта файла (порядок сверху вниз):
     :root ............ дизайн-токены: цвета, радиус, шрифты (меняйте здесь, а не по месту)
     powder ........... цветные «облака» на фоне (fixed, за контентом)
     type, buttons .... заголовки, кнопки .btn / .btn--primary / .btn--ghost
     nav, lang ........ шапка и переключатель языка
     hero, phone, dial  первый экран: телефон с диском настроений (.dial__dot — точки)
     marquee .......... бегущая строка
     cards ............ шаги, «Статус делает нас разными» (.paper), карточки настроений (.mood-card)
     iLighter II ...... экраны .oled, фото .snap, лупа .zoom__*, лампочка .snap__lamp
     tags, team ....... цены, команда, выставки
     contact .......... .reasons и окошко «Связаться» (.mailpop)
     footer ........... подвал; .footer__copy — копирайт внизу
     prose ............ текстовые страницы (политика), страница 404 (.notfound)
     responsive ....... брейкпоинты 980px и 620px; prefers-reduced-motion в самом конце

   Что важно знать:
   • Цвет настроения — переменная --mood. Её ставит scripts/lightstatus.js на <html>
     (document.documentElement.style). Везде, где нужен акцент, берите var(--mood).
     @property --mood (вверху) нужен, чтобы цвет менялся плавно, а не скачком.
   • Накладки на картинках позиционируются ПРОЦЕНТАМИ от самой картинки, чтобы масштабироваться
     вместе с ней: .paper__glow и .paper__patch (img/phones.png 950×500),
     .snap__lamp (viewBox = кадр 4:3 из img/desk.jpg), .zoom__spot / .zoom__lens
     (--x, --y, --d задаются прямо в HTML). Если заменяете картинку — пересчитайте эти числа.
   • Анимации выключаются при prefers-reduced-motion (см. конец файла) — не удаляйте этот блок.
   • Класс .reveal (появление при прокрутке) работает только если JS добавил .js на <html>;
     без JS всё видно сразу. */

@property --mood {
  syntax: "<color>";
  inherits: true;
  initial-value: #ffe93b;
}

:root {
  --ink: #0c0b14;
  --ink-2: #14121f;
  --ink-3: #1e1b2c;
  --paper: #fff8ee;
  --text: #f6f3ff;
  --muted: #b1acc8;
  --line: rgba(255, 255, 255, .12);
  --mood: #ffe93b;

  --pink: #ff3d8b;
  --orange: #ff8a2a;
  --yellow: #ffe93b;
  --green: #7dff4f;
  --cyan: #5fe9ff;
  --blue: #3d7bff;
  --violet: #a04dff;

  --radius: 28px;
  --display: "Unbounded", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  transition: --mood .7s ease;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip; /* the tilted marquee pokes past both edges */
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--mood);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- powder clouds (fixed backdrop) ---------- */
.powder { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.powder i {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .34;
  animation: drift 24s ease-in-out infinite alternate;
}
.powder i:nth-child(1) { width: 58vmax; height: 58vmax; left: -18vmax; top: -22vmax; background: var(--mood); opacity: .36; }
.powder i:nth-child(2) { width: 42vmax; height: 42vmax; right: -14vmax; top: 8vmax; background: var(--pink); animation-duration: 31s; }
.powder i:nth-child(3) { width: 46vmax; height: 46vmax; left: 12vmax; bottom: -26vmax; background: var(--blue); animation-duration: 27s; animation-direction: alternate-reverse; }
.powder i:nth-child(4) { width: 30vmax; height: 30vmax; right: 6vmax; bottom: -10vmax; background: var(--mood); opacity: .22; animation-duration: 36s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vmax, 4vmax, 0) scale(1.18); }
}

#burst { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 .74rem/1.35 var(--display); letter-spacing: .12em; text-transform: uppercase;
  color: var(--mood);
}
.eyebrow::before {
  content: ""; flex: none; width: .7em; height: .7em; border-radius: 50%;
  background: var(--mood); box-shadow: 0 0 14px var(--mood);
}
.h2 {
  font: 800 clamp(1.7rem, 4.3vw, 3.3rem)/1.1 var(--display);
  letter-spacing: -.02em; margin: .5em 0 .5em; text-wrap: balance;
}
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 46em; }
.lead b, .lead strong { color: var(--text); }
.rainbow {
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow), var(--green), var(--cyan), var(--blue), var(--violet), var(--pink));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: slide 9s linear infinite;
}
@keyframes slide { to { background-position: -200% 0; } }

section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font: 700 .86rem/1 var(--display); text-decoration: none; cursor: pointer;
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s, background-color .25s;
}
.btn:hover { transform: translateY(-3px) rotate(-1.5deg); }
.btn:active { transform: translateY(0) scale(.97); }
.btn--primary { background: var(--mood); color: var(--ink); box-shadow: 0 10px 34px -10px var(--mood); }
.btn--primary:hover { box-shadow: 0 16px 44px -8px var(--mood); }
.btn--ghost { border-color: var(--line); background: rgba(255, 255, 255, .05); }
.btn--ghost:hover { border-color: var(--mood); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 12px; z-index: 50;
  width: min(1180px, 100% - 24px); margin: 12px auto 0;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 12px 10px 20px; border-radius: 999px;
  background: rgba(16, 14, 26, .72); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.logo {
  display: inline-flex; align-items: center; gap: .55em;
  font: 800 1rem/1 var(--display); text-decoration: none; letter-spacing: -.01em; white-space: nowrap;
}
.logo__led {
  width: 14px; height: 18px; border-radius: 4px 4px 6px 6px; background: var(--mood);
  box-shadow: 0 0 12px var(--mood), 0 0 30px var(--mood);
  animation: pulse 2.4s ease-in-out infinite;
}
.logo small { font: 500 .7em var(--display); color: var(--muted); }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: .7em .95em; border-radius: 999px; text-decoration: none;
  font-size: .92rem; font-weight: 500; color: var(--muted); transition: color .2s, background-color .2s;
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.lang { display: inline-flex; margin-left: auto; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.nav__links + .lang { margin-left: 0; }
.lang a {
  padding: .5em .8em; border-radius: 999px; text-decoration: none;
  font: 700 .68rem/1 var(--display); color: var(--muted);
}
.lang a[aria-current] { background: var(--mood); color: var(--ink); }
.nav .btn { padding: .8em 1.2em; font-size: .74rem; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
.hero h1 {
  font: 900 clamp(2.2rem, 6.2vw, 5.2rem)/1.02 var(--display);
  letter-spacing: -.03em; margin: .45em 0 .4em;
}
.hero h1 span { display: block; }
/* Cyrillic words run longer in this wide face */
:lang(ru) .hero h1 { font-size: clamp(1.8rem, 4.5vw, 3.9rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.now {
  display: inline-flex; align-items: center; gap: .7em; margin-top: 28px;
  padding: .55em 1em .55em .6em; border-radius: 999px;
  background: color-mix(in srgb, var(--mood) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--mood) 45%, transparent);
  font-size: .92rem;
}
.now b { font: 700 .82rem var(--display); color: var(--mood); }
.now .face { width: 30px; height: 30px; border-radius: 9px; }

.face {
  display: inline-grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--c, var(--mood)); color: #111;
}
.face svg { width: 82%; height: 82%; }

/* phone */
.stage { position: relative; display: grid; justify-items: center; padding-bottom: 70px; }
.stage::before {
  content: ""; position: absolute; inset: 8% 4% 0; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--mood) 55%, transparent), transparent);
  filter: blur(30px); z-index: -1;
}
.phone {
  position: relative; width: 292px; padding: 14px 14px 62px;
  border-radius: 48px; background: linear-gradient(160deg, #2b2b38, #0e0e15 45%);
  border: 2px solid #44445a;
  box-shadow: 0 40px 80px -30px #000, inset 0 0 0 2px #0a0a10;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px) rotate(.6deg); } }
.phone__screen {
  border-radius: 32px; padding: 16px 14px 18px; min-height: 470px;
  background: radial-gradient(120% 60% at 50% 105%, color-mix(in srgb, var(--mood) 30%, transparent), transparent 70%), linear-gradient(#171722, #08080e);
  display: flex; flex-direction: column; gap: 14px;
}
.phone__home {
  position: absolute; left: 50%; bottom: 14px; width: 36px; height: 36px; margin-left: -18px;
  border-radius: 50%; border: 2px solid #3d3d50;
}
.app-bar { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; color: #35e0d0; }
.app-bar b { color: #fff; font: 700 .78rem var(--display); }
.app-status { display: flex; gap: 10px; align-items: center; }
.app-status__text { flex: 1; min-width: 0; padding: 7px 10px; border-radius: 10px; background: #e9f1f4; color: #14141c; }
.app-status__text b { display: block; font: 700 .8rem/1.2 var(--display); }
.app-status__text small { display: block; font-size: .64rem; line-height: 1.3; color: #5b6170; margin-top: 2px; }

.dial { position: relative; width: 224px; height: 224px; margin: 6px auto 0; }
.dial__knob {
  position: absolute; inset: 50px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 6px solid #07070b;
  background: conic-gradient(from 20deg, #2a2d36, #8088a0, #1c1e25, #99a1b8, #20232b, #7a8298, #2a2d36);
  box-shadow: 0 0 0 2px #2c2f3a, 0 14px 30px rgba(0, 0, 0, .7), 0 0 60px -6px var(--mood);
  transform: rotate(var(--knob, 0deg));
  transition: transform .7s cubic-bezier(.3, 1.5, .5, 1);
}
.dial__knob::after {
  content: ""; position: absolute; left: 50%; top: 9px; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: var(--mood); box-shadow: 0 0 10px var(--mood);
}
.dial__dot {
  position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px; padding: 0;
  border-radius: 50%; border: 0; background: var(--c); cursor: pointer; opacity: .8;
  transform: rotate(var(--a)) translateY(-96px);
  transition: transform .35s cubic-bezier(.3, 1.8, .5, 1), opacity .2s, box-shadow .3s;
}
.dial__dot::after { content: ""; position: absolute; inset: -11px; border-radius: 50%; }
.dial__dot:hover { opacity: 1; transform: rotate(var(--a)) translateY(-96px) scale(1.25); }
.dial__dot[aria-pressed="true"] {
  opacity: 1; transform: rotate(var(--a)) translateY(-96px) scale(1.5);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .16), 0 0 22px var(--c);
}
.app-share { display: grid; gap: 7px; margin-top: auto; }
.app-share button {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1em; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--mood); color: var(--ink); font: 700 .66rem/1 var(--display);
  box-shadow: 0 8px 20px -10px var(--mood);
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s;
}
.app-share button:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px var(--mood); }
.app-share button:active { transform: scale(.97); }
.app-conn { text-align: center; font-size: .72rem; color: #35e0d0; }

/* Геометрия штекера: корпус .ilighter начинается на 3px НИЖЕ внешнего края телефона
   (2px рамка .phone + 3px зазор = 5px, плюс высота 46px => bottom: -51px), а металлический
   Lightning-штекер (::before, 3px) закрывает только этот зазор и на корпус телефона не заходит.
   Меняете рамку телефона или высоту корпуса — пересчитайте bottom. */
.ilighter {
  position: absolute; left: 50%; bottom: -51px; width: 40px; height: 46px; margin-left: -20px;
  border-radius: 4px 4px 12px 12px; background: var(--mood);
  box-shadow: 0 0 24px var(--mood), 0 0 70px var(--mood), 0 0 140px var(--mood), inset 0 0 12px rgba(255, 255, 255, .7);
  animation: pulse 2.4s ease-in-out infinite;
}
.ilighter::before {
  content: ""; position: absolute; left: 50%; top: -3px; width: 22px; height: 3px; margin-left: -11px;
  background: #c9ced8;
}
@keyframes pulse { 50% { filter: brightness(1.25) saturate(1.2); } }
[data-mood="off"] .ilighter, [data-mood="off"] .logo__led { box-shadow: none; animation: none; }

.sticker {
  position: absolute; z-index: 2; padding: .6em 1em; border-radius: 999px;
  font: 700 .68rem/1 var(--display); color: var(--ink); white-space: nowrap;
  box-shadow: 0 10px 24px -10px #000;
  animation: bob 5s ease-in-out infinite;
}
.sticker--a { left: -4%; top: 12%; background: var(--pink); color: #fff; --r: -10deg; }
.sticker--b { right: -6%; top: 34%; background: var(--cyan); --r: 8deg; animation-delay: -1.6s; }
.sticker--c { left: 0; bottom: 20%; background: #fff; --r: 6deg; animation-delay: -3s; }
@keyframes bob {
  0%, 100% { transform: rotate(var(--r)) translateY(0); }
  50% { transform: rotate(calc(var(--r) * -.4)) translateY(-10px); }
}
.stage__hint { margin-top: 64px; font-size: .86rem; color: var(--muted); text-align: center; }

/* ---------- marquee ---------- */
.marquee {
  background: var(--mood); color: var(--ink);
  transform: rotate(-1.4deg); margin: 30px -3vw; padding: 15px 0;
  overflow: hidden; white-space: nowrap;
  box-shadow: 0 20px 60px -30px var(--mood);
}
.marquee__track { display: inline-flex; animation: marquee 30s linear infinite; }
.marquee span { font: 800 clamp(.95rem, 2vw, 1.4rem)/1 var(--display); text-transform: uppercase; padding-inline: .8em; }
.marquee span:nth-child(even) { opacity: .45; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- cards ---------- */
.card {
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.step { position: relative; overflow: hidden; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), border-color .3s; }
.step:hover { transform: translateY(-6px) rotate(-1deg); border-color: var(--c); }
.step__n {
  font: 900 4.6rem/1 var(--display); color: transparent;
  -webkit-text-stroke: 2px var(--c); letter-spacing: -.04em;
}
.step h3 { font: 700 1.2rem/1.2 var(--display); margin: .7em 0 .5em; }
.step p { color: var(--muted); }
.step::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px;
  border-radius: 50%; background: var(--c); filter: blur(50px); opacity: .35;
}

.paper {
  margin-top: 18px; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--mood) 55%, transparent) 0 9%, transparent 9.5%),
    radial-gradient(circle at 92% 82%, rgba(255, 61, 139, .35) 0 7%, transparent 7.5%),
    radial-gradient(circle at 80% 10%, rgba(61, 123, 255, .28) 0 4%, transparent 4.5%),
    var(--paper);
  color: var(--ink);
  display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 10px;
}
.paper__pic { padding: clamp(18px, 3vw, 40px); }
.paper__shot { position: relative; container-type: inline-size; }
/* One share button painted over the two Facebook / Twitter bars in phones.png
   (they sit at x 315–379, y 311–428 of 950×500). The phone lies on its side,
   so the label runs bottom-to-top like the rest of that screen. */
.paper__patch {
  position: absolute; left: 33.16%; top: 62.2%; width: 6.74%; height: 23.4%;
  display: grid; place-items: center;
  background: linear-gradient(90deg, #19191e, #1b1d1f);
  box-shadow: 0 0 .5cqw .25cqw #19191e;
}
.paper__share {
  width: 46%; height: 95%; display: grid; place-items: center; overflow: hidden;
  border-radius: .45cqw; background: #8dff4a; color: #0c0b14;
  box-shadow: 0 0 1.2cqw -.2cqw #8dff4a;
}
.paper__share span {
  writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
  font: 700 5px/1 var(--body); font-size: .86cqw;
}
.paper__shot img { width: 100%; }
/* Sits exactly on the iLighter in phones.png (body at x 482–553, y 349–389 of 950×500),
   so it scales with the picture. Green, to match the "I feel good" screen in the shot. */
.paper__glow {
  position: absolute; left: 50.74%; top: 69.8%; width: 7.58%; height: 8.2%;
  border-radius: 6% 22% 22% 6% / 10% 38% 38% 10%;
  background: radial-gradient(circle at 38% 50%, #f3fff1 0, #7dff70 42%, #35fe3a 100%);
  box-shadow: 0 0 14px 3px rgba(53, 254, 58, .8), 0 0 44px 12px rgba(53, 254, 58, .4);
  animation: lamp 1.8s ease-in-out infinite;
}
.paper__glow::before, .paper__glow::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1px solid #35fe3a; opacity: 0;
  animation: lamp-ring 2.4s ease-out infinite;
}
.paper__glow::after { animation-delay: 1.2s; }
@keyframes lamp {
  0%, 100% { box-shadow: 0 0 8px 1px rgba(53, 254, 58, .65), 0 0 26px 6px rgba(53, 254, 58, .3); filter: brightness(.96); }
  50% { box-shadow: 0 0 24px 8px rgba(53, 254, 58, .95), 0 0 90px 34px rgba(53, 254, 58, .55); filter: brightness(1.2); }
}
@keyframes lamp-ring {
  from { transform: scale(1); opacity: .85; }
  to { transform: scale(3.4, 4.6); opacity: 0; }
}
.paper__text { padding: clamp(22px, 4vw, 48px); }
.paper__text h3 { font: 800 clamp(1.3rem, 2.6vw, 2rem)/1.15 var(--display); letter-spacing: -.02em; }
.paper__text p { margin-top: .8em; color: #4a4658; }

/* moods */
.moods { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 40px; }
.mood-card {
  text-align: left; cursor: pointer; display: grid; gap: 12px; align-content: start;
  padding: 22px; border-radius: 24px;
  background: color-mix(in srgb, var(--c) 9%, rgba(255, 255, 255, .03));
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  transition: transform .3s cubic-bezier(.3, 1.7, .5, 1), background-color .3s, color .3s, box-shadow .3s;
}
.mood-card:nth-child(odd):hover { transform: translateY(-6px) rotate(-1.6deg); }
.mood-card:nth-child(even):hover { transform: translateY(-6px) rotate(1.6deg); }
.mood-card__name { font: 700 1.05rem/1.2 var(--display); }
.mood-card__tag { color: var(--muted); font-size: .95rem; line-height: 1.45; transition: color .3s; }
.mood-card[aria-pressed="true"] {
  background: var(--c); color: var(--ink); box-shadow: 0 20px 50px -22px var(--c);
}
.mood-card[aria-pressed="true"] .mood-card__tag { color: rgba(12, 11, 20, .75); }
.mood-card[aria-pressed="true"] .face { background: var(--ink); color: var(--c); }
.moods__note {
  display: grid; align-content: center; padding: 22px; border-radius: 24px;
  border: 1px dashed var(--line); color: var(--muted); font-size: .95rem;
}

/* iLighter II */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
.soon {
  display: inline-block; margin-left: .5em; padding: .45em .8em; border-radius: 999px; vertical-align: middle;
  background: var(--pink); color: #fff; font: 800 .32em/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
  transform: rotate(-8deg); animation: wiggle 2.6s ease-in-out infinite;
}
@keyframes wiggle { 50% { transform: rotate(6deg) scale(1.08); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips li {
  padding: .5em 1em; border-radius: 999px; font-size: .9rem; font-weight: 500;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .05);
}
.two p + p { margin-top: 1em; }
.two .text p { color: var(--muted); }
.two .text p b { color: var(--text); }

.oleds { display: flex; justify-content: center; align-items: flex-end; gap: clamp(18px, 4vw, 46px); flex-wrap: wrap; }
.oled { text-align: center; }
.oled__body {
  width: 176px; height: 176px; display: grid; place-items: center;
  background: linear-gradient(145deg, #fff, #c8ccd8);
  box-shadow: 0 30px 60px -24px #000, inset 0 -6px 14px rgba(0, 0, 0, .18);
  animation: float 7s ease-in-out infinite;
}
.oled--round .oled__body { border-radius: 50%; }
.oled--square .oled__body { border-radius: 38px; animation-delay: -3s; }
.oled__screen {
  width: 124px; height: 124px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #1b1b2a, #05050a);
  box-shadow: inset 0 0 0 3px #101018, 0 0 30px -8px var(--mood);
  font-size: 4rem; line-height: 1;
}
.oled--round .oled__screen { border-radius: 50%; }
.oled--square .oled__screen { border-radius: 22px; }
.oled__screen span { display: block; animation: pop .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes pop { from { transform: scale(.2) rotate(-30deg); opacity: 0; } }
.oled figcaption { margin-top: 18px; font: 700 .8rem var(--display); color: var(--muted); }

.snaps { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 46px; }
.snap {
  background: #fff; color: var(--ink); padding: 10px 10px 14px; border-radius: 14px; width: min(280px, 100%);
  box-shadow: 0 24px 50px -24px #000; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.snap:nth-child(1) { transform: rotate(-4deg); }
.snap:nth-child(2) { transform: rotate(3deg) translateY(14px); }
.snap:nth-child(3) { transform: rotate(-2deg); }
.snap:hover { transform: rotate(0) scale(1.05); z-index: 2; }
.snap img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
/* iLighter drawn into the desk photo. Yellow, to match "Ready for fun" on that phone's screen. */
.snap__shot { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; }
.snap__shot img { height: 100%; aspect-ratio: auto; border-radius: 0; }
.snap__lamp { position: absolute; inset: 0; width: 100%; height: 100%; }
.lamp__halo, .lamp__ring, .lamp__core { transform-box: fill-box; transform-origin: center; }
.lamp__shadow { fill: #1a0f00; opacity: .45; filter: blur(2.5px); }
.lamp__core { animation: lamp-halo 1.8s ease-in-out infinite; }
.lamp__halo { mix-blend-mode: screen; animation: lamp-halo 1.8s ease-in-out infinite; }
.lamp__body { animation: lamp-body 1.8s ease-in-out infinite; }
.lamp__ring {
  fill: none; stroke: #ffe93b; stroke-width: 1; opacity: 0;
  animation: lamp-ring-soft 2.4s ease-out infinite;
}
.lamp__ring--late { animation-delay: 1.2s; }
@keyframes lamp-halo {
  0%, 100% { opacity: .5; transform: scale(.78); }
  50% { opacity: 1; transform: scale(1.18); }
}
@keyframes lamp-body {
  0%, 100% { filter: brightness(.94); }
  50% { filter: brightness(1.14) drop-shadow(0 0 3px #ffe93b); }
}
@keyframes lamp-ring-soft {
  from { transform: scale(1); opacity: .8; }
  to { transform: scale(3); opacity: 0; }
}
/* Zoom callout on the two "worn" photos: a pulsing marker on the real badge,
   a dashed line, and an enlarged iLighter II whose screen keeps changing. */
.snap__shot { container-type: inline-size; }
.zoom__line { position: absolute; inset: 0; width: 100%; height: 100%; }
.zoom__line line {
  stroke: #fff; stroke-width: .9; stroke-linecap: round; stroke-dasharray: 2 1.8;
  filter: drop-shadow(0 0 .6px rgba(0, 0, 0, .7));
  animation: zoom-march 1s linear infinite;
}
@keyframes zoom-march { to { stroke-dashoffset: -3.8; } }
.zoom__spot, .zoom__lens {
  position: absolute; left: var(--x); top: var(--y); width: var(--d); aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%; display: grid; place-items: center;
}
.zoom__spot {
  background: radial-gradient(circle at 50% 40%, #1b1b2a, #05050a);
  box-shadow: 0 0 0 1.5px #fff, 0 0 10px 2px var(--mood);
  font-size: 12px; font-size: calc(var(--d) * .55); font-size: 4.6cqw; line-height: 1;
}
.zoom__spot i { font-style: normal; }
.zoom__spot::before, .zoom__spot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--mood); opacity: 0;
  animation: zoom-ring 2.2s ease-out infinite;
}
.zoom__spot::after { animation-delay: 1.1s; }
@keyframes zoom-ring {
  from { transform: scale(1); opacity: .95; }
  to { transform: scale(2.8); opacity: 0; }
}
.zoom__lens {
  background: linear-gradient(145deg, #fff, #c8ccd8);
  box-shadow: 0 12px 26px -8px rgba(0, 0, 0, .75), inset 0 -3px 8px rgba(0, 0, 0, .2),
    0 0 0 2px rgba(255, 255, 255, .55), 0 0 26px 3px var(--mood);
  animation: zoom-float 5s ease-in-out infinite;
}
@keyframes zoom-float { 50% { transform: translateY(-4%) rotate(3deg); } }
.zoom__screen {
  width: 72%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #1b1b2a, #05050a);
  box-shadow: inset 0 0 0 2px #101018;
  font-size: 40px; font-size: 15cqw; line-height: 1;
}
.zoom__screen span { display: block; animation: pop .5s cubic-bezier(.3, 1.8, .5, 1); }
.zoom__tag {
  position: absolute; left: 50%; bottom: -7%; translate: -50% 0;
  padding: .4em .75em; border-radius: 999px; white-space: nowrap;
  background: var(--mood); color: var(--ink); font: 800 .5rem/1 var(--display);
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .6);
}
.snap figcaption { margin-top: 10px; text-align: center; font: 700 .72rem var(--display); }

/* launch & price */
.tags { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.tag {
  position: relative; padding: 46px 22px 24px; border-radius: 22px; overflow-wrap: anywhere;
  background: var(--c); color: var(--ink);
  transition: transform .3s cubic-bezier(.3, 1.7, .5, 1);
}
.tag:nth-child(odd) { transform: rotate(-2deg); }
.tag:nth-child(even) { transform: rotate(2deg) translateY(10px); }
.tag:hover { transform: rotate(0) translateY(-6px) scale(1.03); }
.tag::before {
  content: ""; position: absolute; left: 22px; top: 18px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 3px rgba(12, 11, 20, .15);
}
.tag small { display: block; font: 700 .7rem/1.3 var(--display); text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.tag b { display: block; font: 900 clamp(1.7rem, 3vw, 2.5rem)/1.1 var(--display); letter-spacing: -.03em; margin: .25em 0 .15em; }
.tag span { font-size: .9rem; opacity: .8; }

.launch { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-top: 46px; }
.launch p { font-size: 1.1rem; }
.launch p b { color: var(--mood); }
.mfi { background: #fff; padding: 12px 16px; border-radius: 16px; transform: rotate(3deg); }
.mfi img { width: 150px; }

/* team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.member { text-align: center; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.member:hover { transform: translateY(-6px); }
.member__pic {
  width: 132px; height: 132px; margin: 0 auto 16px; padding: 5px; border-radius: 50%;
  background: conic-gradient(var(--pink), var(--orange), var(--yellow), var(--green), var(--cyan), var(--blue), var(--violet), var(--pink));
}
.member:hover .member__pic { animation: spin 3s linear infinite; }
.member:hover .member__pic img { animation: spin 3s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.member__pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid var(--ink); }
.member h3 { font: 700 1.02rem/1.25 var(--display); }
.member p { color: var(--muted); font-size: .92rem; margin-top: .3em; }

.events { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.event { padding: 12px; overflow: hidden; }
.event img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.event figcaption { padding: 14px 8px 6px; }
.event figcaption b { display: block; font: 700 1rem/1.3 var(--display); }
.event figcaption span { color: var(--muted); font-size: .92rem; }

/* contact */
.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.reason { padding: 22px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); }
.reasons .reason:last-child:nth-child(odd) { grid-column: 1 / -1; } /* odd one out fills the row */
.reason h3 { font: 700 .92rem/1.2 var(--display); color: var(--c); margin-bottom: .5em; }
.reason p { font-size: .96rem; color: var(--muted); }
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; margin-top: 40px; align-items: start; }

.contact > * { min-width: 0; } /* let the columns shrink, so the pop-up wraps instead of pushing the card wider */

/* e-mail address: the decoy pieces inside it must never show (see lightstatus.js) */
.e-x { display: none !important; }

/* "Contact us": a button that opens a small panel with the address instead of a form */
.reach h3 { font: 800 clamp(1.2rem, 2.4vw, 1.6rem)/1.15 var(--display); letter-spacing: -.02em; }
.reach > p { color: var(--muted); margin: .6em 0 1.3em; }
.mailpop > summary { list-style: none; cursor: pointer; user-select: none; }
.mailpop > summary::-webkit-details-marker { display: none; }
.mailpop > summary svg { width: 1.25em; height: 1.25em; }
.mailpop__panel {
  position: relative; width: max-content; max-width: 100%; overflow-wrap: anywhere;
  margin-top: 1rem; padding: 1.2rem 1.4rem 1.3rem; border-radius: 20px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 1.5rem 3rem -1rem rgba(0, 0, 0, .7), 0 0 40px -14px var(--mood);
  animation: mailpop-in .28s cubic-bezier(.3, 1.5, .5, 1);
}
.mailpop__panel::before {
  content: ""; position: absolute; left: 2rem; top: -.4rem; width: .8rem; height: .8rem;
  background: var(--paper); transform: rotate(45deg);
}
/* no opacity here on purpose: if a browser pauses animations, the panel must still be readable */
@keyframes mailpop-in { from { translate: 0 -.6rem; scale: .94; } }
.mailpop__hint { font-size: .85rem; color: #6a6578; }
.mailpop__address { margin-top: .15rem; font: 700 clamp(1rem, 5vw, 1.3rem)/1.3 var(--body); }
.mailpop__address a { text-decoration: none; }
.mailpop__address a:hover { color: #c8155f; }
.mailpop__copy {
  display: inline-flex; align-items: center; gap: .5em; margin-top: .9rem; padding: .6em 1em;
  border: 1.5px solid rgba(12, 11, 20, .22); border-radius: 999px; background: none; cursor: pointer;
  font: 700 .85rem/1 var(--body); color: var(--ink); transition: background-color .2s, color .2s;
}
.mailpop__copy:hover { background: var(--ink); color: var(--paper); }
.mailpop__copy svg { width: 1.05em; height: 1.05em; }
.mailpop__title {
  margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(12, 11, 20, .14);
  font: 700 .64rem/1.3 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #6a6578;
}
.mailpop__list { display: grid; gap: .4rem; margin-top: .7rem; font-size: .95rem; }
.mailpop__list li { position: relative; padding-left: 1.4rem; line-height: 1.4; }
.mailpop__list li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: .55em; height: .55em;
  border-radius: 50%; background: var(--pink);
}
.mailpop__consent { margin-top: 1rem; max-width: 19rem; font-size: .78rem; line-height: 1.4; color: #6a6578; }
.mailpop__consent a { text-underline-offset: 2px; }
.mailpop__consent a:hover { color: #c8155f; }

/* ---------- 404 page (404.html) ----------
   Отдаётся сервером на любой несуществующий адрес (ErrorDocument в .htaccess),
   поэтому в самой странице все пути абсолютные: /css/…, /scripts/…. */
.notfound h1 { font-size: clamp(2rem, 8vw, 4.5rem); }
.notfound__ru { margin-top: .6em; }
.notfound__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- text pages (privacy policy) ---------- */
.prose { width: min(760px, 100% - 40px); margin-inline: auto; padding: clamp(40px, 7vw, 90px) 0 clamp(60px, 8vw, 110px); }
.prose h1 { font: 900 clamp(1.8rem, 5vw, 3.2rem)/1.08 var(--display); letter-spacing: -.03em; margin: .5em 0 .3em; }
/* «конфиденциальности» is 18 letters in a wide face: size it to fit a phone */
:lang(ru) .prose h1 { font-size: clamp(1.25rem, 5.4vw, 3rem); hyphens: auto; overflow-wrap: anywhere; }
.prose h2 { font: 700 clamp(1.05rem, 2.2vw, 1.35rem)/1.25 var(--display); margin: 2.2em 0 .6em; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: .9em; }
.prose b, .prose strong { color: var(--text); font-weight: 700; }
.prose ul { display: grid; gap: .6em; margin-top: .8em; }
.prose li { position: relative; padding-left: 1.5em; }
.prose li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: .6em; height: .6em; border-radius: 50%;
  background: var(--mood); box-shadow: 0 0 10px var(--mood);
}
.prose a {
  color: var(--text); text-decoration-thickness: 1px; text-underline-offset: 5px;
  text-decoration-color: rgba(255, 255, 255, .3);
  transition: color .2s, text-decoration-color .2s;
}
.prose a:hover { text-decoration-color: currentColor; }
/* buttons inside text pages (404) keep their own colours; ".prose a" must not recolour them */
.prose .btn, .prose .btn:hover { text-decoration: none; }
.prose .btn--primary, .prose .btn--primary:hover { color: var(--ink); }
.prose .btn--ghost, .prose .btn--ghost:hover { color: var(--text); }
.prose a:hover { color: var(--mood); }
.prose__date { font-size: .9rem; }
.prose__short {
  margin: 28px 0 8px; padding: 20px 24px; border-radius: 22px; color: var(--text);
  background: color-mix(in srgb, var(--mood) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--mood) 45%, transparent);
}
.prose__short p { color: var(--text); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 54px 0 34px; background: rgba(8, 7, 14, .6); }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; }
.footer .logo { font-size: 1.3rem; }
.footer p { color: var(--muted); margin-top: 1em; font-size: .95rem; }
.footer .footer__copy {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: .85rem;
}
.footer dl { margin: 0; display: grid; gap: 12px; font-size: .95rem; }
.footer dt { font: 600 .64rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer dd { margin: 2px 0 0; }
/* quiet links: a hairline in a neutral tone; the mood colour only shows on hover */
.footer a {
  text-decoration-thickness: 1px; text-underline-offset: 5px;
  text-decoration-color: rgba(255, 255, 255, .22);
  transition: color .2s, text-decoration-color .2s;
}
.footer a:hover { text-decoration-color: currentColor; }
.footer a:hover { color: var(--mood); }

/* ---------- reveal ---------- */
/* uses `translate`, not `transform`, so tilted cards keep their tilt and hover */
.js .reveal {
  opacity: 0; translate: 0 26px;
  transition: opacity .7s ease, translate .7s cubic-bezier(.2, .9, .3, 1),
    transform .3s cubic-bezier(.3, 1.6, .5, 1), border-color .3s, box-shadow .3s;
}
.js .reveal.in { opacity: 1; translate: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav .lang { margin-left: auto; }
  /* one column: the stage is as wide as the screen, so stickers must stay inside it */
  .sticker--a { left: 4%; }
  .sticker--b { right: 4%; }
  .hero__grid, .two, .contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paper { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav { gap: 8px; padding-left: 14px; }
  .logo small { display: none; }
  .nav .btn { display: none; }
  .team, .events, .reasons { grid-template-columns: 1fr; }
  .launch { grid-template-columns: 1fr; justify-items: start; }
  /* keep the stickers on the phone's bezel, off the dial */
  .sticker--a { left: 0; top: -14px; }
  .sticker--b { right: 0; top: auto; bottom: 21%; }
  .tags { grid-template-columns: 1fr; gap: 12px; }
  .tag:nth-child(even) { transform: rotate(1.5deg); }
  .tag:nth-child(odd) { transform: rotate(-1.5deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; translate: none; }
}
