/* Zalataj.pl: warm cream paper, forest green and mustard, serif headings,
   dashed "stitch" borders for the patch motif. */
:root {
  --paper: #fbf6ec;
  --paper-deep: #f3ead8;
  --card: #fffdf8;
  --ink: #23302a;
  --muted: #5f6b63;
  --green: #1f4d3a;
  --green-soft: #2f6b52;
  --mustard: #e0a526;
  --mustard-soft: #f6e2b0;
  --terracotta: #c8643b;
  --line: #e2d6bf;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.55em; color: var(--green); }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 6px; }

/* Header */
.header { position: sticky; top: 0; z-index: 5; background: rgba(251, 246, 236, 0.92); backdrop-filter: blur(8px); border-bottom: 2px dashed var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 1.45rem var(--serif); color: var(--green); text-decoration: none; }
.logo__tld { color: var(--terracotta); }
.logo__patch { width: 36px; height: 36px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--terracotta); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border: 0; border-radius: 999px;
  background: var(--green); color: #fffdf8; font: 600 1rem var(--sans);
  text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 #143326;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { background: var(--green-soft); transform: translateY(-2px); box-shadow: 0 6px 0 #143326; }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #143326; }
.btn:disabled { opacity: .65; cursor: progress; transform: none; }
.btn--small { padding: 9px 18px; font-size: 0.92rem; box-shadow: 0 3px 0 #143326; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--mustard); }

/* Hero */
.hero { padding: 80px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -160px;
  background: var(--mustard-soft); border-radius: 46% 54% 60% 40% / 50% 40% 60% 50%; z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__visual { position: relative; }
.hero__img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(35, 48, 42, 0.14); }
.hero__visual .patchcard { width: min(360px, 85%); margin: -56px -8px 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; color: var(--terracotta); margin-bottom: 12px; }
.hl { background: linear-gradient(transparent 62%, var(--mustard-soft) 62%); padding: 0 4px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 30px; }

.patchcard { background: var(--card); border-radius: var(--radius); padding: 30px 28px 24px;
  transform: rotate(2deg); box-shadow: 0 18px 40px rgba(35, 48, 42, 0.12);
  outline: 2px dashed var(--mustard); outline-offset: -12px;
}
.patchcard__title { font: 600 1.35rem var(--serif); color: var(--green); margin-bottom: 12px; }
.patchcard ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.patchcard li { position: relative; padding-left: 30px; }
.patchcard li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green); color: #fff; font-size: 0.72rem; font-weight: 700;
}
.patchcard__foot { margin: 0; font-size: 0.88rem; color: var(--muted); font-style: italic; }

/* Sections */
.section { padding: 88px 0; }
.section--tint { background: var(--paper-deep); }
.section__head { max-width: 640px; margin-bottom: 36px; }
.twocol { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service { background: var(--card); border: 2px dashed var(--line); border-radius: var(--radius); padding: 30px 26px; transition: border-color .2s, transform .2s; }
.service:hover { border-color: var(--mustard); transform: translateY(-3px); }
.service p { color: var(--muted); margin: 0; }
.service--featured { background: var(--green); border-color: var(--green); }
.service--featured h3 { color: var(--mustard-soft); }
.service--featured p { color: #d7e4dc; }
.service__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--mustard-soft); font-size: 1.5rem; margin-bottom: 18px; }

.audience { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.audience li { background: var(--card); border-radius: 14px; padding: 16px 20px 16px 52px; position: relative; color: var(--muted); }
.audience li::before { content: ""; position: absolute; left: 18px; top: 20px; width: 18px; height: 18px; border-radius: 5px; background: var(--mustard); outline: 1.5px dashed var(--green); outline-offset: -5px; transform: rotate(-8deg); }
.audience b { color: var(--ink); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; border-top: 2px dashed var(--mustard); z-index: -1; }
.timeline li { counter-increment: step; }
.timeline li::before {
  content: counter(step); display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--green); font: 700 1.4rem var(--serif); color: var(--green);
}
.timeline p { color: var(--muted); margin: 0; font-size: 0.97rem; }

.section--quote { padding: 64px 0; background: var(--green); }
.quote { margin: 0 auto; max-width: 820px; text-align: center; }
.quote p { font: italic 500 clamp(1.3rem, 2.6vw, 1.85rem)/1.45 var(--serif); color: var(--paper); margin: 0; }
.quote p::before { content: "„"; color: var(--mustard); }
.quote p::after { content: "”"; color: var(--mustard); }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 4px 22px; }
.faq details[open] { border-color: var(--mustard); }
.faq summary { cursor: pointer; padding: 16px 0; font: 600 1.12rem var(--serif); color: var(--green); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--terracotta); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* Form */
.section--form { background: var(--paper-deep); }
.note { background: var(--card); border-left: 4px solid var(--terracotta); padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: 0.95rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--card); border-radius: 24px; padding: 34px; box-shadow: 0 18px 40px rgba(35, 48, 42, 0.08); outline: 2px dashed var(--line); outline-offset: -12px; }
.field { display: grid; gap: 6px; }
.field span { font-weight: 600; font-size: 0.92rem; }
.field--full, .form__footer, .form__note { grid-column: 1 / -1; }
.form input, .form textarea {
  width: 100%; padding: 13px 16px; border: 2px solid var(--line); border-radius: 12px;
  background: var(--paper); color: var(--ink); font: 1rem var(--sans);
}
.form textarea { resize: vertical; min-height: 150px; }
.form input::placeholder, .form textarea::placeholder { color: #9aa29a; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.form__footer { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.form__status { margin: 0; font-weight: 600; }
.form__status[data-kind="ok"] { color: var(--green-soft); }
.form__status[data-kind="error"] { color: var(--terracotta); }
.form__status[data-kind="pending"] { color: var(--muted); }
.form__note { font-size: 0.82rem; color: var(--muted); margin: 0; }

.footer { padding: 32px 0; border-top: 2px dashed var(--line); color: var(--muted); font-size: 0.92rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; }

.form__captcha { grid-column: 1 / -1; min-height: 65px; }
.field-error { display: block; color: var(--terracotta); font-size: 0.85rem; font-weight: 600; }
.form [aria-invalid] { border-color: var(--terracotta); }

@media (max-width: 960px) {
  .hero__grid, .twocol { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 560px; }
  .services { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 48px 0; }
  .section { padding: 60px 0; }
  .timeline, .form { grid-template-columns: 1fr; }
  .hero__visual .patchcard { width: auto; margin: -24px 8px 0; transform: rotate(1deg); }
  .form { padding: 24px 20px; outline-offset: -8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Privacy policy */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose b { color: var(--ink); }
.prose__meta { font-size: 0.9rem; color: var(--terracotta); font-weight: 600; }
.footer a { color: var(--muted); }
