/* ==========================================================================
   Biuro RPG — landing
   Paleta wzięta z gry: drewno, krem, morski turkus, pomarańcz.
   ========================================================================== */
:root {
  --ink: #241711;
  --ink2: #3a2417;
  --wood: #5b3a24;
  --woodL: #8a5a35;
  --cream: #fff1d6;
  --cream2: #f3d9a8;
  --paper: #fbf4e7;
  --paper2: #f4e6cc;
  --teal: #2f7f86;
  --tealD: #1b565c;
  --tealL: #5fc0c6;
  --orange: #e08a2e;
  --orangeD: #b8651a;
  --orangeL: #ffb35c;
  --red: #c8473a;
  --green: #4f8f4a;
  --muted: #6b4a33;
  --line: rgba(58, 36, 23, .16);

  --display: "Pixelify Sans", "Trebuchet MS", system-ui, sans-serif;   /* piksele: polski, liczby, UI gry */
  --head: "Onest", system-ui, sans-serif;                  /* nagłówki po ukraińsku */
  --body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r: 14px;
  --px: 4px;                          /* grubość "pikselowej" ramki */
  --shadow: 0 18px 40px -18px rgba(36, 23, 17, .55);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
kbd {
  font-family: var(--display); font-size: .82em; display: inline-block; min-width: 1.7em; text-align: center;
  padding: 0 .4em; margin: 0 .1em; background: var(--cream); color: var(--ink);
  border: 2px solid var(--ink2); border-bottom-width: 4px; border-radius: 6px; line-height: 1.5;
}
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--orange); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- Typografia ---------- */
.h1, .h2 { font-family: var(--head); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; margin: 0; }
.h1 { font-size: clamp(32px, 4.1vw, 58px); line-height: 1.1; }
.h2 { font-size: clamp(28px, 3.5vw, 48px); }
.h2--xl { font-size: clamp(34px, 5vw, 68px); }
.hl { color: var(--orange); position: relative; white-space: nowrap; }
.h1__sub { display: block; margin-top: 14px; font-size: .42em; line-height: 1.25; letter-spacing: -.01em; color: var(--cream2); font-weight: 600; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; background: currentColor; opacity: .28; border-radius: 2px; }
.hl--teal { color: var(--teal); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: rgba(255, 241, 214, .86); max-width: 34em; margin: 22px 0 0; }
.lead b { color: var(--cream); }
.sub { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 40em; margin: 18px auto 0; }
.kicker { font-family: var(--body); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin: 0 0 14px; font-weight: 600; }
.kicker--orange { color: var(--orange); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 12px;
  font-size: 14px; font-weight: 600; color: var(--cream2); background: rgba(255, 241, 214, .07);
  border: 1px solid rgba(255, 241, 214, .16); border-radius: 999px;
}
.dot { width: 8px; height: 8px; background: #6fd18a; box-shadow: 0 0 0 4px rgba(111, 209, 138, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(111, 209, 138, 0); } }

.shead { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.shead--light .h2 { color: var(--cream); }
.shead--light .sub { color: rgba(255, 241, 214, .72); }

/* ---------- Przyciski ---------- */
.btn {
  --bg: var(--cream); --fg: var(--ink); --edge: var(--ink2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-weight: 700; font-size: 17px; line-height: 1; text-decoration: none; letter-spacing: 0;
  color: var(--fg); background: var(--bg); padding: 15px 22px; border: 0; cursor: pointer; border-radius: 10px;
  box-shadow: 0 0 0 3px var(--edge), 0 6px 0 3px var(--edge);
  transform: translateY(0); transition: transform .12s var(--ease), box-shadow .12s var(--ease), filter .2s;
  margin-bottom: 6px; white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 0 0 3px var(--edge), 0 8px 0 3px var(--edge); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 3px var(--edge), 0 1px 0 3px var(--edge); }
.btn--orange { --bg: var(--orange); --fg: var(--ink); --edge: #6b3a0c; }
.btn--teal { --bg: var(--teal); --fg: var(--cream); --edge: #0f3438; }
.btn--ghost { --bg: transparent; --fg: var(--cream); --edge: rgba(255, 241, 214, .45); box-shadow: 0 0 0 2px var(--edge); margin-bottom: 0; }
.btn--ghost:hover { --bg: rgba(255, 241, 214, .08); box-shadow: 0 0 0 2px var(--cream); }
.btn--ghost:active { transform: translateY(2px); box-shadow: 0 0 0 2px var(--cream); }
.btn--ghost-dark { --bg: transparent; --fg: var(--ink); --edge: var(--ink2); box-shadow: 0 0 0 2px var(--edge); margin-bottom: 0; }
.btn--ghost-dark:hover { --bg: rgba(58, 36, 23, .06); box-shadow: 0 0 0 2px var(--edge); }
.btn--ghost-dark:active { transform: translateY(2px); box-shadow: 0 0 0 2px var(--edge); }
.btn--sm { font-size: 15px; padding: 10px 16px; }
.btn--lg { font-size: 19px; padding: 18px 26px; }
.btn--xl { font-size: clamp(20px, 2vw, 24px); padding: 22px 34px; }
.btn--block { width: 100%; }

/* ---------- NAV ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, padding .3s; padding: 14px 0; }
.nav.is-solid { background: rgba(36, 23, 17, .86); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); box-shadow: 0 1px 0 rgba(255, 241, 214, .08); padding: 8px 0; }
.nav__in { display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.logo__txt { font-family: var(--head); font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.logo__txt b { color: var(--orange); margin-left: 3px; }
/* kubek z pikseli */
.logo__cup { position: relative; width: 28px; height: 26px; }
.logo__cup::before { content: ""; position: absolute; left: 2px; bottom: 0; width: 18px; height: 15px; background: var(--cream); box-shadow: inset 0 4px 0 var(--orange); border-radius: 0 0 4px 4px; }
.logo__cup::after { content: ""; position: absolute; left: 19px; bottom: 4px; width: 7px; height: 8px; border: 3px solid var(--cream); border-left: 0; border-radius: 0 4px 4px 0; }
.logo__cup i { position: absolute; bottom: 17px; width: 3px; height: 7px; background: var(--cream2); opacity: .7; animation: steam 2.4s infinite ease-in-out; }
.logo__cup i:nth-child(1) { left: 6px; }
.logo__cup i:nth-child(2) { left: 11px; animation-delay: .5s; }
.logo__cup i:nth-child(3) { left: 16px; animation-delay: 1s; }
@keyframes steam { 0% { transform: translateY(2px); opacity: 0; } 40% { opacity: .8; } 100% { transform: translateY(-6px); opacity: 0; } }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a { color: rgba(255, 241, 214, .82); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--cream); background: rgba(255, 241, 214, .08); }
.nav__cta { margin-bottom: 4px; }
.nav__burger { display: none; width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; padding: 10px; border-radius: 8px; }
.nav__burger span { display: block; height: 3px; background: var(--cream); margin: 5px 0; transition: transform .25s, opacity .2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative; color: var(--cream); padding: 140px 0 70px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1200px 600px at 78% 20%, rgba(224, 138, 46, .18), transparent 60%),
    radial-gradient(900px 600px at 10% 90%, rgba(47, 127, 134, .22), transparent 60%),
    linear-gradient(180deg, #241711 0%, #2e1d14 60%, #241711 100%);
}
.hero::before { /* deski podłogi */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07;
  background: repeating-linear-gradient(90deg, transparent 0 118px, rgba(0, 0, 0, .9) 118px 120px), repeating-linear-gradient(0deg, transparent 0 38px, rgba(255, 220, 160, .5) 38px 40px);
}
.hero__dust { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__dust i { position: absolute; width: 4px; height: 4px; background: var(--cream2); opacity: 0; animation: dust 9s linear infinite; }
@keyframes dust { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .55; } 85% { opacity: .35; } 100% { transform: translate(30px, -220px); opacity: 0; } }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(30px, 4vw, 64px); align-items: center; }
.hero__copy { min-width: 0; }

.phrase {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 28px; padding: 12px 14px 12px 16px;
  background: rgba(255, 241, 214, .06); border: 1px dashed rgba(255, 241, 214, .25); border-radius: 12px; min-height: 58px;
}
.phrase__label { font-family: var(--body); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--tealL); }
.phrase__pl { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--orangeL); }
.phrase__pl::after { content: "▌"; color: var(--orangeL); margin-left: 2px; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.phrase__sep { opacity: .5; }
.phrase__uk { color: rgba(255, 241, 214, .82); font-style: italic; transition: opacity .3s; }
.phrase__listen, .say { background: rgba(255, 241, 214, .1); border: 1px solid rgba(255, 241, 214, .2); width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 15px; transition: background .2s, transform .2s; }
.phrase__listen:hover, .say:hover { background: rgba(255, 241, 214, .2); transform: scale(1.06); }

.hero__ctas { display: flex; flex-wrap: wrap; gap: 18px 16px; margin-top: 34px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 26px 0 0; font-size: 15px; color: rgba(255, 241, 214, .7); }
.hero__trust span { color: var(--orange); margin-right: 4px; }

/* ---------- Okno gry (hero + demo) ---------- */
.window {
  position: relative; background: var(--ink2); border-radius: 16px; padding: 0 var(--px) var(--px);
  box-shadow: 0 0 0 3px #120c08, 0 0 0 7px var(--woodL), 0 0 0 10px #120c08, 0 40px 80px -30px rgba(0, 0, 0, .8);
}
.window__bar { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; color: var(--cream2); font-family: var(--body); font-weight: 700; font-size: 12.5px; letter-spacing: .14em; }
.window__dots { display: flex; gap: 6px; }
.window__dots i { width: 11px; height: 11px; border-radius: 3px; background: #c8473a; }
.window__dots i:nth-child(2) { background: var(--orange); }
.window__dots i:nth-child(3) { background: #6fa85b; }
.window__title { flex: 1; text-align: center; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window__title b { color: var(--orange); }
.window__ua { font-family: var(--display); font-weight: 600; font-size: 13px; padding: 4px 10px; background: transparent; color: var(--cream2); border: 2px solid rgba(255, 241, 214, .35); border-radius: 6px; cursor: pointer; transition: all .2s; }
.window__ua:hover { border-color: var(--cream); color: var(--cream); }
.window__ua.is-on { background: var(--teal); border-color: var(--tealL); color: #fff; }
.window__screen { position: relative; overflow: hidden; border-radius: 6px; background: #1b130e; aspect-ratio: 16 / 11; }
.hero__window { transform: rotate(.6deg); transition: transform .6s var(--ease); }
.hero__window:hover { transform: rotate(0); }

/* świat dioramy: piksele mapy biura, kamera przesuwa tylko translate */
.world { position: absolute; left: 0; top: 0; background-repeat: no-repeat; will-change: transform; }
.spr { position: absolute; background-repeat: no-repeat; pointer-events: none; }
.spr--flip { transform: scaleX(-1); }
.shadow { position: absolute; background: radial-gradient(closest-side, rgba(30, 15, 8, .42), transparent); pointer-events: none; }
.bubble {
  position: absolute; z-index: 5; transform: translate(-50%, calc(-100% - 6px)) scale(.6); transform-origin: 50% 100%; opacity: 0;
  max-width: 230px; width: max-content; padding: 8px 12px 9px; background: var(--cream); color: var(--ink);
  border: 3px solid var(--ink2); border-radius: 10px; box-shadow: 0 4px 0 rgba(0, 0, 0, .25);
  font-size: 14px; line-height: 1.32; transition: opacity .25s var(--ease), transform .3s var(--ease); pointer-events: none;
}
.bubble.is-on { opacity: 1; transform: translate(-50%, calc(-100% - 6px)) scale(1); }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 12px; height: 12px; background: inherit; border: 3px solid var(--ink2); border-top: 0; border-left: 0; transform: translateX(-50%) rotate(45deg); }
.bubble--below { transform: translate(-50%, 10px) scale(.6); transform-origin: 50% 0; }
.bubble--below.is-on { transform: translate(-50%, 10px) scale(1); }
.bubble--below::after { bottom: auto; top: -10px; transform: translateX(-50%) rotate(225deg); }
.bubble b { display: block; font-family: var(--display); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 2px; }
.bubble span { display: block; font-weight: 600; }
.bubble small { display: block; margin-top: 3px; font-size: 12.5px; font-style: italic; color: var(--tealD); }
.bubble--hero { background: #ffe0b3; }
.bubble--hero b { color: var(--orangeD); }
.no-ua .bubble small, .no-ua .hud small { display: none; }

.hud { position: absolute; z-index: 6; background: rgba(255, 246, 226, .95); color: var(--ink); border: 3px solid var(--ink2); border-radius: 8px; padding: 6px 10px; font-size: 13px; line-height: 1.3; box-shadow: 0 3px 0 rgba(0, 0, 0, .3); }
.hud--quest { left: 10px; top: 10px; max-width: 64%; transition: background .3s; }
.hud--quest b { font-family: var(--body); font-weight: 800; font-size: 11px; color: var(--teal); margin-right: 6px; letter-spacing: .06em; }
.hud--quest small { display: block; color: var(--muted); font-style: italic; }
.hud--quest.flash { background: #d8f3e2; }
.hud--xp { right: 10px; top: 10px; display: grid; gap: 3px; min-width: 104px; text-align: right; }
.hud__lvl { font-family: var(--display); font-weight: 600; color: var(--tealD); }
.hud__xp { font-variant-numeric: tabular-nums; font-size: 12px; }
.xpbar { display: block; height: 9px; background: #d4b98a; border: 2px solid var(--ink2); border-radius: 2px; overflow: hidden; }
.xpbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--orangeL)); transition: width .6s var(--ease); }
.xpbar--wide { width: 100%; min-width: 120px; height: 12px; }
.dtoast {
  position: absolute; z-index: 7; left: 50%; top: 22%; transform: translate(-50%, 10px); opacity: 0;
  font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--ink); background: var(--orangeL);
  border: 3px solid var(--ink2); border-radius: 10px; padding: 6px 14px; box-shadow: 0 4px 0 rgba(0, 0, 0, .3); pointer-events: none; white-space: nowrap;
}
.dtoast.is-on { animation: toast 1.6s var(--ease) forwards; }
.dtoast.is-level { background: var(--tealL); }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 14px) scale(.8); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.06); } 25% { transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -16px); } }
.scanlines { position: absolute; inset: 0; z-index: 8; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .06) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(50px, 7vw, 88px); }
.stat { padding: 18px 20px; background: rgba(255, 241, 214, .05); border: 1px solid rgba(255, 241, 214, .12); border-radius: var(--r); }
.stat b { display: block; font-family: var(--display); font-size: clamp(30px, 3.4vw, 44px); line-height: 1; color: var(--orange); }
.stat b em { font-style: normal; color: var(--tealL); margin: 0 4px; }
.stat span { display: block; margin-top: 8px; font-size: 14.5px; color: rgba(255, 241, 214, .72); line-height: 1.4; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--orange); color: var(--ink); border-block: 4px solid var(--ink); transform: rotate(-1deg); margin: -12px -10px 0; position: relative; z-index: 3; }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; white-space: nowrap; font-size: 16px; font-weight: 500; }
.marquee__track span::after { content: "✦"; margin-left: 22px; opacity: .5; }
.marquee__track b { font-family: var(--display); font-size: 20px; font-weight: 700; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sekcje ---------- */
.section { position: relative; padding: clamp(80px, 10vw, 140px) 0; }
.section--paper { background: var(--paper); }
.section--paper::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(rgba(58, 36, 23, .08) 1px, transparent 1px); background-size: 22px 22px; }
.section--dark { background: var(--ink); color: var(--cream); }
.section--wood { color: var(--cream); background: linear-gradient(180deg, #3a2417, #2b1b12); }
.section--wood::before { content: ""; position: absolute; inset: 0; opacity: .08; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 46px, rgba(0, 0, 0, .9) 46px 48px), repeating-linear-gradient(90deg, transparent 0 230px, rgba(0, 0, 0, .7) 230px 232px); }
.section > .wrap { position: relative; }

/* ---------- DEMO ---------- */
.demo { max-width: 980px; margin-inline: auto; color: var(--ink); }
.demo__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 18px; background: var(--paper2); border-radius: 8px 8px 0 0; }
.steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; font-family: var(--display); font-size: 14px; }
.steps li { display: flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 999px; color: var(--muted); background: rgba(58, 36, 23, .06); transition: all .3s; }
.steps li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(58, 36, 23, .14); color: var(--ink); font-weight: 700; }
.steps li.is-active { background: var(--teal); color: #fff; }
.steps li.is-active span { background: var(--cream); color: var(--teal); }
.steps li.is-done { background: rgba(79, 143, 74, .18); color: var(--green); }
.steps li.is-done span { background: var(--green); color: #fff; }
.demo__xp > span:not(.xpbar), .xpdemo .hud__lvl { white-space: nowrap; }
.demo__xp { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 14px; min-width: 260px; flex: 0 1 340px; }
.demo__stage { position: relative; background: var(--cream); border-radius: 0 0 8px 8px; padding: clamp(18px, 3vw, 34px); min-height: 360px; }
.dstep { animation: stepIn .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.uk { display: none; margin: 6px 0 0; padding: 6px 12px; font-size: 15px; font-style: italic; color: var(--tealD); background: #dff0ef; border-left: 4px solid var(--teal); border-radius: 0 6px 6px 0; }
.show-ua .uk { display: block; }
.show-ua .reply em { display: block; }

.talk { display: grid; grid-template-columns: 150px 1fr; gap: clamp(16px, 3vw, 30px); align-items: start; }
.talk__portrait { margin: 0; background: var(--cream2); border: 4px solid var(--ink2); border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 2px #d9a35f; }
.talk__portrait img { width: 100%; height: 150px; object-fit: cover; object-position: 50% 6%; background: linear-gradient(#f6dcae, #f0c98a); }
.talk__portrait figcaption { background: var(--ink2); color: var(--cream); text-align: center; font-family: var(--display); font-size: 16px; padding: 6px 4px; line-height: 1.2; }
.talk__portrait small { display: block; font-size: 12px; opacity: .7; }
.talk__line { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: clamp(18px, 2vw, 22px); font-weight: 600; min-height: 2.8em; }
.talk__line > span { flex: 1; }
.say { background: rgba(47, 127, 134, .12); border-color: rgba(47, 127, 134, .3); flex: none; }
.say:hover { background: rgba(47, 127, 134, .22); }
.replies { display: grid; gap: 10px; margin-top: 18px; }
.reply {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px 14px; background: #fff; border: 3px solid var(--ink2); border-radius: 10px;
  cursor: pointer; font-size: 17px; font-weight: 500; box-shadow: 0 4px 0 var(--ink2); transition: transform .12s, box-shadow .12s, background .2s;
}
.reply:hover { background: #fff3dd; transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink2); }
.reply:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink2); }
.reply i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; background: var(--ink2); color: var(--cream); font-family: var(--display); font-style: normal; border-radius: 6px; font-size: 14px; }
.reply em { display: none; font-size: 14px; color: var(--tealD); margin-top: 2px; }
.reply.is-wrong { background: #fde4df; border-color: var(--red); box-shadow: 0 4px 0 var(--red); animation: shake .4s; }
.reply.is-right { background: #ddf2dc; border-color: var(--green); box-shadow: 0 4px 0 var(--green); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.feedback { min-height: 1.6em; margin: 16px 0 0; font-size: 16px; font-weight: 500; }
.feedback.is-bad { color: #9b2f22; }
.feedback.is-good { color: #2f6f2b; }
.feedback .next { margin-left: 10px; margin-top: 10px; }

/* mini-komputer */
.pc { display: grid; grid-template-columns: 1fr 1.25fr; gap: 22px; align-items: start; }
.chat { display: flex; gap: 12px; background: #fff; border: 3px solid var(--ink2); border-radius: 12px; padding: 12px; box-shadow: 0 4px 0 var(--ink2); }
.chat img { width: 40px; height: 68px; object-fit: contain; flex: none; }
.chat b { font-family: var(--display); color: var(--teal); }
.chat small { color: var(--muted); }
.chat p { margin: 4px 0 0; font-size: 16px; }
.chat u { text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.pc__hint { font-size: 15px; color: var(--muted); margin: 14px 0 0; }
.pc__screen { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; padding: 14px; background: linear-gradient(160deg, #2c5f78, #1d3f52); border: 4px solid var(--ink2); border-radius: 12px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .1); min-height: 300px; }
.pc__win, .pc__print { background: #f8f3ea; border-radius: 8px; overflow: hidden; border: 2px solid #0e2633; align-self: start; }
.pc__winbar { background: #e7dcc8; padding: 6px 10px; font-size: 12.5px; font-weight: 600; border-bottom: 2px solid #cdbf9f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.files { list-style: none; margin: 0; padding: 6px; }
.files li { display: grid; grid-template-columns: 22px 1fr auto; gap: 6px; align-items: center; padding: 8px; border-radius: 6px; cursor: pointer; font-size: 13px; transition: background .15s; }
.files li b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files li time { color: var(--muted); font-variant-numeric: tabular-nums; }
.files li:hover { background: #ebe1cf; }
.files li[aria-selected="true"] { background: #2f7f86; color: #fff; }
.files li[aria-selected="true"] time { color: #d4f0f1; }
.pset { padding: 10px; display: grid; gap: 12px; font-size: 13.5px; font-weight: 600; }
.pset > label { display: grid; gap: 6px; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--ink2); border-radius: 8px; overflow: hidden; width: max-content; background: #fff; }
.stepper button { width: 34px; height: 32px; border: 0; background: #ece2cf; cursor: pointer; font-size: 18px; font-weight: 700; }
.stepper button:hover { background: #e0d2b8; }
.stepper input { width: 52px; height: 32px; border: 0; text-align: center; font-family: var(--display); font-size: 17px; background: #fff; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.seg { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.seg legend { padding: 0; margin-bottom: 6px; }
.seg label { display: flex; gap: 8px; align-items: center; font-weight: 500; cursor: pointer; padding: 6px 8px; border-radius: 6px; background: #fff; border: 2px solid #d9cdb4; }
.seg input { accent-color: var(--teal); }
.printer { position: absolute; right: 16px; bottom: -34px; width: 120px; height: 70px; pointer-events: none; }
.printer__body { position: absolute; inset: 14px 0 0; background: linear-gradient(#efe9df, #cfc6b6); border: 3px solid var(--ink2); border-radius: 10px; }
.printer__slot { position: absolute; left: 18px; right: 18px; top: 10px; height: 8px; background: var(--ink2); border-radius: 4px; }
.sheets { position: absolute; left: 24px; right: 24px; top: 14px; }
.sheet { position: absolute; left: 0; right: 0; height: 60px; background: #fff; border: 2px solid var(--ink2); border-radius: 3px; transform-origin: 50% 0; animation: sheet .9s var(--ease) forwards; background-image: linear-gradient(var(--orange), var(--orange)), linear-gradient(#c9bfae, #c9bfae), linear-gradient(#c9bfae, #c9bfae); background-size: 60% 10px, 70% 4px, 50% 4px; background-position: 50% 10px, 50% 28px, 50% 36px; background-repeat: no-repeat; }
.sheet.bw { background-image: linear-gradient(#555, #555), linear-gradient(#bbb, #bbb), linear-gradient(#bbb, #bbb); }
@keyframes sheet { from { transform: translateY(-62px) scaleY(.2); opacity: 0; } to { transform: translateY(var(--y, 0)) rotate(var(--r, 0deg)); opacity: 1; } }

/* budowanie zdania */
.build { max-width: 720px; margin: 0 auto; }
.build__task { font-size: 18px; margin: 0 0 18px; }
.build__answer { min-height: 72px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px; background: #fff; border: 3px dashed var(--ink2); border-radius: 12px; }
.build__answer.is-good { border-style: solid; border-color: var(--green); background: #ddf2dc; }
.build__answer.is-bad { border-color: var(--red); animation: shake .4s; }
.build__ph { color: var(--muted); font-style: italic; }
.build__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; min-height: 52px; }
.chip {
  font-family: var(--display); font-size: 20px; font-weight: 600; padding: 9px 16px; background: var(--cream2); border: 3px solid var(--ink2); border-radius: 10px;
  box-shadow: 0 4px 0 var(--ink2); cursor: pointer; transition: transform .12s, box-shadow .12s; animation: pop .3s var(--ease);
}
.chip:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink2); }
.chip:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink2); }
.build__answer .chip { background: var(--orangeL); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.build__actions { display: flex; gap: 14px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }

/* koniec demo */
.dstep--done { text-align: center; }
.done { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.done__badge { width: 86px; height: 86px; margin: 0 auto 10px; display: grid; place-items: center; font-size: 46px; color: var(--ink); background: var(--orangeL); border: 4px solid var(--ink2); border-radius: 50%; box-shadow: 0 6px 0 var(--ink2); animation: badge 1s var(--ease); }
@keyframes badge { 0% { transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.15) rotate(8deg); } 100% { transform: none; } }
.done h3 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 40px); margin: 6px 0 8px; }
.done__sub { color: var(--muted); margin: 0 auto; max-width: 34em; }
.done__stats { display: flex; justify-content: center; gap: 12px; margin: 24px 0; flex-wrap: wrap; }
.done__stats div { min-width: 120px; padding: 12px 16px; background: #fff; border: 3px solid var(--ink2); border-radius: 12px; box-shadow: 0 4px 0 var(--ink2); }
.done__stats b { display: block; font-family: var(--display); font-size: 32px; color: var(--teal); line-height: 1.1; }
.done__stats span { font-size: 14px; color: var(--muted); }
.done__words { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px; }
.done__words li { padding: 5px 12px; background: #dff0ef; border-radius: 999px; font-size: 14px; color: var(--tealD); }
.done__words b { color: var(--ink); margin-right: 4px; }
.done__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; align-items: center; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* ---------- BENTO ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  position: relative; overflow: hidden; padding: 28px; border-radius: 18px; background: #2f1f16; border: 1px solid rgba(255, 241, 214, .1);
  transition: transform .4s var(--ease), border-color .3s, background .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 179, 92, .45); background: #35231a; }
.card h3 { font-family: var(--head); font-weight: 700; letter-spacing: -.015em; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.2; margin: 6px 0 10px; color: var(--cream); }
.card p { margin: 0; color: rgba(255, 241, 214, .74); font-size: 16px; }
.tag { display: inline-block; font-family: var(--display); font-size: 12px; letter-spacing: .16em; color: var(--orange); margin: 0; padding: 4px 10px; border: 1px solid rgba(224, 138, 46, .45); border-radius: 999px; }
.tag--dark { color: var(--teal); border-color: rgba(47, 127, 134, .4); font-family: var(--body); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.card--talk { grid-column: span 3; grid-row: span 2; }
.card--listen { grid-column: span 3; }
.card--grammar { grid-column: span 3; }
.card--games { grid-column: span 4; }
.card--xp { grid-column: span 2; }
.card--ua { grid-column: span 6; display: grid; grid-template-columns: 1fr auto; gap: 8px 30px; align-items: center; }
.card--ua .tag, .card--ua h3, .card--ua p { grid-column: 1; }
.card--ua .tag { justify-self: start; }
.card--ua .flip { grid-column: 2; grid-row: 1 / span 3; }
.mini-talk { margin-top: 26px; display: grid; gap: 10px; }
.mt { margin: 0; padding: 12px 14px; border-radius: 10px; font-size: 16px; color: var(--ink) !important; background: var(--cream); border: 3px solid #120c08; }
.mt b { font-family: var(--display); color: var(--teal); }
.mt--opt { background: #fff; margin-left: 28px; transition: transform .3s; }
.mt--opt.is-pick { background: var(--orangeL); transform: translateX(-6px); box-shadow: 4px 4px 0 #120c08; }
.card--talk .mt--opt { opacity: 0; transform: translateX(20px); }
.card--talk.is-in .mt--opt { animation: slideIn .5s var(--ease) forwards; }
.card--talk.is-in .mt--opt:nth-child(3) { animation-delay: .15s; }
.card--talk.is-in .mt--opt:nth-child(4) { animation-delay: .3s; }
@keyframes slideIn { to { opacity: 1; transform: none; } }
.card--talk.is-in .mt--opt.is-pick { animation: slideInPick .5s var(--ease) .15s forwards; }
@keyframes slideInPick { to { opacity: 1; transform: translateX(-6px); } }
.wave { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 22px; padding: 14px; background: rgba(255, 241, 214, .06); border: 1px solid rgba(255, 241, 214, .14); border-radius: 12px; cursor: pointer; text-align: left; }
.wave:hover { background: rgba(255, 241, 214, .1); }
.wave__btn { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--orange); color: var(--ink); font-size: 15px; }
.wave__bars { display: flex; align-items: center; gap: 3px; height: 34px; }
.wave__bars i { width: 4px; height: 30%; background: var(--tealL); border-radius: 2px; animation: bar 1.1s ease-in-out infinite; }
.wave__bars i:nth-child(3n) { animation-delay: -.3s; } .wave__bars i:nth-child(3n+1) { animation-delay: -.6s; } .wave__bars i:nth-child(4n) { animation-delay: -.8s; }
.wave.is-playing .wave__bars i { animation-duration: .45s; background: var(--orangeL); }
@keyframes bar { 0%, 100% { height: 25%; } 50% { height: 95%; } }
.wave__txt { font-family: var(--display); font-size: 18px; color: var(--cream); }
.gram { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.gram span { padding: 10px 14px; border-radius: 10px; background: rgba(255, 241, 214, .06); border: 1px dashed rgba(255, 241, 214, .25); font-family: var(--display); font-size: 18px; color: var(--cream); }
.gram b { color: var(--orange); }
.gram span:nth-child(2) b { color: var(--tealL); }
.gram span:nth-child(3) b { color: #b9e07a; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li { padding: 9px 14px; background: var(--cream); color: var(--ink); border-radius: 10px; font-weight: 600; font-size: 15px; box-shadow: 0 4px 0 #120c08; transition: transform .2s; }
.chips li:hover { transform: translateY(-3px) rotate(-1.5deg); }
.xpdemo { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-family: var(--display); }
.xpdemo .xpbar { background: #4d3524; border-color: #120c08; }
.xpdemo__fill { width: 0 !important; }
.card--xp.is-in .xpdemo__fill { animation: fill 2.6s var(--ease) .3s infinite; }
@keyframes fill { 0% { width: 18%; } 60%, 100% { width: 86%; } }
.xpdemo__num { color: var(--orangeL); white-space: nowrap; }
.xpdemo .hud__lvl { color: var(--tealL); }
.flip { position: relative; display: grid; min-width: 300px; padding: 22px 64px 22px 24px; background: var(--cream); color: var(--ink); border: 4px solid #120c08; border-radius: 14px; box-shadow: 0 6px 0 #120c08; cursor: pointer; text-align: left; font-family: var(--display); font-size: 22px; transition: transform .15s; }
.flip:active { transform: translateY(4px); box-shadow: 0 2px 0 #120c08; }
.flip__pl, .flip__uk { grid-area: 1 / 1; transition: opacity .3s, transform .3s; }
.flip__uk { opacity: 0; transform: translateY(8px); color: var(--tealD); font-style: italic; font-family: var(--body); font-weight: 600; }
.flip.is-on .flip__pl { opacity: 0; transform: translateY(-8px); }
.flip.is-on .flip__uk { opacity: 1; transform: none; }
.flip__key { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; padding: 4px 8px; border-radius: 6px; background: #fff; border: 2px solid #120c08; }
.flip.is-on .flip__key { background: var(--teal); color: #fff; }

/* ---------- TIMELINE ---------- */
.timeline { position: relative; list-style: none; padding: 0; margin: 46px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.timeline::before { content: ""; position: absolute; left: 3%; right: 3%; top: -27px; height: 6px; background: repeating-linear-gradient(90deg, var(--ink2) 0 12px, transparent 12px 20px); opacity: .25; }
.timeline::after { content: ""; position: absolute; left: 3%; top: -27px; height: 6px; width: calc(94% * var(--p, 0)); background: var(--orange); border-radius: 3px; transition: width .2s linear; }
.timeline li { position: relative; padding: 52px 18px 20px; background: #fff; border: 3px solid var(--ink2); border-radius: 14px; box-shadow: 0 6px 0 var(--ink2); }
.timeline li::before { content: ""; position: absolute; left: 50%; top: -38px; width: 20px; height: 20px; margin-left: -14px; background: var(--cream); border: 4px solid var(--ink2); border-radius: 4px; z-index: 1; transition: background .3s, transform .3s; }
.timeline li::after { content: ""; position: absolute; left: 50%; top: -10px; width: 3px; height: 10px; margin-left: -1.5px; background: var(--ink2); opacity: .35; }
.timeline li.is-lit::before { background: var(--orange); transform: rotate(45deg); }
.timeline time { position: absolute; top: 14px; left: 18px; font-family: var(--display); font-size: 20px; font-weight: 700; }
.tl__phase { display: inline-block; font-family: var(--display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.timeline h3 { font-family: var(--head); font-weight: 700; letter-spacing: -.01em; font-size: 17px; line-height: 1.25; margin: 4px 0 8px; }
.timeline p { margin: 0 0 14px; font-size: 15px; color: var(--muted); line-height: 1.5; }
.tl__tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 10px; background: var(--paper2); border-radius: 999px; }

/* ---------- TEAM ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.member { position: relative; padding: 18px 18px 22px; background: rgba(255, 241, 214, .05); border: 1px solid rgba(255, 241, 214, .12); border-radius: 18px; transition: transform .35s var(--ease), background .3s, border-color .3s; outline: none; }
.member:hover, .member:focus-visible, .member.is-walking { transform: translateY(-6px); background: rgba(255, 241, 214, .09); border-color: rgba(255, 179, 92, .5); }
.member--you { background: rgba(224, 138, 46, .12); border-color: rgba(224, 138, 46, .45); }
.member__stage { position: relative; height: 170px; border-radius: 12px; overflow: hidden; background: var(--office-bg, none) 50% 62% / 300% no-repeat; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .25); }
.member__stage::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36, 23, 17, .1), rgba(36, 23, 17, .55)); }
.member:nth-child(2) .member__stage { background-position: 55% 86%; }
.member:nth-child(3) .member__stage { background-position: 22% 38%; }
.member:nth-child(4) .member__stage { background-position: 60% 12%; }
.member:nth-child(5) .member__stage { background-position: 90% 44%; }
.member:nth-child(6) .member__stage { background-position: 40% 12%; }
.member:nth-child(7) .member__stage { background-position: 75% 30%; }
/* arkusz chodu: 4 klatki × 3 widoki (przód, bok, tył), komórka 105×233 */
.walker {
  --h: 136px; --w: calc(var(--h) * 105 / 233);
  position: absolute; left: 50%; bottom: 10px; width: var(--w); height: var(--h); margin-left: calc(var(--w) / -2);
  background-image: var(--sheet); background-size: calc(var(--w) * 4) calc(var(--h) * 3); background-position: 0 0; background-repeat: no-repeat;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .25)); animation: idle 3.2s ease-in-out infinite;
}
@keyframes idle { 50% { transform: translateY(-2px); } }
.member:hover .walker, .member:focus-visible .walker, .member.is-walking .walker { background-position-y: calc(var(--h) * -1); animation: walk .62s steps(4) infinite, stroll 3.2s ease-in-out infinite; }
@keyframes walk { from { background-position-x: 0; } to { background-position-x: calc(var(--w) * -4); } }
@keyframes stroll { 0%, 100% { translate: -26px 0; } 50% { translate: 26px 0; } }
.member h3 { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 22px; margin: 16px 0 2px; }
.member__role { margin: 0; font-size: 14.5px; color: rgba(255, 241, 214, .66); line-height: 1.45; }
.member blockquote { margin: 14px 0 0; padding: 10px 12px; background: var(--cream); color: var(--ink); border-radius: 10px; font-weight: 600; font-size: 15.5px; position: relative; }
.member blockquote::before { content: ""; position: absolute; left: 18px; top: -7px; width: 12px; height: 12px; background: inherit; transform: rotate(45deg); }
.member blockquote small { display: block; font-weight: 500; font-style: italic; color: var(--tealD); font-size: 13.5px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .3s, opacity .3s, margin .3s; }
.member:hover blockquote small, .member:focus-visible blockquote small, .member.is-walking blockquote small { max-height: 3em; opacity: 1; margin-top: 3px; }
.badge { font-family: var(--display); font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: rgba(255, 241, 214, .15); color: var(--cream2); letter-spacing: .04em; }
.badge--orange { background: var(--orange); color: var(--ink); }
.badge--teal { background: var(--teal); color: #fff; }
.member--more { display: flex; flex-direction: column; justify-content: center; border-style: dashed; }
.member__more { width: 64px; height: 64px; display: grid; place-items: center; font-family: var(--display); font-size: 40px; color: var(--orange); border: 3px dashed rgba(224, 138, 46, .6); border-radius: 14px; }
.regnote { text-align: center; color: rgba(255, 241, 214, .7); margin: 40px 0 0; font-size: 15px; }

/* ---------- STORIES ---------- */
.routes { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; }
.route { position: relative; overflow: hidden; padding: clamp(24px, 3vw, 38px); background: #fff; border: 3px solid var(--ink2); border-radius: 20px; box-shadow: 0 8px 0 var(--ink2); }
.route--b1 { background: linear-gradient(160deg, #fff7e8, #ffe7c4); }
.route__head { display: flex; align-items: center; gap: 12px; }
.cefr { display: grid; place-items: center; width: 54px; height: 54px; font-family: var(--display); font-size: 22px; font-weight: 700; color: #fff; background: var(--teal); border-radius: 12px; box-shadow: 0 4px 0 var(--tealD); }
.cefr--b1 { background: var(--orange); color: var(--ink); box-shadow: 0 4px 0 var(--orangeD); }
.route h3 { font-family: var(--head); font-weight: 700; letter-spacing: -.02em; font-size: clamp(24px, 2.6vw, 32px); margin: 18px 0 8px; }
.route > p { color: var(--muted); margin: 0; }
.route__nums { display: flex; gap: 12px; margin: 22px 0; }
.route__nums div { padding: 10px 16px; background: var(--paper); border-radius: 12px; border: 2px solid var(--line); }
.route__nums b { display: block; font-family: var(--display); font-size: 28px; line-height: 1.1; color: var(--teal); }
.route--b1 .route__nums b { color: var(--orangeD); }
.route__nums span { font-size: 13.5px; color: var(--muted); }
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: p; }
.path li { position: relative; display: flex; align-items: center; gap: 12px; font-weight: 600; padding: 8px 12px 8px 8px; background: var(--paper); border-radius: 10px; transition: transform .25s, background .25s; }
.path li:hover { transform: translateX(6px); background: #fdebd0; }
.path li span { display: grid; place-items: center; width: 30px; height: 30px; font-family: var(--display); background: var(--ink2); color: var(--cream); border-radius: 8px; }
.path li:first-child span { background: var(--orange); color: var(--ink); }
.cafe { position: relative; height: 150px; margin-top: 10px; border-radius: 14px; background: var(--office-bg, none) 18% 96% / 260% no-repeat; box-shadow: inset 0 0 0 3px rgba(58, 36, 23, .25); overflow: hidden; }
.cafe::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 231, 196, .1), rgba(36, 23, 17, .55)); }
.cafe__sign { position: absolute; left: 16px; bottom: 14px; z-index: 1; font-family: var(--display); font-size: 20px; color: var(--cream); text-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
.cafe__cup { position: absolute; right: 22px; bottom: 12px; z-index: 1; font-size: 44px; }
.cafe__steam { position: absolute; right: 34px; bottom: 58px; z-index: 1; display: flex; gap: 6px; }
.cafe__steam i { width: 5px; height: 16px; background: rgba(255, 241, 214, .85); border-radius: 3px; animation: steam 2.4s infinite ease-in-out; }
.cafe__steam i:nth-child(2) { animation-delay: .6s; } .cafe__steam i:nth-child(3) { animation-delay: 1.2s; }

/* ---------- COMPARE ---------- */
.compare { max-width: 900px; margin: 0 auto; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 241, 214, .14); }
.crow { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; align-items: stretch; }
.crow > span { display: flex; align-items: center; justify-content: center; padding: 16px 18px; text-align: center; border-top: 1px solid rgba(255, 241, 214, .08); }
.crow > span:first-child { justify-content: flex-start; text-align: left; font-weight: 600; color: rgba(255, 241, 214, .9); }
.crow--head > span { border-top: 0; font-family: var(--body); font-weight: 700; font-size: 15px; color: rgba(255, 241, 214, .7); padding-block: 18px; }
.crow .is-us { background: rgba(224, 138, 46, .12); }
.crow--head .is-us { background: var(--orange); color: var(--ink); font-weight: 700; }
.yes { color: #8fdc8a; font-weight: 800; font-size: 20px; }
.no { color: rgba(255, 241, 214, .3); font-size: 20px; }
.mid { color: var(--cream2); font-size: 20px; }
.honest { max-width: 680px; margin: 30px auto 0; text-align: center; color: rgba(255, 241, 214, .62); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 3px solid var(--ink2); border-radius: 14px; box-shadow: 0 5px 0 var(--ink2); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; font-family: var(--display); font-size: 22px; background: var(--paper2); border-radius: 8px; transition: transform .3s, background .3s; }
.faq details[open] summary::after { content: "−"; background: var(--orange); }
.faq summary:hover { background: #fffaf0; }
.faq p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* ---------- FINAL ---------- */
.final { position: relative; overflow: hidden; color: var(--cream); text-align: center; padding: clamp(110px, 14vw, 190px) 0; isolation: isolate; }
.final__bg { position: absolute; inset: -10%; z-index: -2; background: var(--office-bg, none) 50% 70% / cover no-repeat; filter: blur(3px) saturate(1.1); transform: scale(1.05); }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(36, 23, 17, .7), rgba(36, 23, 17, .94) 70%); }
.final__in { display: flex; flex-direction: column; align-items: center; }
.final__cup { position: relative; font-size: 64px; margin-bottom: 16px; }
.final__cup .cafe__steam { right: 20px; bottom: 70px; }
.final .sub { color: rgba(255, 241, 214, .78); margin-bottom: 34px; }
.final__note { margin: 18px 0 0; font-size: 14px; color: rgba(255, 241, 214, .6); }

/* ---------- FOOTER ---------- */
.foot { background: #160e0a; color: rgba(255, 241, 214, .7); padding: 40px 0; }
.foot__in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px 30px; }
.foot__motto { margin: 0; font-family: var(--display); color: var(--cream2); }
.foot__links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot__links a { text-decoration: none; font-weight: 600; font-size: 15px; }
.foot__links a:hover { color: var(--orange); }
.foot__copy { grid-column: 1 / -1; margin: 6px 0 0; font-size: 13.5px; opacity: .65; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ==========================================================================
   Responsywność
   ========================================================================== */
@media (max-width: 1080px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .hero__window { max-width: 760px; width: 100%; margin-inline: auto; transform: none; }
  .hero__copy { text-align: center; }
  .hero__copy .lead { margin-inline: auto; }
  .hero__ctas, .hero__trust { justify-content: center; }
  .team { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before, .timeline::after, .timeline li::before, .timeline li::after { display: none; }
  .timeline { margin-top: 0; }
  .timeline li:last-child { grid-column: 1 / -1; }
  .card--talk { grid-column: span 6; grid-row: auto; }
  .card--listen, .card--grammar { grid-column: span 3; }
  .card--games { grid-column: span 6; }
  .card--xp { grid-column: span 6; }
}
@media (max-width: 860px) {
  .nav__links { position: fixed; inset: 64px 12px auto; flex-direction: column; gap: 2px; padding: 12px; background: rgba(36, 23, 17, .97); border: 1px solid rgba(255, 241, 214, .14); border-radius: 14px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s, transform .2s; }
  .nav__links.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .nav__links a { font-size: 17px; padding: 12px 14px; }
  .nav__burger { display: block; }
  .nav__cta { margin-left: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pc { grid-template-columns: 1fr; }
  .routes { grid-template-columns: 1fr; }
  .card--ua { grid-template-columns: 1fr; }
  .card--ua .flip { grid-column: 1; grid-row: auto; margin-top: 14px; min-width: 0; }
  .foot__in { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 112px 0 54px; }
  .window__screen { aspect-ratio: 4 / 5; }
  .hud--quest { max-width: calc(100% - 20px); font-size: 12px; }
  .hud--xp { top: auto; bottom: 10px; }
  .phrase { display: flex; flex-direction: column; gap: 4px; text-align: center; padding: 12px 14px; }
  .phrase__sep { display: none; }
  .phrase__pl { min-height: 1.4em; }
  .btn--xl { white-space: normal; }
  .hl { white-space: normal; }
  .nav__in { gap: 12px; }
  .logo__txt { font-size: 19px; }
  .btn--lg { width: 100%; }
  .talk { grid-template-columns: 1fr; }
  .talk__portrait { display: grid; grid-template-columns: 72px 1fr; align-items: center; }
  .talk__portrait img { height: 72px; }
  .talk__portrait figcaption { text-align: left; padding-left: 12px; height: 100%; display: flex; flex-direction: column; justify-content: center; }
  .pc__screen { grid-template-columns: 1fr; }
  .printer { display: none; }
  .demo__stage { min-height: 0; }
  .demo__xp { min-width: 0; flex-basis: 100%; }
  .steps { flex-wrap: wrap; }
  .bento { grid-template-columns: 1fr; }
  .bento .card { grid-column: auto !important; }
  .team { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .member { padding: 12px 12px 16px; }
  .member__stage { height: 130px; }
  .walker { --h: 104px; }
  .member h3 { font-size: 18px; flex-wrap: wrap; }
  .timeline { grid-template-columns: 1fr; }
  .crow { grid-template-columns: 1.3fr .8fr .8fr .9fr; font-size: 14px; }
  .crow > span { padding: 12px 8px; }
  .crow--head > span { font-size: 13px; }
  .route__nums { flex-wrap: wrap; }
  .marquee__track b { font-size: 17px; }
}
@media (max-width: 380px) {
  .team { grid-template-columns: 1fr; }
  .window__title { font-size: 12px; }
}

/* Mniej ruchu — szanujemy ustawienia systemu */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* ---------- Rozmówki (міні-розмовник) ---------- */
.phrasebook { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pb { padding: 20px; background: rgba(255, 241, 214, .06); border: 1px solid rgba(255, 241, 214, .14); border-radius: 18px; }
.pb h3 { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; font-family: var(--head); font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: var(--cream); }
.pb ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pb li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: start; padding: 10px; background: var(--cream); color: var(--ink); border-radius: 12px; box-shadow: 0 4px 0 #120c08; }
.pb li span { font-weight: 700; font-size: 15.5px; line-height: 1.35; }
.pb li small { grid-column: 2; font-size: 13.5px; color: var(--tealD); font-style: italic; line-height: 1.35; margin-top: 2px; }
.pb__say { grid-row: span 2; width: 32px; height: 32px; border-radius: 8px; border: 2px solid var(--ink2); background: #fff; cursor: pointer; font-size: 14px; transition: transform .15s, background .2s; }
.pb__say:hover { background: var(--orangeL); transform: scale(1.06); }
.pb__say.is-playing { background: var(--tealL); }
.link { color: var(--orangeL); font-weight: 700; text-decoration: none; border-bottom: 2px solid rgba(255, 179, 92, .4); }
.link:hover { border-color: var(--orangeL); }

/* ---------- Artykuł (SEO-tekst) ---------- */
.section--tight { padding-top: clamp(30px, 4vw, 60px); }
.article { background: #fff; border: 3px solid var(--ink2); border-radius: 20px; box-shadow: 0 8px 0 var(--ink2); padding: clamp(24px, 4vw, 48px); }
.article .h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 18px; }
.article h3 { font-family: var(--head); font-weight: 700; font-size: 20px; letter-spacing: -.01em; margin: 26px 0 8px; }
.article p { margin: 0 0 14px; color: #4a3424; font-size: 17px; line-height: 1.7; }
.article i { font-style: normal; font-weight: 700; color: var(--teal); }
.article__list { margin: 6px 0 18px; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.article__list li { position: relative; padding-left: 28px; color: #4a3424; }
.article__list li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; background: var(--orange); box-shadow: 2px 2px 0 var(--ink2); }
.foot__about { grid-column: 1 / -1; margin: 4px 0 0; font-size: 14px; max-width: 60ch; }

@media (max-width: 1080px) { .phrasebook { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .phrasebook { grid-template-columns: 1fr; } }

/* Audit 2026-10-15: readable legal navigation and footer. */
.foot__copy{color:#b7aa98;opacity:1}.foot__legal{grid-column:1/-1;justify-content:flex-start;flex-wrap:wrap}.foot__links button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
