/* ── ZMIENNE I RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --green:      #3d6b22;
  --green-dark: #2d4f18;
  --gold:       #c8922a;
  --white:      #ffffff;
  --text:       #222222;
  --nav-h:      72px;
  --nav-h-init: 90px;
  --bg:         #f5f7e8;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-top: var(--nav-h-init);
  max-width: 1400px;
  margin: 0 auto;
  transition: padding-top .3s ease;
}
body.scrolled { padding-top: var(--nav-h); }

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h-init);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  box-shadow: 0 1px 0 #eee;
  transition: height .3s ease, box-shadow .3s ease;
}
header.scrolled {
  height: var(--nav-h);
  box-shadow: 0 2px 16px rgba(0,0,0,.12);
}

.logo { display: flex; align-items: center; }
.logo a { display: flex; align-items: center; text-decoration: none; }
.logo a img { height: 58px; width: auto; display: block; transition: height .3s ease; }
header.scrolled .logo a img { height: 48px; }
.logo-certs { display: flex; align-items: center; gap: 8px; margin-left: 14px; }
.logo-certs img { height: 32px; width: auto; }

/* ── NAW ── */
nav { display: flex; align-items: center; gap: 4px; }
nav a {
  text-decoration: none; color: var(--text);
  font-size: .95rem; font-weight: 500;
  padding: 6px 14px; white-space: nowrap;
  position: relative; transition: color .2s;
}
nav a::after {
  content: ''; position: absolute;
  bottom: -2px; left: 14px; right: 14px;
  height: 2px; background: var(--gold);
  border-radius: 2px; width: 0;
  transition: width .3s ease;
}
nav a:hover { color: var(--green); }
nav a:hover::after { width: calc(100% - 28px); }

.nav-sep { width: 1px; height: 20px; background: #ddd; margin: 0 8px; }

.btn-b2b {
  background: var(--green); color: var(--white) !important;
  padding: 7px 20px !important; border-radius: 4px;
  font-weight: 600 !important; font-size: .9rem !important;
  transition: background .2s, transform .15s !important;
}
.btn-b2b::after { display: none !important; }
.btn-b2b:hover { background: var(--green-dark) !important; transform: translateY(-1px); }

/* ── JĘZYK ── */
.lang-switcher { display: flex; align-items: center; gap: 4px; margin-left: 4px; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  font-size: .88rem; font-weight: 500; color: var(--text);
  cursor: pointer; padding: 5px 9px; border-radius: 4px;
  border: 2px solid transparent; background: none;
  transition: background .2s, border-color .2s, color .2s; white-space: nowrap;
}
.lang-btn:hover { background: #f4f4f4; }
.lang-btn.active { border-color: var(--green); color: var(--green); font-weight: 700; }
.lang-btn svg { flex-shrink: 0; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.lang-divider { color: #ccc; font-size: .9rem; user-select: none; }

/* ── HAMBURGER ── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ── MOBILE ── */
@media (max-width: 860px) {
  header { padding: 0 20px; }
  .hamburger { display: flex; }
  nav {
    display: none; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--white); padding: 12px 20px 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
  }
  nav.open { display: flex; }
  nav a { width: 100%; padding: 13px 4px; border-radius: 0; border-bottom: 1px solid #f0f0f0; }
  nav a::after { bottom: 0; left: 0; right: 0; }
  nav a:hover::after { width: 100%; }
  .nav-sep { display: none; }
  .btn-b2b { margin-top: 8px; }
  .lang-switcher { padding: 10px 0 4px; }
}

/* ── STOPKA ── */
footer {
  background: var(--green-dark); color: rgba(255,255,255,.75);
  padding: 48px 6% 0; margin-top: 60px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img { height: 44px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .9; }
.footer-brand p { font-size: .85rem; line-height: 1.75; max-width: 280px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; background: rgba(255,255,255,.1);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.footer-social a:hover { background: var(--gold); }
.footer-col h4 { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; color: var(--gold); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .87rem; color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-col address { font-style: normal; font-size: .87rem; line-height: 1.85; color: rgba(255,255,255,.7); }
.footer-col address strong { display: block; color: var(--white); margin-bottom: 4px; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: .78rem; color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.45); text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: var(--white); }
.footer-bottom-links { display: flex; gap: 20px; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 500px)  { .footer-inner { grid-template-columns: 1fr; } }

/* ── COOKIES ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--green-dark); color: rgba(255,255,255,.85);
  padding: 16px 5%; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
  transform: translateY(110%); transition: transform .4s ease;
}
#cookie-banner.visible { transform: translateY(0); }
.cookie-text { flex: 1; min-width: 260px; font-size: .83rem; line-height: 1.6; }
.cookie-text strong { display: block; color: var(--white); font-size: .9rem; margin-bottom: 4px; }
.cookie-text a { color: var(--gold); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.btn-cookie { padding: .55em 1.4em; border-radius: 30px; font-size: .85rem; font-weight: 700; font-family: inherit; cursor: pointer; border: none; transition: background .2s, transform .15s; }
.btn-cookie:hover { transform: translateY(-1px); }
.btn-cookie-accept { background: var(--gold); color: var(--white); }
.btn-cookie-accept:hover { background: #a87420; }
.btn-cookie-necessary { background: rgba(255,255,255,.12); color: var(--white); border: 1px solid rgba(255,255,255,.25) !important; }
.btn-cookie-necessary:hover { background: rgba(255,255,255,.2); }

/* ── KOMUNIKATY FORMULARZA ── */
.form-alert {
  padding: 14px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: .9rem;
  font-weight: 600;
}
.form-alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
