/* AgroBudzik – strona publiczna.
   Bez zewnętrznych czcionek, skryptów i obrazków spoza domeny (CSP: tylko 'self'). Najpierw telefon.
   Kolory z logo: ciemna zieleń #045A17 → limonka #CBF801. Limonka tylko jako akcent na ciemnym tle
   albo element ozdobny (na jasnym tle ma za mały kontrast dla tekstu). */

:root {
  --ink: #142218;
  --ink-2: #384a3c;
  --muted: #586659;
  --paper: #f5f6f0;
  --surface: #ffffff;
  --line: #e0e4d8;
  --line-strong: #c5cbbb;
  --green: #0f5f1e;
  --green-dark: #0a4a17;
  --green-mid: #1f8707;
  --green-deep: #0f2a17;
  --green-soft: #edf5e6;
  --lime: #8fd80f;
  --amber: #b7860b;
  --amber-soft: #faf0d3;
  --danger: #a3261d;
  --danger-soft: #fbeae7;
  --radius: 6px;
  --wrap: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 var(--font); font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green-mid); outline-offset: 2px; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.eyebrow {
  display: block; margin: 0 0 14px; color: var(--green);
  font-size: .8rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
}
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

/* --- Przyciski --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: var(--radius); border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #861f17; color: #fff; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn-block { display: flex; width: 100%; }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-light:hover { background: var(--green-soft); color: var(--green-deep); }
button.link {
  background: none; border: 0; padding: 0; font: inherit; color: var(--green);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* --- Nagłówek (ciemny, bo logo ma biały napis „Agro”) --- */
.site-header { background: var(--green-deep); border-bottom: 1px solid #1d3d24; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; }
.logo img { display: block; height: 34px; width: auto; }
.header-nav { display: none; gap: 28px; }
.header-nav a { color: #d3decf; text-decoration: none; font-size: .97rem; }
.header-nav a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--lime); }
.site-header :focus-visible, .site-footer :focus-visible, .trust :focus-visible { outline-color: var(--lime); }
@media (min-width: 560px) { .logo img { height: 40px; } .header-inner { min-height: 76px; } }
@media (min-width: 880px) { .header-nav { display: flex; } }
.header-note { display: none; color: #b9c7b8; font-size: .92rem; }
.header-note a { color: #fff; }
@media (min-width: 640px) { .header-note { display: inline; } }

/* --- Komunikaty --- */
.messages { list-style: none; padding: 0; margin: 20px auto 0; max-width: 560px; }
.messages li { padding: 12px 16px; border-radius: var(--radius); background: var(--green-soft); border: 1px solid #cfe0d3; margin-bottom: 8px; }
.messages li.error { background: var(--danger-soft); border-color: #f0c7c1; }
.messages li.warning, .messages li.info { background: var(--amber-soft); border-color: #eedca6; }

/* --- Sekcje strony głównej --- */
.section { padding: 56px 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head p { color: var(--ink-2); margin-top: 14px; }
@media (min-width: 760px) { .section { padding: 88px 0; } }

.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; max-width: 13em; }
.hero .lead { margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .95rem; }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green-mid); }
.hero-existing { margin: 18px 0 0; font-size: .95rem; color: var(--muted); }
@media (min-width: 960px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 72px; }
}

/* Przykładowy wątek SMS */
.thread { margin: 0; }
.thread-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(21, 36, 26, .04), 0 12px 32px -18px rgba(21, 36, 26, .25);
  max-width: 420px; margin: 0 auto;
}
.thread-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.thread-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; flex: 0 0 auto; overflow: hidden;
}
.thread-avatar img { width: 30px; height: 30px; display: block; }
.thread-name { font-weight: 650; line-height: 1.2; }
.thread-sub { color: var(--muted); font-size: .82rem; }
.thread-body { padding: 8px 18px 20px; background: #fbfaf7; }
.thread-date { text-align: center; color: var(--muted); font-size: .78rem; margin: 14px 0 8px; }
.bubble {
  background: #ebe9e2; border-radius: 16px 16px 16px 4px; padding: 10px 14px; max-width: 92%;
  font-size: .94rem; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere;
}
.thread figcaption { max-width: 420px; margin: 12px auto 0; color: var(--muted); font-size: .88rem; text-align: center; }

/* Kroki */
.steps { display: grid; gap: 32px; counter-reset: krok; margin: 0; padding: 0; list-style: none; }
.steps li { border-top: 2px solid var(--green); padding-top: 18px; }
.step-no { display: block; color: var(--green); font-size: .8rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--ink-2); margin: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* Kolumny z listami */
.columns { display: grid; gap: 36px; }
.columns h3 { margin-bottom: 14px; }
.columns .col-note { color: var(--muted); font-size: .95rem; margin-top: 14px; }
@media (min-width: 900px) {
  .columns { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .columns > div { padding: 0 32px; border-left: 1px solid var(--line); }
  .columns > div:first-child { padding-left: 0; border-left: 0; }
}
.list { list-style: none; margin: 0; padding: 0; }
.list li { position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--ink-2); }
.list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--green); }
.list-no li::before { background: none; border-top: 2px solid var(--muted); height: 0; width: 10px; top: .78em; }
h2 + .lead { margin-top: 18px; }
.match-note {
  margin-top: 40px; padding: 18px 20px; background: var(--green-soft); border-left: 3px solid var(--green-mid);
  color: var(--ink-2); max-width: 52em;
}
.match-note p { margin: 0; }

/* Źródła */
.sources-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .sources-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; } }
.source-list { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.source-row { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.source-row:last-child { border-bottom: 0; }
.source-row h3 { font-size: 1rem; margin-bottom: 4px; }
.source-row p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Pas zaufania */
.trust { background: var(--green-deep); color: #e7ece6; padding: 64px 0; }
.trust h2 { color: #fff; margin-bottom: 36px; max-width: 18em; }
.trust-grid { display: grid; gap: 28px; }
.trust h3 { color: #fff; margin-bottom: 8px; }
.trust p { color: #c3cec5; margin: 0; }
.trust-grid > div { border-top: 2px solid var(--lime); padding-top: 18px; }
@media (min-width: 760px) { .trust { padding: 88px 0; } .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* Cena */
.price-box {
  display: grid; gap: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 28px 24px; max-width: 960px;
}
.price-amount { font-size: clamp(3rem, 9vw, 4.25rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-amount span { font-size: .4em; letter-spacing: -0.01em; margin-left: 6px; }
.price-unit { color: var(--muted); margin: 10px 0 0; }
.price-box .list { margin-bottom: 24px; }
.price-fine { color: var(--muted); font-size: .9rem; margin: 14px 0 0; }
@media (min-width: 820px) {
  .price-box { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); padding: 44px; gap: 56px; }
  .price-box > div:first-child { border-right: 1px solid var(--line); padding-right: 40px; }
}

/* Pytania */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 1.05rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--green); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--green); }
.faq details p { color: var(--ink-2); margin: 0 0 20px; max-width: 44em; }
.disclaimer { margin-top: 32px; max-width: 52em; color: var(--muted); font-size: .92rem; }

/* --- Stopka --- */
.site-footer { background: var(--green-deep); color: #c3cec5; padding: 48px 0 32px; font-size: .95rem; }
.footer-inner { display: grid; gap: 28px; }
.footer-brand img { display: block; height: 36px; width: auto; }
.footer-brand p { margin: 14px 0 0; max-width: 26em; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-note { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 32px; padding-top: 20px; font-size: .85rem; color: #9fb0a4; }
.footer-note p { margin: 0; }
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 10px 28px; }
}

/* --- Rejestracja, płatność, moje dane --- */
.flow { max-width: 600px; margin: 0 auto; padding: 32px 16px 64px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px 20px; }
.panel + .panel { margin-top: 16px; }
.panel h1 { font-size: clamp(1.6rem, 5vw, 2rem); margin-bottom: 12px; }
.panel h2 { font-size: 1.3rem; margin-bottom: 12px; }
.panel .intro { color: var(--ink-2); margin-bottom: 24px; }
.panel-danger { border-color: #e8bdb7; }
.panel-center { text-align: center; }
.panel-center .btn { margin-top: 8px; }
@media (min-width: 560px) { .panel { padding: 36px 40px; } .flow { padding-top: 48px; } }

.status-mark {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green); font-size: 1.6rem; font-weight: 700;
}
.status-mark.wait { background: var(--amber-soft); color: #8a6408; }
.status-mark.fail { background: var(--danger-soft); color: var(--danger); }

.progress { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.progress li { border-top: 4px solid var(--line); padding-top: 8px; font-size: .82rem; color: var(--muted); }
.progress li.done { border-color: var(--green); }
.progress li.current { border-color: var(--green); color: var(--ink); font-weight: 650; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 20px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.facts .warn { color: var(--danger); }

.summary-line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 24px;
}
.summary-line b { font-size: 1.35rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

.toggle-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row p { margin: 0; }
.state-on { color: var(--green); font-weight: 650; }
.state-off { color: var(--muted); font-weight: 650; }

/* --- Formularze --- */
form { margin: 0; }
.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.hint { display: block; color: var(--muted); font-size: .9rem; margin: 6px 0 0; }
.field legend + .hint { margin: -2px 0 10px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search],
input[type=date], input:not([type]), select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: 17px/1.3 var(--font); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(36, 86, 58, .18); }
input::placeholder { color: #8b958d; }
.has-error input, .has-error .choice { border-color: var(--danger); }
.error { color: var(--danger); font-size: .92rem; margin: 6px 0 0; }
.form-alert { background: var(--danger-soft); border: 1px solid #f0c7c1; color: #6e1a13; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 20px; }
.form-alert p { margin: 0; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; margin: 0; accent-color: var(--green); flex: 0 0 auto; }

.choices { display: grid; gap: 8px; }
@media (min-width: 480px) { .choices { grid-template-columns: repeat(2, 1fr); } }
.choice {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 14px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); font-weight: 400;
  transition: border-color .15s ease, background-color .15s ease;
}
.choice:hover { border-color: var(--green); }
.choice:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.check, .field > label.check { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; cursor: pointer; margin: 0; }
.check input { margin-top: 3px; }
.consents { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; }
.form-links { color: var(--muted); font-size: .92rem; margin: 0 0 20px; }
.form-actions { margin-top: 8px; }
.form-after { color: var(--muted); font-size: .92rem; margin: 18px 0 0; }
.cf-turnstile { margin: 4px 0 20px; min-height: 65px; }

/* --- Regulamin i polityka prywatności --- */
.page { max-width: 780px; margin: 0 auto; padding: 40px 20px 72px; }
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 28px 22px; }
.prose h1 { font-size: clamp(1.75rem, 5vw, 2.4rem); margin-bottom: 8px; }
.prose h2 { font-size: 1.2rem; margin: 2.2em 0 .7em; letter-spacing: -0.01em; }
.prose ol, .prose ul { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--muted); }
.prose .hint { margin-bottom: 1.5em; }
.prose .box { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 16px 18px; font-size: .95rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0 0 1em; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .prose { padding: 48px 56px; } }
