:root {
  /* ── Brand palette ── */
  --c-dark:         #1C2B1E;
  --c-mech:         #3D6B41;
  --c-sage:         #7FA882;
  --c-mist:         #E8EDE5;
  --c-paper:        #F4F5F0;
  --c-alarm:        #C8712A;   /* dekoracyjnie: obramowania, ikony, SVG */
  --c-alarm-hover:  #A85C22;   /* interaktywne: tło przycisku (spełnia WCAG AA) */
  --c-alarm-dark:   #8A4D1A;   /* tekst na jasnym tle, hover przycisku */
  --c-white:        #FFFFFF;
  --c-text:         #1C2B1E;
  --c-muted:        #5F6B60;
  --c-border:       #D4DAD1;
  --c-mech-tint:    #EAF3DE;

  /* ── Semantic aliases ── */
  --surface-page:       var(--c-paper);
  --surface-card:       var(--c-white);
  --surface-dark:       var(--c-dark);
  --surface-mist:       var(--c-mist);
  --text-strong:        var(--c-dark);
  --text-body:          var(--c-muted);
  --text-on-dark:       var(--c-mist);
  --text-on-dark-muted: var(--c-sage);
  --text-link:          var(--c-mech);
  --text-label:         var(--c-mech);
  --action-primary:        var(--c-mech);
  --action-primary-hover:  var(--c-dark);
  --action-alarm:          var(--c-alarm);
  --action-alarm-hover:    var(--c-alarm-hover);

  /* ── Typography ── */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;

  /* ── Spacing ── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* ── Radius ── */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* ── Shadows ── */
  --shadow-card: 0 1px 2px rgba(28, 43, 30, 0.04);
  --shadow-lift: 0 8px 24px rgba(28, 43, 30, 0.08);
  --border-hairline: 1px solid var(--c-border);

  /* ── Motion ── */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.1s;
  --dur-base: 0.2s;

  /* ── Layout ── */
  --container-max: 1100px;
  --container-pad: 1.5rem;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-paper);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography ── */
.t-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-mech);
}
.t-display {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--c-dark);
}
.t-h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--c-dark);
}
.t-h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--c-dark);
}
.t-body { font-size: 1rem; line-height: 1.75; color: var(--c-muted); }
.t-small { font-size: .875rem; color: var(--c-muted); }

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section--dark { background: var(--c-dark); }
.section--mist { background: var(--c-mist); }
.section--white { background: var(--surface-card); }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--c-dark);
  display: flex;
  align-items: center;
}
.nav__inner {
  display: flex;
  align-items: center;
  width: 100%;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--c-mist);
  text-transform: uppercase;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
  list-style: none;
}
.nav__links a {
  font-size: .875rem;
  color: var(--c-sage);
  transition: color .2s;
}
.nav__links a:hover { color: var(--c-mist); }
.nav__cta {
  background: var(--c-mech);
  color: var(--c-mist) !important;
  padding: .4rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: background .2s !important;
}
.nav__cta:hover { background: var(--c-dark) !important; }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: .25rem;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-mist);
  margin: 5px 0;
  transition: .3s;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--c-mech); color: var(--c-mist); }
.btn--primary:hover { background: var(--c-dark); }
.btn--outline {
  background: transparent;
  color: var(--c-mist);
  border: 1px solid var(--c-sage);
}
.btn--outline:hover { background: rgba(127,168,130,.15); }
.btn--alarm { background: var(--c-alarm-hover); color: #fff; }
.btn--alarm:hover { background: var(--c-alarm-dark); }
.btn--ghost {
  background: transparent;
  color: var(--c-dark);
  border: 1px solid var(--c-border);
}
.btn--ghost:hover { background: var(--c-mist); }

/* ── Hero ── */
.hero {
  background: var(--c-dark);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero > .container {
  position: relative;
  z-index: 1;
}
.hero__inner {
  max-width: 700px;
}
.hero__claim {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--c-mist);
  margin: 1rem 0 1.5rem;
}
.hero__claim em {
  font-style: normal;
  color: var(--c-sage);
}
.hero__sub {
  font-size: 1.0625rem;
  color: var(--c-sage);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Segment cards ── */
.segments { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.seg-card {
  background: var(--surface-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.seg-card:hover { border-color: var(--c-mech); transform: translateY(-2px); }
.seg-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--c-mech-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--c-mech);
  margin-bottom: 1.25rem;
}
.seg-card__title { font-size: 1.0625rem; font-weight: 500; margin-bottom: .5rem; }
.seg-card__desc { font-size: .9375rem; color: var(--c-muted); line-height: 1.65; margin-bottom: 1.25rem; }
.seg-card__link {
  font-size: .875rem; font-weight: 500; color: var(--c-mech);
  display: flex; align-items: center; gap: .35rem;
}
/* Stretched link — invisible ::after covers the entire card */
.seg-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
}

/* ── Process steps ── */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.process__step { position: relative; }
.process__num {
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
  color: rgba(61,107,65,.2);
  margin-bottom: .5rem;
  font-variant-numeric: tabular-nums;
}
.process__title { font-size: 1rem; font-weight: 500; margin-bottom: .5rem; }
.process__desc { font-size: .9375rem; color: var(--c-muted); line-height: 1.65; }

/* ── Differentiators ── */
.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--c-border); border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; }
.diff-item { background: var(--surface-card); padding: 1.75rem; }
.diff-item__label { font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--c-alarm-dark); margin-bottom: .625rem; }
.diff-item__title { font-size: 1rem; font-weight: 500; margin-bottom: .375rem; }
.diff-item__desc { font-size: .9375rem; color: var(--c-muted); }

/* ── Contact form ── */
.contact-form { max-width: 560px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .9375rem;
  background: var(--c-paper);
  color: var(--c-text);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-mech);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ── Footer ── */
.footer {
  background: var(--c-dark);
  padding: 3rem 0 2rem;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(127,168,130,.2);
}
.footer__logo { display: flex; align-items: center; gap: .6rem; font-size: 1rem; font-weight: 500; letter-spacing: .18em; color: var(--c-mist); text-transform: uppercase; }
.footer__claim { font-size: .8125rem; color: var(--c-sage); margin-top: .35rem; }
.footer__links { list-style: none; display: flex; gap: 1.5rem; }
.footer__links a { font-size: .875rem; color: var(--c-sage); transition: color .2s; }
.footer__links a:hover { color: var(--c-mist); }
.footer__copy { padding-top: 1.5rem; font-size: .8125rem; color: var(--c-sage); }

/* ── Section header ── */
.section-header { max-width: 600px; margin-bottom: 3rem; }
.section-header .t-label { margin-bottom: .75rem; display: block; }
.section-header .t-h2 { margin-bottom: 1rem; }

/* ── Utilities ── */
.text-center { text-align: center; }
.section-header.text-center { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.gap-1 { gap: 1rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }

/* ── Mobile nav overlay ── */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
body.nav-open .nav__overlay { display: block; }
body.nav-open { overflow: hidden; }

/* ── Responsive ── */
@media (max-width: 768px) {
  /* Menu links — hidden by default */
  .nav__links {
    display: none;
  }

  /* Menu open — full-screen panel */
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0; bottom: 0;
    z-index: 99;
    background: var(--c-dark);
    padding: 1.5rem 1.5rem 2.5rem;
    gap: 0;
    overflow-y: auto;
    border-top: 1px solid rgba(127,168,130,.15);
  }
  .nav__links.open li {
    width: 100%;
    border-bottom: 1px solid rgba(127,168,130,.1);
  }
  .nav__links.open li:last-child { border-bottom: none; }
  .nav__links.open a {
    display: block;
    font-size: 1.125rem;
    padding: 1.1rem 0;
    color: var(--c-sage);
    width: 100%;
  }
  .nav__links.open a:hover,
  .nav__links.open a[aria-current="page"] { color: var(--c-mist); }
  .nav__links.open .nav__cta {
    display: block;
    margin-top: 1.5rem;
    text-align: center;
    padding: .875rem;
    border-radius: var(--radius-sm);
    background: var(--c-mech);
    color: var(--c-mist) !important;
  }

  /* Hamburger → X animation */
  .nav__toggle { display: block; }
  .nav__toggle span {
    transform-origin: center;
    transition: transform .25s var(--ease-out), opacity .2s;
  }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Other responsive fixes */
  .diff-grid { grid-template-columns: 1fr; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .section { padding: 3.5rem 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Contact layout ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ── Cookie notice ── */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--c-dark);
  border-top: 1px solid rgba(127,168,130,.2);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar__text {
  font-size: .8125rem;
  color: var(--c-sage);
  line-height: 1.6;
  flex: 1;
  min-width: 200px;
  margin: 0;
}
.cookie-bar__text a {
  color: var(--c-mist);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-bar__text a:hover { color: var(--c-sage); }
.cookie-bar__btn {
  background: var(--c-mech);
  color: var(--c-mist);
  border: none;
  border-radius: var(--radius-sm);
  padding: .5rem 1.25rem;
  font-size: .875rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--dur-base) var(--ease-out);
}
.cookie-bar__btn:hover { background: var(--c-mech-tint); color: var(--c-dark); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
