:root {
  --brand: #00a2e0;
  --brand-dark: #00749a;
  --brand-darker: #005a78;
  --ink: #153044;
  --ink-soft: #465e70;
  --bg: #ffffff;
  --bg-soft: #f3f8fb;
  --line: #d9e8f0;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(21 48 68 / 6%), 0 8px 24px rgb(21 48 68 / 6%);
  --header-h: 76px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--brand-dark); }
a:hover { color: var(--brand-darker); }

:focus-visible {
  outline: 3px solid var(--brand-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sprite symbol, svg use { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; color: #fff; }

main:focus { outline: none; }
section[id] { scroll-margin-top: 1rem; }

/* Header */
.site-header {
  background: rgb(255 255 255 / 94%);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding-block: .75rem;
}
.brand {
  display: inline-block;
  padding: .5rem 0;
  background: #fff;
}
.brand img { width: 150px; height: auto; }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem 1rem;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 .25rem;
}
.main-nav ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
}
@media (min-width: 768px) {
  .main-nav ul { margin-right: -.7rem; }
  /* LOGO_BLUE.png ma ok. 4,4% białego marginesu z lewej; wyrównujemy napis do treści. */
  .brand { margin-left: calc(-170px * 23 / 524); }
}
.main-nav ul a:hover { color: var(--brand-dark); background: var(--bg-soft); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--brand-dark); color: #fff; }
.btn-primary:hover { background: var(--brand-darker); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--brand-dark); border-color: var(--brand-dark); }
.btn-secondary:hover { background: var(--bg-soft); color: var(--brand-darker); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 3.5rem 4rem;
  color: #fff;
  background:
    radial-gradient(42rem 30rem at 85% 30%, rgb(0 162 224 / 28%), transparent 70%),
    radial-gradient(30rem 24rem at 0% 100%, rgb(0 116 154 / 30%), transparent 70%),
    linear-gradient(160deg, #0b2a40 0%, #0e3550 55%, #0a2235 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(143 216 245 / 7%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(143 216 245 / 7%) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  margin-bottom: .75rem;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-dark);
}
.eyebrow-light { color: #7fd3f3; }
.hero h1 {
  font-size: clamp(2rem, 1.25rem + 3vw, 3.3rem);
  font-weight: 800;
  max-width: 20ch;
}
.lead { font-size: 1.125rem; color: #c9dbe7; max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.since-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .75rem;
  margin-bottom: 1.25rem;
  padding: .3rem .9rem .3rem .3rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(143 216 245 / 25%);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #c9dbe7;
}
.since-year {
  padding: .2rem .7rem;
  border-radius: 999px;
  background: var(--brand);
  color: #06233a;
  font-weight: 700;
}
.since-text { text-transform: uppercase; }
/* Na wąskich ekranach napis nie mieści się w jednej „pigułce”: zamiast łamać
   tekst wewnątrz obramowania, pokazujemy rok i obszary jako dwa osobne wiersze. */
@media (max-width: 599px) {
  .since-badge {
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    font-size: .8rem;
  }
  .since-text { color: #7fd3f3; letter-spacing: .08em; line-height: 1.5; }
}
.hero :focus-visible { outline-color: #7fd3f3; }

.btn-accent { background: var(--brand); color: #06233a; }
.btn-accent:hover { background: #33b8ea; color: #06233a; transform: translateY(-1px); }
.btn-ghost { color: #fff; border-color: rgb(255 255 255 / 55%); }
.btn-ghost:hover { color: #fff; border-color: #fff; background: rgb(255 255 255 / 8%); }

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  aspect-ratio: 4 / 3.35;
}
.scene {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  animation: scene-cycle 42s infinite both;
}
.scene img { width: 100%; height: auto; }
.scene figcaption {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: .4rem .95rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  background: rgb(255 255 255 / 9%);
  border: 1px solid rgb(143 216 245 / 30%);
}
.scene:nth-child(2) { animation-delay: 7s; }
.scene:nth-child(3) { animation-delay: 14s; }
.scene:nth-child(4) { animation-delay: 21s; }
.scene:nth-child(5) { animation-delay: 28s; }
.scene:nth-child(6) { animation-delay: 35s; }
.scene-progress {
  position: absolute;
  left: 50%;
  bottom: -1.25rem;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.scene-progress span {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: rgb(255 255 255 / 18%);
  animation: progress-cycle 42s infinite;
}
.scene-progress span:nth-child(2) { animation-delay: 7s; }
.scene-progress span:nth-child(3) { animation-delay: 14s; }
.scene-progress span:nth-child(4) { animation-delay: 21s; }
.scene-progress span:nth-child(5) { animation-delay: 28s; }
.scene-progress span:nth-child(6) { animation-delay: 35s; }

@keyframes scene-cycle {
  0% { opacity: 0; transform: translateY(8px) scale(.985); }
  3%, 14% { opacity: 1; transform: none; }
  17%, 100% { opacity: 0; transform: translateY(-6px) scale(1.01); }
}
@keyframes progress-cycle {
  0%, 16.6% { background: var(--brand); }
  16.7%, 100% { background: rgb(255 255 255 / 18%); }
}

/* Sections */
.section { padding-block: 4.5rem; }
.section-alt {
  background:
    radial-gradient(30rem 20rem at 100% 0%, rgb(0 162 224 / 8%), transparent 70%),
    var(--bg-soft);
}
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); font-weight: 800; }
.section-head p:last-child { color: var(--ink-soft); }

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

.services, .values, .steps, .contact-list, .scope {
  list-style: none;
  margin: 0;
  padding: 0;
}
.services {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.services-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.services-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.service {
  padding: 1.6rem;
  transition: border-color .2s, transform .2s;
}
.service:hover { border-color: #a9d8ec; transform: translateY(-2px); }
.service h4 { font-size: 1.15rem; line-height: 1.25; margin: 1rem 0 .5rem; }
.service-group + .service-group { margin-top: 3.5rem; }
.group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.group-head h3 { font-size: 1.35rem; margin: 0; }
.group-head h3::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: .6rem;
  border-radius: 2px;
  background: var(--brand);
  transform: rotate(12deg) translateY(-2px);
}
.group-head p { margin: 0; color: var(--ink-soft); }
.service > p { color: var(--ink-soft); }

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: var(--brand-dark);
  background: linear-gradient(135deg, #e6f6fd, #d3eef9);
}
.icon-badge svg { width: 28px; height: 28px; }

.scope li {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  font-size: .95rem;
  padding-block: .2rem;
}
.scope svg { width: 18px; height: 18px; flex: none; margin-top: .25rem; color: var(--brand-dark); stroke-width: 2.4; }

/* Steps */
.steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.6rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.step::after {
  content: "";
  position: absolute;
  left: 1.6rem;
  right: 1.6rem;
  top: 0;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
}
.step-no {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: .5rem;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--ink-soft); margin: 0; }

/* About */
.values {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.value { padding: 1.6rem; border-left: 4px solid var(--brand); }
.value h3 { font-size: 1.2rem; }
.value p { color: var(--ink-soft); margin: 0; }

/* Contact */
.contact-section { padding-block: 1rem 3.5rem; }
.contact-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(28rem 20rem at 100% 0%, rgb(0 162 224 / 45%), transparent 70%),
    linear-gradient(135deg, #0d3550 0%, var(--ink) 100%);
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 14%) 1px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent 40%, #000 100%);
  pointer-events: none;
}
.contact-copy, .contact-side { position: relative; }
.contact-side { display: grid; gap: 1rem; }
.contact-card h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); font-weight: 800; }
.contact-card p { color: #d6e6f0; max-width: 36rem; }
.area { font-weight: 600; }
.contact-list { display: grid; gap: .9rem; max-width: 520px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 18%);
  color: #fff;
  text-decoration: none;
  transition: background-color .2s;
}
.contact-link:hover { background: rgb(255 255 255 / 14%); color: #fff; }
.contact-link:focus-visible { outline-color: #7fd3f3; }
.icon-badge-light { background: #fff; color: var(--brand-dark); flex: none; }
.contact-label { display: block; font-size: .85rem; color: #b9d3e2; }
.contact-value { display: block; font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem); font-weight: 700; overflow-wrap: anywhere; }

.qr-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: .85rem;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
}
.qr-card img { width: 112px; height: 112px; flex: none; }
.qr-card figcaption { display: flex; flex-direction: column; align-items: flex-start; font-size: .95rem; font-weight: 600; line-height: 1.4; }
.qr-card a {
  display: inline-block;
  margin-top: .5rem;
  padding-block: .6rem;
  font-weight: 600;
}

.contact-card-form { align-items: start; }
.contact-card-form .contact-list { margin-top: 1.5rem; }
.contact-card-form .qr-card, .contact-card .qr-card { margin-top: .9rem; max-width: 520px; }
.contact-card .contact-list { margin-top: 1.5rem; }
.form-panel {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 50px rgb(2 14 24 / 35%);
}
.form-title { font-size: 1.35rem; margin-bottom: 1.1rem; }
.form-grid { display: grid; gap: 1rem 1.1rem; }
.field label {
  display: block;
  margin-bottom: .35rem;
  font-size: .95rem;
  font-weight: 600;
}
.req { color: #b42318; }
.opt { font-weight: 400; color: var(--ink-soft); font-size: .88rem; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .85rem;
  border: 1.5px solid #b8cfdc;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #8fb3c6; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid rgb(0 116 154 / 35%);
  outline-offset: 0;
  border-color: var(--brand-dark);
}
.field ::placeholder { color: #6b8292; }
.field-error input, .field-error textarea { border-color: #b42318; background: #fffbfa; }
.form-panel .error { margin: .35rem 0 0; font-size: .9rem; color: #b42318; font-weight: 600; }
.captcha { margin-top: 1.1rem; min-height: 65px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
}
.form-panel .form-note { margin: 0; flex: 1 1 260px; font-size: .88rem; color: var(--ink-soft); max-width: none; }
.form-footer .btn { flex: 0 0 auto; }
.form-alert {
  margin-bottom: 1.1rem;
  padding: .9rem 1rem;
  border-radius: 12px;
  border: 1px solid #f3b8b2;
  background: #fef3f2;
  color: #7a271a;
  font-size: .95rem;
}
.form-panel .form-alert p { margin: 0; color: #7a271a; max-width: none; }
.form-alert ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.form-alert a { color: #7a271a; }
.form-success { text-align: left; }
.form-success .icon-badge { color: #067647; background: #dcfae6; }
.form-success h3 { margin-top: 1rem; font-size: 1.35rem; }
.form-panel .form-success p { color: var(--ink-soft); max-width: none; }

/* Footer */
.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: .95rem;
  color: var(--ink-soft);
}
.footer-inner { display: grid; gap: 1rem; }
.footer-name { font-weight: 700; color: var(--ink); margin: 0; }
.legal { margin: .25rem 0 0; }
.privacy { margin: 0; max-width: 48rem; }

@media (min-width: 768px) {
  .site-header {
    position: sticky;
    top: 0;
    backdrop-filter: saturate(1.4) blur(10px);
  }
  .header-inner { flex-wrap: nowrap; }
  .brand img { width: 170px; }
  section[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
  .hero { padding-block: 5rem 6rem; }
  .section { padding-block: 6rem; }
  .contact-section { padding-block: 1.5rem 5rem; }
  .footer-inner { grid-template-columns: auto 1fr; gap: 3rem; }
  .privacy { justify-self: end; text-align: right; }
}

@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .contact-card-form { grid-template-columns: .85fr 1.15fr; gap: 3rem; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
}

@media (max-width: 767px) {
  .header-inner { justify-content: center; }
  .main-nav { justify-content: center; }
  .main-nav ul { justify-content: center; }
  .contact-card { padding: 1.75rem 1.25rem; }
  .contact-link { gap: .75rem; padding: .85rem; }
  .contact-link .icon-badge { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn-primary:hover, .btn-accent:hover, .service:hover { transform: none; }
  .scene, .scene-progress span { animation: none !important; }
  .scene:first-child { opacity: 1; }
  .scene-progress { display: none; }
}
