/* ============ LaureatEDU — landing v2 ============ */

:root {
  --ink: #17162b;
  --ink-soft: #5a5876;
  --bg: #f3eefb;
  --bg-dim: #e9dff6;
  --surface: #fdfcff;
  --dark: #1a1330;
  --dark-2: #251c44;
  --purple: #6d4dff;
  --purple-deep: #5233e0;
  --violet: #a855f7;
  --blue: #3b82f6;
  --grad: linear-gradient(120deg, #6d4dff 0%, #8b5cf6 50%, #6366f1 100%);
  --grad-soft: linear-gradient(160deg, #ffffff 0%, #f7f2fc 100%);
  --radius: 24px;
  --shadow: 0 1px 2px rgba(23, 22, 43, 0.04), 0 10px 24px -10px rgba(82, 51, 224, 0.14), 0 24px 48px -28px rgba(82, 51, 224, 0.14);
  --shadow-lg: 0 2px 4px rgba(23, 22, 43, 0.05), 0 18px 40px -14px rgba(82, 51, 224, 0.22), 0 36px 72px -30px rgba(82, 51, 224, 0.20);
  --font-head: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Fallback nav height — corrected live by JS (assets/script.js) once the
     real header is measured, so hero/anchor offsets never depend on guessing
     font metrics across devices. */
  --nav-h: 74px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  /* Stops iOS Safari's automatic text-size inflation on rotation/zoom, a
     common cause of layout jumping between mobile viewport heights. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100svh;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
}
.container-narrow { max-width: 780px; }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.1; font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.5rem); line-height: 1.18; font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 8px; }
h4 { font-size: 1rem; font-weight: 700; }

.grad-text {
  background: linear-gradient(120deg, #8b6bff 0%, #c084fc 55%, #7dd3fc 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--purple);
  background: rgba(109, 77, 255, 0.10);
  border: 1px solid rgba(109, 77, 255, 0.18);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 18px;
}
.eyebrow.center { display: table; margin-left: auto; margin-right: auto; }

.lead, .section-lead { font-size: 1.13rem; color: var(--ink-soft); max-width: 660px; }
.section-lead.center { margin: 0 auto 52px; }
.section-lead strong, .about-story strong { color: var(--ink); }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  font-family: var(--font-body);
  text-wrap: balance;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 17px 36px; font-size: 1.05rem; }
.btn-sm { padding: 10px 22px; font-size: 0.9rem; }
.btn-block { display: block; text-align: center; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 1px 2px rgba(82, 51, 224, 0.3), 0 8px 16px -6px rgba(109, 77, 255, 0.45), 0 18px 32px -12px rgba(109, 77, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { box-shadow: 0 1px 2px rgba(82, 51, 224, 0.3), 0 10px 20px -6px rgba(109, 77, 255, 0.5), 0 24px 44px -14px rgba(109, 77, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.15); }
.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 2px solid rgba(109, 77, 255, 0.35);
}
.btn-outline:hover { border-color: var(--purple); background: rgba(109, 77, 255, 0.06); }
.btn-light {
  background: #fff;
  color: var(--purple-deep);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

/* ============ Nav ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  min-height: 42px;
}
.nav.scrolled {
  background: rgba(243, 238, 251, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(82, 51, 224, 0.08), 0 8px 30px rgba(23, 22, 43, 0.06);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  transition: color 0.25s ease;
}
.nav.scrolled .logo { color: var(--ink); }
.logo-accent { color: #b39dff; }
.nav.scrolled .logo-accent { color: var(--purple); }
.logo-badge {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--grad);
  border-radius: 12px;
  overflow: hidden;
  font-size: 1.1rem;
  box-shadow: 0 6px 18px rgba(109, 77, 255, 0.45);
}
.logo-badge img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav.scrolled .nav-links a { color: var(--ink-soft); }
.nav.scrolled .nav-links a:hover { color: var(--purple); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.25s ease;
}
.nav.scrolled .nav-toggle { background: rgba(109, 77, 255, 0.08); border-color: rgba(109, 77, 255, 0.18); }
.nav.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px max(24px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  background: rgba(26, 19, 48, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-height: calc(100vh - var(--nav-h));
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 13px 8px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-menu a:not(.btn):hover { background: rgba(255, 255, 255, 0.07); }
.mobile-menu .btn { margin-top: 12px; }
/* W liście menu przycisk podskakujący o -2px wygląda niechlujnie — reszta
   pozycji stoi w miejscu. Zamiast ruchu: mocniejszy poświata (cień już
   ma to w .btn-primary:hover) plus lekkie rozjaśnienie gradientu. */
.mobile-menu .btn:hover { transform: none; filter: brightness(1.08); }
.nav.scrolled .mobile-menu {
  background: rgba(253, 252, 255, 0.98);
  border-top-color: rgba(82, 51, 224, 0.08);
}
.nav.scrolled .mobile-menu a:not(.btn) { color: var(--ink-soft); }
.nav.scrolled .mobile-menu a:not(.btn):hover { background: rgba(109, 77, 255, 0.06); color: var(--purple); }

/* Zabezpieczenie: dopóki menu jest otwarte, pasek z logo/hamburgerem MUSI
   mieć nieprzezroczyste tło — niezależnie od (poprawionego, ale i tak
   asekurujemy się) stanu .scrolled. Bez tego "zamrożona" pod spodem treść
   strony prześwitywała przez przezroczysty pasek nad rozwiniętym menu.
   Tylko gdy NIE .scrolled — u góry strony, nad fioletowym hero, gdzie
   .nav i tak nie ma własnego tła. Gdy .scrolled, zwykły jasny styl
   .nav.scrolled działa poprawnie sam i ma pasować do jasnego panelu
   rozwiniętego menu pod spodem, więc go tu nie nadpisujemy. */
.nav:not(.scrolled):has(.mobile-menu.open) {
  background: rgba(26, 19, 48, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav:not(.scrolled):has(.mobile-menu.open) .logo { color: #fff; }
.nav:not(.scrolled):has(.mobile-menu.open) .logo-accent { color: #b39dff; }
.nav:not(.scrolled):has(.mobile-menu.open) .nav-toggle { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); }
.nav:not(.scrolled):has(.mobile-menu.open) .nav-toggle span { background: #fff; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 6, 20, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.nav-backdrop.open { opacity: 1; visibility: visible; }
@media (min-width: 961px) { .nav-backdrop { display: none; } }

/* ============ Hero ============ */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(168, 85, 247, 0.28), transparent 60%),
    radial-gradient(600px 380px at 20% 35%, rgba(59, 130, 246, 0.10), transparent 70%),
    linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #fff;
  padding: calc(var(--nav-h) + 96px) 0 132px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}
.hero-glow-1 { width: 480px; height: 480px; background: #6d4dff; top: -160px; right: 4%; }
.hero-glow-2 { width: 340px; height: 340px; background: #3b82f6; top: 20%; left: -10%; opacity: 0.16; }

.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 900px; }
.hero h1 { margin: 22px 0 20px; }
.hero .lead { margin: 0 auto 36px; color: rgba(255, 255, 255, 0.72); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
.hero-note {
  margin-top: 34px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
/* Twardy kolorystyczny "cut" fiolet→jasne tło (poprzednie próby z gradientem
   fiolet→biel dawały brudny, szarawy środek) zastąpiony wyciętym kształtem:
   dwie płaskie barwy, miękka krzywa, zero blendowania — dlatego zawsze czysto,
   niezależnie od tego, jak ciemny/jasny jest --dark czy --bg. */
.hero-divider {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-divider svg { display: block; width: 100%; height: 96px; }
.hero-divider path { fill: var(--bg); }

/* Baner promocyjny: pełna szerokość, wpięty w fixed header nad .nav-inner —
   dzięki temu JS (syncNavHeight, mierzący .nav-inner.getBoundingClientRect().bottom)
   automatycznie dolicza jego wysokość do --nav-h, bez żadnych osobnych obliczeń. */
.promo-bar {
  background: var(--dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.promo-bar-inner {
  padding: 10px max(24px, env(safe-area-inset-right)) 10px max(24px, env(safe-area-inset-left));
  text-align: center;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
}
.promo-bar-inner strong { color: #fff; font-weight: 800; }

.hero-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chip {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 16px;
  backdrop-filter: blur(8px);
}
.chip-dark {
  color: var(--ink);
  background: #fff;
  border-color: rgba(82, 51, 224, 0.14);
  box-shadow: var(--shadow);
}

/* ============ Sections ============ */
.section { padding: 96px 0; position: relative; }
[id] { scroll-margin-top: calc(var(--nav-h) + 14px); }
.section-dim { background: var(--bg-dim); }

.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--grad-soft);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(82, 51, 224, 0.06);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 22px; right: 22px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }
.card p strong { color: var(--ink); }
.card-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 16px;
  font-size: 1.55rem;
  margin-bottom: 18px;
}
.ci-purple { background: rgba(139, 92, 246, 0.14); }
.ci-blue { background: rgba(59, 130, 246, 0.12); }
.ci-green { background: rgba(34, 197, 94, 0.13); }
.ci-orange { background: rgba(249, 115, 22, 0.13); }

.benefits { margin-top: 46px; }

/* ============ Versus ============ */
.versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
}
.versus-col {
  border-radius: var(--radius);
  padding: 30px 28px;
}
.versus-matura {
  background: var(--grad-soft);
  border: 1px solid rgba(23, 22, 43, 0.08);
  box-shadow: 0 8px 30px rgba(23, 22, 43, 0.05);
}
.versus-oly {
  background:
    linear-gradient(160deg, #ffffff 0%, #f7f2fc 100%) padding-box,
    var(--grad) border-box;
  border: 2px solid transparent;
  box-shadow: var(--shadow-lg);
}
.versus-badge {
  align-self: center;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--dark);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(11, 10, 28, 0.35);
}
.versus-head { margin-bottom: 18px; }
.versus-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
  background: var(--bg-dim);
  padding: 7px 18px;
  border-radius: 999px;
}
.versus-tag-win { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(109, 77, 255, 0.35); }
.versus-list { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.versus-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.versus-oly .versus-list li { color: var(--ink); }
.vx, .vv {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 2px;
}
.vx { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.vv { background: rgba(34, 197, 94, 0.15); color: #16a34a; }

/* ============ Plan ============ */
.plan-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.check-list { list-style: none; margin-top: 22px; }
.check-list li {
  padding-left: 36px;
  position: relative;
  margin-bottom: 14px;
  color: var(--ink-soft);
}
.check-list li strong { color: var(--ink); }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 2px;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  background: rgba(34, 197, 94, 0.14);
  color: #16a34a;
  font-weight: 800;
  font-size: 0.78rem;
  border-radius: 50%;
}
.check-list.small li { font-size: 0.92rem; margin-bottom: 10px; }

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 16px;
  padding: 13px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 2px 12px rgba(82, 51, 224, 0.07);
  border: 1px solid rgba(82, 51, 224, 0.05);
}
.step-num {
  width: 30px; height: 30px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--bg-dim);
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 50%;
}
.step.done { opacity: 0.85; }
.step.done .step-num { background: rgba(34, 197, 94, 0.15); color: #16a34a; }
.step.active {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad) border-box;
  box-shadow: 0 8px 24px rgba(109, 77, 255, 0.2);
}
.step.active .step-num { background: var(--grad); color: #fff; }
.step-final {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 28px rgba(109, 77, 255, 0.4);
}
.step-final .step-num { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* ============ Kursy ============ */
.pricing-grid { margin-top: 46px; align-items: stretch; }
.course-card { display: flex; flex-direction: column; position: relative; }
.course-card .check-list { flex-grow: 1; margin-top: 16px; }
.course-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 15px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.tag-purple { background: rgba(139, 92, 246, 0.14); color: var(--purple); }
.tag-blue { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.tag-grad { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(109, 77, 255, 0.3); }
.course-desc { margin-bottom: 4px; }
.course-featured {
  border: 2px solid transparent;
  background:
    linear-gradient(160deg, #ffffff 0%, #f7f2fc 100%) padding-box,
    var(--grad) border-box;
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}
.course-featured:hover { transform: scale(1.03) translateY(-6px); }
.best-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(11, 10, 28, 0.3);
}
.price-box { margin: 20px 0 16px; }
.price-soon {
  display: inline-block;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--bg-dim);
  padding: 9px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
}

/* ============ Cennik 1:1 ============ */
.pricing-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
  margin: 46px auto 0;
  align-items: stretch;
}
.price-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 2px 0 14px;
}
.price-amount {
  font-family: var(--font-head);
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-amount.price-old {
  font-size: 1.5rem;
  font-weight: 700;
  background: none;
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(90, 88, 118, 0.75);
  opacity: 0.8;
}
.price-period { color: var(--ink-soft); font-size: 0.88rem; font-weight: 600; max-width: 260px; line-height: 1.4; }
.course-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}
.price-sub {
  margin: -4px 0 16px;
  font-size: 0.88rem;
  font-weight: 600;
}
.tag-vip { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* Kupon rabatowy — przerywana ramka czyta się jako "kupon" i wyróżnia ofertę
   bez wprowadzania obcego koloru (wcześniejsza wersja na pomarańczowym
   gradiencie była zbyt krzykliwa przy fioletowej palecie). */
.promo-pill {
  display: block;
  margin: 0 0 18px;
  padding: 11px 16px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--purple-deep);
  background: rgba(109, 77, 255, 0.08);
  border: 1px dashed rgba(109, 77, 255, 0.45);
}
.card .promo-pill strong { color: var(--purple-deep); font-weight: 800; }

/* Karta VIP na ciemno — kontrast wobec jasnej karty obok od razu komunikuje
   "wyższy pakiet", a granat/fiolet trzyma się palety hero i sekcji CTA. */
.course-vip {
  background: linear-gradient(160deg, var(--dark-2) 0%, var(--dark) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 4px rgba(11, 10, 28, 0.3), 0 18px 40px -14px rgba(11, 10, 28, 0.45), 0 36px 72px -30px rgba(11, 10, 28, 0.4);
}
.course-vip .course-title { color: #fff; }
.course-vip .price-amount {
  background: linear-gradient(120deg, #b39dff 0%, #c084fc 55%, #7dd3fc 110%);
  -webkit-background-clip: text;
  background-clip: text;
}
.course-vip .price-period,
.course-vip .price-sub { color: rgba(255, 255, 255, 0.6); }
.course-vip .check-list li { color: rgba(255, 255, 255, 0.72); }
.course-vip .check-list li strong { color: #fff; }
.course-vip .check-list li::before { background: rgba(74, 222, 128, 0.18); color: #4ade80; }
.course-vip .card-note { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.68); }
/* Biały badge (górna połowa wystaje poza kartę na jasne tło sekcji) —
   obramowanie i mocniejszy cień dają mu krawędź, żeby się nie zlewał. */
.badge-scarce {
  background: #fff;
  color: var(--dark);
  border: 1px solid rgba(82, 51, 224, 0.18);
  box-shadow: 0 8px 20px rgba(11, 10, 28, 0.18);
}
.card-note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-dim);
  border-radius: 12px;
  padding: 10px 14px;
}

/* ============ Formularz kontaktowy ============ */
.center-lead { margin-left: auto; margin-right: auto; margin-bottom: 44px; }
.contact-form {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 34px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.form-field-full { grid-column: 1 / -1; }
.form-field[hidden] { display: none; }
.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}
.label-muted { font-weight: 500; color: rgba(255, 255, 255, 0.45); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem; /* min. 16px — iOS nie przybliża pola przy fokusie */
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  padding: 13px 16px;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #5a5876 50%), linear-gradient(135deg, #5a5876 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; text-overflow: ellipsis; }
.form-field select:invalid { color: #9795ad; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #9795ad; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  box-shadow: 0 0 0 3px rgba(139, 107, 255, 0.45);
  border-color: #8b6bff;
}
.contact-form .btn { border: none; width: 100%; }
.form-note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}
.form-note a { color: rgba(255, 255, 255, 0.7); text-decoration: underline; text-underline-offset: 2px; }
.form-note a:hover { color: #fff; }

/* ============ O mnie ============ */
.about-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
}
.about-photo { text-align: center; }
.avatar-circle {
  width: 230px; height: 230px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 800;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(82, 51, 224, 0.25), 0 20px 40px -16px rgba(109, 77, 255, 0.4), 0 40px 80px -30px rgba(109, 77, 255, 0.3);
}
.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.about-story { color: var(--ink-soft); margin-top: 18px; max-width: 640px; }

/* ============ Aplikacja ============ */
.app-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.app-features { display: flex; flex-direction: column; gap: 18px; margin: 30px 0 32px; }
.feature-row { display: flex; gap: 14px; align-items: flex-start; }
.feature-row p { color: var(--ink-soft); font-size: 0.9rem; }
.feature-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-size: 1.3rem;
}
.fi-purple { background: rgba(139, 92, 246, 0.14); }
.fi-blue { background: rgba(59, 130, 246, 0.12); }
.fi-orange { background: rgba(249, 115, 22, 0.13); }
.fine-print { font-size: 0.85rem; color: var(--ink-soft); }

.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 300px;
  background: #0e0e14;
  border-radius: 46px;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(23, 22, 43, 0.2), 0 24px 48px -16px rgba(23, 22, 43, 0.4), 0 48px 96px -32px rgba(23, 22, 43, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  position: relative;
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}
.phone:hover { transform: rotate(0deg) scale(1.02); }
.phone-notch {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 26px;
  background: #0e0e14;
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  background: #ece0f8;
  background-image: radial-gradient(320px 220px at 70% 0%, rgba(139, 92, 246, 0.16), transparent);
  border-radius: 38px;
  padding: 66px 20px 24px;
  text-align: center;
  overflow: hidden;
}
.phone-icon {
  width: 74px; height: 74px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  background: var(--grad);
  border-radius: 50%;
  overflow: hidden;
  font-size: 2rem;
  box-shadow: 0 10px 26px rgba(109, 77, 255, 0.45);
}
.phone-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-title {
  font-size: 1.32rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.phone-sub { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 18px; }
.phone-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  box-shadow: 0 4px 18px rgba(82, 51, 224, 0.1);
  margin-bottom: 20px;
}
.phone-row { display: flex; gap: 12px; align-items: center; font-size: 0.82rem; line-height: 1.35; }
.phone-row small { color: var(--ink-soft); }
.phone-emoji {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 11px;
  font-size: 1rem;
}
.pe-blue { background: rgba(59, 130, 246, 0.13); }
.pe-purple { background: rgba(139, 92, 246, 0.15); }
.pe-orange { background: rgba(249, 115, 22, 0.13); }
.phone-btn {
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(109, 77, 255, 0.4);
}

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 14px; margin-top: 46px; }
.faq-item {
  background: var(--grad-soft);
  border-radius: 18px;
  border: 1px solid rgba(82, 51, 224, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 1.02rem;
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: rgba(109, 77, 255, 0.1);
  color: var(--purple);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 600;
  transition: transform 0.25s ease, background 0.25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--grad); color: #fff; }
.faq-item p { padding: 0 24px 22px; color: var(--ink-soft); }
.faq-item p strong { color: var(--ink); }
.faq-item p a { color: var(--purple); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.faq-item p a:hover { color: var(--purple-deep); }

/* ============ CTA ============ */
.cta-section {
  position: relative;
  background:
    radial-gradient(700px 400px at 20% 30%, rgba(168, 85, 247, 0.35), transparent 60%),
    radial-gradient(600px 400px at 85% 70%, rgba(59, 130, 246, 0.25), transparent 60%),
    linear-gradient(160deg, var(--dark-2) 0%, var(--dark) 100%);
  color: #fff;
  padding: 110px 0;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  width: 500px; height: 500px;
  background: #6d4dff;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.35;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-section h2 { color: #fff; }
.cta-section .section-lead { color: rgba(255, 255, 255, 0.7); margin-bottom: 36px; }

/* ============ Footer ============ */
.footer {
  padding: 28px 0 max(28px, env(safe-area-inset-bottom));
  background: #120b22;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-link { color: rgba(255, 255, 255, 0.55); text-decoration: underline; text-underline-offset: 2px; }
.footer-link:hover { color: #fff; }

/* ============ Baner cookies ============ */
.cookie-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  background: rgba(15, 10, 28, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px max(20px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  transform: translateY(120%);
  transition: transform 0.35s ease;
}
.cookie-bar.show { transform: translateY(0); }
.cookie-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}
.cookie-bar p {
  flex: 1 1 380px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.86rem;
  line-height: 1.5;
}
.cookie-bar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar .btn { flex-shrink: 0; }
@media (max-width: 640px) {
  .cookie-bar-inner { justify-content: stretch; }
  .cookie-bar p { flex-basis: 100%; text-align: center; }
  .cookie-bar .btn { width: 100%; }
}

/* ============ Strona podziękowania (po wysłaniu formularza) ============ */
/* Stopka przypięta do dołu ekranu: bez tego treść zajmowała pełne 100svh,
   a stopka lądowała pod nim i strona przewijała się bez potrzeby. */
body:has(.thanks-page) {
  display: flex;
  flex-direction: column;
  /* svh, nie vh — na iOS Safari vh liczy się do pełnej wysokości ekranu
     razem z paskiem adresu, więc treść uciekałaby poza widok. */
  min-height: 100svh;
}
.thanks-page {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1 0 auto;
  padding: max(48px, env(safe-area-inset-top)) 0 48px;
  background:
    radial-gradient(700px 400px at 20% 25%, rgba(168, 85, 247, 0.32), transparent 60%),
    radial-gradient(600px 400px at 85% 75%, rgba(59, 130, 246, 0.22), transparent 60%),
    linear-gradient(160deg, var(--dark-2) 0%, var(--dark) 100%);
  color: #fff;
  overflow: hidden;
}
.thanks-inner { position: relative; z-index: 1; text-align: center; max-width: 620px; }
.thanks-logo { justify-content: center; margin-bottom: 40px; }
.thanks-check {
  width: 84px; height: 84px;
  margin: 0 auto 28px;
  display: grid; place-items: center;
  background: var(--grad);
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 2px 4px rgba(82, 51, 224, 0.3), 0 16px 40px -10px rgba(109, 77, 255, 0.6);
}
.thanks-check svg { width: 42px; height: 42px; }
.thanks-page h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); margin-bottom: 16px; }
.thanks-lead {
  font-size: 1.13rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 auto 36px;
}
.thanks-lead strong { color: #fff; }
.thanks-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.thanks-note {
  margin-top: 34px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}
.thanks-note a { color: rgba(255, 255, 255, 0.8); text-decoration: underline; text-underline-offset: 2px; }
.thanks-note a:hover { color: #fff; }
@media (max-width: 640px) {
  .thanks-logo { margin-bottom: 30px; }
  .thanks-check { width: 72px; height: 72px; margin-bottom: 22px; }
  .thanks-check svg { width: 36px; height: 36px; }
  .thanks-lead { font-size: 1rem; margin-bottom: 28px; }
  .thanks-cta { flex-direction: column; align-items: stretch; }
  .thanks-cta .btn { width: 100%; max-width: 360px; margin: 0 auto; }
}

/* ============ Strony prawne (polityka prywatności) ============ */
.legal-header {
  background: var(--surface);
  border-bottom: 1px solid rgba(82, 51, 224, 0.08);
  padding: max(16px, env(safe-area-inset-top)) 0 16px;
}
.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.legal-header .logo { color: var(--ink); }
.legal-header .logo-accent { color: var(--purple); }
.legal-back {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.legal-back:hover { color: var(--purple); }
.legal-page { padding: 56px 0 96px; }
.legal-updated { color: var(--ink-soft); font-size: 0.9rem; margin: -8px 0 40px; }
.legal-page h1 { margin-bottom: 6px; }
.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid rgba(82, 51, 224, 0.1);
}
.legal-page section:first-of-type h2 { margin-top: 0; padding-top: 0; border-top: none; }
.legal-page p, .legal-page li { color: var(--ink-soft); }
.legal-page p { margin-bottom: 14px; }
.legal-page ul { padding-left: 22px; margin-bottom: 14px; }
.legal-page li { margin-bottom: 8px; }
.legal-page strong { color: var(--ink); }
.legal-page a { color: var(--purple); }
@media (max-width: 640px) {
  .legal-page { padding: 40px 0 64px; }
  .legal-page h2 { font-size: 1.1rem; margin-top: 32px; }
}

/* ============ Motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .phone { transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .pricing-2 { grid-template-columns: 1fr; max-width: 480px; }
  .form-grid { grid-template-columns: 1fr; }
  .course-featured { transform: none; }
  .course-featured:hover { transform: translateY(-6px); }
  .plan-inner, .app-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  .nav-toggle { display: flex; }
  .versus { grid-template-columns: 1fr; }
  .versus-badge { justify-self: center; }
  .hero { padding: calc(var(--nav-h) + 66px) 0 112px; }
  .hero-divider svg { height: 74px; }
}
@media (max-width: 640px) {
  :root { --nav-h: 58px; }
  /* --- Nav: logo i CTA muszą się zmieścić obok siebie --- */
  .nav-inner { padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .logo { font-size: 1.02rem; gap: 8px; flex-shrink: 1; min-width: 0; }
  .logo-badge { width: 30px; height: 30px; font-size: 0.9rem; border-radius: 10px; flex-shrink: 0; }
  .nav .btn-sm { padding: 9px 15px; font-size: 0.8rem; white-space: nowrap; flex-shrink: 0; }
  .promo-bar-inner { padding: 8px 16px; font-size: 0.74rem; }

  /* --- Hero --- */
  .hero { padding: calc(var(--nav-h) + 46px) 0 84px; }
  .hero-divider svg { height: 52px; }
  .hero-chips { gap: 8px; }
  .chip { font-size: 0.72rem; padding: 6px 12px; }
  h1 { font-size: clamp(1.9rem, 8.4vw, 2.5rem); }
  .hero .lead { font-size: 1rem; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-cta .btn {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    text-align: center;
    padding: 16px 16px;
    font-size: 0.98rem;
  }
  .hero-cta .fine-print { text-align: center; }
  .hero-note { font-size: 0.82rem; }

  /* --- Sekcje i typografia --- */
  .section { padding: 56px 0; }
  h2 { font-size: clamp(1.45rem, 6.6vw, 1.95rem); }
  .lead, .section-lead { font-size: 1rem; }
  .section-lead.center { margin-bottom: 36px; }
  .eyebrow { font-size: 0.72rem; padding: 5px 13px; }

  /* --- Karty i siatki --- */
  .grid { gap: 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .card { padding: 24px 20px; }
  .benefits { margin-top: 32px; }
  .versus { gap: 14px; }
  .versus-col { padding: 24px 20px; }
  .versus-badge { width: 44px; height: 44px; font-size: 0.85rem; }

  /* --- Plan --- */
  .plan-inner, .app-inner { gap: 36px; }
  .glass-card { padding: 20px; }
  .step { font-size: 0.88rem; padding: 11px 14px; }

  /* --- Cennik --- */
  .pricing-2 { margin-top: 34px; }
  .course-card { padding: 26px 20px; }
  .price-amount { font-size: 2.2rem; }
  .price-period { font-size: 0.82rem; }
  .best-badge { font-size: 0.7rem; padding: 6px 14px; }

  /* --- O mnie / aplikacja --- */
  .avatar-circle { width: 150px; height: 150px; font-size: 2.6rem; }
  .about-inner { gap: 28px; }
  .phone { width: 270px; }

  /* --- FAQ --- */
  .faq-list { margin-top: 32px; }
  .faq-item summary { padding: 16px 50px 16px 18px; font-size: 0.95rem; }
  .faq-item p { padding: 0 18px 18px; font-size: 0.93rem; }

  /* --- Kontakt / stopka --- */
  .cta-section { padding: 72px 0; }
  .contact-form { padding: 24px 18px; }
  .form-grid { gap: 13px; margin-bottom: 16px; }
  .btn-lg { padding: 15px 22px; font-size: 0.98rem; }
  .footer-inner { flex-direction: column; text-align: center; gap: 6px; }
}
