:root {
  --brand-green: #68b947;
  --brand-green-dark: #34762b;
  --brand-green-deep: #245c25;
  --brand-yellow: #f9d341;
  --ink: #202620;
  --muted: #586158;
  --surface: #ffffff;
  --surface-soft: #f3f7f1;
  --line: #dce7d8;
  --shadow-sm: 0 6px 20px rgba(24, 47, 26, 0.08);
  --shadow-md: 0 16px 42px rgba(24, 47, 26, 0.13);
  --radius: 16px;
  --header-height: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  min-width: 320px;
  color: var(--ink);
  background: #f8faf7;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 10% 15%, rgba(104, 185, 71, 0.09), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(249, 211, 65, 0.1), transparent 30%);
  content: "";
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand-green-deep);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-green-dark);
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 5000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: #111;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* Nawigacja */
.navbar {
  position: sticky;
  z-index: 1000;
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(52, 118, 43, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 18px rgba(24, 47, 26, 0.06);
  backdrop-filter: blur(12px);
}

.nav-container {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.nav-logo {
  display: inline-flex;
  flex: 0 0 auto;
}

.nav-logo img {
  width: 132px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  padding: 12px 0;
  color: #283028;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--brand-green);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

/* Hero i slider */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 20px;
  color: #fff;
  text-align: center;
}

.hero::after {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  content: "";
}

.hero > .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-inline: auto;
}

.hero-main {
  color: #111;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-yellow));
}

.hero-green {
  background: var(--brand-green-dark);
}

.hero-dark {
  background: #111;
}

.hero-slider {
  position: relative;
  height: clamp(470px, 54vh, 620px);
  min-height: 470px;
  overflow: hidden;
  color: #fff;
  background: #122014;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.025);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slider .slide::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 14, 7, 0.7) 0%, rgba(5, 14, 7, 0.42) 55%, rgba(5, 14, 7, 0.56) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.54));
  content: "";
}

.hero-slider .slide.active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slider .hero-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(760px, calc(100% - 150px));
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  color: #fff;
  background: rgba(8, 17, 9, 0.7);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(6px);
}

.hero-content h1,
.hero-content h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.15;
  text-wrap: balance;
}

.hero-content p {
  max-width: 660px;
  margin: 0 auto 24px;
  color: #f4f7f4;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.55;
}

.nav-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 17, 9, 0.6);
  cursor: pointer;
  font-size: 1.45rem;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-arrow:hover {
  color: #111;
  background: var(--brand-yellow);
  transform: translateY(-50%) scale(1.06);
}

.nav-arrow.prev {
  left: 24px;
}

.nav-arrow.next {
  right: 24px;
}

.dots {
  position: absolute;
  z-index: 3;
  bottom: 20px;
  left: 50%;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.dots button.active,
.dots button:hover {
  background: var(--brand-yellow);
  transform: scale(1.15);
}

/* Przyciski */
.btn,
.btn-accent,
.btn-light {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn {
  color: #fff;
  background: var(--brand-green-dark);
  box-shadow: 0 10px 24px rgba(52, 118, 43, 0.22);
}

.btn:hover {
  color: #fff;
  background: var(--brand-green-deep);
  transform: translateY(-2px);
}

.btn-accent,
.btn-light,
.btn-alt {
  color: #171b17;
  background: var(--brand-yellow);
  box-shadow: 0 10px 24px rgba(249, 211, 65, 0.22);
}

.btn-accent:hover,
.btn-light:hover,
.btn-alt:hover {
  color: #111;
  background: #ffe36a;
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--brand-green-deep);
  border-color: var(--brand-green-dark);
  background: #fff;
  box-shadow: none;
}

.btn-secondary:hover {
  color: #fff;
  background: var(--brand-green-dark);
}

.button-row,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.space-top {
  margin-top: 30px;
}

/* Sekcje i treść */
.section {
  position: relative;
  padding: 76px 20px;
}

.section.alt {
  border-block: 1px solid rgba(52, 118, 43, 0.06);
  background: linear-gradient(180deg, #fff 0%, var(--surface-soft) 100%);
}

.section h2 {
  max-width: 880px;
  margin: 0 auto 30px;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

.section h2::after {
  width: 72px;
  height: 4px;
  display: block;
  margin: 14px auto 0;
  border-radius: 4px;
  background: var(--brand-green);
  content: "";
}

.section-intro,
.section-lead {
  max-width: 820px;
  margin: 0 auto 36px;
  color: #394139;
  font-size: 1.04rem;
}

.section-lead.center,
.center {
  text-align: center;
}

.section-intro p + p,
.legal-card p + p {
  margin-top: 16px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--brand-green-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.benefit-strip {
  position: relative;
  z-index: 10;
  margin-top: -34px;
  padding: 0 20px;
}

.benefit-grid {
  width: min(1060px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.benefit-item {
  min-height: 112px;
  padding: 24px 28px;
  border-right: 1px solid var(--line);
}

.benefit-item:last-child {
  border-right: 0;
}

.benefit-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--brand-green-deep);
  font-size: 1.08rem;
}

.benefit-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card h3 {
  margin-bottom: 10px;
  color: var(--brand-green-deep);
  font-size: 1.25rem;
  line-height: 1.3;
}

.card p {
  color: #414941;
}

.card .btn,
.card .btn-accent {
  align-self: flex-start;
  margin-top: 22px;
}

.training-card {
  padding: 0;
}

.training-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.training-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.step {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.step span {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand-green-dark);
  font-weight: 800;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.13rem;
}

.step p {
  color: var(--muted);
  font-size: 0.96rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.metric {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.metric h3 {
  margin-bottom: 5px;
  color: var(--brand-green-deep);
  font-size: 1.7rem;
}

.metric p {
  color: var(--muted);
}

.faq-list {
  max-width: 900px;
  margin: 30px auto 0;
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 23px 25px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-green);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  margin-bottom: 8px;
  color: #293129;
  font-size: 1.12rem;
}

.faq-item p {
  color: var(--muted);
}

.cta-band {
  padding: 0 20px 76px;
}

.cta-band-inner {
  width: min(1060px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 38px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--brand-green-deep), #183e21);
  box-shadow: var(--shadow-md);
}

.cta-band h2 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.cta-band p {
  max-width: 660px;
  color: #eaf2e8;
}

.contact-section {
  background: linear-gradient(180deg, #eef5ec 0%, #fff 100%);
}

.contact-grid {
  max-width: 960px;
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.contact-grid.single {
  max-width: 650px;
  grid-template-columns: 1fr;
}

.contact-card,
.contact-box {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.contact-card h3,
.contact-box h3 {
  margin-bottom: 12px;
  color: var(--brand-green-deep);
  font-size: 1.3rem;
}

.contact-card p,
.contact-box p {
  margin-bottom: 7px;
}

.contact-card .contact-actions,
.contact-box .contact-actions {
  margin-top: 20px;
}

address {
  font-style: normal;
}

/* Stopka */
footer {
  padding: 46px 20px 24px;
  color: #edf2ed;
  background: #111a13;
}

.footer-grid {
  width: min(1180px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 36px;
}

.footer-brand {
  max-width: 420px;
}

.footer-brand strong,
.footer-heading {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.05rem;
}

.footer-brand p,
.footer-contact,
.footer-links a {
  color: #cbd5cb;
  font-size: 0.93rem;
}

.footer-contact a {
  color: #cbd5cb;
}

.footer-contact a:hover {
  color: var(--brand-yellow);
}

.footer-links {
  display: grid;
  gap: 7px;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand-yellow);
}

.footer-bottom {
  width: min(1180px, 100%);
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #aeb9ae;
  font-size: 0.86rem;
  text-align: center;
}

.footer-bottom a {
  color: var(--brand-yellow);
}

/* Strony prawne */
.legal-wrapper {
  width: min(940px, calc(100% - 40px));
  margin: 42px auto 70px;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 18px;
  font-weight: 650;
}

.legal-head,
.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.legal-head {
  margin-bottom: 22px;
  padding: 30px;
}

.legal-title {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 2.65rem);
  line-height: 1.2;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-contact {
  margin-top: 12px;
}

.legal-card {
  margin-bottom: 16px;
  padding: 25px 28px;
}

.legal-card h2 {
  margin-bottom: 10px;
  color: var(--brand-green-deep);
  font-size: 1.3rem;
}

.legal-wrapper ul {
  margin: 10px 0 10px 22px;
}

.legal-wrapper li + li {
  margin-top: 6px;
}

/* Cookies */
.cookie-banner {
  position: fixed;
  z-index: 3000;
  right: 18px;
  bottom: 18px;
  width: min(560px, calc(100% - 36px));
  display: none;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  color: #fff;
  background: #111a13;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
}

.cookie-banner p {
  margin-bottom: 14px;
  color: #e5ebe5;
  font-size: 0.92rem;
}

.cookie-banner a {
  color: var(--brand-yellow);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-banner button {
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-weight: 650;
}

.cookie-banner #acceptCookies {
  border-color: var(--brand-green);
  background: var(--brand-green-dark);
}

/* Zachowane komponenty pomocnicze */
.partners,
.testimonials,
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.partner,
.testimonial {
  padding: 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.hero-full {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    position: relative;
    z-index: 2001;
    display: grid;
    place-items: center;
  }

  .navbar nav {
    position: fixed;
    z-index: 2000;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    padding: 10px 20px 22px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-md);
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .navbar nav {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }

  .nav-links a::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .fade-in {
    opacity: 1;
    transform: none;
  }

  .container {
    width: min(100% - 32px, 1180px);
  }

  .section {
    padding: 58px 16px;
  }

  .hero-slider {
    height: 520px;
    min-height: 520px;
  }

  .hero-slider .hero-content {
    width: calc(100% - 92px);
    padding: 25px 20px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: clamp(1.75rem, 7vw, 2.35rem);
  }

  .nav-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  .nav-arrow.prev {
    left: 10px;
  }

  .nav-arrow.next {
    right: 10px;
  }

  .benefit-strip {
    margin-top: 0;
    padding: 0;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .benefit-item {
    min-height: auto;
    padding: 20px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 0 16px 58px;
  }

  .cta-band-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  :root {
    --header-height: 76px;
  }

  .nav-logo img {
    width: 116px;
  }

  .hero-slider {
    height: 500px;
    min-height: 500px;
  }

  .hero-slider .hero-content {
    width: calc(100% - 64px);
    padding: 22px 16px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 1.75rem;
  }

  .hero-content p {
    margin-bottom: 18px;
    font-size: 0.98rem;
  }

  .btn,
  .btn-accent,
  .btn-light {
    width: 100%;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .step,
  .contact-card,
  .contact-box {
    padding: 22px;
  }

  .training-card {
    padding: 0;
  }

  .training-card-content {
    padding: 21px;
  }

  .legal-wrapper {
    width: min(100% - 28px, 940px);
    margin-top: 28px;
  }

  .legal-head,
  .legal-card {
    padding: 22px;
  }

  .button-row,
  .contact-actions,
  .cookie-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-banner {
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
