*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  line-height: 1.15;
  font-weight: 800;
}

.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 22px;
}

/* sekcje */
.section {
  padding: 56px 0;
}

.section--alt {
  background: var(--surface-alt);
}

.section__eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 6px;
}

.section__title {
  font-size: 27px;
  margin-bottom: 18px;
}

.section__lead {
  color: var(--ink-2);
  margin: -8px 0 24px;
  max-width: 640px;
}

.section__more {
  margin-top: 18px;
  font-weight: 600;
}

.section__block {
  margin-top: 32px;
}

.hint {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--muted);
}

/* siatka */
.grid {
  display: grid;
  gap: 20px;
}

.grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

/* przyciski */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid transparent;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--lime);
  color: var(--navy);
}

.btn--primary:hover {
  background: var(--lime-strong);
}

.btn--ghost {
  border-color: var(--navy-2);
  color: var(--navy);
}

.btn--ghost:hover {
  background: var(--lime-wash);
}

/* odznaki */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-alt);
  color: var(--ink-2);
  white-space: nowrap;
}

.badge--gold {
  background: var(--gold-bg);
  color: var(--gold-ink);
}

.badge--out {
  background: var(--surface-alt);
  color: var(--ink-2);
  border: 1px solid var(--line);
}

.badge--goal {
  background: var(--lime-soft);
  color: var(--navy);
}

/* delta pomiaru (spadek = dobrze) */
.delta {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}

.delta--good {
  color: var(--good);
  background: var(--good-bg);
}

.delta--bad {
  color: var(--bad);
  background: var(--bad-bg);
}

/* link do Instagrama */
.ig-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--link);
  white-space: nowrap;
}

/* nagłówek podstrony */
.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 44px 0;
}

.page-head__inner {
  display: flex;
  align-items: center;
  gap: 22px;
}

.page-head__avatar {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--surface-alt);
  display: grid;
  place-items: center;
  font-size: 44px;
  overflow: hidden;
}

.page-head__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-head__eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}

.page-head h1 {
  font-size: 30px;
}

.page-head__nick {
  color: var(--muted);
  font-weight: 500;
}

.page-head__bio {
  color: var(--ink-2);
  margin-top: 8px;
  max-width: 640px;
}

.page-head__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}

@media (max-width: 560px) {
  .page-head__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
