/* ════════════════════════════════════════════════════════════
   Examelo · Bold Light design system (variant A)
   Wspólne style dla wszystkich podstron.
   ════════════════════════════════════════════════════════════ */

:root {
  --ink:        #1a0b3a;
  --ink-soft:   #4a3370;
  --muted:      #7b6a99;
  --line:       #ece2fb;
  --line-2:     #d8c5f6;
  --paper:      #fbf7ff;
  --paper-2:    #f4ecff;
  --card:       #ffffff;

  --violet-700: #4910a8;
  --violet-600: #5b21d4;
  --violet-500: #7a3bf0;
  --pink-500:   #ff3d97;
  --pink-600:   #e6248a;

  --lime:       #d9ff3d;
  --lime-deep:  #b8e220;

  --grad:       linear-gradient(125deg, var(--violet-600) 0%, var(--pink-500) 100%);
  --grad-soft:  linear-gradient(125deg, #efe4ff 0%, #ffe2f0 100%);

  --shadow-lg:  0 32px 80px -20px rgba(75, 22, 168, .35), 0 4px 12px rgba(75, 22, 168, .08);
  --shadow-md:  0 16px 40px -12px rgba(75, 22, 168, .22);
  --shadow-sm:  0 6px 18px -6px rgba(75, 22, 168, .15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Tło: ziarnisty fiolet z plamami koloru */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(800px circle at 5% 0%, rgba(255, 61, 151, .12), transparent 50%),
    radial-gradient(900px circle at 95% 10%, rgba(91, 33, 212, .14), transparent 55%),
    radial-gradient(700px circle at 50% 100%, rgba(217, 255, 61, .08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/></svg>");
  opacity: .35;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

.wrap { width: min(1200px, 92vw); margin: 0 auto; position: relative; z-index: 1; }

/* ─────────────────────────  A11Y + UTILITY  ───────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff;
  padding: .8rem 1.4rem; border-radius: 0 0 12px 0;
  font-weight: 800; text-decoration: none;
  z-index: 100;
}
.skip-link:focus { left: 0; outline: 3px solid var(--lime); outline-offset: 2px; }

.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: var(--grad);
  z-index: 60;
  transition: width .08s ease-out;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(255, 61, 151, .5);
}

/* NOWOŚĆ chip na course-pill */
.new-chip {
  display: inline-flex; align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: .6rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: #fff;
  padding: .14rem .42rem;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 4px 10px -2px rgba(91, 33, 212, .45);
  animation: pulse-chip 1.8s ease-in-out infinite;
  margin-left: .25rem;
}
@keyframes pulse-chip {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ─────────────────────────  TOPBAR  ───────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 255, .8);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(216, 197, 246, .4);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; gap: 1rem; flex-wrap: wrap;
}
.brand-group { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; color: var(--ink);
  font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.4rem;
  letter-spacing: -.01em;
}
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--grad);
  display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: .95rem;
  box-shadow: 0 6px 14px -4px rgba(91, 33, 212, .55), inset 0 -3px 0 rgba(0,0,0,.12);
  font-family: "Outfit", sans-serif;
}
.course-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .42rem .72rem; border-radius: 999px;
  border: 1.5px solid var(--line-2);
  background: #fff;
  color: var(--violet-600);
  font-weight: 800; font-size: .82rem; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.course-pill:hover { transform: translateY(-1.5px); box-shadow: var(--shadow-sm); }
.course-pill .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--pink-500); animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(1.4); }
}
.menu { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.menu-link {
  padding: .55rem .85rem; border-radius: 999px;
  color: var(--ink-soft); text-decoration: none;
  font-weight: 700; font-size: .9rem;
  transition: background .18s ease, color .18s ease;
}
.menu-link:hover { background: rgba(91, 33, 212, .08); color: var(--violet-600); }
.menu-link.is-active { background: rgba(91, 33, 212, .1); color: var(--violet-600); }
.btn-auth {
  padding: .6rem 1.1rem; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-weight: 800; font-size: .9rem; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 6px 16px -6px rgba(26, 11, 58, .5);
}
.btn-auth:hover { transform: translateY(-1.5px); box-shadow: 0 10px 22px -6px rgba(26, 11, 58, .55); }
.nav-avatar {
  display: inline-flex; align-items: center; gap: .5rem;
  text-decoration: none; color: var(--ink); font-weight: 800; font-size: .92rem;
}
.nav-avatar-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; color: #fff; font-weight: 800;
  background: var(--grad); overflow: hidden;
  box-shadow: 0 4px 10px -3px rgba(91, 33, 212, .45);
}
.nav-avatar-icon img { width: 100%; height: 100%; object-fit: cover; }

main { padding: 2.8rem 0 4rem; position: relative; z-index: 1; }

/* ─────────────────────────  PAGE HEADER  ───────────────────────── */
.page-header {
  margin-bottom: 3rem;
  position: relative;
  max-width: 880px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: .78rem; font-weight: 600;
  color: var(--violet-600);
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: .8rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--violet-600);
}
.page-title {
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5.4vw, 4.6rem);
  line-height: .94;
  letter-spacing: -.035em;
  color: var(--ink);
  text-wrap: balance;
}
.page-title em {
  font-style: italic;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}
.page-title em::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px; bottom: 4%;
  height: 14%;
  background: var(--lime);
  z-index: -1;
  transform: rotate(-1deg);
  border-radius: 4px;
}
.page-title .strike { position: relative; white-space: nowrap; }
.page-title .strike::after {
  content: "";
  position: absolute;
  left: -1%; right: -1%; top: 53%;
  height: 8%;
  background: var(--pink-500);
  transform: rotate(-2.2deg);
  border-radius: 2px;
}
.page-lead {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
  font-weight: 500;
}
.page-actions {
  display: flex; gap: .7rem; flex-wrap: wrap;
  margin-top: 1.8rem;
}

/* ─────────────────────────  BUTTONS  ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: 1rem 1.6rem; border-radius: 999px;
  font-weight: 800; font-size: 1rem; text-decoration: none;
  border: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  font-family: inherit;
}
.btn:disabled { opacity: .65; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 14px 30px -10px rgba(26, 11, 58, .55), inset 0 -3px 0 rgba(0,0,0,.18);
}
.btn-primary::after { content: "→"; font-size: 1.15rem; transition: transform .2s ease; }
.btn-primary.no-arrow::after { content: none; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(26, 11, 58, .6), inset 0 -3px 0 rgba(0,0,0,.2); }
.btn-primary:hover::after { transform: translateX(4px); }
.btn-ghost {
  background: #fff; color: var(--ink);
  border: 1.5px solid var(--line-2);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-lime {
  background: var(--lime); color: var(--ink);
  box-shadow: 0 14px 30px -10px rgba(184, 226, 32, .8), inset 0 -3px 0 rgba(0,0,0,.12);
}
.btn-lime::after { content: "→"; font-size: 1.15rem; transition: transform .2s ease; }
.btn-lime.no-arrow::after { content: none; }
.btn-lime:hover { transform: translateY(-2px); }
.btn-lime:hover::after { transform: translateX(4px); }
.btn-grad {
  background: var(--grad); color: #fff;
  box-shadow: 0 14px 30px -10px rgba(91, 33, 212, .5);
}
.btn-grad::after { content: "→"; font-size: 1.15rem; transition: transform .2s ease; }
.btn-grad:hover { transform: translateY(-2px); }
.btn-grad:hover::after { transform: translateX(4px); }

/* ─────────────────────────  SECTIONS  ───────────────────────── */
.section { margin-bottom: 5rem; position: relative; }
.section-header {
  display: flex; align-items: end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  margin-bottom: 2.2rem;
}
.h2 {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  color: var(--ink);
  max-width: 20ch;
  text-wrap: balance;
}
.h2 em {
  font-style: italic; font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.section-desc {
  font-size: 1.05rem; color: var(--ink-soft);
  max-width: 42ch; line-height: 1.55;
  font-weight: 500;
}

/* ─── Card shells ─── */
.card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card.dark {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.card.dark .card-desc { color: rgba(255,255,255,.72); }
.card.lime { background: var(--lime); border-color: var(--lime); }

.card-num {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600; font-size: .82rem;
  color: var(--violet-600);
  margin-bottom: .8rem;
}
.card.dark .card-num { color: var(--lime); }
.card-title {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.15;
  margin-bottom: .5rem;
  letter-spacing: -.015em;
}
.card-desc {
  font-size: .95rem; line-height: 1.5; color: var(--ink-soft);
  font-weight: 500;
}

/* ─────────────────────────  MARQUEE  ───────────────────────── */
.marquee {
  margin: 0 calc(50% - 50vw) 4rem;
  padding: 1.4rem 0;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex; gap: 3rem;
  width: max-content;
  animation: marquee 35s linear infinite;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  letter-spacing: -.02em;
  align-items: center;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 3rem; white-space: nowrap; }
.marquee-track em { color: var(--lime); font-style: italic; }
.marquee-track .sep {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--pink-500); display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─────────────────────────  BIG CTA  ───────────────────────── */
.cta-banner {
  margin: 0 calc(50% - 50vw) 5rem;
  padding: 5rem 0;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px circle at 20% 50%, rgba(91, 33, 212, .35), transparent 60%),
    radial-gradient(600px circle at 80% 50%, rgba(255, 61, 151, .3), transparent 60%);
}
.cta-banner .wrap { position: relative; text-align: center; }
.cta-banner h2 {
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5.4vw, 4.6rem);
  line-height: .95;
  letter-spacing: -.035em;
  margin-bottom: 1.2rem;
  max-width: 20ch; margin-left: auto; margin-right: auto;
}
.cta-banner h2 em { font-style: italic; color: var(--lime); }
.cta-banner p {
  font-size: 1.1rem; color: rgba(255,255,255,.75);
  max-width: 52ch; margin: 0 auto 2rem;
  line-height: 1.5; font-weight: 500;
}
.cta-banner-actions { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; }
.cta-banner .btn-ghost {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff;
}
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,.14); }

/* ─────────────────────────  FOOTER  ───────────────────────── */
.footer {
  padding: 2rem 0 1.4rem;
  border-top: 1.5px solid var(--line);
  color: var(--ink-soft);
  font-size: .88rem;
}
.footer-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.footer-links { display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--ink); font-weight: 700; text-decoration: none; padding: .25rem .55rem; border-radius: 6px; }
.footer-links a:hover { background: rgba(91, 33, 212, .08); color: var(--violet-600); }
.footer-sep { color: var(--line-2); }
.footer-follow {
  margin-top: .9rem;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.footer-follow > span { color: var(--ink); font-weight: 700; }
.footer-socials { display: inline-flex; gap: .45rem; }
.footer-social-link {
  width: 32px; height: 32px; border-radius: 999px;
  display: inline-grid; place-items: center; text-decoration: none;
  background: var(--ink); color: #fff;
  transition: transform .2s ease;
}
.footer-social-link:hover { transform: translateY(-2px); }
.footer-social-link.instagram {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 68%, #285AEB 100%);
}
.footer-social-link svg { width: 15px; height: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─────────────────────────  REVEAL  ───────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ─────────────────────────  FORMS  ───────────────────────── */
.field { display: grid; gap: .35rem; }
.field label {
  font-size: .82rem; font-weight: 700;
  color: var(--ink-soft);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: .04em; text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: .85rem 1rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet-500);
  box-shadow: 0 0 0 4px rgba(91, 33, 212, .12);
}

/* Status bars */
.status {
  border-radius: 12px;
  border: 1.5px solid transparent;
  padding: .7rem .9rem;
  font-size: .9rem;
  line-height: 1.5;
  font-weight: 500;
  display: none;
}
.status.info    { display: block; background: rgba(91, 33, 212, .08);  border-color: var(--line-2);  color: var(--ink-soft); }
.status.success { display: block; background: rgba(184, 226, 32, .18); border-color: var(--lime-deep); color: #4a5a08; }
.status.error   { display: block; background: rgba(255, 61, 151, .12); border-color: var(--pink-500); color: var(--pink-600); }

/* ─── Popups (shared between contact & opinie) ─── */
.popup-overlay {
  position: fixed; inset: 0;
  z-index: 60;
  display: grid; place-items: center;
  padding: 1rem;
  background: rgba(26, 11, 58, .55);
  backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.popup-overlay.show { opacity: 1; visibility: visible; pointer-events: auto; }
.popup-card {
  width: min(440px, 92vw);
  border: 1.5px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  padding: 1.6rem 1.4rem 1.3rem;
  text-align: center;
  transform: translateY(10px) scale(.97);
  transition: transform .25s ease;
}
.popup-overlay.show .popup-card { transform: translateY(0) scale(1); }
.popup-icon {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  border-radius: 18px;
  display: grid; place-items: center;
  color: #fff; font-size: 1.6rem; font-weight: 800;
  background: var(--grad);
  box-shadow: 0 10px 24px -6px rgba(91, 33, 212, .5);
}
.popup-card h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.45rem; margin-bottom: .5rem;
  letter-spacing: -.015em;
}
.popup-card p {
  color: var(--ink-soft);
  font-size: .95rem; line-height: 1.5;
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.popup-actions { display: flex; gap: .55rem; justify-content: center; flex-wrap: wrap; }
.popup-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  padding: .7rem 1.2rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  font: inherit;
}
.popup-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* ─────────────────────────  RESPONSIVE  ───────────────────────── */
@media (max-width: 980px) {
  .menu { width: 100%; }
}
@media (max-width: 740px) {
  main { padding-top: 2rem; }
  .page-header { margin-bottom: 2rem; }
  .footer-row { justify-content: center; text-align: center; }
  .footer-links, .footer-follow { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
