/* Bendside, wizytowka v2: "Notatki pilota". Swiat: Forest Line z aplikacji. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("assets/fonts/Inter-Regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("assets/fonts/Inter-SemiBold.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 700 800; font-display: swap; src: url("assets/fonts/Inter-Bold.woff") format("woff"); }

:root {
  --night: #07120e;
  --deep: #040a08;
  --surface: #0d1c17;
  --forest: #143d32;
  --forest-line: #2a5a4c;
  --forest-ink: #a9c7b8;
  --chalk: #f0f4ec;
  --muted: #94a89d;
  --slate: #566960;
  --amber: #ff6a1a;
  --amber-ink: #ffb98a;

  --r-btn: 16px;
  --r-card: 24px;
  --gutter: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --hud-h: 0px;
  --dark: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--forest-line) var(--night); }
body {
  margin: 0; background: var(--night); color: var(--chalk);
  font: 400 1.0625rem/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 96px;
}
::selection { background: var(--amber); color: var(--night); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }

.draft { margin: 0; padding: 8px var(--gutter); background: var(--amber); color: var(--night); font-size: 0.8125rem; font-weight: 600; text-align: center; line-height: 1.4; }

/* ---------- top ---------- */
.top { position: relative; z-index: 5; }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.top__logo img { height: 34px; width: auto; }
.top__join { font-size: 0.9375rem; font-weight: 600; text-decoration: none; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--forest-line); transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.top__join:hover { border-color: var(--chalk); background: var(--surface); }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px;
  background: var(--amber); color: var(--night); font: 700 1.0625rem/1 "Inter", system-ui, sans-serif;
  border: 0; border-radius: var(--r-btn); text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgb(255 255 255 / .25) inset, 0 8px 16px -8px rgb(0 0 0 / .55);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.btn:hover { background: #ff7a33; transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }
.btn--wide { width: 100%; }

/* ---------- scena ---------- */
.stage { position: relative; isolation: isolate; overflow: clip; }
.bg { position: absolute; left: 0; right: 0; top: -200px; bottom: -200px; z-index: 0; pointer-events: none; will-change: transform; }
.bg svg { width: 100%; height: 100%; }
.contour { fill: none; stroke: var(--forest-line); stroke-width: 1.2; opacity: .42; }
.panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; background: var(--forest); border-radius: 56px 56px 0 0; }

.road { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.road--top { z-index: 3; }
.road path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.road__bed { stroke: rgb(42 90 76 / .34); stroke-width: 22; }
.road__base { stroke: rgb(240 244 236 / .26); stroke-width: 3; stroke-dasharray: 2 13; }
.road__drive { stroke: var(--chalk); stroke-width: 4; }
.post { fill: var(--night); stroke: var(--forest-line); stroke-width: 3; transition: fill .3s var(--ease), stroke .3s var(--ease); }
.post.done { fill: var(--chalk); stroke: var(--chalk); }
.car__in { transform: scale(1.3); }
.car .c-body { fill: var(--chalk); stroke: var(--night); stroke-width: 1.8; paint-order: stroke; }
.car .c-glass { fill: #0d2a22; }
.car .c-stripe { fill: var(--forest); }
.car .c-roof { fill: #dfe6da; }
.car .c-scoop { fill: #0d2a22; }
.car .c-split { fill: #0a1411; }
.car .c-vent { fill: #0d2a22; }
.car .c-wheel { fill: #050b09; stroke: var(--forest-line); stroke-width: .8; }
.car .c-wing { fill: #0a1411; stroke: var(--chalk); stroke-width: .9; }
@media (max-width: 759px) { .car__in { transform: scale(.82); } }

/* ---------- notatka ---------- */
.note { position: relative; z-index: 2; padding-block: clamp(88px, 15vh, 168px); min-height: min(86vh, 760px); display: grid; align-items: center; }
.note--start { min-height: auto; }
#start { padding-block: 32px 120px; min-height: min(78vh, 700px); }
.note__in { display: grid; align-items: center; column-gap: 24px; row-gap: 28px; }

.note__rail { display: grid; justify-items: start; gap: 4px; color: var(--forest-ink); transition: color .4s var(--ease); }
.note.done .note__rail { color: var(--chalk); }
.note__rail .gl { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.note.done .note__rail .gl { stroke: var(--amber); }
.note__rail b { font-weight: 800; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; }
.note__rail span { font-size: .8125rem; font-variant-numeric: tabular-nums; color: var(--muted); }

h1 { font-weight: 800; letter-spacing: -.04em; line-height: .98; font-size: clamp(2.6rem, 9.4vw, 5rem); }
.w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; }
h2 { font-weight: 800; letter-spacing: -.03em; line-height: 1.04; font-size: clamp(2rem, 5.6vw, 3.5rem); }
.lead { font-size: 1.1875rem; line-height: 1.55; color: var(--forest-ink); max-width: 34em; }
.note__body { display: grid; gap: 20px; align-content: center; justify-items: start; }
.note__body p:not(.lead) { color: var(--forest-ink); max-width: 30em; font-size: 1.125rem; }

.cta { display: grid; gap: 16px; justify-items: start; margin-top: 6px; }
.cue { display: inline-flex; align-items: center; gap: 10px; font-size: .9375rem; color: var(--muted); }
.cue svg { width: 18px; height: 18px; fill: none; stroke: var(--amber); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

/* wizualia */
.vis { position: relative; justify-self: center; width: min(100%, 360px); }
.vis__chip { display: inline-block; margin-top: 14px; font-size: .8125rem; font-weight: 600; color: var(--forest-ink); padding: 5px 12px; border-radius: 999px; background: var(--surface); }

.vis--start { height: 180px; display: grid; place-items: center; }
.startline { width: 100%; height: 8px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--chalk) 0 16px, var(--night) 16px 32px); box-shadow: 0 0 0 3px var(--night); }
.startline__lbl { position: absolute; bottom: 10px; font-size: .8125rem; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.vis--start { align-self: start; margin-top: 4vh; }

/* mapa */
.map__bg { fill: var(--forest); }
.map__bed { fill: none; stroke: var(--forest-line); stroke-width: 11; opacity: .6; stroke-linecap: round; }
.map__line { fill: none; stroke: #7fa797; stroke-width: 3; stroke-linecap: round; }
.map__start { fill: #4cd37e; stroke: var(--forest); stroke-width: 3; }
.map__ring { fill: rgb(255 106 26 / .14); stroke: var(--amber); stroke-width: 1.6; }
.map__dot { fill: var(--amber); stroke: var(--forest); stroke-width: 3; }
.map__ripple { fill: none; stroke: var(--amber); stroke-width: 1.5; opacity: 0; transform-origin: 0 0; }
.map__drop { transform: translateY(-90px); opacity: 0; }
.vis--map.in .map__drop { animation: drop .9s var(--ease) .15s forwards; }
.vis--map.in .map__ripple { animation: ripple 2.6s ease-out 1s infinite; }
.vis--map.in .map__ripple--2 { animation-delay: 2.3s; }
@keyframes drop { 0% { transform: translateY(-90px); opacity: 0; } 55% { transform: translateY(0); opacity: 1; } 72% { transform: translateY(-9px); } 100% { transform: translateY(0); opacity: 1; } }
@keyframes ripple { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.2); opacity: 0; } }

/* lista startowa */
.list { list-style: none; margin: 0; padding: 14px; background: var(--forest); border-radius: var(--r-card); display: grid; gap: 8px; }
.list li { display: grid; grid-template-columns: 46px 1fr 28px; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: rgb(255 255 255 / .04); }
.num { display: inline-grid; place-items: center; min-width: 44px; height: 32px; padding-inline: 10px; background: var(--chalk); color: var(--forest); border-radius: 9px; font-weight: 800; font-variant-numeric: tabular-nums; }
.t { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--forest-ink); }
.chk { width: 24px; height: 24px; fill: none; stroke: #4cd37e; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26; stroke-dashoffset: 26; }
.vis--list.in .chk { animation: tick .5s var(--ease) calc(.5s + var(--i) * .75s) forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.list .next { background: var(--amber); }
.list .next .t { color: var(--night); }
.list .next .num { background: var(--night); color: var(--chalk); }
.eta { font-size: .8125rem; font-weight: 800; color: var(--night); justify-self: end; grid-column: 3; white-space: nowrap; margin-right: 6px; }
.list .next { grid-template-columns: 46px 1fr auto; }

/* zasieg */
.sigbig { width: 100%; max-width: 220px; margin-inline: auto; }
.sigbig rect { fill: var(--chalk); transition: opacity .25s linear; }
.vis--sig { text-align: center; }

/* ---------- las (zasieg znika) ---------- */
.forest { position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: var(--dark); }
.forest__vig { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, transparent 30%, rgb(2 6 4 / .62) 100%); }
.forest__side { position: absolute; bottom: -2px; width: 46vw; max-width: 520px; height: 62vh; }
@media (max-width: 759px) { .forest__side { height: 30vh; width: 62vw; } }
.forest__side--l { left: -4vw; } .forest__side--r { right: -4vw; transform: scaleX(-1); }
.forest__side svg { position: absolute; bottom: 0; fill: #0a251c; width: auto; }
.forest__side .p1 { left: 0; height: 100%; } .forest__side .p2 { left: 22%; height: 70%; } .forest__side .p3 { left: 40%; height: 48%; }
.forest__side { transform: translateY(calc((1 - var(--dark)) * 40px)); }
.forest__side--r { transform: scaleX(-1) translateY(calc((1 - var(--dark)) * 40px)); }

/* ---------- tripmaster ---------- */
.hud {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 14px;
  padding: 10px 14px 10px 18px; background: var(--forest); border-radius: 20px;
  box-shadow: 0 18px 36px -14px rgb(0 0 0 / .8), 0 2px 6px rgb(0 0 0 / .4);
  transition: transform .5s var(--ease), opacity .4s var(--ease);
}
.hud--hide { transform: translateY(140%); opacity: 0; pointer-events: none; }
.hud__main { display: grid; line-height: 1; }
.hud__label { font-size: .75rem; font-weight: 600; color: var(--forest-ink); margin-bottom: 4px; }
.hud__count { font-weight: 800; font-size: 2.6rem; letter-spacing: -.04em; color: var(--amber); font-variant-numeric: tabular-nums; }
.hud__count.is-pass { font-size: 1.7rem; letter-spacing: -.02em; padding-block: .25em; white-space: nowrap; }
.hud__side { display: grid; justify-items: end; gap: 4px; }
.hud__dist { font-size: .8125rem; font-weight: 600; color: var(--forest-ink); font-variant-numeric: tabular-nums; }
.hud__sig { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; min-height: 40px; background: none; border: 0; color: var(--amber-ink); font: 600 .8125rem/1 "Inter", system-ui, sans-serif; cursor: pointer; }
.hud__sig svg { width: 24px; height: 24px; }
.hud__sig rect { fill: currentColor; transition: opacity .25s linear; }
.hud__off { stroke: var(--amber); stroke-width: 2.4; stroke-linecap: round; opacity: 0; fill: none; }
.hud__sig[aria-pressed="true"] .hud__off { opacity: 1; }
.hud__sigtxt { display: none; }
.hud__cap { grid-column: 1 / -1; font-size: .75rem; color: var(--forest-ink); opacity: .85; }

/* ---------- finisz / ty ---------- */
.you { position: relative; width: 56px; height: 56px; margin: 0 0 22px; }
.you__dot { position: absolute; inset: 14px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px var(--forest); }
.you__ring { position: absolute; inset: 0; border-radius: 50%; border: 1.6px solid var(--amber); opacity: .8; }
.you__ring--2 { opacity: 0; }
.you.hit .you__ring { animation: ripple2 1.8s ease-out 2; }
.you.hit .you__ring--2 { animation: ripple2 1.8s ease-out .6s 2; }
@keyframes ripple2 { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }

.form { display: grid; gap: 22px; background: var(--chalk); color: var(--forest); border-radius: var(--r-card); padding: 24px 22px 26px; box-shadow: 0 24px 48px -24px rgb(0 0 0 / .55); position: relative; z-index: 2; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.field > label, .field legend { font-weight: 600; font-size: .9375rem; padding: 0; }
.opt { font-weight: 400; color: var(--slate); }
input[type="email"], input[type="text"] { width: 100%; min-height: 54px; padding: 0 16px; font: 400 1.0625rem/1.2 "Inter", system-ui, sans-serif; color: var(--forest); background: #fff; border: 1.5px solid #8ea398; border-radius: 14px; caret-color: var(--amber); transition: border-color .2s var(--ease); }
input::placeholder { color: var(--slate); opacity: 1; }
input[type="email"]:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-color: var(--forest); }
input[aria-invalid="true"] { border-color: #b3261e; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg__o { position: relative; }
.seg__o input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.seg__o span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: 1.5px solid #8ea398; border-radius: 14px; background: #fff; font-weight: 600; font-size: .9375rem; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.seg__o input:checked + span { background: var(--forest); color: var(--chalk); border-color: var(--forest); }
.seg__o input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 3px; }
.field--check { grid-template-columns: 24px 1fr; align-items: start; column-gap: 12px; row-gap: 6px; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--forest); }
.field--check label { font-weight: 400; font-size: .875rem; line-height: 1.5; color: #2b3f35; }
.field--check .err { grid-column: 1 / -1; }
.err { font-size: .875rem; font-weight: 600; color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { font-weight: 600; padding: 14px 16px; border-radius: 14px; background: #dff0e3; color: #123c25; line-height: 1.45; }

/* ---------- stopka ---------- */
.foot { position: relative; z-index: 2; background: var(--night); padding-block: 48px 56px; color: var(--forest-ink); }
.foot__in { display: grid; gap: 14px; justify-items: start; }
.foot__sym { width: 40px; height: 40px; margin-bottom: 4px; }
.foot__small { font-size: .875rem; color: var(--muted); max-width: 40em; }

/* ---------- odslanianie (tylko z JS) ---------- */
.js .rv { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .w > span { transform: translateY(112%); transition: transform 1s var(--ease) calc(var(--wi) * .07s + .1s); }
.js h1.go .w > span { transform: none; }
.js .vis--start { opacity: 0; transition: opacity 1.2s var(--ease) .8s; }
.js .vis--start.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv, .js .vis--start { opacity: 1; transform: none; transition: none; }
  .js .w > span { transform: none; transition: none; }
  .cue svg { animation: none; }
  .map__drop { transform: none; opacity: 1; animation: none !important; }
  .chk { stroke-dashoffset: 0; animation: none !important; }
  .map__ripple, .you__ring { animation: none !important; }
}

/* ---------- uklad: telefon ---------- */
.note__in { grid-template-columns: 50px minmax(0, 1fr); padding-left: 38px; }
.note__in > .vis, .note__in > .form { grid-column: 1 / -1; }
.note__rail span { display: none; }
.note__rail b { font-size: .75rem; letter-spacing: .03em; }
.note__rail .gl { width: 36px; height: 36px; }
.note__in > .note__rail { grid-column: 1; grid-row: 1; }
.note__in > .note__body { grid-column: 2; grid-row: 1; }
.note__in > .vis { grid-row: 2; }
.note--finish .you { display: none; }
.note--finish .note__in > .form { grid-row: 2; }

/* ---------- uklad: tablet i wyzej ---------- */
@media (min-width: 760px) {
  :root { --gutter: 32px; }
  body { padding-bottom: 0; }
  .note__in { padding-left: 0; column-gap: 40px; }
  .note__rail span { display: block; }
  .note__rail b { font-size: .8125rem; letter-spacing: .08em; }
  .note__rail .gl { width: 44px; height: 44px; }
  .vis, .note__in > .vis { width: 100%; max-width: 380px; }

  .note--r .note__in { grid-template-columns: 124px minmax(0, 1fr) minmax(0, 1fr); }
  .note--r .note__in > .note__rail { grid-column: 1; grid-row: 1; }
  .note--r .note__in > .note__body { grid-column: 2; grid-row: 1; }
  .note--r .note__in > .vis, .note--r .note__in > .form { grid-column: 3; grid-row: 1; }
  #start .note__in { grid-template-columns: 124px minmax(0, 1.5fr) minmax(0, .9fr); }
  .note--l .note__in { grid-template-columns: minmax(0, 1fr) 124px minmax(0, 1fr); }
  .note--l .note__in > .vis { grid-column: 1; grid-row: 1; }
  .note--l .note__in > .note__rail { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; justify-items: end; }
  .note--l .note__in > .note__body { grid-column: 3; grid-row: 1; }

  .note--finish .you { display: block; }
  .note--finish .note__in { align-items: start; }
  .note--finish .note__rail { padding-top: 0; }
  .note--finish .note__in > .form { max-width: 520px; justify-self: end; width: 100%; }
  #start { padding-block: 48px 140px; }
  .form { padding: 32px 32px 34px; }

  /* tripmaster jako karta w rogu */
  .hud { left: auto; right: 28px; bottom: 28px; width: 344px; }
  .hud__sigtxt { display: inline; }
  .hud__count { font-size: 3rem; }
}

@media (min-width: 1100px) {
  .vis, .note__in > .vis { max-width: 420px; }
}


/* ================= v3: wiecej efektu ================= */

/* kurz i zwir */
.dust { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }

/* reflektory: swiatlo funkcjonalne, mocniejsze w lesie */
.road .beam { fill: url(#beam); stroke: none; opacity: calc(.22 + var(--dark) * .78); }

/* cyfry jak w tripmasterze */
.hud__count { display: inline-flex; align-items: flex-start; line-height: 1; height: 1em; overflow: visible; }
.hud__count.is-pass { height: auto; }
#hudDigits { display: inline-flex; height: 1em; }
.dg { display: inline-block; height: 1em; overflow: hidden; width: .62em; text-align: center; }
.dg--sep { width: .3em; }
.dg__in { display: block; transition: transform .5s var(--ease); }
.dg__in i { display: block; height: 1em; line-height: 1; font-style: normal; }
.hud--near .hud__count { animation: pulse 1s var(--ease) infinite; transform-origin: 0 50%; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* warstwice rysuja sie przy wejsciu, tlo plynie za mysza */
.bg { transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .contour { stroke-dasharray: 1; stroke-dashoffset: 1; animation: plot 3.2s var(--ease) forwards; animation-delay: calc(var(--ci) * 70ms + 200ms); }
@keyframes plot { to { stroke-dashoffset: 0; } }

/* glebia: wizualia i tekst plyna z roznymi predkosciami */
.vis, .note__body, .form { translate: 0 var(--py, 0px); will-change: translate; }

/* lista wjezdza wierszami */
.js .list li { opacity: 0; transform: translateX(28px); }
.js .vis--list.in .list li { animation: slide .8s var(--ease) calc(var(--i, 3) * .12s + .1s) forwards; }
@keyframes slide { to { opacity: 1; transform: none; } }

/* moment mijania */
.streak { position: fixed; left: 0; top: 50%; width: 46vw; height: 6px; z-index: 55; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgb(240 244 236 / .95) 55%, transparent); transform: translateX(-60vw); border-radius: 6px; }
.streak.go { animation: whoosh .7s cubic-bezier(.5, 0, .2, 1) forwards; }
@keyframes whoosh { 0% { transform: translateX(-60vw); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateX(130vw); opacity: 0; } }
.stage.shake { animation: shake .45s linear; }
@keyframes shake { 0%, 100% { translate: 0 0; } 20% { translate: -3px 1px; } 40% { translate: 3px -2px; } 60% { translate: -2px 2px; } 80% { translate: 2px -1px; } }

/* ziarno filmowe */
.grain { position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

@media (prefers-reduced-motion: reduce) {
  .js .contour { animation: none; stroke-dashoffset: 0; }
  .js .list li { opacity: 1; transform: none; animation: none !important; }
  .vis, .note__body, .form { translate: none; will-change: auto; }
  .dg__in, .bg { transition: none; }
  .hud--near .hud__count { animation: none; }
  .streak, .stage.shake { animation: none !important; }
  .dust { display: none; }
}

.car { transition: opacity .7s var(--ease); }
.car.gone { opacity: 0; }


/* ================= intro: logo powstaje ================= */
.intro { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background-color: var(--night); transition: background-color .8s cubic-bezier(.4, 0, .2, 1) .1s; }
.intro-run .intro { display: grid; }
.intro.fly { background-color: transparent; }
.intro__logo { width: min(78vw, 560px); height: auto; transform-origin: 0 0; overflow: visible; }
.intro-run, .intro-run body { overflow: hidden; }
.intro-run .top__logo img { opacity: 0; }
.intro-run .contour { animation-play-state: paused; }

.i-ring { fill: none; stroke: var(--chalk); stroke-width: 1.8; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: iDraw .85s cubic-bezier(.65, 0, .25, 1) .1s forwards; }
.i-disc { fill: var(--chalk); opacity: 0; animation: iFade .55s ease .7s forwards; }
.i-road { fill: var(--night); }
.i-mask { fill: none; stroke: #fff; stroke-width: 46; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: iDraw 1s cubic-bezier(.6, 0, .3, 1) 1.15s forwards; }
.i-dot { fill: var(--amber); transform-box: fill-box; transform-origin: center; transform: scale(0); animation: iPop .55s cubic-bezier(.16, 1, .3, 1) 2.1s forwards; }
.i-ripple { fill: none; stroke: var(--amber); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: iRip 1s ease-out 2.25s forwards; }
.i-word { fill: var(--chalk); }
.i-l { opacity: 0; transform: translateY(-900px); animation: iRise .7s cubic-bezier(.16, 1, .3, 1) calc(2.35s + var(--i) * .055s) forwards; }
@keyframes iDraw { to { stroke-dashoffset: 0; } }
@keyframes iFade { to { opacity: 1; } }
@keyframes iPop { to { transform: scale(1); } }
@keyframes iRip { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(5); opacity: 0; } }
@keyframes iRise { to { opacity: 1; transform: none; } }


/* ================= zapis przez e-mail (wariant tymczasowy) ================= */
select { width: 100%; min-height: 54px; padding: 0 44px 0 16px; font: 400 1.0625rem/1.2 "Inter", system-ui, sans-serif; color: var(--forest); background: #fff; border: 1.5px solid #8ea398; border-radius: 14px; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%23143d32' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 8l5 5 5-5'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }
select:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-color: var(--forest); }
.mailalt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .9375rem; color: #2b3f35; }
.mailalt b { font-weight: 700; }
.copy { background: none; border: 1.5px solid #8ea398; border-radius: 12px; padding: 0 14px; min-height: 40px; color: var(--forest); font: 600 .875rem/1 "Inter", system-ui, sans-serif; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.copy:hover { background: #fff; border-color: var(--forest); }
.form__note { font-size: .875rem; line-height: 1.5; color: #2b3f35; }
a.btn { text-decoration: none; }


/* ================= v4: ukrywanie atrybutem, demo w telefonie ================= */
[hidden] { display: none !important; }
.form__note a { color: inherit; }

.vis--phones { width: 100%; max-width: none; }
.phones { list-style: none; margin: 0; padding: 4px 2px 10px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; align-items: flex-start; }
.phones::-webkit-scrollbar { display: none; }
.phones li { flex: 0 0 68%; scroll-snap-align: center; }
.phones figure { margin: 0; }
.phones img { width: 100%; height: auto; border-radius: 26px; background: #0b100d; box-shadow: 0 24px 40px -22px rgb(0 0 0 / .8); }
.phones figcaption { margin-top: 12px; font-size: .9375rem; font-weight: 600; color: var(--forest-ink); text-align: center; }
.vis--phones .vis__cap { display: block; margin-top: 10px; font-size: .875rem; color: var(--muted); text-align: center; }
.note--demo .note__in > .vis { grid-column: 1 / -1; grid-row: 2; }
.note--demo .note__in > .note__rail { grid-column: 1; grid-row: 1; }
.note--demo .note__in > .note__body { grid-column: 2; grid-row: 1; }

@media (min-width: 760px) {
  .note--demo .note__in { grid-template-columns: 124px minmax(0, 1fr); row-gap: 48px; }
  .vis--phones { max-width: 980px; justify-self: center; }
  .phones { overflow: visible; justify-content: center; gap: 28px; }
  .phones li { flex: 0 1 280px; }
  .phones li:nth-child(2) { margin-top: 46px; }
  .phones li:nth-child(3) { margin-top: 18px; }
}

.note--demo .note__in > .vis--phones { max-width: none; width: 100%; }
@media (min-width: 760px) {
  .note--demo .note__in > .vis--phones { max-width: 980px; }
  .note--demo .note__body { max-width: 440px; }
}

.hp label { font-size: 1px; }
