/* Erasmo – strona kampanii. Układ według szkicu „STRONA NA KAMPANIE”:
   biała strona, gradientowe banery (niebieski → fiolet → róż) z ziarnem, czarne/obrysowane przyciski. */
:root {
  --bg: #ffffff;
  --ink: #0d0b12;
  --muted: #8a8794;
  --line: #1c1a22;
  --soft: #f4f2f8;
  --purple: #8d5aa9;
  --indigo: #1d10b3;
  --strong: #1c7c4a;
  --partial: #3159c9;
  --g1: #2a8bd0;
  --g2: #2f4fb8;
  --g3: #8b52b6;
  --g4: #db4ea6;
  --display: "Fredoka", "Trebuchet MS", "Arial Rounded MT Bold", sans-serif;
  --ui: "Asap Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --radius: 28px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--ui); font-size: 18px; line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
:focus-visible { outline: 3px solid var(--g2); outline-offset: 3px; }

/* Nagłówek */
.top { max-width: 1200px; margin: 0 auto; padding-block: 28px 8px; }
.logo { display: inline-block; }
.logo img { height: 46px; width: auto; display: block; }

main { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 96px; padding-block: 24px 96px; }
.screen { scroll-margin-top: 24px; display: flex; flex-direction: column; gap: 40px; }

/* Banery */
.banner {
  position: relative; overflow: hidden; border-radius: var(--radius); color: #fff;
  background:
    radial-gradient(120% 140% at 100% 100%, var(--g4) 0%, rgba(219, 78, 166, 0) 55%),
    radial-gradient(90% 120% at 100% 0%, #1d3aa8 0%, rgba(29, 58, 168, 0) 60%),
    linear-gradient(120deg, var(--g1) 0%, var(--g2) 45%, var(--g3) 80%, var(--g4) 100%);
}
.banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.45; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.banner > * { position: relative; z-index: 1; }
.banner h1, .banner h2 { font-family: var(--display); font-weight: 600; letter-spacing: 0.005em; line-height: 1.18; }
.waves { position: absolute !important; z-index: 0 !important; pointer-events: none; opacity: 0.9; }

.banner-hero { min-height: 420px; padding: 64px 48px; display: flex; align-items: flex-start; }
.banner-hero h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 17ch; }
.banner-hero .waves { right: -6%; top: -8%; height: 125%; width: auto; }

.banner-square { aspect-ratio: 1 / 1; padding: 48px; display: flex; justify-content: flex-end; align-items: flex-start; text-align: right; }
.banner-square h2 { font-size: clamp(1.8rem, 3.6vw, 3.2rem); max-width: 13ch; }
.banner-square h2.h2-small { font-size: clamp(1.25rem, 2.2vw, 2rem); max-width: 22ch; line-height: 1.35; }

.banner-wide { padding: 56px 48px; }
.banner-wide h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); max-width: 18ch; }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--ui); font-weight: 500; font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: 14px; padding: 22px 32px; text-decoration: none; cursor: pointer; border: 1.5px solid var(--line);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13, 11, 18, 0.12); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); }
.btn-big { background: var(--indigo); border-color: var(--indigo); color: #fff; font-size: 1.5rem; padding: 40px 24px; border-radius: 6px; }
.btn-gradient { color: #fff; border: 0; background: linear-gradient(110deg, var(--g1), var(--g2) 45%, var(--g4)); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

.cta-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 900px; width: 100%; margin: 0 auto; }

/* Układ dwukolumnowy */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* Ekran 2: zablokowany podgląd */
.locked { display: flex; flex-direction: column; gap: 14px; }
.locked-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.label { color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.1rem; }
.label-gap { margin-top: 26px; }
.soon-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 4px 12px; }
.soon-badge svg { width: 14px; height: 14px; fill: currentColor; }
.field {
  width: 100%; text-align: center; font-family: var(--ui); font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.03em;
  color: #6f6c78; background: #fff; border: 1.5px solid #bdbac6; border-radius: 12px; padding: 16px 12px; cursor: not-allowed;
}
.field span { text-transform: none; }
.field:hover { border-color: var(--muted); }
.soon-note { background: var(--soft); border-radius: 12px; padding: 12px 16px; font-size: 1rem; }
.soon-note a { color: var(--g2); font-weight: 600; }

/* Ekran 3: karty uczelni */
.example-label { font-size: 0.95rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.uni-list { display: flex; flex-direction: column; gap: 18px; }
.uni-card {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; text-decoration: none;
  border: 1.5px solid #c9b3d6; border-radius: 16px; padding: 22px 26px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.uni-card:hover { border-color: var(--purple); box-shadow: 0 10px 24px rgba(141, 90, 169, 0.15); }
.uni-name { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.15; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.uni-name small { font-size: 0.95rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.uni-score { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.uni-score small { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.uni-score b { font-size: clamp(2.4rem, 4.4vw, 3.4rem); font-weight: 500; color: var(--purple); line-height: 1; font-variant-numeric: tabular-nums; }
.uni-score em { font-style: normal; font-size: 0.9rem; color: var(--muted); }
.fine { font-size: 0.92rem; color: var(--muted); line-height: 1.45; max-width: 70ch; }

/* Ekran 4: pary przedmiotów */
.la { display: flex; flex-direction: column; gap: 14px; }
.la-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-bottom: 10px; }
.la-right { text-align: right; }
.la-title { font-size: clamp(1.3rem, 2.4vw, 1.9rem); text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.15; }
.la-sub { color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-size: 1rem; }
.pair { display: flex; flex-direction: column; }
.pair-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px;
  width: 100%; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; text-align: center;
}
.course {
  display: flex; flex-direction: column; gap: 2px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
  text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.02rem; min-height: 64px; justify-content: center;
}
.course small { color: var(--muted); font-size: 0.8rem; text-transform: none; letter-spacing: 0; }
.course-none { color: var(--muted); border-style: dashed; border-color: #bdbac6; }
.score { display: flex; flex-direction: column; align-items: center; min-width: 76px; font-size: 1.6rem; font-weight: 600; line-height: 1; color: var(--purple); font-variant-numeric: tabular-nums; }
.score small { font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }
.score.strong small { color: var(--strong); }
.score.partial small { color: var(--partial); }
.score.none { color: #b5b2bd; }
.score.none small { color: var(--muted); }
.pair-row:hover .course { background: var(--soft); }
.pair-row[aria-expanded="true"] .course { background: var(--soft); }
.pair-detail { margin: 10px 0 6px; padding: 16px 20px; border-radius: 12px; background: var(--soft); display: flex; flex-direction: column; gap: 10px; font-size: 1rem; }
.detail-h { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; color: var(--muted); }
.pair-detail ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pair-detail li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pair-detail li span:last-child { color: var(--g2); }

.price { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; margin-top: 8px; }
.price p { font-size: 1.15rem; max-width: 48ch; }

/* Ekran 5: zapis */
.banner-signup { padding: 64px 48px; }
.waves-signup { right: -22%; bottom: -35%; height: 160%; width: auto; opacity: 0.32; }
.signup-inner { max-width: 640px; display: flex; flex-direction: column; gap: 16px; }
.signup-inner > p { font-size: 1.15rem; }
.signup-form { display: flex; flex-direction: column; gap: 12px; }
.signup-row { display: flex; gap: 12px; flex-wrap: wrap; }
.signup-row input[type="email"] { flex: 1 1 260px; }
input[type="email"] {
  font: inherit; font-size: 1.1rem; padding: 18px 18px; border-radius: 14px; border: 1.5px solid #fff; background: rgba(255,255,255,0.95); color: var(--ink); min-width: 0;
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; line-height: 1.4; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.banner .consent a { color: #fff; }
.form-msg { min-height: 1.4em; font-size: 0.98rem; font-weight: 600; }
.thanks { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.thanks-h { font-family: var(--display); font-weight: 600; font-size: 1.8rem; }
.share-msg { min-height: 1.4em; font-size: 0.98rem; }

/* Okienko z ceną */
dialog {
  width: min(520px, calc(100vw - 32px)); border: 0; border-radius: 20px; padding: 36px 32px 28px; color: var(--ink);
  box-shadow: 0 30px 80px rgba(13, 11, 18, 0.3);
}
dialog::backdrop { background: rgba(13, 11, 18, 0.55); }
dialog h3 { font-family: var(--display); font-weight: 600; font-size: 1.8rem; margin-bottom: 8px; padding-right: 32px; }
dialog > p { margin-bottom: 18px; }
dialog input[type="email"] { border-color: #bdbac6; }
dialog .consent a { color: var(--g2); }
.dialog-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--muted); }

/* Stopka */
.foot { max-width: 1200px; margin: 0 auto; border-top: 1px solid #e6e3ec; padding-block: 32px 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; color: var(--muted); font-size: 0.98rem; }
.foot-logo { height: 24px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.foot-links a, .foot-links .link-btn { color: var(--ink); }
.email-text { user-select: all; color: var(--ink); }
.disclaimer { font-size: 0.88rem; }

/* Polityka prywatności */
.legal { max-width: 760px; margin: 0 auto; padding-block: 24px 80px; display: flex; flex-direction: column; gap: 18px; }
.legal h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-family: var(--display); font-weight: 600; font-size: 1.4rem; margin-top: 12px; }
.legal ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.legal .back { color: var(--g2); font-weight: 600; text-decoration: none; }

/* Telefony i tablety */
@media (max-width: 900px) {
  main { gap: 72px; }
  .two-col { grid-template-columns: 1fr; }
  .two-col .banner-square { order: -1; aspect-ratio: auto; min-height: 260px; }
  .banner-hero { min-height: 340px; padding: 40px 28px; }
  .banner-square, .banner-wide, .banner-signup { padding: 36px 28px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .logo img { height: 36px; }
  .cta-row { grid-template-columns: 1fr; gap: 14px; }
  .btn { padding: 18px 20px; font-size: 1.02rem; }
  .btn-big { padding: 26px 16px; font-size: 1.2rem; }
  .banner-hero .waves { right: -40%; opacity: 0.5; }
  .uni-card { padding: 18px; }
  .la-head { grid-template-columns: 1fr; gap: 10px; }
  .la-right { text-align: left; }
  .pair-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "home score" "host score"; gap: 8px 12px; text-align: left; }
  .pair-row .course:first-child { grid-area: home; }
  .pair-row .score { grid-area: score; }
  .pair-row .course:last-child { grid-area: host; }
  .pair-detail li { grid-template-columns: 1fr; gap: 2px; }
  .waves-signup { opacity: 0.2; }
}
