:root {
  --ink: #121a2b;
  --muted: #667085;
  --line: #d8dee8;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --red: #ed1c16;
  --red-dark: #b91410;
  --blue: #183252;
  --green: #0f766e;
  --shadow: 0 18px 48px rgba(18, 26, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 8px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid rgba(216, 222, 232, 0.85);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.brand img {
  width: 185px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--soft);
  outline: none;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.section {
  position: relative;
  padding: clamp(34px, 5vw, 58px) clamp(18px, 4vw, 44px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: clamp(20px, 3.5vw, 42px);
  min-height: 390px;
  background: linear-gradient(120deg, #f6f8fb 0%, #ffffff 68%, #fff3f2 100%);
}

.hero-copy {
  max-width: 590px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(1.75rem, 3.35vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.35vw, 2.05rem);
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.lead {
  max-width: 560px;
  margin: 16px 0 0;
  color: #334155;
  font-size: clamp(0.98rem, 1.25vw, 1.06rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--red);
  color: #fff;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--red-dark);
}

.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--blue);
}

.hero-panel {
  display: grid;
  gap: 10px;
  align-self: center;
}

.hero-panel .panel-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(237, 28, 22, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 251, 0.9)),
    radial-gradient(circle at 72% 24%, rgba(237, 28, 22, 0.14), transparent 42%);
  color: var(--red);
  box-shadow: 0 10px 22px rgba(18, 26, 43, 0.08);
}

.panel-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel-copy {
  display: grid;
  gap: 5px;
}

.hero-panel strong {
  color: var(--red);
  font-size: 1.05rem;
}

.hero-panel .panel-copy span {
  color: #334155;
}

.content-band {
  background: var(--soft);
}

#dzialalnosc {
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(245, 247, 251, 0.97) 0%, rgba(245, 247, 251, 0.9) 44%, rgba(245, 247, 251, 0.78) 100%),
    url("assets/section-dzialalnosc-bg.png") center / cover no-repeat;
}

#dzialalnosc::before,
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

#dzialalnosc::before {
  background: radial-gradient(circle at 18% 20%, rgba(237, 28, 22, 0.08), transparent 28%);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: clamp(16px, 4vw, 52px);
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 28px;
}

.section-heading.narrow {
  display: block;
  max-width: 830px;
  margin-left: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.service-card,
.contact-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(18, 26, 43, 0.06);
}

.service-card {
  min-height: 210px;
  padding: 22px;
}

.service-card p,
.steps p,
.policy-panel p,
.contact-card p {
  color: var(--muted);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.process {
  background: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  padding: 0;
  margin: 26px auto 0;
  list-style: none;
}

.steps li {
  padding-top: 18px;
  border-top: 3px solid var(--red);
}

.steps span {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-weight: 900;
}

.steps strong {
  display: block;
  font-size: 1.06rem;
}

.policy-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.tabs {
  display: grid;
  gap: 8px;
  align-self: start;
}

.tab {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.tab.is-active,
.tab:hover,
.tab:focus-visible {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  outline: none;
}

.policy-panel {
  min-height: 280px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.policy-panel h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}

.contact-section {
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 46%, rgba(255, 255, 255, 0.78) 100%),
    url("assets/section-kontakt-bg.png") center / cover no-repeat;
}

.contact-section::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.82)),
    radial-gradient(circle at 82% 76%, rgba(237, 28, 22, 0.1), transparent 30%);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.contact-card,
.contact-form {
  padding: clamp(22px, 3vw, 30px);
}

.contact-card a {
  color: var(--red);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #065f46;
  font-weight: 800;
}

.form-status.is-error {
  background: #fff1f2;
  color: #9f1239;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

label {
  display: grid;
  gap: 7px;
  color: var(--blue);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--red);
  outline: 3px solid rgba(237, 28, 22, 0.16);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 400;
}

.checkbox-row input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
  }

  .brand img {
    width: 165px;
  }

  .menu-button {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero,
  .section-heading,
  .services-grid,
  .steps,
  .policy-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    background: linear-gradient(120deg, #f6f8fb 0%, #ffffff 100%);
  }

  #dzialalnosc,
  .contact-section {
    background-position: center top;
  }

  .hero-panel {
    align-self: auto;
  }

  .hero-panel .panel-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .panel-icon {
    width: 44px;
    height: 44px;
  }

  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .button {
    width: 100%;
  }

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