@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;
  --dim: #8f8e89;
  --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;
  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;
}
::selection { background: var(--text); color: #000; }
a { color: inherit; text-decoration: none; }
img { 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: 4px; 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; color: var(--dim); }

/* ---------- top bar ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: calc(12px + env(safe-area-inset-top)) var(--gutter) 12px;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
  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); -webkit-backdrop-filter: blur(20px);
  border-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-right: auto; }
.brand span { font-weight: 600; letter-spacing: 0.18em; font-size: 15px; }
.brand small { color: var(--muted); font-size: 14px; }
.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: 12px 16px; font-size: 14px; color: var(--soft); border-radius: 999px; transition: color 0.16s var(--ease), background 0.16s var(--ease); }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.lang { display: flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); }
.lang button { min-width: 44px; min-height: 32px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); transition: color 0.16s var(--ease), background 0.16s var(--ease); }
.lang button.on { background: var(--text); color: #000; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 500;
  transition: transform 0.16s var(--ease), background 0.16s var(--ease), border-color 0.16s var(--ease);
}
.btn i { font-style: normal; transition: transform 0.16s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--text); color: #000; }
.btn.primary:hover { background: #fff; }
.btn.ghost { border: 1px solid var(--line-2); }
.btn.ghost:hover { border-color: rgba(255, 255, 255, 0.4); }
.btn.big { min-height: 56px; padding: 0 32px; font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 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: fade 0.5s var(--ease) both; }
@keyframes fade { from { opacity: 0; } }
@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-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: 96px; padding-bottom: clamp(40px, 8vh, 96px); }
/* the one entrance on the page */
.hero-text > * { animation: rise 0.4s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: 0.05s; }
.hero-text > :nth-child(3) { animation-delay: 0.1s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.eyebrow { margin: 0 0 16px; font-size: 14px; color: var(--soft); }
h1 {
  margin: 0; max-width: 15ch;
  font-size: 40px; line-height: 1.06; letter-spacing: -0.022em; font-weight: 500;
  text-wrap: balance;
}
.hero-row { display: grid; gap: 24px; margin-top: 24px; }
.lead { margin: 0; max-width: 46ch; color: var(--soft); font-size: clamp(16px, 1.4vw, 18px); text-wrap: pretty; }

/* ---------- statement ---------- */
.statement { padding-top: clamp(80px, 10vw, 128px); }
.statement > p { margin: 0; max-width: 28ch; font-size: clamp(26px, 3vw, 44px); line-height: 1.16; letter-spacing: -0.02em; font-weight: 500; text-wrap: balance; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(48px, 5vw, 64px) 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 > div:last-child { padding-right: 0; }
.facts dt { font-size: clamp(28px, 3.4vw, 48px); font-weight: 500; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.facts dd { margin: 12px 0 0; font-size: 14px; color: var(--muted); max-width: 22ch; }

/* ---------- section heads ---------- */
section[id] { padding-top: clamp(96px, 10vw, 128px); }
.sec-head { padding-bottom: 24px; margin-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.sec-head h2 { margin: 0; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 500; }
.sub { margin: 0 0 24px; 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.16s var(--ease); }
.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; }
.case-text { display: grid; gap: 8px; padding: 20px 20px 24px; }
.case-text small { font-size: 13px; color: var(--muted); }
.case-text b { font-size: 22px; font-weight: 500; line-height: 1.2; }
.case-text b i { font-style: normal; color: var(--muted); display: inline-block; transition: color 0.16s var(--ease), transform 0.16s var(--ease); }
.case:hover .case-text b i { color: var(--text); transform: translate(2px, -2px); }
.case-line { color: var(--soft); font-size: 15px; }

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

/* ---------- packs ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.packs { display: grid; gap: 16px; }
.pack { padding: 32px 24px 16px; transition: border-color 0.16s var(--ease); }
.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: 24px; font-weight: 500; line-height: 1.2; }
.pack header b { font-size: 20px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pack-short { margin: 12px 0 20px; color: var(--muted); font-size: 14px; }
.pack.featured { background: var(--surface-2); border-color: var(--line-2); }
.badge { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 400; line-height: 16px; color: var(--soft); }
.addons { margin-top: 40px; border-top: 1px solid var(--line); }
.addons-cap { margin: 16px 0 4px; font-size: 14px; color: var(--muted); }
.addon { border-bottom: 1px solid var(--line); }
.addon summary { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 12px 0; cursor: pointer; list-style: none; }
.addon summary::-webkit-details-marker { display: none; }
.addon-name { flex: 1; font-size: clamp(20px, 2vw, 24px); font-weight: 500; line-height: 1.2; }
.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: background 0.16s var(--ease); }
.chev::before, .chev::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); }
.chev::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.18s 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-body { padding: 0 0 24px; max-width: 760px; }
.addon-body .pack-short { margin: 0 0 12px; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { display: flex; gap: 24px; align-items: baseline; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.step-n { flex: none; font-size: 32px; font-weight: 400; line-height: 1; color: var(--muted); width: 32px; font-variant-numeric: tabular-nums; }
.steps li > span:last-child { display: grid; gap: 8px; }
.steps b { font-size: clamp(20px, 2vw, 24px); font-weight: 500; line-height: 1.2; }
.steps small { color: var(--muted); font-size: 15px; }

/* ---------- final ---------- */
.final { padding-bottom: clamp(64px, 10vw, 128px); }
.final h2 { margin: 0 0 24px; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -0.022em; font-weight: 500; }
.final .lead { margin-bottom: 32px; }

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

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

/* ---------- wider screens ---------- */
@media (min-width: 760px) {
  .packs { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .pack { padding: 32px 32px 24px; }
  .cases { grid-auto-flow: row; grid-template-columns: 1fr 1fr; gap: 16px; overflow: visible; margin: 0; padding: 0; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps li, .steps li:first-child { flex-direction: column; gap: 32px; padding: 0; border-top: 0; }
}
@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, .hero-pic img, .hero-text > * { animation: none; }
  .btn, .cta-bar { transition: none; }
}
