@import url('/fonts/fonts.css');

:root {
  --bg: #050505;
  --surface: #0c0c0d;
  --surface-2: #141415;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f4f3ef;
  --soft: #c9c8c3;
  --muted: #8a8984;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --accent: #8f8e89;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
/* film grain */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--text); color: #000; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }

/* language: both texts live in the markup, the inactive one is hidden */
html[lang="pl"] [lang="ru"], html[lang="ru"] [lang="pl"] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
em { font-style: normal; font-weight: 400; color: var(--accent); }

/* ---------- top bar ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 14px;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
/* Note: on iOS 26 Safari page text shows in the strip under the clock while scrolling; tried solid header,
   glass from load, a solid iOS strip and no viewport-fit=cover (2026-10-30) — none reached it. Leave as is. */
.top.scrolled {
  background: rgba(5, 5, 5, 0.66);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-color: var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto; }
.brand span { font-weight: 700; letter-spacing: 0.18em; font-size: 15px; }
.brand small { color: var(--muted); letter-spacing: 0.18em; font-size: 11px; text-transform: uppercase; }
.mark { fill: var(--text); flex: none; }
.mark .cursor { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav { display: none; gap: 4px; }
.nav a { padding: 10px 14px; font-size: 14px; color: var(--soft); border-radius: 999px; transition: color 0.2s, background 0.2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(10px); }
.lang button { min-width: 44px; min-height: 34px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); transition: color 0.2s, background 0.3s var(--ease); }
.lang button.on { background: var(--text); color: #000; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.4s var(--ease);
}
.btn i { font-style: normal; transition: transform 0.35s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--text); color: #000; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
.btn.primary:hover { box-shadow: 0 10px 40px -8px rgba(255, 255, 255, 0.35); }
.btn.ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn.ghost:hover { border-color: rgba(255, 255, 255, 0.4); }
.btn.big { min-height: 64px; padding: 0 36px; font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-pic { position: absolute; inset: 0; z-index: -2; }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; animation: settle 2.4s var(--ease) both; }
@keyframes settle { from { opacity: 0; transform: scale(1.06); } }
@media (max-aspect-ratio: 4/5) {
  .hero-pic { bottom: auto; height: 64svh; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .hero-pic img { object-position: 50% 30%; }
}
.hero-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(600px circle at var(--gx, 70%) var(--gy, 35%), rgba(255, 255, 255, 0.07), transparent 60%); }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,5,5,0.35) 0%, transparent 25%, transparent 60%, var(--bg) 100%), radial-gradient(70% 60% at 0% 100%, rgba(5,5,5,0.85), transparent 70%); }
.hero-text { padding-top: 120px; padding-bottom: clamp(40px, 8vh, 96px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.2em; color: var(--soft); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
h1 {
  margin: 0; max-width: 15ch;
  font-size: clamp(40px, 10.5vw, 132px); line-height: 1.06; letter-spacing: -0.022em; font-weight: 500;
  text-wrap: balance;
}
h1 em { font-weight: 500; }
.hero-row { display: grid; gap: 28px; margin-top: clamp(28px, 4vw, 48px); }
.lead { margin: 0; max-width: 46ch; color: var(--soft); font-size: clamp(16px, 1.4vw, 19px); text-wrap: pretty; }

/* ---------- statement ---------- */
.statement { padding-top: clamp(80px, 12vw, 180px); }
.statement > p { margin: 0; max-width: 24ch; font-size: clamp(30px, 4.6vw, 68px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 500; text-wrap: balance; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: clamp(48px, 7vw, 96px) 0 0; border-top: 1px solid var(--line); }
.facts > div { padding: 24px 16px 0 0; }
.facts > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dt { font-size: clamp(36px, 5vw, 72px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.facts dd { margin: 10px 0 0; font-size: 13px; color: var(--muted); max-width: 22ch; }

/* ---------- section heads ---------- */
section[id] { padding-top: clamp(96px, 13vw, 200px); }
.sec-head { display: flex; align-items: baseline; gap: 18px; padding-bottom: 22px; margin-bottom: clamp(32px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.sec-n { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.sec-head h2, .final h2 { margin: 0; font-size: clamp(36px, 6vw, 88px); line-height: 1; letter-spacing: -0.03em; font-weight: 600; }
.sub { margin: -12px 0 32px; color: var(--muted); font-size: 15px; }

/* ---------- cases ---------- */
.cases { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.cases::-webkit-scrollbar { display: none; }
.case { scroll-snap-align: start; display: block; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.4s; }
.case:hover { border-color: var(--line-2); }
.case-img { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); }
.case-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.03); transition: transform 1.2s var(--ease); }
.case:hover .case-img img { transform: scale(1); }
.case-text { display: grid; gap: 6px; padding: 18px 20px 22px; }
.case-text small { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.case-text b { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; }
.case-text b i { font-style: normal; color: var(--muted); transition: color 0.3s, transform 0.3s var(--ease); display: inline-block; }
.case:hover .case-text b i { color: var(--text); transform: translate(2px, -2px); }
.case-line { color: var(--soft); font-size: 15px; }
.link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; min-height: 44px; font-weight: 600; border-bottom: 1px solid var(--line-2); transition: border-color 0.3s; }
.link:hover { border-color: var(--text); }

.checks { margin: 0; padding: 0; list-style: none; display: grid; }
.checks li { position: relative; padding: 11px 0 11px 28px; color: var(--soft); font-size: 15px; border-top: 1px solid var(--line); }
.checks li::before { content: ''; position: absolute; left: 2px; top: 1.32em; width: 12px; height: 1px; background: var(--text); }

/* ---------- packs ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.packs { display: grid; gap: 14px; }
.pack { padding: 28px 24px 18px; overflow: hidden; isolation: isolate; transition: border-color 0.4s, transform 0.5s var(--ease); }
/* light that follows the cursor (set by script.js) */
.pack::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.08), transparent 60%);
}
.pack:hover::before { opacity: 1; }
.pack:hover { border-color: var(--line-2); }
.pack header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.pack h3 { margin: 0; font-size: 28px; letter-spacing: -0.03em; font-weight: 600; }
.pack header b { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pack-short { margin: 10px 0 20px; color: var(--muted); font-size: 14px; }
.pack .checks { margin-top: 18px; }
.pack-short + .checks { margin-top: 0; }
.pack.featured { background: linear-gradient(180deg, #161616, var(--surface) 60%); border-color: rgba(255, 255, 255, 0.22); }
.badge { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; background: var(--text); color: #000; }
.addons { margin-top: 40px; border-top: 1px solid var(--line); }
.addons-cap { margin: 18px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.addon { border-bottom: 1px solid var(--line); }
.addon summary { display: flex; align-items: center; gap: 16px; min-height: 68px; padding: 14px 0; cursor: pointer; list-style: none; }
.addon summary::-webkit-details-marker { display: none; }
.addon-name { flex: 1; font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -0.02em; }
.addon summary b { font-size: 16px; font-weight: 500; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chev { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform 0.4s var(--ease), background 0.3s; }
.chev::before, .chev::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); }
.chev::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.4s var(--ease); }
.addon[open] .chev { background: var(--text); }
.addon[open] .chev::before, .addon[open] .chev::after { background: #000; }
.addon[open] .chev::after { transform: translate(-50%, -50%) rotate(0deg); }
.addon summary:hover .addon-name { color: #fff; }
.addon-body { padding: 0 0 22px; max-width: 760px; }
.addon-body .pack-short { margin: 0 0 12px; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: s; }
.steps li { display: flex; gap: 22px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n { flex: none; font-size: 34px; font-weight: 300; line-height: 1; color: var(--muted); width: 36px; font-variant-numeric: tabular-nums; }
.steps li > span:last-child { display: grid; gap: 6px; }
.steps b { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.steps small { color: var(--muted); font-size: 15px; }

/* ---------- final ---------- */
.final { position: relative; isolation: isolate; overflow: hidden; padding-bottom: clamp(100px, 12vw, 200px); }
.final-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: 0.75; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.final h2 { font-size: clamp(52px, 11vw, 168px); line-height: 0.95; letter-spacing: -0.035em; margin-bottom: 32px; }
.final .lead { margin-bottom: 36px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; letter-spacing: 0.04em; }
.foot a { min-height: 44px; display: inline-flex; align-items: center; margin-top: -12px; transition: color 0.2s; }
.foot a:hover { color: var(--text); }

@media (max-width: 759px) {
  .final { padding-bottom: 72px; }
  .final-bg { bottom: auto; height: 200px; object-position: 70% 50%; }
}

/* phone: sticky CTA appears after the hero */
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(5,5,5,0.92) 40%); transform: translateY(110%); transition: transform 0.5s var(--ease); }
.cta-bar.show { transform: none; }
.cta-bar .btn { width: 100%; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- wider screens ---------- */
@media (min-width: 760px) {
  .hero-row { grid-template-columns: 1fr auto; align-items: end; }
  .packs { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .pack { padding: 34px 30px 22px; }
  .pack:hover { transform: translateY(-4px); }
  .cases { grid-auto-flow: row; grid-template-columns: 1fr 1fr; gap: 14px; overflow: visible; margin: 0; padding: 0; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps li, .steps li:last-child { flex-direction: column; gap: 40px; border-bottom: 0; padding-top: 22px; }
  .sub { margin-top: -48px; text-align: right; }
}
@media (min-width: 960px) {
  .nav { display: flex; }
  h1 { max-width: 16ch; font-size: clamp(56px, 5vw, 76px); }
  .cta-bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mark .cursor, .dot, .hero-pic img { animation: none; }
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .case-img img, .pack, .btn { transition: none; transform: none; }
}
