/* ErgoParna — ciepły, edytorski motyw (PL) */
:root {
  --bg: #f3efe8;
  --bg-elevated: #faf7f2;
  --ink: #221f1b;
  --muted: #5a5349;
  --accent: #c2542c;
  --accent-soft: rgba(194, 84, 44, 0.12);
  --accent-hover: #a34424;
  --line: #dcd4c8;
  --shadow: 0 18px 40px rgba(34, 31, 27, 0.08);
  --radius: 14px;
  --radius-pill: 999px;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --wide: 1120px;
  --article: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

.wrap {
  width: min(100% - 1.75rem, var(--wide));
  margin-inline: auto;
}

.wrap--article {
  width: min(100% - 1.75rem, var(--article));
}

/* Pasek afiliacyjny */
.aff-bar {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.aff-bar strong {
  color: var(--ink);
}

/* Nagłówek */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--accent);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.1rem 1.5rem;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 2.5rem;
}

.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 880px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.8vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
}

.lead {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 42ch;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero__visual {
  position: relative;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: -6% -4% auto -4%;
  height: 88%;
  background: linear-gradient(145deg, var(--accent-soft), transparent 55%);
  border-radius: 28px;
  z-index: 0;
}

.hero__visual figure {
  position: relative;
  z-index: 1;
  margin: 0;
}

.hero__visual img {
  display: block;
  width: 100%;
  max-height: min(440px, 52vh);
  object-fit: contain;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.65rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.12s ease;
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn:active {
  transform: scale(0.98);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn--ghost:hover {
  background: var(--bg-elevated);
  color: var(--ink);
}

/* Sekcje */
section {
  padding: 2.75rem 0;
  border-top: 1px solid var(--line);
}

section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

section p {
  margin: 0 0 1rem;
  color: var(--muted);
}

section p:last-child {
  margin-bottom: 0;
}

.grid-2 {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.ul-clean {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ul-clean li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.7rem;
  color: var(--muted);
}

.ul-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

.specs {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.94rem;
  background: var(--bg-elevated);
}

.specs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.specs-row:last-child {
  border-bottom: none;
}

.specs-row span:first-child {
  color: var(--muted);
}

.specs-row span:last-child {
  text-align: right;
  color: var(--ink);
  font-weight: 500;
}

.notice {
  padding: 1.2rem 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  font-size: 0.94rem;
  color: var(--muted);
}

.figure {
  margin: 0;
}

.figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.media-row {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin: 1.75rem 0 0;
}

@media (min-width: 820px) {
  .media-row {
    grid-template-columns: 1fr 1.02fr;
    gap: 2.25rem;
  }

  .media-row--reverse .media-row__text {
    order: 2;
  }

  .media-row--reverse .media-row__visual {
    order: 1;
  }
}

.media-row__visual .figure img {
  max-height: min(400px, 50vh);
  object-fit: contain;
}

.band {
  margin: 2rem calc(50% - 50vw) 0;
  width: 100vw;
  max-width: 100vw;
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band__inner {
  width: min(100% - 1.75rem, var(--wide));
  margin-inline: auto;
  padding: 2rem 0;
}

.band .figure img {
  max-height: min(460px, 65vh);
  margin-inline: auto;
  object-fit: contain;
  border: none;
  box-shadow: var(--shadow);
}

.duo-fig {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .duo-fig {
    grid-template-columns: 1fr 1fr;
  }
}

.duo-fig .figure img {
  aspect-ratio: 4/3;
  object-fit: cover;
}

h3.section-sub {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.08rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--ink);
}

.toc {
  padding: 1.1rem 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.94rem;
}

.toc ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.cards-3 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-lite {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: 0 4px 14px rgba(34, 31, 27, 0.04);
}

.card-lite h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
}

.card-lite p {
  margin: 0;
  font-size: 0.94rem;
}

.gallery-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 1.25rem;
}

@media (min-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-grid .figure img {
  aspect-ratio: 1;
  object-fit: cover;
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 2.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
  background: color-mix(in srgb, var(--ink) 4%, var(--bg));
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--ink);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.nav--footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  justify-content: flex-end;
}

.site-footer .footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

@media (min-width: 600px) {
  .site-footer .footer-links {
    text-align: right;
  }
}

.purchase-card {
  max-width: 540px;
  margin: 2rem auto 0;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.purchase-card .thumb {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  background: var(--bg);
}

.purchase-card h1 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0 0 0.75rem;
}

.purchase-card .btn {
  width: 100%;
  margin-top: 1rem;
}

.legal-doc h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 1.95rem);
}

.legal-doc .meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.legal-doc h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.15rem;
  font-family: var(--font-display);
  color: var(--ink);
}

.legal-doc h3 {
  margin: 1.4rem 0 0.45rem;
  font-size: 1.02rem;
  color: var(--ink);
}

.legal-doc p,
.legal-doc li {
  color: var(--muted);
}

.legal-doc ul,
.legal-doc ol {
  padding-left: 1.25rem;
}

.legal-doc li {
  margin-bottom: 0.4rem;
}

.contact-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.contact-card h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-family: var(--font-display);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.stat-pill strong {
  color: var(--ink);
}
