:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef4f7;
  --text: #14202b;
  --muted: #61707d;
  --primary: #0d7f78;
  --primary-dark: #08645f;
  --accent: #54d3c4;
  --navy: #0c1c2a;
  --line: #dfe7ec;
  --shadow: 0 20px 60px rgba(12, 28, 42, 0.10);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", sans-serif;
  line-height: 1.65;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(246, 248, 251, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(223, 231, 236, 0.8);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Manrope", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.logo > span:last-child > span { color: var(--primary); }
.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  text-transform: lowercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 600;
  font-size: .94rem;
}
.nav-links > a:not(.button):hover { color: var(--primary); }

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px;
  background: var(--text);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--primary);
  border-radius: 13px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}
.button:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.button-small {
  min-height: 42px;
  padding-inline: 18px;
}
.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.button-secondary:hover {
  color: var(--primary);
  background: white;
  border-color: var(--primary);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 160px 0 90px;
  background:
    radial-gradient(circle at 85% 20%, rgba(84, 211, 196, .16), transparent 31%),
    linear-gradient(180deg, #fbfcfd 0%, #f4f8fa 100%);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 70px;
  align-items: center;
}
.hero h1, .section-heading h2, .about-copy h2, .contact-copy h2 {
  margin: 18px 0 20px;
  font-family: "Manrope", sans-serif;
  line-height: 1.09;
  letter-spacing: -0.045em;
}
.hero h1 { font-size: clamp(2.8rem, 5.8vw, 5.2rem); }
.hero-lead {
  max-width: 700px;
  font-size: 1.15rem;
  color: var(--muted);
}
.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(13, 127, 120, .09);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.hero-actions {
  display: flex;
  gap: 13px;
  margin-top: 34px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 30px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
}
.hero-card {
  padding: 32px;
  border-radius: 28px;
  background: rgba(255,255,255,.87);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.mini-label {
  margin-bottom: 25px;
  color: var(--primary);
  font-weight: 800;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.flow-step { display: flex; gap: 16px; }
.flow-step > span {
  flex: 0 0 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--primary);
  font-weight: 800;
}
.flow-step strong { font-family: "Manrope", sans-serif; font-size: 1.04rem; }
.flow-step p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.flow-line {
  width: 2px;
  height: 23px;
  margin: 7px 0 7px 20px;
  background: linear-gradient(var(--accent), var(--line));
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}
.hero-glow-one {
  width: 250px; height: 250px;
  right: 6%; top: 25%;
  background: rgba(84,211,196,.12);
}
.hero-glow-two {
  width: 180px; height: 180px;
  left: -70px; bottom: -20px;
  background: rgba(13,127,120,.10);
}

.section { padding: 100px 0; }
.section-heading {
  max-width: 770px;
  margin-bottom: 50px;
}
.section-heading h2, .about-copy h2, .contact-copy h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}
.section-heading p, .about-copy p, .contact-copy > p {
  color: var(--muted);
  font-size: 1.04rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.service-card {
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(12,28,42,.05);
  transition: .25s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.service-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  margin-bottom: 24px;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--primary);
  font-weight: 800;
}
.service-card h3, .process-card h3 {
  margin: 0 0 12px;
  font-family: "Manrope", sans-serif;
  font-size: 1.3rem;
}
.service-card p { color: var(--muted); }
.service-card ul {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}
.service-card li {
  position: relative;
  padding-left: 23px;
  margin: 10px 0;
}
.service-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

.section-dark {
  color: white;
  background: var(--navy);
}
.section-heading.light p { color: #b8c5ce; }
.section-dark .eyebrow {
  background: rgba(84,211,196,.12);
  color: var(--accent);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.process-card {
  min-height: 245px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  background: rgba(255,255,255,.045);
}
.process-card > span {
  display: block;
  margin-bottom: 42px;
  color: var(--accent);
  font-weight: 800;
}
.process-card p { color: #aebdc8; font-size: .92rem; }

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: center;
}
.about-panel {
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(150deg, var(--surface-soft), white);
  border: 1px solid var(--line);
}
.about-role {
  padding: 22px;
  margin-bottom: 14px;
  border-radius: 17px;
  background: white;
  border: 1px solid var(--line);
}
.about-role span {
  color: var(--primary);
  font-weight: 800;
  font-family: "Manrope", sans-serif;
}
.about-role p { margin: 8px 0 0; color: var(--muted); font-size: .93rem; }
.about-quote {
  padding: 23px 12px 5px;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.contact-section {
  background: linear-gradient(180deg, #eef5f5 0%, #f7fafb 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: start;
}
.contact-points {
  display: grid;
  gap: 15px;
  margin-top: 35px;
}
.contact-points div {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 700;
}
.contact-points span {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: white;
  color: var(--primary);
  font-size: .78rem;
  box-shadow: 0 5px 20px rgba(12,28,42,.07);
}
.contact-form {
  padding: 34px;
  border-radius: 24px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-size: .9rem;
  font-weight: 700;
}
input, textarea, select {
  width: 100%;
  padding: 14px 15px;
  color: var(--text);
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  transition: .2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,127,120,.10);
}
textarea { resize: vertical; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 500;
}
.consent input { width: 18px; height: 18px; margin-top: 3px; }
.form-button { width: 100%; }
.form-note {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
}

footer {
  padding: 70px 0 25px;
  color: white;
  background: #07131d;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .7fr .8fr;
  gap: 50px;
}
.footer-logo { margin-bottom: 17px; }
.footer-grid p {
  max-width: 440px;
  color: #96a8b5;
}
.footer-links, .footer-contact {
  display: grid;
  align-content: start;
  gap: 12px;
  color: #b5c2cb;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact strong { color: white; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 55px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: #8194a2;
  font-size: .86rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 45px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-card:last-child { grid-column: span 2; }
  .about-grid, .contact-grid { gap: 45px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1160px); }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    display: none;
    padding: 25px;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; }
  .hero { padding-top: 130px; }
  .hero h1 { font-size: clamp(2.45rem, 12vw, 4rem); }
  .hero-actions { flex-direction: column; }
  .services-grid, .process-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .process-card:last-child { grid-column: auto; }
  .process-card { min-height: auto; }
  .process-card > span { margin-bottom: 25px; }
  .section { padding: 78px 0; }
  .service-card, .contact-form, .hero-card { padding: 25px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* =========================
   Asystent Usprawnień
   ========================= */
.solution-launcher {
  position: fixed;
  z-index: 1100;
  right: 20px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  padding: 13px 16px;
  color: white;
  background: linear-gradient(135deg, #0c1c2a, #123448);
  border: 1px solid rgba(84, 211, 196, .35);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(7, 19, 29, .30);
  cursor: pointer;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}
.solution-launcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(7, 19, 29, .38);
}
.launcher-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 1.25rem;
  font-weight: 800;
}
.launcher-copy {
  display: grid;
  line-height: 1.25;
}
.launcher-copy strong {
  font-family: "Manrope", sans-serif;
  font-size: .94rem;
}
.launcher-copy small {
  margin-top: 3px;
  color: #b9cbd5;
  font-size: .75rem;
}
.launcher-pulse {
  position: absolute;
  left: 47px;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5be6a2;
  box-shadow: 0 0 0 0 rgba(91, 230, 162, .55);
  animation: launcherPulse 2s infinite;
}
@keyframes launcherPulse {
  70% { box-shadow: 0 0 0 11px rgba(91, 230, 162, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 230, 162, 0); }
}

.solution-modal {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: none;
  place-items: center;
  padding: 22px;
}
.solution-modal.open { display: grid; }
.solution-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 18, .78);
  backdrop-filter: blur(8px);
}
.solution-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 34px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(84, 211, 196, .28);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}
.solution-close {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: var(--surface-soft);
  font-size: 1.7rem;
  cursor: pointer;
}
.solution-intro { padding-right: 50px; }
.solution-badge {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(13, 127, 120, .09);
  font-size: .76rem;
  font-weight: 800;
}
.solution-intro h2 {
  margin: 16px 0 10px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.solution-intro p {
  margin: 0 0 24px;
  color: var(--muted);
}
.wizard-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface-soft);
}
.wizard-progress-bar {
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width .3s ease;
}
.wizard-meta {
  display: flex;
  justify-content: space-between;
  margin: 9px 0 25px;
  color: var(--muted);
  font-size: .78rem;
}
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.wizard-question {
  margin: 0 0 18px;
  font-family: "Manrope", sans-serif;
  font-size: 1.26rem;
  font-weight: 800;
  line-height: 1.35;
}
.wizard-options {
  display: grid;
  gap: 11px;
}
.wizard-option {
  display: block;
  margin: 0;
  cursor: pointer;
}
.wizard-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.wizard-option > span {
  display: grid;
  gap: 4px;
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfd;
  transition: .18s ease;
}
.wizard-option > span strong {
  font-size: .95rem;
}
.wizard-option > span small {
  color: var(--muted);
  font-size: .79rem;
  font-weight: 500;
}
.wizard-option:hover > span {
  border-color: rgba(13,127,120,.45);
  transform: translateY(-1px);
}
.wizard-option input:checked + span {
  border-color: var(--primary);
  background: rgba(13,127,120,.07);
  box-shadow: 0 0 0 3px rgba(13,127,120,.08);
}
.wizard-text-label { margin: 0; }
.wizard-text-label textarea { min-height: 145px; }
.wizard-hint {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .78rem;
}
.wizard-controls {
  display: flex;
  justify-content: space-between;
  gap: 13px;
  margin-top: 25px;
}
.wizard-back {
  min-width: 100px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: white;
  font-weight: 700;
  cursor: pointer;
}
.wizard-back:disabled {
  opacity: .4;
  cursor: default;
}
.wizard-next { min-width: 130px; }

.wizard-result {
  padding-top: 3px;
}
.result-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 15px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 1.6rem;
  font-weight: 800;
}
.result-kicker {
  color: var(--primary);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.wizard-result h3 {
  margin: 7px 0 10px;
  font-family: "Manrope", sans-serif;
  font-size: 1.75rem;
  line-height: 1.2;
}
.wizard-result > p { color: var(--muted); }
.result-plan {
  display: grid;
  gap: 9px;
  margin: 19px 0 25px;
}
.result-plan div {
  display: flex;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--surface-soft);
  font-size: .87rem;
  font-weight: 600;
}
.result-plan div span { color: var(--primary); font-weight: 800; }
.result-contact {
  padding: 22px;
  border-radius: 17px;
  background: #f8fafb;
  border: 1px solid var(--line);
}
.result-contact h4 {
  margin: 0 0 5px;
  font-family: "Manrope", sans-serif;
  font-size: 1.08rem;
}
.result-contact > p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: .83rem;
}
.result-contact input { margin-bottom: 11px; }
.result-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.wizard-consent {
  margin: 3px 0 14px;
  font-size: .78rem;
}
.result-submit { width: 100%; }
.result-message {
  margin: 10px 0 0 !important;
  text-align: center;
  font-size: .8rem !important;
}

@media (max-width: 650px) {
  .solution-launcher {
    right: 12px;
    bottom: 12px;
    min-width: 0;
    width: 54px;
    height: 54px;
    padding: 7px;
    border-radius: 50%;
  }
  .solution-launcher .launcher-copy { display: none; }
  .launcher-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .launcher-pulse { left: 41px; top: 4px; }
  .solution-modal { padding: 10px; }
  .solution-dialog {
    max-height: calc(100vh - 20px);
    padding: 24px 18px;
    border-radius: 20px;
  }
  .solution-intro { padding-right: 38px; }
  .result-contact-grid { grid-template-columns: 1fr; gap: 0; }
}
