/* ===========================================================
   FreshTrade — arkusz stylów
   Paleta: stonowana zieleń produce + grafit, wysoki kontrast.
   =========================================================== */

:root {
  --green-900: #163a22;
  --green-800: #1f5130;
  --green-700: #2f6b3c;
  --green-600: #3a7a44;
  --green-500: #5a9c46;
  --green-100: #e3efe1;
  --green-50:  #f1f7ef;

  --ink:       #1b211d;
  --ink-soft:  #44504a;
  --muted:     #6b7771;
  --line:      #e1e6e1;
  --bg:        #ffffff;
  --bg-alt:    #f6f8f4;
  --card:      #ffffff;

  --accent:    var(--green-700);
  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 1px 2px rgba(22,58,34,.05), 0 8px 24px rgba(22,58,34,.06);
  --shadow-sm: 0 1px 2px rgba(22,58,34,.06);
  --container:  1140px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--green-700);
  margin: 0 0 .6rem;
}
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  justify-content: center;
  padding: .85em 1.4em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: .65em 1.05em; font-size: .9rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--green-700); color: #fff; }
.btn--primary:hover { background: var(--green-800); }

.btn--outline { background: transparent; color: var(--green-800); border-color: var(--green-700); }
.btn--outline:hover { background: var(--green-50); }

.btn--ghost { background: var(--green-50); color: var(--green-800); border-color: var(--green-100); }
.btn--ghost:hover { background: var(--green-100); }

.btn--light { background: #fff; color: var(--green-800); }
.btn--light:hover { background: #f0f0f0; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); }

.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: .4em; }
.link-arrow::after { content: "→"; transition: transform .15s ease; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--green-900);
  color: #d8e6d6;
  font-size: .85rem;
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar__contacts { display: flex; align-items: center; gap: 10px; }
.topbar__link { color: #fff; font-weight: 500; }
.topbar__sep { opacity: .5; }

/* ---------- Header / nav ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand:hover { text-decoration: none; }
.brand__mark { display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--green-50); border-radius: 11px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 1.18rem; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.brand__text em { font-style: normal; font-size: .78rem; color: var(--muted); }

.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--ink-soft); font-weight: 500; font-size: .96rem;
  padding: .5em .8em; border-radius: 8px;
}
.nav a:hover { color: var(--green-800); background: var(--green-50); text-decoration: none; }

.header__actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 88% -8%, var(--green-50), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--line);
}
.hero__inner { display: grid; grid-template-columns: 1.4fr .9fr; gap: 48px; align-items: center; padding: 72px 24px 76px; }
.hero h1 { margin-bottom: .15em; }
.hero__location { font-size: 1.35rem; font-weight: 600; color: var(--green-700); margin: 0 0 1rem; }
.hero__lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 36ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 1.8rem; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.hero__facts li { font-size: .95rem; color: var(--ink-soft); }
.hero__facts strong { color: var(--green-800); font-weight: 700; }

.hero__card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.hero__card-title { font-size: 1.25rem; }
.hero__card-text { font-size: .96rem; color: var(--ink-soft); }
.hero__card-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 8px; }
.hero__card-list li a { font-weight: 600; }

/* ---------- Sekcje ---------- */
.section { padding: 76px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 640px; margin: 0 0 44px; }
.section__sub { font-size: 1.08rem; color: var(--ink-soft); margin: 0; }

.grid { display: grid; gap: 48px; }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--middle { align-items: center; }

/* ---------- Stat list (O firmie) ---------- */
.stat-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-list li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-sm);
}
.stat-list__num { font-size: 1.5rem; font-weight: 800; color: var(--green-700); letter-spacing: -.02em; }
.stat-list__label { font-size: .92rem; color: var(--muted); }

/* ---------- Kroki ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; box-shadow: var(--shadow-sm); position: relative;
}
.step__num {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  background: var(--green-700); color: #fff; border-radius: 50%; font-weight: 700; margin-bottom: 14px;
}
.step h3 { font-size: 1.02rem; margin-bottom: .35em; }
.step p { font-size: .9rem; color: var(--ink-soft); margin: 0; }

/* ---------- Karty / kafle ---------- */
.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
}
.card__icon { font-size: 2rem; display: block; margin-bottom: 14px; }
.card h3 { margin-bottom: .4em; }
.card p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 14px; text-align: center; box-shadow: var(--shadow-sm);
}
.tile span { font-size: 1.9rem; display: block; margin-bottom: 10px; }
.tile h3 { font-size: 1rem; margin: 0; }

.needs { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.needs li {
  background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-100);
  padding: .5em 1em; border-radius: 50px; font-size: .92rem; font-weight: 500;
}

/* ---------- Notice ---------- */
.notice {
  margin-top: 32px; background: var(--green-50); border: 1px solid var(--green-100);
  border-radius: var(--radius); padding: 22px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.notice p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.notice strong { color: var(--ink); }

/* ---------- Mapa ---------- */
.map { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); }
.map__inner { position: relative; background: var(--green-50); border-radius: 10px; padding: 24px; overflow: hidden; }
.map__svg { width: 100%; height: auto; display: block; }
.map__pin {
  position: absolute; z-index: 2; background: #fff; border: 1px solid var(--green-700);
  color: var(--green-800); font-size: .82rem; font-weight: 600; padding: 3px 9px; border-radius: 50px;
  box-shadow: var(--shadow-sm);
}
.map__pin--wroclaw { top: 28%; left: 56%; }
.map__pin--olawa { top: 46%; left: 49%; }
.map__pin--olesnica  { top: 62%; left: 41%; }
.map__caption { text-align: center; font-size: .82rem; color: var(--muted); margin: 12px 0 4px; }

.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green-700); font-weight: 800;
  width: 20px; height: 20px;
}

/* ---------- Blog ---------- */
.post {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.post__tag {
  align-self: flex-start; background: var(--green-100); color: var(--green-800);
  font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 10px; border-radius: 6px; margin-bottom: 14px;
}
.post h3 { font-size: 1.08rem; margin-bottom: .5em; }
.post h3 a { color: var(--ink); }
.post h3 a:hover { color: var(--green-700); }
.post p { font-size: .93rem; color: var(--ink-soft); flex: 1; }
.post__date { font-size: .82rem; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 2px; }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list__label { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.contact-list li a, .contact-list li span:last-child { font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.contact-list li a:hover { color: var(--green-700); }

.hours { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; }
.hours p { margin: 0 0 .35rem; font-size: .95rem; color: var(--ink-soft); }
.hours p:last-child { margin: 0; }
.hours strong { color: var(--ink); }

/* ---------- Formularz ---------- */
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form__title { font-size: 1.2rem; margin-bottom: 1.2rem; }
.form__row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.form input, .form textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .7em .85em; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px var(--green-100);
}
.form textarea { resize: vertical; }
.form__check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; font-weight: 400; color: var(--muted); margin: 4px 0 18px; line-height: 1.5; }
.form__check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--green-700); flex-shrink: 0; }
.form__status { font-size: .92rem; margin: 14px 0 0; min-height: 1.2em; }
.form__status.is-ok { color: var(--green-700); font-weight: 600; }
.form__status.is-err { color: #b5453a; font-weight: 600; }
input.is-invalid, textarea.is-invalid { border-color: #d8857c; }

/* ---------- Pasek B2B ---------- */
.b2b-band { background: linear-gradient(135deg, var(--green-800), var(--green-900)); color: #fff; }
.b2b-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 50px 24px; flex-wrap: wrap; }
.b2b-band h2 { color: #fff; margin-bottom: .35em; }
.b2b-band p { color: #d8e6d6; margin: 0; max-width: 52ch; }
.b2b-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Stopka ---------- */
.footer { background: var(--green-900); color: #c6d6c4; font-size: .94rem; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding: 56px 24px 40px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 { color: #fff; font-size: .95rem; margin: 0 0 6px; }
.footer__col a { color: #c6d6c4; }
.footer__col a:hover { color: #fff; }
.brand--footer .brand__text strong { color: #fff; }
.brand--footer .brand__text em { color: #9ab298; }
.footer__desc { color: #9ab298; font-size: .9rem; max-width: 32ch; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; gap: 16px; flex-wrap: wrap; }
.footer__bottom p { margin: 0; font-size: .86rem; color: #9ab298; }
.footer__legal { display: flex; gap: 18px; }
.footer__legal a { color: #9ab298; font-size: .86rem; }
.footer__legal a:hover { color: #fff; }

/* ===========================================================
   Strefa B2B (b2b.html)
   =========================================================== */
.auth { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.auth__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 56px 24px 72px; align-items: start; }
.auth__intro { grid-column: 1 / -1; max-width: 680px; margin-bottom: 8px; }
.auth__intro h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.auth__intro p { color: var(--ink-soft); font-size: 1.05rem; }

.auth-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.auth-card h2 { font-size: 1.35rem; }
.auth-card > p { color: var(--ink-soft); font-size: .96rem; }

.info-banner {
  background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-900);
  border-radius: var(--radius-sm); padding: 14px 16px; font-size: .9rem; margin-bottom: 22px;
}
.info-banner strong { display: block; margin-bottom: 2px; }

.auth-meta { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 18px; flex-wrap: wrap; gap: 8px; }
.auth-meta a { font-size: .9rem; font-weight: 600; }

.auth-aside { font-size: .95rem; color: var(--ink-soft); }
.auth-aside ol { padding-left: 1.2em; margin: 0 0 1rem; display: grid; gap: 8px; }
.auth-aside .note { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .9rem; }

.back-link { display: inline-flex; align-items: center; gap: .4em; font-size: .92rem; font-weight: 600; margin-top: 20px; }

/* ===========================================================
   Responsywność
   =========================================================== */
@media (max-width: 980px) {
  .auth__inner { grid-template-columns: 1fr; }
  .hero__inner { grid-template-columns: 1fr; gap: 36px; padding: 56px 24px; }
  .grid--2 { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: 1fr 1fr; }
  .cards--5 { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .topbar__item { display: none; }
  .topbar__inner { justify-content: center; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    transform: translateY(-120%); transition: transform .25s ease; box-shadow: var(--shadow);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: .9em .6em; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-flex; }
  .header__actions .btn--sm { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .steps { grid-template-columns: 1fr; }
  .cards--3, .cards--5 { grid-template-columns: 1fr; }
  .stat-list { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 auto; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
}
