:root {
  --w: 960px;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #222;
}

header,
main,
footer {
  padding: 24px;
}
.container {
  max-width: var(--w);
  margin: 0 auto;
}
header {
  background: #f7f7f7;
  border-bottom: 1px solid #eee;
}
h1 {
  margin: 0 0 8px;
}
h2 {
  margin-top: 32px;
}
.lead {
  font-size: 1.1rem;
  margin: 0;
}

.grid {
  display: grid;
  gap: 16px;
}
.grid-2 {
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

figure {
  margin: 0;
}
figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
figcaption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 8px;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  text-decoration: none;
}
.btn:focus-visible,
.btn:hover {
  outline: 2px solid #555;
  outline-offset: 2px;
}

footer {
  background: #111;
  color: #fff;
}
footer a {
  color: #fff;
}
ul {
  padding-left: 20px;
}
.muted {
  color: #666;
}
.small {
  font-size: 0.9rem;
}

/* A11y: skip link + kotwice */
.skip {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: #111;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 1000;
}
:is(h2, h3)[id] {
  scroll-margin-top: 16px;
}

/* Nawigacja */
.nav {
  margin-top: 8px;
}
.nav a {
  text-decoration: none;
  margin-right: 8px;
  color: inherit;
  padding: 2px 4px;
  border-radius: 4px;
}
.nav a:hover {
  background: #e9e9e9;
}
.nav a:focus-visible {
  outline: 2px solid #555;
  outline-offset: 2px;
}

/* Kontakt */
address {
  font-style: normal;
  margin: 0 0 8px;
}

/* Formularz */
.contact-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  max-width: 640px;
}
.field {
  display: grid;
  gap: 6px;
}
label {
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #555;
  outline-offset: 2px;
}
.actions {
  margin-top: 4px;
}

/* Karty pakietów */
#oferta {
  margin-top: 32px;
}
.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  display: grid;
  gap: 10px;
}
.card h3 {
  margin: 0;
}
.desc {
  margin: -4px 0 2px;
  color: #444;
}
.price {
  font-size: 1.6rem;
  margin: 0;
}
.price span {
  font-weight: 700;
  letter-spacing: 0.3px;
}
.features {
  padding-left: 18px;
  margin: 0 0 6px;
}
.card .btn {
  width: 100%;
  text-align: center;
}

/* Wyróżniona karta */
.card--featured {
  position: relative;
  border: 2px solid #111;
}
.card--featured .badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: #111;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}
.note {
  margin-top: 8px;
}

/* Sticky header + delikatny cień po scrollu */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #f7f7f7;
}
body.scrolled header {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* CTA w headerze */
.hero-cta {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn--ghost {
  background: transparent;
  color: #111;
  border: 1px solid #111;
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: #111;
  color: #fff;
}

/* Sticky header + delikatny cień po scrollu */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #f7f7f7;
}
body.scrolled header {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* CTA w headerze */
.hero-cta {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn--ghost {
  background: transparent;
  color: #111;
  border: 1px solid #111;
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: #111;
  color: #fff;
}

.nav a.active {
  font-weight: 700;
  text-decoration: underline;
}

:root {
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
}
h1 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.2;
}
h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  margin-top: var(--space-4);
}
p {
  max-width: 65ch;
}
section {
  margin-block: var(--space-3);
}

.why {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.why-card {
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}
.why-card h3 {
  margin: 0 0 6px;
}

#faq details {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  margin-bottom: 10px;
}
#faq summary {
  cursor: pointer;
  font-weight: 600;
}
#faq summary:focus-visible {
  outline: 2px solid #555;
  outline-offset: 2px;
}
#faq p {
  margin: 10px 0 0;
}

.hp {
  position: absolute;
  left: -5000px;
  height: 0;
  overflow: hidden;
}
