/* Viablo: jednostronicowa wizytówka. Bez frameworków, bez zewnętrznych zasobów. */

:root {
  --bg: #fcf8f0;
  --bg-alt: #f4eee2;
  --ink: #08383d;
  --ink-soft: #3d5f63;
  --blue: #1698c9;
  --blue-text: #0b6f99;
  --line: #ded5c3;
  --white: #ffffff;
  --radius: 14px;
  --max: 1080px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { top: 12px; color: var(--white); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Nagłówek ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand img {
  height: 40px;
  width: auto;
  mix-blend-mode: multiply;
}

.nav { display: none; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.nav a:hover { color: var(--blue-text); text-decoration: underline; }

@media (min-width: 820px) {
  .nav { display: block; margin-left: auto; }
}

/* ---------- Przyciski ---------- */

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--blue-text); border-color: var(--blue-text); color: var(--white); }
.btn:active { transform: translateY(1px); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

.btn--small { padding: 9px 18px; font-size: 0.95rem; }

/* ---------- Sekcje ---------- */

section { padding: 72px 0; }
@media (min-width: 820px) { section { padding: 104px 0; } }

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-text);
  margin: 0 0 14px;
}

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 22ch;
}

.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; margin: 18px 0 0; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: 56px 0 80px; }
@media (min-width: 820px) { .hero { padding: 96px 0 128px; } }

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  max-width: 20ch;
  letter-spacing: -0.03em;
}
.hero .lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); margin-top: 24px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-grid { display: grid; gap: 8px; align-items: center; }

.hero-photo { order: -1; margin: 0 0 24px; display: flex; align-items: center; gap: 16px; }
.hero-photo img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 24px -14px rgba(8, 56, 61, 0.5);
  flex: none;
}
.hero-photo strong { display: block; font-size: 1.05rem; }
.hero-photo span { display: block; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.4; }

@media (min-width: 820px) {
  .hero-grid { grid-template-columns: 1fr 340px; gap: 72px; }
  .hero-photo { order: 0; display: block; margin: 0; }
  .hero-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 24px;
    box-shadow: 0 18px 40px -20px rgba(8, 56, 61, 0.45);
  }
  .hero-photo figcaption { margin-top: 16px; }
}

/* ---------- Problemy ---------- */

.alt { background: var(--bg-alt); }

.pairs {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  gap: 32px;
}

.pair { display: grid; gap: 4px; }

.pair-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--ink-soft);
}

.pair-problem,
.pair-benefit {
  border-radius: var(--radius);
  padding: 24px 26px 26px 28px;
}
.pair-problem { background: var(--bg); border-left: 5px solid #b9ad96; }
.pair-benefit {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
}
.pair-benefit .pair-label { color: var(--blue-text); }

.pair h3 { font-size: 1.2rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.pair-benefit h3 { font-size: 1.3rem; }
.pair p { margin: 0; color: var(--ink-soft); }

.pair-arrow {
  display: grid;
  place-items: center;
  color: var(--blue-text);
  font-size: 1.6rem;
  line-height: 1;
  min-height: 28px;
}
.pair-arrow::before { content: "↓"; }

@media (min-width: 820px) {
  .pair { grid-template-columns: 1fr 56px 1fr; gap: 0; align-items: stretch; }
  .pair-arrow::before { content: "→"; }
}

/* ---------- Jak pracuję ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  gap: 40px;
  counter-reset: step;
}
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 1;
}
.step:first-child::before { background: var(--blue); border-color: var(--blue); color: var(--white); }
@media (min-width: 820px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 21px;
    left: 56px;
    right: -20px;
    height: 3px;
    background: var(--ink);
    opacity: 0.25;
  }
}
.step h3 { font-size: 1.35rem; margin-bottom: 10px; }
.step p { margin: 0; color: var(--ink-soft); }

/* ---------- Przypadki ---------- */

.cases { display: grid; gap: 24px; margin-top: 44px; list-style: none; padding: 0; }
@media (min-width: 820px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cases { grid-template-columns: repeat(3, 1fr); } }

.case {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.case[hidden] { display: none; }
.case .tag {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-text);
  margin-bottom: 10px;
}
.case h3 { font-size: 1.3rem; margin-bottom: 10px; }
.case p { margin: 0; color: var(--ink-soft); }
.case p + p { margin-top: 10px; }
.case-link { font-weight: 600; }
.case-link::after { content: " \2197"; text-decoration: none; display: inline-block; }

/* ---------- O mnie ---------- */

.about p { max-width: 62ch; }
.about h2 + p { margin-top: 24px; }
.about p:not(.eyebrow) { font-size: 1.12rem; }

/* ---------- Kontakt ---------- */

.contact { background: var(--ink); color: var(--white); }
.contact .eyebrow { color: #9fdcf5; }
.contact h2 { max-width: 20ch; }
.contact .lead { color: #cfe3e6; }
.contact a { color: var(--white); }

.mail-link {
  display: inline-block;
  margin-top: 32px;
  font-size: clamp(1.4rem, 4.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--blue);
  word-break: break-all;
}
.mail-link:hover { color: #9fdcf5; }

.contact-extra { margin-top: 28px; color: #cfe3e6; }
.contact .btn { background: var(--white); color: var(--ink); border-color: var(--white); margin-top: 28px; }
.contact .btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.contact :focus-visible { outline-color: #9fdcf5; }

/* ---------- Stopka ---------- */

.site-footer { padding: 40px 0; font-size: 0.95rem; color: var(--ink-soft); }
.footer-inner { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 720px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; column-gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding: 12px 0; }

/* ---------- Strona prawna ---------- */

.legal { padding: 48px 0 80px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.4rem; max-width: none; margin: 40px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.updated { color: var(--ink-soft); margin: 0 0 28px; }

/* ---------- Ruch ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
