/* =========================================================
   EduWave — Minimal Pro (Violet/Pink/Cyan)
   Większe odstępy, subtelne animacje, dopieszczone detale
========================================================= */

/* ---------- Tema / zmienne ---------- */
:root{
  /* tło i powierzchnie */
  --bg: #f5f7fa;
  --surface: #ffffff;

  /* typografia */
  --text: #0d1b3d;  /* granat */
  --muted: #5f6b85;

  /* kolory marki (jak w logo) */
  --violet: #a32cc4;       /* fiolet */
  --pink:   #00c3ff;       /* niebieski/cyan końca gradientu */
  --brand:  linear-gradient(135deg, #a32cc4 0%, #7a3ce6 40%, #00c3ff 100%);

  /* obramowania/cienie/efekty */
  --border: rgba(13, 27, 61, .10);
  --ring: rgba(163, 44, 196, .28);
  --shadow-1: 0 10px 30px rgba(13, 27, 61, .10);

  /* layout */
  --radius: 16px;
  --radius-lg: 22px;
  --container: 1200px;
  --speed: .18s;

  /* odstępy między sekcjami */
  --section-gap: clamp(48px, 8vw, 96px);
}

*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body{
  margin:0;
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial;
  color: var(--text);
  background:
    radial-gradient(1000px 480px at 0% -10%, rgba(163,44,196,.08), transparent 55%),
    radial-gradient(900px 520px at 100% 0%, rgba(0,195,255,.08), transparent 55%),
    var(--bg);
}

/* ---------- Reusable ---------- */
.container{ width:min(100% - 32px, var(--container)); margin-inline:auto; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; cursor: pointer; }
img{ max-width:100%; height:auto; display:block; }
hr{ border:none; border-top:1px solid var(--border); margin: 16px 0; }
.muted{ color: var(--muted); }
.center{ text-align:center; }

/* ---------- Header ---------- */
.header{
  position: sticky; top:0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(8px) saturate(130%);
  border-bottom: 1px solid var(--border);
}
.header__inner{
  display:grid; grid-template-columns: 1fr auto auto;
  align-items:center; gap: 12px; padding: 14px 0;
}
.brand{
  display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.2px;
}
.brand__dot{
  width:12px; height:12px; border-radius:999px; background: var(--brand);
  box-shadow: 0 0 0 4px rgba(163,44,196,.10);
}
.nav{ display:flex; gap: 8px; }
.nav-link{
  padding: 8px 10px; border-radius: 10px; color: var(--muted); font-weight:600;
  transition: background var(--speed), color var(--speed), transform var(--speed);
}
.nav-link:hover, .nav-link.active{
  background: rgba(163,44,196,.10);
  color: var(--text);
  transform: translateY(-1px);
}
.hamburger{
  display:none; width:40px; height:40px; border-radius:12px;
  border:1px solid var(--border); background:#fff; color: var(--text);
}
@media (max-width: 960px){
  .nav{ display:none; }
  .hamburger{ display:inline-flex; align-items:center; justify-content:center; }
  .nav.open{
    display:flex; position:absolute; right:16px; top:68px; flex-direction:column;
    gap:8px; padding:10px; background:#fff; border:1px solid var(--border); border-radius:12px;
    box-shadow: var(--shadow-1);
  }
}

/* ---------- Banner (Hero) ---------- */
.banner{
  position: relative;
  width: min(100%, 1100px);
  margin: var(--section-gap) auto 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.98)),
    radial-gradient(900px 420px at 15% -10%, rgba(163,44,196,.10), transparent 60%);
  box-shadow: var(--shadow-1);
  padding: clamp(28px, 7vw, 64px);

  text-align: center;
  display: grid;
  gap: 14px;
  justify-items: center;
  overflow: hidden;
}
/* subtelny „float” akcentu w tle */
.banner::after{
  content:"";
  position:absolute; inset:auto -120px -120px auto;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(0,195,255,.14), transparent 60%);
  filter: blur(2px);
  animation: float 12s ease-in-out infinite alternate;
}
@keyframes float{
  from{ transform: translate(0,0) scale(1); }
  to{   transform: translate(-20px,-10px) scale(1.06); }
}

.banner h1{
  margin: 8px 0 8px; font-size: clamp(32px, 5vw, 54px); line-height: 1.08;
}
.banner p{ margin: 0; color: var(--muted); max-width: 880px; }
.banner__cta{ margin-top: 16px; display:flex; gap: 12px; flex-wrap:wrap; justify-content:center; }

/* Badge’y pod hero */
.badges{ display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-top:14px; margin-bottom:36px; }
.badge{
  font-size:13px; padding:6px 10px; background:#fff;
  border:1px solid var(--border); border-radius:999px; color:var(--text);
  box-shadow: 0 6px 16px rgba(16,22,38,.05);
}

/* ---------- Short description ---------- */
.brief{ margin-top: clamp(18px, 3vw, 28px); }
.brief__row{
 	/* spacing między trzema kaflami pod hero */
  display:grid; gap: 14px; grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 980px){ .brief__row{ grid-template-columns: 1fr; } }
.brief__item{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding: 18px;
  box-shadow: 0 6px 18px rgba(16,22,38,.04);
}
.brief__item h3{ margin:0 0 6px; font-size:16px; }
.brief__item p{ margin:0; color: var(--muted); }

/* ---------- Sections ---------- */
.section{
  margin-top: var(--section-gap);
  position: relative;
  overflow: hidden;
}
.section::before{
  content: "";
  position: absolute;
  top: -120px;
  left: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(163,44,196,.18) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.section::after{
  content: "";
  position: absolute;
  bottom: -160px;
  right: -100px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(0,195,255,.16) 0%, transparent 65%);
  filter: blur(70px);
  pointer-events: none;
}
.section__head{
  display:flex; align-items:end; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.section__title{ margin:0; font-size: clamp(22px, 3.4vw, 30px); }
.section__desc{ margin:0; color: var(--muted); }

/* Subtelne gradientowe tło sekcji (możesz dodać klasę .section--tint do dowolnej sekcji) */
.section--tint{
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.96)),
    radial-gradient(900px 420px at 8% -10%, rgba(163,44,196,.08), transparent 60%),
    radial-gradient(900px 420px at 92% -10%, rgba(0,195,255,.08), transparent 60%);
  border:1px solid var(--border);
  border-radius: 20px;
  padding: clamp(18px, 3.6vw, 26px);
  box-shadow: 0 8px 22px rgba(16,22,38,.06);
}

/* ---------- Grid helpers ---------- */
.grid{ display:grid; gap: 18px; }
.cols-2{ grid-template-columns: repeat(2, 1fr); }
.cols-3{ grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px){
  .cols-2, .cols-3{ grid-template-columns: 1fr; }
}
@media (min-width: 1280px){
  .xl-cols-4{ grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Cards / Shop ---------- */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: clip;
  display:flex; flex-direction:column;
  transition: transform .12s ease, box-shadow .2s ease, outline-color .2s ease;
  outline: 0 solid rgba(13,27,61,0);
}
.card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-1);
  outline-width: 4px; outline-color: rgba(163,44,196,.08);
}
.card__media{
  position: relative; padding-top: 56%;
  background:
    radial-gradient(ellipse at 30% 35%, rgba(163,44,196,.16), transparent 45%),
    radial-gradient(ellipse at 70% 20%, rgba(0,195,255,.16), transparent 45%);
}
.card__body{ padding: 16px; display:grid; gap: 8px; }
.card__title{ margin:0; font-size:18px; font-weight:800; }
.card__desc{ margin:0; color: var(--muted); }
.card__row{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:6px; }
.price{ font-weight:800; letter-spacing:.2px; }

/* ---------- Buttons ---------- */
.btn{
  appearance:none; border:1px solid transparent; border-radius:12px;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 16px; font-weight:800; letter-spacing:.25px;
  color:#fff; background: var(--brand);
  background-size: 200% 100%;
  transition: transform .06s ease, opacity .18s ease, filter .18s ease, background-position .24s ease, box-shadow .24s ease;
  box-shadow: 0 10px 24px rgba(13,27,61,.18);
}
.btn:hover{ filter: brightness(1.03); background-position: 100% 0; box-shadow: 0 14px 30px rgba(13,27,61,.22); transform: translateY(-1px); }
.btn:active{ transform: translateY(0); opacity: .92; }
.btn--ghost{
  color: var(--text); background:#fff; border:1px solid var(--border); box-shadow:none;
}
.btn--ghost:hover{ transform: translateY(-1px); }

/* ---------- Stats band ---------- */
.band{
  margin-top: clamp(16px, 3vw, 24px);
  border:1px solid var(--border); border-radius: var(--radius);
  background: #fff; padding: 18px;
  box-shadow: 0 6px 18px rgba(16,22,38,.04);
}
.stats{ display:grid; gap:14px; grid-template-columns: repeat(4, 1fr); text-align:center; }
@media (max-width: 980px){ .stats{ grid-template-columns: repeat(2, 1fr); } }
.stat h3{ margin:0; font-size: 30px; font-weight: 900; }
.stat p{ margin:6px 0 0; color: var(--muted); }

/* ---------- Features (Dlaczego warto) ---------- */
.features{ display:grid; gap:18px; grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width:980px){ .features{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width:560px){ .features{ grid-template-columns: 1fr; } }

.feature{
  background:#fff; border:1px solid var(--border); border-radius: 20px;
  padding:22px; display:flex; gap:14px; align-items:flex-start;
  box-shadow: 0 10px 26px rgba(13,27,61,.07);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover{ transform: translateY(-3px); box-shadow: 0 18px 38px rgba(13,27,61,.12); }
.f-ico{
  width:46px; height:46px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; flex:0 0 46px;
  background:linear-gradient(180deg,#f8faff,#eef4ff); border:1px solid var(--border);
  font-size:22px; line-height:1;
}
.feature h3{ margin:0 0 6px; font-size:18px }
.feature p{ margin:0; color: var(--muted) }
.feature small{ display:block; margin-top:8px; opacity:.85 }

/* ---------- Steps ---------- */
.step{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius);
  padding:18px; display:grid; gap:8px;
  box-shadow: 0 6px 18px rgba(16,22,38,.04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.step .num{
  width: 28px; height: 28px; border-radius: 999px; display:grid; place-items:center;
  color:#fff; font-weight:800; background: var(--brand);
}
.step:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(13,27,61,.12);
}

/* ---------- Testimonials ---------- */
.testimonials{ display:grid; gap:18px; }
@media (min-width: 900px){ .testimonials{ grid-template-columns: repeat(3,1fr); } }
.testi{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius); padding:18px;
  display:grid; gap:10px; box-shadow: 0 6px 18px rgba(16,22,38,.04);
}
.testi .head{ display:flex; align-items:center; gap:10px; }
.avatar{
  width:40px; height:40px; border-radius:999px; background: var(--brand);
  display:grid; place-items:center; color:#fff; font-weight:800;
}
.stars{ color:#f59e0b; letter-spacing:1px; }
blockquote{ margin:0; font-size: 14.5px; line-height:1.6; }
cite{ font-style:normal; color: var(--muted); font-size: 13px; }

/* ---------- FAQ ---------- */
.faq{ display:grid; gap:12px; }
.faq details{
  background:#fff; border:1px solid var(--border); border-radius: 12px; padding:12px 14px;
  box-shadow: 0 6px 18px rgba(16,22,38,.04);
}
.faq summary{ cursor:pointer; font-weight: 700; }
.faq p{ color: var(--muted); margin: 8px 0 0; }

/* ---------- Newsletter ---------- */
.newsletter{
  text-align:center; padding: clamp(18px, 3.6vw, 26px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.98)),
    radial-gradient(900px 420px at 10% -10%, rgba(163,44,196,.10), transparent 60%),
    radial-gradient(900px 420px at 90% -10%, rgba(0,195,255,.10), transparent 60%);
  border:1px solid var(--border); border-radius: 20px;
  box-shadow: 0 6px 18px rgba(16,22,38,.04);
}
.news-form{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top: 10px; }
.input{
  width: 100%; max-width: 360px; padding:12px; border-radius:12px; border:1px solid var(--border);
  background:#fff; color: var(--text); outline:none;
  transition: box-shadow var(--speed), border-color var(--speed);
}
.input:focus{ border-color: var(--ring); box-shadow: 0 0 0 4px var(--ring); }

/* ---------- Modal checkout ---------- */
dialog{ border:none; padding:0; background:transparent; }
.modal{
  width:min(92vw, 520px); background:#fff; border:1px solid var(--border); border-radius: 16px;
  padding:18px; display:grid; gap:12px; box-shadow: var(--shadow-1);
}
.actions{ display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; }

/* ---------- Toast ---------- */
.toast{
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  background: #111827; color: #fff; padding: 12px 14px; border-radius: 12px;
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s ease;
}
.toast.show{ opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ---------- Reveal (scroll-in) + stagger ---------- */
.reveal{ opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity: 1; transform: none; transition-delay: var(--d, 0s); }

/* ---------- Pagination (Sklep) ---------- */
.pager{
  display:flex; gap:6px; align-items:center; justify-content:center; margin-top:18px; flex-wrap:wrap;
}
.pager__btn{
  min-width: 44px; height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid var(--border) !important;
  background: #fff !important;
  color: var(--text) !important;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(16,22,38,.04);
  transition: transform .06s ease, box-shadow .18s ease, background-position .24s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
}
.pager__btn[disabled]{
  opacity:.55; cursor:not-allowed; box-shadow:none;
}
.pager__btn:not([disabled]):hover{
  transform: translateY(-1px);
  border-color: var(--ring) !important;
  box-shadow: 0 10px 22px rgba(13,27,61,.12);
}
.pager__btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
  border-color: transparent !important;
}
.pager__btn--active{
  background: var(--brand) !important;
  color:#fff !important;
  border-color: transparent !important;
  box-shadow: 0 12px 26px rgba(13,27,61,.20);
  font-weight: 800;
}
.pager__btn--active:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(13,27,61,.26);
}
.pager__ellipsis{
  padding: 8px 10px;
  color: var(--muted);
}

/* ---------- Pasek promocji (odliczanie) ---------- */
.promo-bar{
  background: linear-gradient(90deg,#a32cc4,#00c3ff);
  color:#fff; text-align:center; font-weight:800;
  padding:14px 12px; border-radius:14px;
  margin:22px auto 0; max-width:var(--container);
  box-shadow: 0 8px 24px rgba(13,27,61,.15);
  position:relative; overflow:hidden
}
.promo-bar small{display:block; font-weight:600; opacity:.95}
.promo-bar::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(120deg,rgba(255,255,255,.35),rgba(255,255,255,0),rgba(255,255,255,.35));
  transform:translateX(-100%); animation:shine 4s linear infinite; pointer-events:none;
}
@keyframes shine{to{transform:translateX(100%)}}

/* ---------- Kafle kategorii (Sklep) ---------- */
#catGrid.grid{ display:grid; gap:18px; grid-template-columns:repeat(4,minmax(0,1fr)); }
@media (max-width:1200px){ #catGrid.grid{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:900px){  #catGrid.grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px){  #catGrid.grid{ grid-template-columns:1fr; } }

.k-category{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:22px; min-height:150px; cursor:pointer;
  border-radius:18px; background:#fff; border:1px solid var(--border);
  box-shadow:0 8px 20px rgba(13,27,61,.06);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.k-category:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(13,27,61,.10);
  border-color: rgba(163,44,196,.22);
}
.k-category__icon{ font-size:34px; line-height:1 }
.k-category__title{ margin:10px 0 6px; font-weight:800; letter-spacing:.2px }
.k-category__meta{ font-size:14px; opacity:.85 }
.k-category--back{ min-height:160px; }

/* ---------- Siatka kursów (kontener) ---------- */
#grid{ display:grid; gap:18px; }

/* ---------- A11y ---------- */
:focus-visible{ outline: 3px solid rgba(163,44,196,.35); outline-offset: 2px; }

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce){
  .banner::after{ animation: none; }
  .reveal{ transition: none; }
  .btn{ transition: none; }
}

/* === Koszyk / badge === */
.cart-link{ position:relative; display:inline-flex; align-items:center; gap:6px; font-weight:600; }
#cart-count{ background: var(--brand); color:#fff; border-radius: 999px; padding: 1px 8px; font-size:12px; line-height:18px; display:inline-block; min-width:22px; text-align:center; }
.btn-row{ display:flex; gap:10px; flex-wrap:wrap; }

/* === WIZUALNE PROMOCJE — PRZEKREŚLONA STARA CENA === */
.price-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.old-price {
  font-size: 18px;
  color: #5b6b8a;
  text-decoration: line-through;
  opacity: 0.7;
}

.new-price {
  font-size: 24px;
  font-weight: 700;
  color: #e53935; /* czerwony */
}

/* =========================================================
   Powiększona typografia tylko dla kurs.html
   Delikatne, nowoczesne podbicie — bez psucia layoutu
========================================================= */

/* Bazowy rozmiar tekstu (z 16px na ~17.5px) */
body {
  font-size: 17.5px;
}

/* Większe nagłówki hero */
#hero h1 {
  font-size: clamp(36px, 5.6vw, 60px);
}

#hero p {
  font-size: 18px;
}

/* Sekcje tytułów */
.section__title {
  font-size: clamp(24px, 3.6vw, 34px);
}

.section__desc {
  font-size: 17px;
}

/* Karty */
.card__title {
  font-size: 20px;
}

.card__desc {
  font-size: 16.5px;
}

/* Feature + step */
.feature h3,
.step strong {
  font-size: 19px;
}

.feature p,
.step span,
.step p {
  font-size: 16.5px;
}

/* FAQ */
.faq summary {
  font-size: 18px;
}

.faq p {
  font-size: 16.5px;
}

/* Moduły / podgląd treści kursu */
.course-mock-pre {
  font-size: 15px;
}

/* Cena — lekko powiększona */
.new-price {
  font-size: 26px;
}

.old-price {
  font-size: 19px;
}

/* Przycisk „Kup teraz” */
.btn {
  font-size: 17px;
}

/* Footer */
footer {
  font-size: 16.5px;
}

.contact-section {
  padding: 60px 0;
  background: #f5f7fa;
}

.contact-box {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(13,27,61,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  font-size: 16px;
  line-height: 1.6;
  color: #0d1b3d;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 24px;
  background: linear-gradient(90deg,#a32cc4,#00c3ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

