:root {
  --paper: #f2f0ea;
  --ink: #14130f;
  --field: #ff5a2b;
  --muted: #6b675e;
  --line: #14130f;
  --line-soft: #d6d2c5;
  --max-width: 90rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "General Sans", "Inter", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Anton", "Archivo Black", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 2.5rem;
  }
}

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--field);
  font-weight: 600;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

.site-logo {
  font-family: "Anton", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s;
}

.site-logo:hover {
  color: var(--field);
}

@media (max-width: 859px) {
  .site-logo {
    font-size: 0.9rem;
  }
}

.menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-inline-end: -0.5rem;
  order: 1;
}

.menu-btn span {
  display: block;
  height: 2px;
  width: 1.75rem;
  background: var(--ink);
  transition: transform 0.2s;
}

.menu-btn.open span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-btn.open span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.site-nav {
  display: none;
  gap: 2.5rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--field);
}

@media (min-width: 860px) {
  .site-nav {
    display: flex;
  }
  .menu-btn {
    display: none;
  }
}

.header-cta {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.header-cta:hover {
  color: var(--field);
  border-color: var(--field);
}

@media (min-width: 860px) {
  .header-cta {
    font-size: 0.8rem;
  }
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mobile-nav.open {
  display: flex;
}

@media (min-width: 860px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav a {
  text-decoration: none;
  color: var(--ink);
}

/* ---------- Poster hero ---------- */
.poster {
  background: var(--field);
  color: var(--ink);
  padding-top: 0;
  padding-bottom: 4.5rem;
}

.poster-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-block: 1.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.poster-topline .stack {
  text-align: right;
  line-height: 1.4;
}

.poster-logo {
  font-family: "Anton", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.poster-frame {
  position: relative;
  border: 1px solid var(--ink);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  zoom: 0.95;
}

@media (min-width: 900px) {
  .poster-frame {
    flex-direction: row;
  }
}

.poster-visual {
  display: flex;
  flex-shrink: 0;
  border-bottom: 1px solid var(--ink);
}

@media (min-width: 900px) {
  .poster-visual {
    align-items: center;
    border-bottom: none;
    border-right: 1px solid var(--ink);
  }
}

.poster-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

@media (min-width: 900px) {
  .poster-art {
    width: 15rem;
  }
}

.poster-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1);
}

@media (min-width: 900px) {
  .poster-art img {
    transform: scale(1.5);
  }
}

.poster-triangle {
  display: none;
}

@media (min-width: 900px) {
  .poster-triangle {
    display: block;
    grid-column: 2;
    grid-row: 1;
    position: relative;
    width: 5rem;
    border-left: 1px solid var(--ink);
    background: var(--paper);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
  }

  .poster-triangle span {
    position: absolute;
    right: 0.25rem;
    top: 0.25rem;
    writing-mode: vertical-rl;
    white-space: nowrap;
    font-size: 0.7625rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
  }
}

.poster-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

@media (min-width: 900px) {
  .poster-content {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
  }
}

.poster-info {
  grid-column: 1;
  grid-row: 1;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .poster-info {
    max-width: 18rem;
  }
}

.poster-info .facts {
  font-family: "General Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.7;
  letter-spacing: 0.02em;
  margin: 0;
}

.funding-badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--ink);
  color: var(--paper);
  padding: 0.35rem 0.65rem;
  margin: 0;
}

.poster-info .links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.poster-info .links a {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  width: fit-content;
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.poster-info .links a:hover {
  opacity: 0.6;
}

.poster-headline {
  flex: 1;
  padding: 0 1.25rem 0.5rem;
  border-top: 1px solid var(--ink);
  overflow: hidden;
  display: flex;
  align-items: center;
}

@media (min-width: 900px) {
  .poster-headline {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 0 2rem;
  }
}

.poster-headline .poster-brand {
  font-family: "Anton", "Archivo Black", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
  font-size: clamp(2.75rem, 15vw, 12.5rem);
  line-height: 0.86;
}

.poster-footline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--ink);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Section shared ---------- */
section {
  padding-block: 4.5rem;
}

section[id] {
  scroll-margin-top: 5rem;
}

section.bordered {
  border-bottom: 1px solid var(--line-soft);
}

#pakiety {
  padding-block: 1.5rem 4rem;
}

.section-heading {
  max-width: 46rem;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  margin-top: 0.75rem;
  line-height: 1.1;
}

.section-heading p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  max-width: 34rem;
}

/* ---------- Czym jest ---------- */
#czym-jest {
  min-height: 100vh;
  display: flex;
}

#czym-jest .container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 3rem;
}

.czym-grid {
  margin-top: 0;
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .czym-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.czym-copy p {
  font-size: 1rem;
  color: var(--ink);
}

.czym-copy p + p {
  margin-top: 1rem;
}

.czym-links {
  margin-top: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.link-cta:hover {
  color: var(--field);
  border-color: var(--field);
}

.link-cta.primary {
  border: 1px solid var(--ink);
  padding: 0.9rem 1.5rem;
  border-radius: 0;
}

.link-cta.primary:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.stat-list {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
}

.stat-row .label {
  font-weight: 600;
}

.stat-row .value {
  color: var(--field);
  font-weight: 700;
  text-align: right;
  flex-shrink: 0;
}

/* ---------- Dla kogo ---------- */
.audience-grid {
  margin-top: 2.25rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .audience-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.audience-card {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.audience-card h3 {
  font-family: "Anton", sans-serif;
  font-size: 1.3rem;
}

.audience-card p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Pakiety ---------- */
.pricing-grid {
  margin-top: 2.25rem;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pricing-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.pricing-card .index {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--field);
  letter-spacing: 0.1em;
}

.pricing-card h3 {
  margin-top: 1rem;
  font-size: 1.9rem;
}

.pricing-card .price {
  margin-top: 0.6rem;
  font-family: "Anton", sans-serif;
  font-size: 1.4rem;
  color: var(--field);
}

.pricing-card ul {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.pricing-card li {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line-soft);
}

.pricing-card li:first-child {
  border-top: none;
  padding-top: 0;
}

/* ---------- Finansowanie ---------- */
.grant-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.grant-row {
  display: grid;
  gap: 0.4rem 2rem;
  grid-template-columns: 1fr;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line-soft);
}

@media (min-width: 760px) {
  .grant-row {
    grid-template-columns: 15rem 11rem 1fr;
    align-items: baseline;
  }
}

.grant-row .name {
  font-family: "Anton", sans-serif;
  font-size: 1.2rem;
}

.grant-row .amount {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--field);
  text-transform: uppercase;
}

.grant-row .fit {
  font-size: 0.9rem;
  color: var(--muted);
}

.note {
  margin-top: 2rem;
  max-width: 40rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- Zaufanie ---------- */
.trust-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.trust-row {
  display: grid;
  gap: 0.4rem 2rem;
  grid-template-columns: 1fr;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}

@media (min-width: 760px) {
  .trust-row {
    grid-template-columns: 18rem 1fr;
    align-items: baseline;
  }
}

.trust-row .label {
  font-family: "Anton", sans-serif;
  font-size: 1.05rem;
}

.trust-row .fit {
  font-size: 0.9rem;
  color: var(--muted);
}

.trust-row .fit a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.trust-row .fit a:hover {
  color: var(--field);
}

/* ---------- Kontakt ---------- */
.contact-grid {
  margin-top: 3rem;
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-card {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.contact-card h3 {
  font-size: 1.3rem;
  font-family: "Anton", sans-serif;
}

.contact-card .role {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}

.contact-links {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.95rem;
}

.contact-links a {
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s;
}

.contact-links a:hover {
  color: var(--field);
}

.contact-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 24rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-row {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 500px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--muted);
}

input, textarea {
  font-family: "General Sans", sans-serif;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: 0.6rem 0;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
}

textarea {
  border: 1px solid var(--ink);
  padding: 0.9rem 1.1rem;
  resize: vertical;
}

input:focus, textarea:focus {
  border-color: var(--field);
}

.form-hint {
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--muted);
  margin-top: -0.5rem;
}

.btn-submit {
  align-self: flex-start;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 0.95rem 2rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn-submit:hover {
  background: var(--field);
  border-color: var(--field);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-inner a {
  text-decoration: none;
  color: var(--muted);
}

.footer-inner a:hover {
  color: var(--field);
}

/* ---------- Blog listing ---------- */
.page-header {
  padding-block: 3.5rem 1rem;
  border-bottom: 1px solid var(--line);
}

.page-header .eyebrow {
  display: block;
}

.page-header h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  margin-top: 0.75rem;
  line-height: 0.9;
}

.page-header p {
  margin-top: 1.25rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 1.5rem 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.breadcrumb a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--field);
}

.post-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
}

.post-row {
  display: block;
  text-decoration: none;
  color: inherit;
  padding-block: 2.25rem;
  border-bottom: 1px solid var(--line-soft);
}

.post-row .post-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--field);
  font-weight: 700;
}

.post-row .post-title {
  font-family: "Anton", sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.35rem);
  margin-top: 0.6rem;
  line-height: 1.05;
  transition: color 0.2s;
}

.post-row:hover .post-title {
  color: var(--field);
}

.post-row .post-excerpt {
  margin-top: 0.85rem;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-row .post-link {
  margin-top: 1.1rem;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--ink);
}

.post-row-empty {
  padding-block: 2.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line-soft);
}

/* ---------- Article ---------- */
.article-header {
  padding-block: 3rem 0;
}

.article-header .post-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--field);
  font-weight: 700;
}

.article-header h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
  margin-top: 0.75rem;
  line-height: 0.94;
  max-width: 46rem;
}

.article-header .lead {
  margin-top: 1.5rem;
  max-width: 40rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.article {
  max-width: 46rem;
  padding-block: 2.5rem 5rem;
}

.article > * + * {
  margin-top: 1.15rem;
}

.article p {
  font-size: 1rem;
  line-height: 1.75;
}

.article h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  margin-top: 3rem !important;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
  line-height: 1.05;
}

.article h3 {
  font-family: "General Sans", sans-serif;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  font-size: 1.15rem;
  margin-top: 2rem !important;
}

.article ul, .article ol {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 1rem;
  line-height: 1.6;
}

.article a {
  color: var(--field);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article a:hover {
  color: var(--ink);
}

.article strong {
  font-weight: 700;
}

.article .callout {
  border: 1px solid var(--ink);
  padding: 1.75rem;
}

.article .callout p:first-child {
  margin-top: 0;
}

.article .note {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  padding-top: 1.25rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.faq-item {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}

.faq-item h3 {
  margin-top: 0 !important;
  font-size: 1.05rem;
}

.faq-item p {
  margin-top: 0.6rem !important;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-cta {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.article-cta h2 {
  border-top: none;
  padding-top: 0;
  margin-top: 0 !important;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.article-cta-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
