/* Layout: zdjęcie lotnicze pól wychodzące poza siatkę w prawo, naprzemienne rzędy zdjęcie/tekst
   dla rodzajów gruntów, prawdziwa mapa działek, formularz na końcu.
   Jeden jasny motyw pod logo zaprojektowane na białe tło; kolory z logo. */
:root {
  --paper: #F3F2EC;
  --surface: #FFFFFF;
  --ink: #232428;
  --muted: #5C5E63;
  --line: #DAD9D0;
  --char: #3A3B40;
  --char-ink: #F2F1EC;
  --char-muted: #B5B6AE;
  --green: #6AAB3E;
  --green-deep: #3D7821;
  --green-wash: #E8EEDD;
  --orange: #E8732C;
  --placeholder: #A0560E;
  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; line-height: 1.04; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; font-stretch: 78%; letter-spacing: -0.012em; }
h3 { font-size: 1.45rem; font-weight: 700; font-stretch: 88%; }
p { margin: 0; }
.lede { color: var(--muted); max-width: 58ch; font-size: 1.1rem; }
.num { font-variant-numeric: tabular-nums; }
.ph { color: var(--placeholder); border-bottom: 1px dashed currentColor; }
.tlink { color: var(--green-deep); font-weight: 600; text-underline-offset: 3px; }
figure { margin: 0; }
figcaption { font-size: 0.82rem; color: var(--muted); font-style: italic; margin-top: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 1rem/1 var(--f-body); padding: 15px 24px; border-radius: 3px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-go { background: var(--green-deep); color: #FFFFFF; }
.btn-go:hover { background: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--surface); }
.btn-sm { padding: 11px 16px; font-size: 0.92rem; }
.btn .arr { font-family: var(--f-display); font-weight: 700; }

/* Header */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 28px; padding-block: 10px; }
.logo { line-height: 0; flex: none; }
.logo img { height: 42px; width: auto; }
nav.main { display: flex; gap: 22px; margin-left: auto; font-size: 0.95rem; }
nav.main a { text-decoration: none; color: var(--muted); }
nav.main a:hover { color: var(--ink); }
.tel { font-weight: 600; white-space: nowrap; }
@media (max-width: 1020px) { nav.main { display: none; } header.top .btn { margin-left: auto; } }
@media (max-width: 560px) { .tel { display: none; } header.top .btn { margin-left: auto; } .logo img { height: 32px; } }

/* Hero */
.hero { background: var(--surface); overflow-x: clip; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: stretch; }
.hero-copy { display: grid; gap: 24px; align-content: center; padding-block: 64px 72px; padding-right: 56px; min-width: 0; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.7rem); font-weight: 900; font-stretch: 68%; letter-spacing: -0.018em; line-height: 0.96; }
.hero h1 span { display: block; font-weight: 500; font-style: italic; font-stretch: 75%; color: var(--green-deep); }
.hero-copy .lede { font-size: 1.12rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { position: relative; margin-right: calc(50% - 50vw); min-height: 600px; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.example {
  position: absolute; left: -36px; bottom: 48px; background: var(--surface); padding: 18px 22px 16px;
  box-shadow: 0 18px 40px -18px rgba(20, 24, 16, 0.45); max-width: 300px; display: grid; gap: 6px;
}
.example .k { font-size: 0.8rem; color: var(--muted); }
.example .v { font-family: var(--f-display); font-stretch: 75%; font-weight: 800; font-size: 1.6rem; line-height: 1.05; }
.example .v small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.example .r { border-top: 1px solid var(--line); padding-top: 8px; font-size: 0.92rem; }
.example .r b { color: var(--green-deep); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { padding: 36px 0 32px; }
  .hero-photo { margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); min-height: 0; aspect-ratio: 4 / 3; max-width: none; }
  .example { left: 16px; bottom: 16px; right: auto; max-width: calc(100% - 32px); }
}

.facts { border-block: 1px solid var(--line); background: var(--paper); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts div { padding-block: 22px; padding-right: 20px; display: flex; gap: 14px; align-items: baseline; }
.facts div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.facts b { font-family: var(--f-display); font-weight: 800; font-stretch: 72%; font-size: 2.2rem; line-height: 1; white-space: nowrap; }
.facts span { font-size: 0.92rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 960px) {
  .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .facts .wrap { grid-template-columns: 1fr; }
  .facts div { padding-block: 14px; }
  .facts div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}

.sec { padding-block: 96px; }
.sec-head { display: grid; gap: 16px; margin-bottom: 44px; max-width: 760px; }

/* Skup czy pośrednictwo */
.roads { background: var(--char); color: var(--char-ink); }
.roads .lede { color: var(--char-muted); }
.compare-scroll { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; min-width: 660px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 22px; border-bottom: 1px solid #55565B; }
.compare thead th { font-family: var(--f-display); font-stretch: 78%; font-size: 1.8rem; font-weight: 800; border-bottom: 2px solid var(--char-ink); padding-bottom: 14px; }
.compare thead th em { display: block; font-style: italic; font-weight: 500; font-size: 1rem; color: var(--green); margin-bottom: 2px; }
.compare tbody th { font-weight: 500; color: var(--char-muted); width: 19%; font-size: 0.95rem; }
.compare td { width: 40.5%; }
.roads-foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.roads-foot p { color: var(--char-muted); }
.roads .btn-go { background: var(--green); color: var(--ink); }
.roads .btn-go:hover { background: var(--char-ink); }

/* Co kupujemy */
.kinds { display: grid; gap: 88px; }
.kind { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 48px; align-items: center; }
.kind figure { grid-column: 1 / span 7; }
.kind figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.kind .txt { grid-column: 8 / span 5; display: grid; gap: 14px; }
.kind.flip figure { grid-column: 6 / span 7; grid-row: 1; }
.kind.flip .txt { grid-column: 1 / span 5; grid-row: 1; }
.kind .txt p { color: var(--muted); }
.kind .terms { font-size: 0.9rem; color: var(--ink); border-top: 1px solid var(--line); padding-top: 12px; }
.kind .terms b { font-weight: 600; }
.kind.duo figure { grid-column: 1 / span 5; }
.kind.duo figure img { aspect-ratio: 4 / 5; }
.kind.duo .txt { grid-column: 6 / span 7; gap: 40px; }
.kind.duo .txt > div { display: grid; gap: 12px; }
.kind.duo .txt > div + div { border-top: 1px solid var(--line); padding-top: 36px; }
@media (max-width: 860px) {
  .kinds { gap: 56px; }
  .kind, .kind.flip, .kind.duo { grid-template-columns: 1fr; gap: 20px; }
  .kind figure, .kind .txt, .kind.flip figure, .kind.flip .txt, .kind.duo figure, .kind.duo .txt { grid-column: 1; grid-row: auto; }
  .kind.duo figure img { aspect-ratio: 3 / 2; }
}

/* Co wpływa na cenę */
.factors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 2px solid var(--ink); }
.factor { padding: 22px 28px 26px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.factor:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.factor dt { font-weight: 600; font-size: 1.05rem; }
.factor dd { margin: 0; color: var(--muted); font-size: 0.96rem; }
@media (max-width: 860px) {
  .factors { grid-template-columns: 1fr; }
  .factor, .factor:not(:nth-child(3n+1)) { padding: 18px 0; border-left: 0; }
}

/* Partner */
.partner { background: var(--green-wash); }
.partner .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.partner .sec-head { margin-bottom: 0; }
.plinks { display: grid; border-top: 2px solid var(--ink); }
.plinks a { display: grid; grid-template-columns: 1fr auto; gap: 2px 18px; padding: 18px 0; border-bottom: 1px solid #C9D2BB; text-decoration: none; }
.plinks b { font-weight: 600; font-size: 1.05rem; }
.plinks span { color: var(--muted); font-size: 0.95rem; }
.plinks i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; color: var(--green-deep); transition: transform .15s; }
.plinks a:hover b { color: var(--green-deep); }
.plinks a:hover i { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .plinks i { transition: none; } }
@media (max-width: 860px) { .partner .wrap { grid-template-columns: 1fr; gap: 28px; } }

/* Proces */
ol.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: s; border-top: 2px solid var(--ink); }
ol.steps li { counter-increment: s; padding: 20px 22px 0 0; display: grid; gap: 8px; align-content: start; }
ol.steps li + li { padding-left: 22px; border-left: 1px solid var(--line); }
ol.steps li::before { content: counter(s); font-family: var(--f-display); font-weight: 900; font-stretch: 68%; font-size: 3rem; line-height: 1; color: var(--green); }
ol.steps h3 { font-size: 1.12rem; }
ol.steps p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 960px) {
  ol.steps { grid-template-columns: 1fr; }
  ol.steps li, ol.steps li + li { grid-template-columns: 56px 1fr; column-gap: 14px; padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  ol.steps li::before { grid-row: span 2; }
}

/* O nas + FAQ */
.about .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.about-body { display: grid; gap: 16px; color: var(--muted); align-content: start; }
.about-body strong { color: var(--ink); }
.reg { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; border-top: 1px solid var(--line); padding-top: 16px; margin: 4px 0 0; font-size: 0.95rem; }
.reg dt { color: var(--muted); }
.reg dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.faq { display: grid; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 44px 18px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-family: var(--f-display); font-size: 1.9rem; font-weight: 500; color: var(--green-deep); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--muted); }
.faq-title { margin-bottom: 24px; }
@media (max-width: 860px) { .about .wrap { grid-template-columns: 1fr; gap: 56px; } }

/* Formularz */
.valuation { background: var(--surface); border-top: 1px solid var(--line); }
.valuation .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.contact-card { display: grid; gap: 20px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); }
.contact-lines { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.contact-lines div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; }
.contact-lines .k { color: var(--muted); font-size: 0.92rem; }
.contact-lines .v { user-select: all; font-weight: 500; }
@media (max-width: 900px) { .valuation .wrap { grid-template-columns: 1fr; gap: 36px; } .contact-card { position: static; } }

footer { background: var(--char); color: var(--char-ink); }
footer .wrap { padding-block: 52px 40px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; font-size: 0.93rem; }
footer h4 { margin: 0 0 8px; font-family: var(--f-display); font-stretch: 85%; font-size: 1.05rem; font-weight: 700; }
footer p, footer address { color: var(--char-muted); font-style: normal; }
footer .legal { grid-column: 1 / -1; border-top: 1px solid #55565B; padding-top: 20px; font-size: 0.82rem; }
footer .ph { color: #E8B26A; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } }

/* Pasek administratora WordPressa (tylko dla zalogowanych) */
.admin-bar header.top { top: 32px; }
@media (max-width: 782px) { .admin-bar header.top { top: 46px; } }
.contact-lines a, header.top a.tel, footer a { text-decoration: none; }
.contact-lines a:hover, header.top a.tel:hover, footer a:hover { text-decoration: underline; }
