/* xFarm × HS Farm — style w duchu marki xFarm (Montserrat, zieleń #608E63, granat #001621) */

:root {
  --brand:      #608E63;   /* zieleń xFarm */
  --brand-dark: #4f7a52;   /* hover */
  --brand-tint: rgba(96, 142, 99, 0.10);
  --ink:        #001621;   /* nagłówki (granat) */
  --text:       #333333;   /* tekst podstawowy */
  --muted:      #6b7a7c;   /* tekst drugorzędny */
  --surface:    #eef3f6;   /* jasne tło kart/sekcji */
  --surface-2:  #f7fafb;
  --border:     #e3e8ea;
  --radius:     12px;
  --radius-btn: 9px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); }

.container { max-width: 74rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
main { flex: 1 0 auto; }

/* --- Nagłówek ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.1rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--ink); text-transform: none; }
.brand .dot { color: var(--brand); font-weight: 800; margin-right: 0.15rem; }
.main-nav { display: flex; align-items: center; gap: 1.75rem; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.main-nav a:hover { color: var(--brand); }
.locale-switch { display: inline-flex; gap: 0.25rem; font-size: 0.8rem; font-weight: 600; }
.locale-switch a { padding: 0.2rem 0.55rem; border-radius: var(--radius-btn); color: var(--muted); }
.locale-switch a.active { background: var(--brand); color: #fff; }

/* --- Przyciski ------------------------------------------------------------ */
.btn {
  display: inline-block; border-radius: var(--radius-btn); padding: 0.8rem 1.9rem;
  font-size: 0.9rem; font-weight: 600; cursor: pointer; border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline { border-color: var(--border); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, #6f9d70 0%, var(--brand) 45%, #486e4b 100%);
  color: #fff;
}
.hero .container { padding-top: 6rem; padding-bottom: 6rem; text-align: center; }
.eyebrow { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.85); }
.hero h1 { color: #fff; }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; margin: 1rem 0 0; }
.hero p.lead { max-width: 44rem; margin: 1.4rem auto 0; font-size: 1.15rem; color: rgba(255,255,255,0.92); }
.hero .actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero .btn-primary { background: #fff; color: var(--brand-dark); border-color: #fff; }
.hero .btn-primary:hover { background: #f0f0f0; border-color: #f0f0f0; }
.hero .btn-outline { background: transparent; border-color: rgba(255,255,255,0.7); color: #fff; }
.hero .btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }

/* --- Sekcje --------------------------------------------------------------- */
.section { padding: 4rem 0; }
.section h1 { color: var(--ink); }
.section h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.section .head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.lead { font-size: 1.05rem; color: var(--muted); }
.link-more { font-size: 0.9rem; font-weight: 600; color: var(--brand); }
.link-more:hover { color: var(--brand-dark); }

/* --- Siatki --------------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 640px) { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* --- Karty ---------------------------------------------------------------- */
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: #fff;
  transition: box-shadow .18s, transform .18s;
}
.card:hover { box-shadow: 0 12px 30px rgba(0,22,33,0.09); transform: translateY(-2px); }
.card .thumb { aspect-ratio: 4 / 3; background: var(--surface); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.card .thumb.empty { color: var(--brand); font-weight: 700; letter-spacing: .1em; }
.card .body { padding: 1.3rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.card h3 { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.card .desc { font-size: 0.9rem; color: var(--muted); margin: 0; flex: 1; }
.card .price { font-size: 0.95rem; font-weight: 700; color: var(--brand); margin-top: 0.3rem; }
.card .meta { font-size: 0.78rem; color: var(--muted); }

.badge { display: inline-block; width: fit-content; font-size: 0.68rem; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--brand-tint); color: var(--brand-dark); text-transform: uppercase; letter-spacing: .03em; }
.badge.gray { background: var(--surface); color: var(--muted); }

/* --- Feature / staty ------------------------------------------------------ */
.feature { background: var(--surface); border-radius: var(--radius); padding: 1.75rem; text-align: left; }
.feature h3 { margin: 0; font-weight: 700; color: var(--ink); }
.feature p { margin: 0.6rem 0 0; font-size: 0.9rem; color: var(--muted); }

/* --- Filtry --------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.filter-btn {
  padding: 0.5rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--border);
  background: #fff; font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--ink); cursor: pointer;
  transition: all .15s;
}
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* --- Strona szczegółów ---------------------------------------------------- */
.detail { padding: 3rem 0; }
.detail .layout { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .detail .layout { grid-template-columns: 1fr 1.3fr; align-items: start; } }
.detail .figure { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 2rem; text-align: center; }
.detail .figure img { max-width: 100%; height: auto; }
.detail h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.prose { color: var(--text); }
.prose h2 { font-size: 1.3rem; color: var(--ink); font-weight: 600; margin: 1.75rem 0 0.5rem; }
.prose h3 { font-size: 1.1rem; color: var(--ink); font-weight: 600; margin: 1.35rem 0 0.5rem; }
.prose p { margin: 0.8rem 0; }
.prose ul { margin: 0.8rem 0; padding-left: 1.3rem; }
.prose li { margin: 0.3rem 0; }

.specs { width: 100%; border-collapse: collapse; margin-top: 0.5rem; font-size: 0.9rem; }
.specs td { border-top: 1px solid var(--border); padding: 0.6rem 0.25rem; vertical-align: top; }
.specs td:first-child { color: var(--muted); width: 45%; }
.specs td:last-child { color: var(--ink); font-weight: 500; }

.notice { background: #fff8e6; border: 1px solid #f3d98a; color: #7a5a00; font-size: 0.85rem; padding: 0.8rem 1rem; border-radius: var(--radius); margin: 1rem 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }

/* --- Formularze ----------------------------------------------------------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.7rem 0.85rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-btn); font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.form-msg { margin-top: 0.85rem; font-size: 0.9rem; padding: 0.7rem 0.9rem; border-radius: var(--radius-btn); }
.form-msg.ok { background: var(--brand-tint); color: var(--brand-dark); }
.form-msg.err { background: #fef2f2; color: #b91c1c; }

/* --- Konfigurator --------------------------------------------------------- */
.steps { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0; }
.step-chip { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 600; color: var(--muted); padding: 0.35rem 0.7rem; border-radius: 999px; cursor: pointer; }
.step-chip .num { width: 1.5rem; height: 1.5rem; border-radius: 999px; background: var(--surface); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.78rem; }
.step-chip.active { color: var(--brand-dark); }
.step-chip.active .num { background: var(--brand); color: #fff; }
.step-chip.done .num { background: var(--brand-tint); color: var(--brand-dark); }

.select-grid { display: grid; gap: 0.85rem; grid-template-columns: 1fr; margin-top: 1.25rem; }
@media (min-width: 640px) { .select-grid { grid-template-columns: repeat(2, 1fr); } }
.select-card {
  text-align: left; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.1rem; background: #fff; cursor: pointer; position: relative; font: inherit;
  transition: border-color .15s, background .15s;
}
.select-card:hover { border-color: var(--brand); }
.select-card.selected { border-color: var(--brand); background: var(--brand-tint); }
.select-card .t { font-weight: 700; color: var(--ink); }
.select-card .d { font-size: 0.83rem; color: var(--muted); margin-top: 0.25rem; }
.select-card .p { font-size: 0.83rem; font-weight: 700; color: var(--brand); margin-top: 0.45rem; }
.select-card .check { position: absolute; top: 0.7rem; right: 0.8rem; color: var(--brand); font-weight: 800; opacity: 0; }
.select-card.selected .check { opacity: 1; }

.summary-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.summary-line { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.summary-line:last-child { border-bottom: 0; }
.total-box { background: var(--brand-tint); border-radius: var(--radius); padding: 1.25rem; margin-top: 1rem; }
.total-box .row { display: flex; justify-content: space-between; align-items: center; }
.total-box .grand { font-size: 1.4rem; font-weight: 800; color: var(--brand-dark); }
.muted { color: var(--muted); font-size: 0.8rem; }

.wizard-nav { display: flex; justify-content: space-between; margin-top: 2rem; gap: 1rem; }
.hidden { display: none !important; }

/* --- Stopka --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface-2); margin-top: 5rem; }
.site-footer .top { display: flex; flex-direction: column; gap: 1.5rem; padding: 3rem 0; }
@media (min-width: 768px) { .site-footer .top { flex-direction: row; align-items: flex-start; justify-content: space-between; } }
.site-footer .brand-name { font-weight: 800; color: var(--ink); margin: 0; }
.site-footer .tagline { max-width: 26rem; font-size: 0.9rem; color: var(--muted); margin: 0.6rem 0 0; }
.site-footer nav { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.site-footer nav a:hover { color: var(--brand); }
.site-footer .copy { border-top: 1px solid var(--border); text-align: center; font-size: 0.78rem; color: var(--muted); padding: 1.25rem 0; }

/* --- Blog ----------------------------------------------------------------- */
.article-meta { font-size: 0.78rem; color: var(--brand); font-weight: 600; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }

/* --- Druk (oferta PDF przez drukarkę) ------------------------------------ */
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
}
