:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #5f6368;
  --line: #e6e3dc;
  --accent: #e2531d;
  --accent-dark: #b93f12;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

a { color: var(--accent-dark); }

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

/* Nagłówek */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px;
}
.logo { font-weight: 800; font-size: 22px; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.logo span { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block; padding: 6px 12px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600;
}
.nav a:hover { color: var(--text); background: #f1efe9; }
.nav a[aria-current="page"] { color: #fff; background: var(--text); }

/* Sekcje */
main { padding: 56px 0 72px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.section { margin-top: 64px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 700;
  border: 0; font-size: 16px; cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: #f1efe9; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Siatka realizacji */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 14px 32px rgba(0,0,0,.1); }
.card img { aspect-ratio: 16 / 10; width: 100%; height: auto; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-tag { font-size: 13px; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .04em; }
.card h3 { font-size: 19px; margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card-link { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--text); }

/* Treść tekstowa */
.prose { max-width: 720px; }
.prose p { margin: 0 0 1.1em; }
.list { padding-left: 1.2em; }
.list li { margin-bottom: .4em; }

.box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: start; }
.form { display: grid; gap: 16px; }
.form label { font-weight: 600; font-size: 15px; display: grid; gap: 6px; }
.form input, .form textarea {
  font: inherit; padding: 11px 13px; border: 1px solid #d3cfc6; border-radius: 10px; background: #fff; color: var(--text); width: 100%;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; display: none; }
.notice.ok { background: #e7f6ec; color: #17633a; }
.notice.err { background: #fdecea; color: #a1281c; }

/* Stopka */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 760px) {
  main { padding: 36px 0 56px; }
  .contact { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .site-header { position: static; }
}
