:root {
  --bg: #eff0f4;
  --paper: #ffffff;
  --ink: #1b2340;
  --muted: #59617c;
  --rule: #c7cbda;
  --cobalt: #2f4fd0;   /* akcent */
  --sun: #f2b84b;
  --lilac: #dcd6f7;
  --mint: #c9e7d7;

  --font: "Schibsted Grotesk", system-ui, sans-serif;
  --side: max((100% - 1160px) / 2, clamp(20px, 5vw, 56px));
  --wrap: min(1160px, 100% - 2 * clamp(20px, 5vw, 56px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }

h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
  max-width: 18ch;
}
h3 { font-size: 1.15rem; line-height: 1.25; font-weight: 700; }

/* ---------- top ---------- */
.top {
  width: var(--wrap);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-weight: 500;
}
.top__name { text-decoration: none; font-weight: 800; }
.top__nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.top__nav a { text-decoration: none; color: var(--muted); }
.top__nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  width: var(--wrap);
  margin: 0 auto;
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
  padding: clamp(32px, 6vh, 72px) 0 clamp(56px, 10vh, 110px);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 40px;
  font-weight: 700;
  font-size: .95rem;
}
.status__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #1f9d63;
  box-shadow: 0 0 0 0 rgba(31, 157, 99, .5);
  animation: ping 2.2s ease-out infinite;
}
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 9px rgba(31, 157, 99, 0); } }

.hero__name {
  margin-top: 22px;
  font-size: clamp(3.6rem, 9vw, 8.4rem);
  line-height: .9;
  font-weight: 900;
  letter-spacing: -0.045em;
}
.lead {
  margin-top: 26px;
  max-width: 32rem;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.45;
  font-weight: 500;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-block;
  padding: 13px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); }

/* grafik tygodnia */
.week {
  background: var(--paper);
  border-radius: 14px;
  padding: clamp(14px, 2vw, 26px);
  box-shadow: 0 1px 0 var(--rule), 0 24px 48px -28px rgba(27, 35, 64, .35);
}
.week__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: auto repeat(4, minmax(46px, auto));
  gap: 8px 6px;
  background:
    repeating-linear-gradient(to right, transparent 0 calc((100% + 6px) / 7 - 1px), #eceef4 calc((100% + 6px) / 7 - 1px) calc((100% + 6px) / 7));
}
.day {
  grid-row: 1;
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0 0 4px 6px;
  background: var(--paper);
}
.task {
  grid-row: var(--r);
  grid-column: var(--c);
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: clamp(.72rem, 1vw, .88rem);
  font-weight: 700;
  line-height: 1.15;
  clip-path: inset(0 100% 0 0 round 7px);
  animation: place .55s cubic-bezier(.65, 0, .35, 1) forwards;
  animation-delay: calc(var(--i) * 110ms + 350ms);
}
@keyframes place { to { clip-path: inset(0 0 0 0 round 7px); } }
.t-team { background: var(--cobalt); color: #fff; }
.t-client { background: var(--sun); }
.t-event { background: var(--lilac); }
.t-stock { background: var(--mint); }
.t-money { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.week figcaption { margin-top: 16px; font-size: .9rem; color: var(--muted); }

/* ---------- o mnie ---------- */
.about {
  background: var(--paper);
  padding: clamp(72px, 11vw, 140px) var(--side);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px);
}
.about__text p { margin-top: 20px; max-width: 36rem; font-size: 1.15rem; color: #2e3654; }
.about__text p:first-of-type { margin-top: 28px; font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.4; color: var(--ink); font-weight: 500; }
.about__facts { list-style: none; padding: 0; align-self: end; }
.about__facts li {
  display: grid;
  grid-template-columns: clamp(4.2rem, 7vw, 5.6rem) 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.about__facts li:last-child { border-bottom: 1px solid var(--rule); }
.about__facts strong {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--cobalt);
  font-variant-numeric: tabular-nums;
}
.about__facts span { color: var(--muted); font-weight: 500; }

/* ---------- doświadczenie ---------- */
.path { width: var(--wrap); margin: 0 auto; padding: clamp(80px, 12vw, 150px) 0 clamp(40px, 6vw, 80px); }
.path__head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; }
.path__head p { color: var(--muted); font-size: 1.1rem; }

.timeline { position: relative; margin-top: clamp(48px, 7vw, 88px); }
.timeline__svg { position: absolute; top: 0; left: 0; width: 64px; height: 100%; overflow: visible; }
.timeline__ghost, .timeline__line { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.timeline__ghost { stroke: var(--rule); stroke-width: 1.5; stroke-dasharray: 4 6; }
.timeline__line { stroke: var(--cobalt); stroke-width: 3; }

.jobs { list-style: none; padding: 0 0 0 clamp(84px, 12vw, 200px); }
.job {
  position: relative;
  max-width: 41rem;
  padding: 6px 0 clamp(56px, 8vw, 90px);
  color: var(--muted);
  transition: color .5s ease;
}
.job:last-child { padding-bottom: 0; }
.job > p:not([class]) { margin-top: 12px; }
.job h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; }
.job__when { font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; }
.job__where { font-weight: 500; margin-top: 2px; }
.job__tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 40px;
  background: var(--sun);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 700;
}
.job.is-on { color: var(--ink); }
.job.is-on .job__when { color: var(--cobalt); }

/* awanse w Grycanie */
.job__steps { display: flex; align-items: flex-end; gap: 6px; margin-top: 24px; height: 92px; }
.job__steps span {
  display: flex;
  align-items: flex-end;
  padding: 8px 12px;
  border: 1.5px solid currentColor;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.2;
  height: 40px;
  transition: height .6s cubic-bezier(.3, 1.3, .5, 1), background-color .4s, color .4s, border-color .4s;
}
.job--key.is-on .job__steps span:nth-child(1) { transition-delay: .1s; }
.job--key.is-on .job__steps span:nth-child(2) { height: 64px; transition-delay: .3s; }
.job--key.is-on .job__steps span:nth-child(3) {
  height: 92px;
  transition-delay: .5s;
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
}

/* ---------- co wniosę ---------- */
.bring { width: var(--wrap); margin: 0 auto; padding: clamp(80px, 12vw, 150px) 0 clamp(60px, 8vw, 100px); }
.bring__list { margin-top: clamp(32px, 5vw, 56px); border-top: 2px solid var(--ink); }
.bring__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 8px clamp(24px, 5vw, 80px);
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}
.bring__row dt { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 700; line-height: 1.2; }
.bring__row dd { color: var(--muted); max-width: 36rem; }
.tools { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.tools__list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tools__list li { padding: 6px 14px; border-radius: 40px; background: var(--paper); font-weight: 500; font-size: .95rem; }

/* ---------- czego szukam ---------- */
.seek {
  margin: 0 var(--side);
  padding: clamp(40px, 6vw, 72px);
  border-radius: 18px;
  background: var(--cobalt);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 32px clamp(32px, 6vw, 80px);
}
.seek__body > p:first-child { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.45; font-weight: 500; max-width: 34rem; }
.seek__list { list-style: none; padding: 0; margin-top: 22px; }
.seek__list li { padding: 11px 0 11px 30px; border-top: 1px solid rgba(255, 255, 255, .28); position: relative; }
.seek__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 19px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--sun);
  border-bottom: 2px solid var(--sun);
  transform: rotate(-45deg);
}
.seek__where { margin-top: 20px; color: #d4dbff; }

/* ---------- konkrety ---------- */
.facts {
  width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(64px, 9vw, 110px) 0 clamp(72px, 10vw, 120px);
}
.fact h3 { font-size: 1rem; margin-bottom: 8px; }
.fact p { color: var(--muted); font-size: 1rem; }

/* ---------- kontakt ---------- */
.contact { background: var(--ink); color: #fff; padding: clamp(80px, 12vw, 150px) var(--side) 48px; }
.contact__ask { font-size: clamp(1.2rem, 2vw, 1.5rem); max-width: 30ch; color: #c3c9de; }
.contact__mail {
  display: inline-block;
  margin-top: 28px;
  font-size: clamp(2rem, 7.5vw, 6.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
  padding-bottom: 6px;
  background: linear-gradient(var(--sun), var(--sun)) 0 100% / 0 4px no-repeat;
  transition: background-size .4s cubic-bezier(.65, 0, .35, 1);
  word-break: break-word;
}
.contact__mail:hover, .contact__mail:focus-visible { background-size: 100% 4px; }
.contact__phone { display: block; margin-top: 18px; font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; text-decoration: none; color: var(--sun); }
.contact__phone:hover { text-decoration: underline; }
.contact__small { margin-top: clamp(64px, 10vw, 120px); font-size: .9rem; color: #8d95b0; }

/* ---------- responsywność ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .about, .seek { grid-template-columns: 1fr; }
  .path__head { grid-template-columns: 1fr; }
  .bring__row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .top__nav a:first-child { display: none; }
  .week__grid { gap: 6px 4px; grid-template-rows: auto repeat(4, minmax(40px, auto)); }
  .task { padding: 6px; font-size: .68rem; hyphens: auto; overflow-wrap: anywhere; }
  .facts { grid-template-columns: 1fr; }
  .job__steps span { font-size: .75rem; padding: 6px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .task { clip-path: none; }
}
