/* Renecode landing — «Ночная смена». Spec: apps/landing/docs/design.md, motion.md */

@font-face {
  font-family: Manrope;
  src: url(/fonts/manrope-cyrillic.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url(/fonts/manrope-latin.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@property --h {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
@property --ang {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg: #131312;
  --bg-2: #151514;
  --surface: #1b1b1a;
  --surface-raised: #222220;
  --line: #2b2b29;
  --line-strong: #3d3d3a;
  --ink: #f2f2ee;
  --ink-muted: #b4b4ad;
  --ink-subtle: #8f8f89;
  --brand: #fceb78;
  --brand-hover: #f7df52;
  --brand-core: #fff7d1;
  --on-brand: #1f1f1e;
  --danger: #ff8a7a;
  --card: linear-gradient(180deg, #1d1d1b, #181817);
  --card-hi: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pad: 24px;
  --gap-sec: 120px;
  --p: 1; /* lighthouse progress; without the scroll script — the final frame */
  --h: 0.85; /* hero cycle; without @property animation — «Виправлено 3 / 3» */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px / 1.62 var(--font);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
  padding: 0;
}
ol,
ul {
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: var(--brand);
  color: var(--on-brand);
}

.wrap {
  width: min(1200px, 100% - var(--pad) * 2);
  margin-inline: auto;
}
.mono {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}
.ic {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.dia {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--brand);
  transform: rotate(45deg);
  border-radius: 1.5px;
  flex: none;
}

/* texture layers */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.045;
  background: url(/assets/grain.png) repeat;
}
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(242, 242, 238, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 242, 238, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 60% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 60% 45%, #000 20%, transparent 75%);
}
.glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(252, 235, 120, 0.13),
    rgba(252, 235, 120, 0.05) 55%,
    transparent
  );
}
.glass {
  background: rgba(27, 27, 26, 0.84);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: var(--card-hi);
}

.off,
.off *,
.off *::before,
.off *::after {
  animation-play-state: paused !important;
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition:
    background-color 0.15s ease-out,
    border-color 0.15s ease-out,
    transform 0.12s ease-out;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
}
.btn-primary:hover {
  background: var(--brand-hover);
  box-shadow: 0 0 0 4px rgba(252, 235, 120, 0.16);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--surface-raised);
}
.btn-lg {
  height: 56px;
  padding: 0 28px;
}
.btn-md {
  height: 52px;
  width: 100%;
}
.btn-sm {
  height: 44px;
  padding: 0 18px;
  font-size: 15px;
}
.shine::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: shine 7s ease-in-out 2.4s infinite;
}
@keyframes shine {
  0%,
  86% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.75;
  stroke-linejoin: round;
}
.blink {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px rgba(252, 235, 120, 0.8);
  animation: blink 1.6s ease-in-out infinite;
  flex: none;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

/* ---------- header ---------- */
.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition:
    background-color 0.2s ease-out,
    border-color 0.2s ease-out;
  border-bottom: 1px solid transparent;
}
.hdr.scrolled {
  background: rgba(19, 19, 18, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.hdr-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand img {
  border-radius: 9px;
}
.hdr-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
}
.hdr-nav a:hover,
.hdr-phone:hover {
  color: var(--ink);
}
.hdr-phone {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.hdr-tg {
  display: none;
}
.hdr-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brand);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 148px 0 96px;
}
.hero > .grid-bg {
  -webkit-mask-image: radial-gradient(ellipse 55% 70% at 72% 50%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 70% at 72% 50%, #000 15%, transparent 72%);
}
.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 620px;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}
.h1 {
  font-weight: 800;
  font-size: 62px;
  line-height: 1;
  letter-spacing: -0.045em;
}
.ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.16em;
  margin-bottom: -0.12em;
}
.ln > span {
  display: inline-block;
  animation: ln-up 1s cubic-bezier(0.2, 0.75, 0.15, 1) 0.1s both;
}
.ln-2 > span {
  font-weight: 300;
  color: var(--ink-subtle);
  animation-delay: 0.22s;
}
@keyframes ln-up {
  from {
    transform: translateY(108%);
  }
}
.ul {
  position: relative;
  display: inline-block;
}
.ul svg {
  position: absolute;
  left: -2%;
  right: 0;
  bottom: -0.14em;
  width: 104%;
  height: 0.22em;
  overflow: visible;
}
.ul path {
  fill: none;
  stroke: var(--brand);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1s var(--ease) 1.2s forwards;
  vector-effect: non-scaling-stroke;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.lead {
  margin-top: 28px;
  max-width: 520px;
  font-size: 19px;
  line-height: 30px;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.hero-rise {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both;
}
.hero-cta.hero-rise {
  animation-delay: 0.32s;
}
.facts.hero-rise {
  animation-delay: 0.4s;
}
@keyframes rise {
  from {
    transform: translateY(14px);
  }
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.facts li {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 10px;
  align-items: center;
}
.facts .ic {
  grid-row: span 2;
  color: var(--brand);
  width: 22px;
  height: 22px;
}
.facts b {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.facts .mono {
  font-size: 11px;
  letter-spacing: 0.06em;
}

.hero-stage {
  position: relative;
  width: 620px;
  height: 530px;
}
@keyframes hcycle {
  from {
    --h: 0;
  }
  to {
    --h: 1;
  }
}
.coords {
  position: absolute;
  right: 0;
  top: -6px;
  font-size: 11px;
  z-index: 2;
}
.hero-scene {
  position: absolute;
  inset: 0;
}
.hs-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.glow-hero {
  left: 0;
  top: -40px;
  width: 470px;
  height: 380px;
}
.hs-win rect {
  fill: #151514;
  stroke: #333331;
}
.hs-sign-text {
  font: 700 16px var(--mono);
  letter-spacing: 0.14em;
  fill: var(--ink-muted);
}

/* time-driven hero pieces read the 10 s cycle --h; it runs only on them, so the 3D drone is not restyled
   every frame. Animations created together stay in sync. */
.hs-svg,
.beam,
.mk,
.diag {
  --end: clamp(0, (0.96 - var(--h)) / 0.04, 1);
  --fix: clamp(0, (var(--h) - 0.64) / 0.11, 1);
}
.hs-svg,
.mk,
.diag {
  animation: hcycle 10s linear 2.2s infinite both;
}
.hs-win-on rect {
  fill: var(--brand);
}
.hs-win-on,
.hs-sign-on,
.hs-door-on {
  opacity: calc(var(--fix) * var(--end) * 0.88);
}
.hs-door-on {
  fill: rgba(252, 235, 120, 0.55);
}

.beam {
  position: absolute;
  left: 115px;
  top: 116px;
  width: 240px;
  height: 200px;
  transform-origin: 50% 0;
  opacity: 0;
  pointer-events: none;
  animation:
    beam 10s cubic-bezier(0.45, 0, 0.25, 1) 2.2s infinite both,
    hcycle 10s linear 2.2s infinite both;
}
.beam > div {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.beam-scan {
  background: linear-gradient(rgba(242, 242, 238, 0.2), rgba(242, 242, 238, 0.03));
  overflow: hidden;
  opacity: calc(1 - clamp(0, (var(--h) - 0.54) / 0.04, 1));
}
.beam-scan::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: rgba(242, 242, 238, 0.6);
  box-shadow: 0 0 12px rgba(242, 242, 238, 0.6);
  animation: scanline 1.3s linear infinite;
}
.beam-fix {
  background: linear-gradient(rgba(252, 235, 120, 0.34), rgba(252, 235, 120, 0.04));
  opacity: clamp(0, (var(--h) - 0.58) / 0.04, 1);
}
@keyframes scanline {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(200px);
  }
}
@keyframes beam {
  0%,
  6% {
    opacity: 0;
    transform: rotate(0);
  }
  11% {
    opacity: 1;
  }
  22% {
    transform: rotate(12deg);
  }
  40% {
    transform: rotate(-12deg);
  }
  54%,
  88% {
    transform: rotate(0);
    opacity: 1;
  }
  93%,
  100% {
    opacity: 0;
    transform: rotate(0);
  }
}

.mk {
  --t: clamp(0, (var(--h) - var(--a)) / 0.03, 1);
  --ok: clamp(0, (var(--h) - var(--f)) / 0.02, 1);
  position: absolute;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 3;
  background: color-mix(in srgb, var(--brand) calc(var(--ok) * 100%), var(--surface));
  border: 1.5px solid color-mix(in srgb, var(--brand) calc(var(--ok) * 100%), var(--ink));
  opacity: min(var(--t), var(--end));
  transform: scale(calc(0.4 + 0.6 * var(--t)));
  box-shadow: 0 0 0 calc(6px * var(--t)) rgba(242, 242, 238, 0.06);
}
.mk i {
  grid-area: 1 / 1;
  font: 600 13px var(--mono);
  font-style: normal;
  opacity: calc(1 - var(--ok));
}
.mk svg {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--on-brand);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: var(--ok);
}
.mk1 {
  left: 286px;
  top: 306px;
  --a: 0.18;
  --f: 0.64;
}
.mk2 {
  left: 346px;
  top: 373px;
  --a: 0.3;
  --f: 0.67;
}
.mk3 {
  left: 149px;
  top: 346px;
  --a: 0.42;
  --f: 0.7;
}

/* diagnostic card */
.diag {
  position: absolute;
  right: 0;
  top: 140px;
  width: 236px;
  padding: 16px;
  border-radius: 16px;
  z-index: 4;
  background: rgba(27, 27, 26, 0.96);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.diag-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ink);
}
.diag-status {
  display: grid;
}
.st {
  grid-area: 1 / 1;
  --in: clamp(0, (var(--h) - var(--s)) / 0.015, 1);
  --out: clamp(0, (var(--e) - var(--h)) / 0.015, 1);
  opacity: min(var(--in), var(--out));
}
.st1 {
  --s: -1;
  --e: 0.45;
  opacity: max(min(var(--in), var(--out)), clamp(0, (var(--h) - 0.975) / 0.015, 1));
}
.st2 {
  --s: 0.45;
  --e: 0.6;
}
.st3 {
  --s: 0.6;
  --e: 0.78;
}
.st4 {
  --s: 0.78;
  --e: 0.955;
  color: var(--brand);
}
.diag-bar {
  position: relative;
  height: 3px;
  margin: 12px 0 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.diag-bar i {
  position: absolute;
  inset: 0;
  transform-origin: 0 50%;
  border-radius: inherit;
  opacity: var(--end);
}
.bar-scan {
  background: var(--ink);
  transform: scaleX(clamp(0, (var(--h) - 0.08) / 0.37, 1));
}
.bar-fix {
  background: var(--brand);
  transform: scaleX(clamp(0, (var(--h) - 0.6) / 0.17, 1));
}
.diag-list li {
  --t: clamp(0, (var(--h) - var(--a)) / 0.03, 1);
  --ok: clamp(0, (var(--h) - var(--f)) / 0.02, 1);
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
}
.diag-list li:first-child {
  border-top: 0;
}
.dn {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 10px;
  letter-spacing: 0;
  color: var(--ink-muted);
}
.dt,
.dl {
  display: grid;
  opacity: min(var(--t), var(--end));
}
.dp,
.ds,
.dlp,
.dls {
  grid-area: 1 / 1;
}
.dp,
.dlp {
  opacity: calc(1 - var(--ok));
}
.ds,
.dls {
  opacity: var(--ok);
}
.dlp {
  font-size: 10px;
  color: var(--ink-subtle);
}
.dls {
  font-size: 10px;
  color: var(--brand);
}
.dr1 {
  --a: 0.18;
  --f: 0.64;
}
.dr2 {
  --a: 0.3;
  --f: 0.67;
}
.dr3 {
  --a: 0.42;
  --f: 0.7;
}

/* ---------- drone: the approved CSS 3D model from renecode-drone.html (docs/drone.md) ---------- */
.drone {
  position: absolute;
  left: 235px;
  top: 80px;
  width: 0;
  height: 0;
  z-index: 3;
  pointer-events: none;
}
.drone-box {
  position: absolute;
  left: -100px;
  top: -100px;
  width: 200px;
  height: 200px;
  transform: scale(var(--dz, 0.95));
}
.drone-root {
  position: absolute;
  inset: 0;
}
.drone-scan .drone-root,
.drone .bob {
  animation: k-bob 3.2s ease-in-out infinite;
}
.drone .bob {
  position: absolute;
  inset: 0;
}
.drone-scan .d-glow {
  display: none;
}
.d-glow {
  position: absolute;
  left: 54px;
  top: 192px;
  width: 92px;
  height: 16px;
  border-radius: 50%;
  background: rgba(252, 235, 120, 0.16);
  animation: k-glow 3.2s ease-in-out infinite;
}
.drone-idle {
  left: 112px;
  top: 96px;
  --dz: 0.66;
}
@keyframes k-tile {
  0%,
  34% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  68%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}
@keyframes k-tile-sq {
  0%,
  28% {
    transform: rotate(0deg) scale(1);
  }
  68%,
  100% {
    transform: rotate(45deg) scale(0.6);
  }
}
@keyframes k-intro {
  0%,
  30% {
    transform: rotateX(0deg) rotateY(0deg) scale3d(1, 1, 0.02);
  }
  80%,
  100% {
    transform: rotateX(-20deg) rotateY(-24deg) scale3d(1, 1, 1);
  }
}
@keyframes k-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes k-glow {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.8);
    opacity: 0.6;
  }
}
@keyframes k-yaw {
  0%,
  8% {
    transform: rotateY(0deg);
  }
  22% {
    transform: rotateY(-16deg);
  }
  40% {
    transform: rotateY(16deg);
  }
  54%,
  58% {
    transform: rotateY(0deg);
  }
  67%,
  100% {
    transform: rotateY(360deg);
  }
}
@keyframes k-idle {
  0%,
  100% {
    transform: rotateY(-12deg);
  }
  50% {
    transform: rotateY(12deg);
  }
}
@keyframes k-pupil {
  0%,
  8% {
    transform: translateX(0);
  }
  22% {
    transform: translateX(-4px);
  }
  40% {
    transform: translateX(4px);
  }
  54%,
  100% {
    transform: translateX(0);
  }
}
@keyframes k-thr {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.78;
  }
}
@keyframes k-eflash {
  0%,
  57% {
    opacity: 0;
  }
  62% {
    opacity: 1;
  }
  72%,
  100% {
    opacity: 0;
  }
}
@keyframes k-look {
  0%,
  100% {
    transform: translateX(-2px);
  }
  50% {
    transform: translateX(3px);
  }
}
.h-tile {
  animation: k-tile 1.9s cubic-bezier(0.6, 0, 0.2, 1) 0.25s both;
}
.h-tile-sq {
  animation: k-tile-sq 1.9s cubic-bezier(0.6, 0, 0.2, 1) 0.25s both;
}
.d-intro {
  animation: k-intro 1.9s cubic-bezier(0.6, 0, 0.2, 1) 0.25s both;
}
.d-yaw {
  animation: k-yaw 10s cubic-bezier(0.45, 0, 0.25, 1) 2.2s infinite both;
}
.d-idle {
  animation: k-idle 6s ease-in-out infinite;
}
.d-pupil {
  animation: k-pupil 10s cubic-bezier(0.45, 0, 0.25, 1) 2.2s infinite both;
}
.d-thr {
  animation: k-thr 2.4s ease-in-out infinite;
}
.d-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 14s linear infinite;
}
.d-eflash {
  animation: k-eflash 10s ease-out 2.2s infinite both;
}
.d-look {
  animation: k-look 5s ease-in-out infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding: 22px 0;
}
.mq-track {
  display: flex;
  width: max-content;
  animation: mq 52s linear infinite;
}
.mq-set {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.mq-set b {
  font-weight: 800;
}
.mq-set em {
  font-style: normal;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink-subtle);
}
.mq-set .dia {
  width: 10px;
  height: 10px;
}
@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- sections ---------- */
.sec {
  position: relative;
  padding-top: var(--gap-sec);
}
.seam {
  display: flex;
  align-items: center;
  gap: 18px;
}
.seam i {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.seam span:first-child {
  color: var(--ink);
}
.sec-head {
  position: relative;
  margin: 56px 0 64px;
}
.bignum {
  position: absolute;
  right: -12px;
  top: -88px;
  font-weight: 800;
  font-size: 240px;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px #2a2a28;
  pointer-events: none;
  user-select: none;
}
.h2 {
  position: relative;
  max-width: 860px;
  font-weight: 300;
  font-size: 54px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ink-subtle);
  text-wrap: balance;
}
.h2 b {
  font-weight: 800;
  color: var(--ink);
}
.h2-xl {
  font-size: 64px;
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 11px;
  color: var(--ink-muted);
}

/* reveal (main.js adds .rv-ready, then animates each block once) */
.rv-ready [data-rv] {
  opacity: 0;
}

/* ---------- lighthouse ---------- */
.lh {
  position: relative;
}
.lh-sticky {
  position: relative;
  padding: 24px 0 0;
}
.lh-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.lh-scene {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 640 / 480;
}
.lh-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.glow-lh {
  left: 20%;
  top: 0;
  width: 60%;
  height: 80%;
}
.k {
  --t: clamp(0, (var(--p) - var(--a)) / (var(--b) - var(--a)), 1);
}
:where(svg .k, svg .lh-ray) {
  transform-box: fill-box;
  transform-origin: center;
}
.lh-big {
  opacity: var(--t);
  transform: scale(calc(0.64 + 0.36 * var(--t)));
}
.lh-wave {
  opacity: calc((1 - var(--t)) * min(1, var(--t) * 8) * 0.7);
  transform: scale(calc(0.95 + 0.6 * var(--t)));
}
.lh-req path {
  fill: none;
  stroke: var(--brand);
  stroke-opacity: 0.55;
  stroke-width: 1.4;
  stroke-dasharray: 0.02 0.025;
}
.lh-req {
  opacity: var(--t);
}
.dot {
  fill: none;
  stroke: var(--brand);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 0.0001 2;
  stroke-dashoffset: calc(-1 * var(--t));
  opacity: min(1, var(--t) * 25, (1 - var(--t)) * 25);
}
.ppl-old use {
  fill: #6e6e68;
}
.ppl-new use {
  fill: var(--brand);
}
.ppl-new .k {
  opacity: var(--t);
  transform: translateY(calc((1 - var(--t)) * -10px));
}
.lh-win rect {
  fill: #161615;
  stroke: #333331;
}
.lh-win-on rect {
  fill: var(--brand);
}
.lh-win-on {
  opacity: calc(var(--t) * 0.88);
}
.lh-socket {
  opacity: var(--t);
}
.lh-sign-text {
  font: 700 12px var(--mono);
  letter-spacing: 0.14em;
  fill: var(--ink-muted);
}
.lh-beam {
  opacity: min(1, var(--t) * 12);
  transform-box: view-box;
  transform-origin: 320px 162px;
  transform: rotate(calc(-220deg + 220deg * var(--t)));
}
.lh-tower {
  opacity: min(1, var(--t) * 4);
  transform: scaleY(var(--t));
  transform-origin: 50% 100%;
}
.lh-glass {
  opacity: var(--t);
}
.lh-fire {
  opacity: var(--t);
}
.lh-ray {
  animation: spin 3.2s linear infinite;
  transform-box: view-box;
  transform-origin: 320px 163px;
}
.lh-cable {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-dasharray: 1 1;
  stroke-dashoffset: calc(1 - var(--t));
  stroke-opacity: 0.8;
}
.lh-pulse {
  fill: none;
  stroke: var(--brand-core);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 0.07 2;
  stroke-dashoffset: calc(0.07 - 1.07 * var(--t));
  opacity: min(1, var(--t) * 30, (1 - var(--t)) * 30);
}
.lh-module {
  opacity: var(--t);
  transform: translateY(calc((1 - var(--t)) * -70px));
}
.lh-label {
  font: 500 11px var(--mono);
  letter-spacing: 0.1em;
  fill: var(--ink-muted);
}
.lh-missed {
  opacity: var(--t);
}
.lh-grey-me {
  opacity: calc(1 - var(--t));
}
.lh-ring {
  opacity: calc((1 - var(--t)) * min(1, var(--t) * 10));
  transform: scale(calc(1 + 1.4 * var(--t)));
}
.lh-phone {
  opacity: calc(1 - var(--t));
}
.lh-converted {
  opacity: var(--t);
  transform-box: view-box;
  transform-origin: 0 0;
  transform: translate(calc(588px - 112px * var(--t)), 372px);
}
.me-yellow {
  fill: var(--brand);
}

.tg-card,
.sms {
  position: absolute;
  border-radius: 2.4cqw;
  border: 1px solid var(--line-strong);
  background: rgba(27, 27, 26, 0.92);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    var(--card-hi);
}
.tg-card {
  left: 57%;
  top: 2%;
  width: 37.5%;
  padding: 2.2cqw 2.4cqw;
  opacity: var(--t);
  transform: translateY(calc((1 - var(--t)) * 14px));
}
.tg-top {
  display: flex;
  align-items: center;
  gap: 1cqw;
  font-size: max(10px, 1.5cqw);
}
.tg-top svg {
  width: 2.2cqw;
  height: 2.2cqw;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linejoin: round;
}
.tg-card b {
  display: block;
  margin-top: 1.2cqw;
  font-size: max(11px, 2.3cqw);
  line-height: 1.2;
}
.tg-card p {
  margin-top: 0.4cqw;
  font-size: max(11px, 1.9cqw);
  line-height: 1.35;
  color: var(--ink-muted);
}
/* Telegram inline keyboard: the main action on its own row, the other two below — fits at any width */
.tg-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8cqw;
  margin-top: 1.6cqw;
}
.tg-btns span {
  min-width: 0;
  padding: 0.9cqw 0.6cqw;
  text-align: center;
  border-radius: 1.2cqw;
  border: 1px solid var(--line-strong);
  font-size: max(11px, 1.55cqw);
  line-height: 1.25;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.tg-btns .on {
  grid-column: 1 / -1;
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}
.sms {
  left: 57%;
  top: 38%;
  width: 34.4%;
  padding: 1.8cqw 2.2cqw;
  border-bottom-right-radius: 0.6cqw;
  opacity: var(--t);
  transform: translateY(calc((1 - var(--t)) * 12px));
}
.sms .mono {
  font-size: max(10px, 1.4cqw);
}
.sms p {
  margin-top: 0.6cqw;
  font-size: max(11px, 1.9cqw);
  line-height: 1.35;
  font-weight: 600;
}

.lh-text {
  position: relative;
}
.lh-segs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 36px;
}
.lh-segs i {
  --t: clamp(0, (var(--p) - var(--a)) / (var(--b) - var(--a)), 1);
  position: relative;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.lh-segs i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand);
  transform-origin: 0 50%;
  transform: scaleX(var(--t));
}
.lh-step h3 {
  margin-top: 14px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lh-step .lh-long {
  margin-top: 16px;
  color: var(--ink-muted);
  max-width: 460px;
  text-wrap: pretty;
}
.lh-steps {
  display: grid;
  gap: 48px;
}
.result {
  margin-top: 22px;
  padding: 18px 18px 14px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--card-hi);
  max-width: 440px;
}
.result-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.result-top .mono {
  font-size: 11px;
}
.result-n {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.result-n .was {
  color: var(--ink-subtle);
  font-weight: 300;
}
.result-n b {
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.chart {
  width: 100%;
  height: auto;
  margin-top: 10px;
  overflow: visible;
}
.ch-grid {
  stroke: var(--line);
  fill: none;
}
.ch-without {
  fill: none;
  stroke: var(--ink-subtle);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
}
.ch-line {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--t));
}
.ch-fill {
  fill: rgba(252, 235, 120, 0.12);
  opacity: var(--t);
}
.result-leg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 10px;
  font-size: 10px;
}
.result-leg i {
  display: inline-block;
  width: 14px;
  height: 2px;
  margin-right: 6px;
  vertical-align: middle;
}
.lg-y {
  background: var(--brand);
}
.lg-g {
  background: var(--ink-subtle);
}
.result-leg .sub {
  margin-left: auto;
}
.lh-step-6 .btn {
  margin-top: 22px;
}

/* scroll mode — main.js adds .scrolly when motion is allowed */
.scrolly .lh {
  height: 420vh;
}
.scrolly .lh-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 72px 0 0;
  overflow: hidden;
}
.scrolly .lh-steps {
  display: grid;
  gap: 0;
}
.scrolly .lh-step {
  grid-area: 1 / 1;
  --in: clamp(0, (var(--p) - var(--s)) / 0.03, 1);
  --out: clamp(0, (var(--e) - var(--p)) / 0.03, 1);
  opacity: min(var(--in), var(--out));
  transform: translateY(calc((1 - var(--in)) * 18px - (1 - var(--out)) * 18px));
  pointer-events: none;
}
.scrolly .lh-step.on {
  pointer-events: auto;
}
.lh-segs {
  display: none;
}
.scrolly .lh-segs {
  display: grid;
}

/* ---------- process ---------- */
.pr {
  position: relative;
}
.pr-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 17px;
  height: 1px;
  background: var(--line);
}
.pr-line i {
  position: absolute;
  inset: 0;
  background: var(--brand);
  transform-origin: 0 50%;
  transform: scaleX(var(--d, 1));
}
.js .pr-line i {
  transform: scaleX(var(--d, 0));
}
.pr-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pill {
  display: inline-grid;
  place-items: center;
  height: 34px;
  min-width: 54px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  transition:
    background-color 0.3s ease-out,
    color 0.3s ease-out,
    border-color 0.3s ease-out;
}
.pill.lit,
html:not(.js) .pill {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}
.pr-step h3 {
  margin-top: 20px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pr-step p {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.mini {
  position: relative;
  height: 168px;
  margin-top: 24px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--card-hi);
  overflow: hidden;
}
.mc-top {
  display: flex;
  gap: 10px;
  align-items: center;
}
.mc-av img {
  border-radius: 8px;
}
.mc-top b {
  display: block;
  font-size: 14px;
}
.mc-top em {
  display: block;
  font-style: normal;
  font-size: 10px;
}
.wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 70px;
  margin-top: 22px;
}
.wave i {
  flex: 1;
  height: 100%;
  border-radius: 3px;
  background: var(--ink-muted);
  transform: scaleY(0.28);
  animation: wave 1.2s ease-in-out infinite;
}
.wave i:nth-child(3n) {
  background: var(--brand);
}
.wave i:nth-child(1) {
  animation-delay: -0.1s;
}
.wave i:nth-child(2) {
  animation-delay: -0.5s;
}
.wave i:nth-child(3) {
  animation-delay: -0.9s;
}
.wave i:nth-child(4) {
  animation-delay: -0.3s;
}
.wave i:nth-child(5) {
  animation-delay: -0.7s;
}
.wave i:nth-child(6) {
  animation-delay: -1.1s;
}
.wave i:nth-child(7) {
  animation-delay: -0.2s;
}
.wave i:nth-child(8) {
  animation-delay: -0.6s;
}
.wave i:nth-child(9) {
  animation-delay: -1s;
}
.wave i:nth-child(10) {
  animation-delay: -0.4s;
}
.wave i:nth-child(11) {
  animation-delay: -0.8s;
}
.wave i:nth-child(12) {
  animation-delay: -0.15s;
}
.wave i:nth-child(13) {
  animation-delay: -0.55s;
}
.wave i:nth-child(14) {
  animation-delay: -0.95s;
}
.wave i:nth-child(15) {
  animation-delay: -0.35s;
}
.wave i:nth-child(16) {
  animation-delay: -0.75s;
}
@keyframes wave {
  50% {
    transform: scaleY(1);
  }
}
.mini-browser {
  padding: 0;
}
.mb-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}
.mb-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}
.mb-bar .mono {
  margin-left: 8px;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: none;
}
.mb-body {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 18px 16px;
}
.mb-t {
  height: 11px;
  width: 74%;
  border-radius: 4px;
  background: #34342f;
}
.mb-t.s {
  width: 52%;
  background: #2a2a27;
}
.mb-btn {
  width: 84px;
  height: 24px;
  margin-top: 8px;
  border-radius: 6px;
  background: var(--brand);
}
.mb-time {
  position: absolute;
  right: 14px;
  bottom: 16px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 10px;
  color: var(--ink);
}
.mini-toggles {
  display: grid;
  align-content: center;
  gap: 10px;
}
.mini-toggles span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}
.mini-toggles em {
  font-style: normal;
}
.tgl {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--brand);
  flex: none;
}
.tgl::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--on-brand);
}
.mini-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}
.bub {
  max-width: 88%;
  padding: 8px 11px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 600;
}
.bub.me {
  align-self: flex-end;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-bottom-right-radius: 4px;
}
.bub.us {
  align-self: flex-start;
  background: rgba(252, 235, 120, 0.1);
  border: 1px solid rgba(252, 235, 120, 0.35);
  color: var(--brand);
  border-bottom-left-radius: 4px;
}
.mc-who {
  font-size: 10px;
}

.video {
  position: relative;
  margin-top: 64px;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--card-hi);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.video .grid-bg {
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 10%, transparent 75%);
}
.glow-video {
  left: 25%;
  top: 10%;
  width: 50%;
  height: 80%;
}
.video-tag {
  position: absolute;
  left: 24px;
  top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.video-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 60px;
  padding: 0 26px 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-weight: 700;
  font-size: 16px;
  cursor: default;
}
.vb-play {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
}
.vb-play svg {
  width: 18px;
  height: 18px;
  fill: var(--on-brand);
  margin-left: 2px;
}

/* ---------- works ---------- */
.fan-wrap {
  position: relative;
  padding: 10px 0 0;
}
.glow-fan {
  left: 50%;
  top: 40px;
  width: 900px;
  height: 520px;
  transform: translateX(-50%);
}
.fan {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 56px;
  perspective: 1400px;
  padding: 0 var(--pad);
}
.work {
  display: grid;
  justify-items: center;
  transition: transform 0.2s ease-out;
}
.w-l .phone {
  transform: rotateY(18deg);
}
.w-r .phone {
  transform: rotateY(-18deg);
}
.w-l:hover .phone {
  transform: rotateY(18deg) translateY(-4px);
}
.w-r:hover .phone {
  transform: rotateY(-18deg) translateY(-4px);
}
.w-c {
  transform: translateZ(40px) scale(1.04);
  z-index: 1;
}
.work:hover .phone {
  transform: translateY(-4px);
}
.phone {
  width: 232px;
  height: 464px;
  padding: 8px;
  border-radius: 36px;
  background: #0c0c0b;
  border: 1px solid var(--line-strong);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease-out;
}
.screen {
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #f7f7f4;
}
.site {
  color: #1f1f1e;
  animation: site-scroll 16s ease-in-out infinite alternate;
}
@keyframes site-scroll {
  0%,
  8% {
    transform: translateY(0);
  }
  92%,
  100% {
    transform: translateY(-46%);
  }
}
.s-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 22px 16px 12px;
  font-size: 13px;
}
.s-nav i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--acc);
}
.s-nav span {
  margin-left: auto;
  width: 18px;
  height: 2px;
  background: #1f1f1e;
  box-shadow: 0 5px 0 #1f1f1e;
}
.s-hero {
  margin: 4px 12px 14px;
  padding: 18px 14px 16px;
  border-radius: 16px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  background: var(--hero);
  color: #fff;
}
.s-hero b {
  font-size: 21px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.s-btn {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--acc);
  color: var(--acc-ink, #1f1f1e);
  font-size: 11px;
  font-weight: 700;
}
.s-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 12px;
  padding: 11px 4px;
  border-bottom: 1px solid #e6e6e0;
  font-size: 11.5px;
}
.s-row b {
  white-space: nowrap;
}
.s-card {
  margin: 14px 12px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #ebebe6;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.s-av {
  display: flex;
}
.s-av i {
  width: 26px;
  height: 26px;
  margin-left: -6px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--acc);
  opacity: 0.85;
}
.s-av i:nth-child(2) {
  opacity: 0.6;
}
.s-av i:nth-child(3) {
  opacity: 0.4;
}
.s-map {
  height: 110px;
  margin: 14px 12px;
  border-radius: 14px;
  position: relative;
  background:
    linear-gradient(90deg, transparent 30%, #dcdcd5 30% 33%, transparent 33%),
    linear-gradient(transparent 58%, #dcdcd5 58% 62%, transparent 62%),
    linear-gradient(90deg, transparent 72%, #e4e4de 72% 74%, transparent 74%),
    linear-gradient(transparent 24%, #e4e4de 24% 27%, transparent 27%), #ecece6;
}
.s-map::after {
  content: "";
  position: absolute;
  left: 52%;
  top: 34%;
  width: 16px;
  height: 16px;
  border-radius: 50% 50% 50% 0;
  background: var(--acc);
  transform: rotate(-45deg);
  box-shadow: 0 0 0 3px #fff;
}
.s-foot {
  padding: 6px 12px 40px;
}
.site-salon {
  --acc: #e9b7a5;
  --hero: linear-gradient(160deg, #6a4b45, #2f2422);
}
.site-dent {
  --acc: #8fc7c0;
  --hero: linear-gradient(160deg, #4a6a6a, #1f2f30);
}
.site-auto {
  --acc: #fceb78;
  --hero: linear-gradient(160deg, #4a4a46, #1c1c1b);
}
.w-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  margin-top: 26px;
  font-size: 15px;
  white-space: nowrap;
}
.w-meta span:last-child {
  color: var(--ink-subtle);
}
.badge {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 10px;
  color: var(--ink-muted);
}
.w-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 2px;
  font-weight: 700;
  font-size: 15px;
  color: var(--brand);
}
.w-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- prices ---------- */
.plans {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--card-hi);
  overflow: hidden;
  transition: transform 0.2s ease-out;
}
.plan:hover {
  transform: translateY(-4px);
}
.plan-n {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.plan h3 {
  margin-top: 18px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 6px 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.price b {
  font-size: 60px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}
.price span {
  font-size: 17px;
  color: var(--ink-muted);
  font-weight: 600;
}
.ticks {
  display: grid;
  align-content: start;
  gap: 12px;
  margin: 28px 0 32px;
  flex: 1;
}
.ticks li {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
  font-weight: 600;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f2ee' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 12.5 3.2 3.2L17 8.5'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}
.plan-rec {
  border-color: rgba(252, 235, 120, 0.45);
  background: linear-gradient(180deg, #23221b, #1a1a17);
}
.plan-rec .price b {
  color: var(--brand);
}
.plan-rec .ticks li::before {
  border-color: var(--brand);
  background-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1f1e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 12.5 3.2 3.2L17 8.5'/%3E%3C/svg%3E");
}
.glow-plan {
  right: -20%;
  top: -30%;
  width: 80%;
  height: 80%;
}
.plan-edge {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: conic-gradient(
    from var(--ang),
    transparent 0 62%,
    rgba(252, 235, 120, 0.95) 76%,
    transparent 88%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  animation: edge 7s linear infinite;
}
@keyframes edge {
  to {
    --ang: 360deg;
  }
}
.pill-rec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  letter-spacing: 0.06em;
  font-size: 11px;
}
.pill-rec .dia {
  background: var(--on-brand);
  width: 6px;
  height: 6px;
}
.price .old {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration-thickness: 2px;
}
.save {
  margin: -12px 0 28px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(252, 235, 120, 0.4);
  background: var(--surface-raised);
  font-size: 15px;
  color: var(--ink-muted);
}
.save b {
  color: var(--ink);
  font-weight: 700;
}
.terms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.terms li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 15px;
  font-weight: 600;
}
.terms .ic {
  color: var(--brand);
  width: 18px;
  height: 18px;
}

/* ---------- faq ---------- */
.qa {
  border-top: 1px solid var(--line);
}
.qa details {
  border-bottom: 1px solid var(--line);
  interpolate-size: allow-keywords;
}
.qa summary {
  display: grid;
  grid-template-columns: 56px 1fr 36px;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary:hover i {
  background: var(--surface-raised);
}
.qa summary i {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition:
    transform 0.2s ease-out,
    background-color 0.15s ease-out;
}
.qa summary i::before,
.qa summary i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 1.6px;
  margin: -0.8px 0 0 -6.5px;
  background: var(--ink);
  border-radius: 2px;
}
.qa summary i::after {
  transform: rotate(90deg);
}
.qa details[open] summary i {
  transform: rotate(45deg);
  background: var(--brand);
  border-color: var(--brand);
}
.qa details[open] summary i::before,
.qa details[open] summary i::after {
  background: var(--on-brand);
}
.qa details p {
  padding: 0 48px 26px 68px;
  max-width: 820px;
  color: var(--ink-muted);
}
.qa details::details-content {
  height: 0;
  overflow: clip;
  transition:
    height 0.2s ease-out,
    content-visibility 0.2s allow-discrete;
}
.qa details[open]::details-content {
  height: auto;
}

/* ---------- final CTA ---------- */
.final {
  padding-bottom: 40px;
}
.final-box {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 56px;
  align-items: center;
  padding: 200px 64px 64px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #191918, #141413);
  overflow: hidden;
}
.final-box > .grid-bg {
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 40% 30%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 40% 30%, #000 15%, transparent 75%);
}
.final-light {
  position: absolute;
  left: 96px;
  top: 92px;
  width: 140%;
  height: 520px;
  transform-origin: 0 0;
  transform: rotate(14deg);
  background: linear-gradient(90deg, rgba(252, 235, 120, 0.14), rgba(252, 235, 120, 0) 70%);
  clip-path: polygon(0 0, 100% 18%, 100% 82%, 0 4%);
  pointer-events: none;
}
.final-copy {
  position: relative;
}
.final-copy .lead {
  max-width: 480px;
}
.alt {
  margin-top: 22px;
  color: var(--ink-subtle);
  font-weight: 600;
}
.alt a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}
.alt a:hover {
  border-color: var(--brand);
}
.form {
  position: relative;
  padding: 28px;
  border-radius: 20px;
}
.form-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.form-fields {
  display: grid;
  gap: 14px;
}
.fld {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
}
.fld input {
  height: 54px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #696964;
  background: var(--bg);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.15s ease-out,
    box-shadow 0.15s ease-out;
}
.fld input::placeholder {
  color: var(--ink-subtle);
}
.fld input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(252, 235, 120, 0.45);
}
.err {
  display: none;
  align-items: center;
  gap: 6px;
  font-style: normal;
  font-size: 13px;
  color: var(--danger);
}
.err svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.fld.bad input {
  border: 2px solid var(--danger);
  padding: 0 15px;
  box-shadow: none;
}
.fld.bad .err {
  display: flex;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-btn {
  width: 100%;
  margin-top: 22px;
}
.fb-busy {
  display: none;
  align-items: center;
  gap: 10px;
}
.spin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(31, 31, 30, 0.25);
  border-top-color: var(--on-brand);
  animation: spin 0.7s linear infinite;
}
.form.is-busy .fb-idle {
  display: none;
}
.form.is-busy .fb-busy {
  display: inline-flex;
}
.form.is-busy .form-btn {
  pointer-events: none;
  opacity: 0.85;
}
.form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-subtle);
  font-weight: 600;
}
.form-fail {
  display: none;
  margin-top: 12px;
  font-size: 14px;
  color: var(--danger);
  text-align: center;
}
.form-fail a {
  color: var(--ink);
  white-space: nowrap;
}
.form.is-fail .form-fail {
  display: block;
}
.form-ok {
  display: none;
  text-align: center;
  padding: 34px 0 20px;
}
.form-ok b {
  display: block;
  margin-top: 18px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.form-ok p {
  margin-top: 6px;
  color: var(--ink-muted);
}
.ok-ic {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow:
    0 0 0 10px rgba(252, 235, 120, 0.12),
    0 0 40px rgba(252, 235, 120, 0.35);
}
.ok-ic svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--on-brand);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form.is-ok .form-fields,
.form.is-ok .form-btn,
.form.is-ok .form-note,
.form.is-ok .form-fail {
  display: none;
}
.form.is-ok .form-ok {
  display: block;
}

/* ---------- footer ---------- */
.ftr {
  padding: 64px 0 0;
  overflow: hidden;
}
.ftr-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.ftr-geo {
  font-size: 11px;
}
.ftr-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
}
.ftr-links a,
.ftr-links .soon {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.ftr-links a:hover {
  color: var(--ink);
}
.ftr-legal {
  margin-top: 16px;
  font-size: 11px;
  color: var(--ink-muted);
}
.ftr-giant {
  display: flex;
  align-items: flex-start;
  gap: 0.04em;
  height: 0.74em;
  margin-top: 24px;
  font-size: clamp(88px, 16.4vw, 252px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: #1c1c1b;
  overflow: hidden;
  user-select: none;
}
.ftr-giant .dia {
  width: 0.12em;
  height: 0.12em;
  margin-top: 0.2em;
  background: #24241f;
  border-radius: 0.02em;
}

.sticky-cta {
  display: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .hero-in {
    grid-template-columns: minmax(0, 1fr) 496px;
    gap: 32px;
  }
  .hero-stage {
    zoom: 0.8;
  }
  .h1 {
    font-size: 54px;
  }
}
@media (max-width: 1000px) {
  .hero-in {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }
  .hero-stage {
    zoom: 1;
    margin-inline: auto;
  }
  .h1 {
    font-size: 62px;
  }
  .lead {
    max-width: 640px;
  }
}
@media (max-width: 1100px) {
  .lh-step h3 {
    font-size: 28px;
  }
  .lh-in {
    gap: 36px;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
  .pr-steps {
    grid-template-columns: 1fr 1fr;
    row-gap: 48px;
  }
  .pr-line {
    display: none;
  }
  .final-box {
    grid-template-columns: 1fr;
    padding: 200px 40px 40px;
  }
  .fan {
    gap: 28px;
  }
}
@media (max-width: 1000px) {
  .hdr-nav {
    display: none;
  }
  .hdr-phone {
    margin-left: auto;
  }
  .w-l,
  .w-r,
  .w-c {
    transform: none;
  }
  .fan {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    scrollbar-width: none;
  }
  .fan::-webkit-scrollbar {
    display: none;
  }
  .work {
    scroll-snap-align: center;
  }
  .plans {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin-inline: auto;
  }
  .plan-rec {
    order: -1;
  }
}
@media (max-width: 900px) {
  .lh-in {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .lh-scene {
    width: min(100%, 560px);
    margin-inline: auto;
  }
  .scrolly .lh {
    height: 360svh;
  }
  .scrolly .lh-sticky {
    height: 100svh;
    padding-top: 64px;
  }
  .lh-segs {
    margin-bottom: 16px;
  }
  .lh-step h3 {
    font-size: 26px;
  }
  .tg-card {
    left: 44%;
    width: 55%;
  }
  /* step 5: the SMS comes forward, the Telegram card steps back instead of being covered */
  .tg-card {
    opacity: calc(var(--t) * (1 - 0.82 * clamp(0, (var(--p) - 0.7) / 0.03, 1)));
  }
  .sms {
    left: 40%;
    width: 52%;
    top: 40%;
  }
}
@media (max-width: 760px) {
  :root {
    --pad: 16px;
    --gap-sec: 72px;
  }
  body {
    font-size: 16px;
    line-height: 1.6;
  }
  .grid-bg {
    background-size: 40px 40px;
  }
  .hdr-in {
    height: 64px;
    gap: 10px;
  }
  .hdr-tg {
    display: inline-grid;
    margin-left: auto;
  }
  .hdr-phone {
    display: none;
  }
  .btn-sm {
    padding: 0 14px;
  }
  .hero {
    padding: 104px 0 64px;
  }
  .eyebrow {
    font-size: 10.5px;
    margin-bottom: 18px;
    align-items: flex-start;
  }
  .eyebrow .dia {
    margin-top: 4px;
  }
  .h1 {
    font-size: 42px;
  }
  .lead {
    font-size: 16px;
    line-height: 26px;
    margin-top: 20px;
  }
  .hero-cta {
    margin-top: 28px;
  }
  .hero-cta .btn-primary {
    width: 100%;
  }
  .hero-cta .btn-ghost {
    display: none;
  }
  .facts {
    gap: 14px 20px;
    margin-top: 28px;
    padding-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
  }
  .facts li {
    grid-template-columns: 1fr;
  }
  .facts .ic {
    display: none;
  }
  .facts b {
    font-size: 20px;
  }
  .facts .mono {
    font-size: 9px;
    letter-spacing: 0.06em;
  }
  .mq-set {
    font-size: 30px;
    gap: 22px;
    padding-right: 22px;
  }
  .marquee {
    padding: 16px 0;
  }
  .mq-track {
    animation-duration: 40s;
  }
  .sec-head {
    margin: 36px 0 40px;
  }
  .bignum {
    font-size: 120px;
    top: -48px;
    right: -6px;
  }
  .h2 {
    font-size: 34px;
    line-height: 1.04;
  }
  .h2-xl {
    font-size: 38px;
    line-height: 1;
  }
  .lh-in {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .lh-scene {
    width: min(100%, 400px);
    margin-inline: auto;
  }
  .scrolly .lh {
    height: 340svh;
  }
  .scrolly .lh-sticky {
    height: 100svh;
    padding-top: 64px;
    align-items: center;
  }
  .scrolly .lh-in {
    padding-top: 8px;
  }
  .lh-segs {
    margin-bottom: 16px;
  }
  .lh-step h3 {
    font-size: 24px;
    margin-top: 8px;
  }
  .lh-step .lh-long {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.5;
  }
  .scrolly .lh-step-6 h3 {
    display: none;
  }
  .result {
    margin-top: 10px;
    padding: 12px 14px 10px;
  }
  .result-n {
    font-size: 24px;
  }
  .lh-step-6 .btn {
    margin-top: 12px;
    width: 100%;
  }
  .sms {
    left: 36%;
    width: 60%;
  }
  .pr-steps {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-left: 44px;
  }
  .pr-line {
    display: block;
    left: 17px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
  }
  .pr-line i {
    transform-origin: 50% 0;
    transform: scaleY(var(--d, 1));
  }
  .js .pr-line i {
    transform: scaleY(var(--d, 0));
  }
  .pill {
    position: absolute;
    left: 0;
    min-width: 36px;
    padding: 0;
    width: 36px;
    font-size: 10px;
  }
  .pr-step {
    position: relative;
  }
  .pr-step .mini {
    margin-top: 0;
  }
  .pr-step h3 {
    font-size: 19px;
  }
  .video {
    margin-top: 48px;
    border-radius: 16px;
  }
  .video-tag {
    left: 14px;
    top: 12px;
    font-size: 10px;
  }
  .video-btn {
    height: 50px;
    font-size: 14px;
    gap: 10px;
    padding-right: 18px;
  }
  .vb-play {
    width: 36px;
    height: 36px;
  }
  .phone {
    width: 220px;
    height: 440px;
    border-radius: 34px;
  }
  .fan {
    gap: 16px;
  }
  .glow-fan {
    width: 520px;
  }
  .plan {
    padding: 26px 22px;
  }
  .price b {
    font-size: 54px;
  }
  .terms {
    flex-direction: column;
    align-items: stretch;
  }
  .qa summary {
    grid-template-columns: 34px 1fr 32px;
    font-size: 17px;
    min-height: 68px;
  }
  .qa summary i {
    width: 32px;
    height: 32px;
  }
  .qa details p {
    padding: 0 8px 22px 46px;
    font-size: 15px;
  }
  .final-box {
    padding: 150px 20px 20px;
    border-radius: 24px;
    gap: 32px;
  }
  .drone-idle {
    left: 64px;
    top: 72px;
    --dz: 0.5;
  }
  .final-light {
    left: 60px;
    top: 70px;
  }
  .form {
    padding: 20px;
  }
  .ftr-links {
    margin-left: 0;
  }
  .sticky-cta {
    display: inline-flex;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 40;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(150%);
    transition: transform 0.25s var(--ease);
  }
  .sticky-cta.show {
    transform: none;
  }
  /* while the sticky CTA is up, the header one steps aside: one yellow CTA on screen */
  .hdr .btn-sm {
    transition:
      opacity 0.2s ease-out,
      visibility 0.2s;
  }
  .hdr.cta-off .btn-sm {
    opacity: 0;
    visibility: hidden;
  }
}
@media (max-width: 700px) {
  .hero-stage {
    zoom: 0.8;
  }
}
/* small Androids: the scene must not push the text column wider than the screen */
@media (max-width: 374px) {
  .hero-scene {
    zoom: 0.46 !important;
  }
}
@media (max-width: 359px) {
  .hdr .brand span {
    display: none;
  }
}
@media (max-width: 560px) {
  .hero-stage {
    zoom: 1;
    width: 100%;
    height: auto;
  }
  .hero-scene {
    position: relative;
    inset: auto;
    width: 620px;
    height: 530px;
    zoom: 0.56;
    margin: 0 auto;
  }
  .coords {
    position: static;
    margin-bottom: 8px;
    font-size: 10px;
    text-align: right;
  }
  .diag {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    margin-top: 8px;
  }
}

/* ---------- reduced motion: everything in its final state ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
  .hs-svg,
  .mk,
  .diag,
  .hero-rise,
  .beam,
  .mq-track,
  .site,
  .wave i,
  .shine::after,
  .plan-edge,
  .blink,
  .lh-ray,
  .drone-root,
  .drone .bob,
  .d-yaw,
  .d-idle,
  .d-pupil,
  .d-look,
  .d-thr,
  .d-ring,
  .d-glow,
  .d-eflash {
    animation: none !important;
  }
  .beam {
    opacity: 0;
  }
  .h-tile {
    display: none;
  }
  .ul path {
    stroke-dashoffset: 0;
  }
  .shine::after {
    display: none;
  }
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.soon {
  color: var(--ink-subtle);
  cursor: default;
}

/* ---------- 404 ---------- */
.nf {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 64px;
}
.nf-code {
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--brand);
}
.nf .hero-cta {
  margin-top: 32px;
}
