:root {
  --pasek-h: 34px;
  --ink: #101418;
  --ink-2: #1a2129;
  --paper: #f4f0e7;
  --paper-2: #e8e1d2;
  --card: #fffcf7;
  --ral: #0089b6;
  --ral-bright: #3ec4ea;
  --ral-ink: #005a78;
  --text: #172027;
  --muted: #4e5862;
  --muted-dark: #c5ced6;
  --line: rgba(16, 20, 24, 0.1);
  --line-dark: rgba(0, 137, 182, 0.45);
  --shadow: 0 18px 40px rgba(16, 20, 24, 0.08);
  --nav-h: 76px;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --wrap: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html:has(body.zalogowany) {
  scroll-padding-top: calc(var(--nav-h) + var(--pasek-h));
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3, p {
  margin: 0;
}

h1, h2, .step-no, .num, .contact-link strong {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--ral);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--ral-ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--ral);
}

.wejscie {
  position: fixed;
  z-index: 45;
  top: 0;
  left: 0;
  padding: 7px 10px 8px;
  color: transparent;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 0 0 10px 0;
}

.wejscie:hover,
.wejscie:focus-visible {
  color: #e7f6fb;
  background: rgba(12, 18, 24, 0.94);
}

.pasek-zaplecza {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 4px 16px;
  height: var(--pasek-h);
  padding: 0 14px;
  overflow-x: auto;
  background: #0c1218;
  border-bottom: 2px solid var(--ral);
  font-size: 0.82rem;
  white-space: nowrap;
}

.pasek-zaplecza[hidden] {
  display: none;
}

.pasek-zaplecza a {
  color: #d7eef5;
  text-decoration: none;
  font-weight: 600;
}

.pasek-zaplecza a:hover {
  color: white;
}

body.zalogowany {
  padding-top: var(--pasek-h);
}

body.zalogowany .wejscie {
  display: none;
}

body.zalogowany .nav {
  top: var(--pasek-h);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(16, 20, 24, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 3px solid var(--ral);
}

.nav-inner {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.brand img,
.footer img {
  width: 118px;
  height: auto;
}

.links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.links a {
  color: var(--muted-dark);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 999px;
}

.links a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-ral {
  background: var(--ral);
  color: #041820;
}

.btn-ral:hover {
  background: #1aaad4;
}

.btn-ghost {
  color: var(--paper);
  border-color: rgba(0, 137, 182, 0.45);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--ral);
  background: rgba(0, 137, 182, 0.08);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 62% 55% at 100% 0%, rgba(0, 137, 182, 0.55), transparent 58%),
    radial-gradient(ellipse 42% 48% at 0% 100%, rgba(0, 137, 182, 0.28), transparent 62%),
    var(--ink);
  color: white;
  padding: 48px 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse at 70% 30%, black 10%, transparent 72%);
}

.hero-arc {
  position: absolute;
  z-index: -1;
  width: min(340px, 70vw);
  left: -90px;
  bottom: -120px;
  color: var(--ral);
  opacity: 0.35;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 36px;
}

.hero .eyebrow span {
  letter-spacing: 0.14em;
}

.hero .eyebrow {
  color: var(--ral);
}

.hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 5.5rem);
  line-height: 0.92;
  color: #f7f3ea;
  text-wrap: balance;
}

.hero h1 .line {
  display: block;
}

.hero h1 .line-long {
  font-size: clamp(1.7rem, 4.7vw, 3.85rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.hero h1 em {
  display: block;
  margin-top: 10px;
  font-style: italic;
  font-weight: 500;
  font-size: 0.62em;
  letter-spacing: -0.03em;
  color: var(--ral);
}

.lead {
  max-width: 46ch;
  margin-top: 22px;
  color: var(--muted-dark);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.places {
  margin-top: 28px;
  color: rgba(197, 206, 214, 0.78);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

.index {
  align-self: end;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  padding: 18px 18px 8px;
  backdrop-filter: blur(8px);
}

.index-label {
  margin: 2px 8px 8px;
  color: var(--ral);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.index ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.index a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #f4f0e7;
  text-decoration: none;
  font-weight: 500;
}

.index a span {
  width: 1.8rem;
  color: var(--ral);
  font-family: var(--serif);
  font-size: 0.95rem;
}

.index a:hover {
  color: var(--ral-bright);
}

.band {
  padding: clamp(64px, 9vw, 112px) 0;
}

.band-sand {
  background:
    linear-gradient(180deg, rgba(16, 20, 24, 0.03), transparent 80px),
    var(--paper-2);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 36px;
}

.section-head h2,
.contact h2 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.05;
  text-wrap: balance;
}

.section-head p:last-child {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.08rem;
}

.cards {
  display: grid;
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 22px 24px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.card-dark {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(0, 137, 182, 0.32), transparent 48%),
    var(--ink-2);
  color: #f4f0e7;
  border-color: rgba(0, 137, 182, 0.18);
  box-shadow: none;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(124, 90, 30, 0.1);
  color: var(--ral-ink);
}

.ico svg {
  width: 26px;
  height: 26px;
}

.card-dark .ico {
  background: rgba(0, 137, 182, 0.12);
  color: var(--ral);
}

.num {
  color: var(--ral-ink);
  font-size: 1.15rem;
}

.card-dark .num {
  color: var(--ral);
}

.card h3 {
  font-family: var(--sans);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
}

.card-dark p {
  color: var(--muted-dark);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.steps li {
  background: rgba(255, 252, 247, 0.55);
  border: 1px solid rgba(16, 20, 24, 0.08);
  border-radius: 20px;
  padding: 22px;
}

.step-no {
  display: block;
  color: var(--ral-ink);
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.steps h3 {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.steps p {
  color: var(--muted);
}

.contact {
  background:
    radial-gradient(ellipse 55% 70% at 100% 100%, rgba(0, 137, 182, 0.38), transparent 58%),
    var(--ink);
  color: white;
  padding: clamp(64px, 9vw, 112px) 0;
  scroll-margin-top: var(--nav-h);
}

.contact .eyebrow {
  color: var(--ral);
}

.contact h2 {
  max-width: 12ch;
}

.contact .lead {
  color: var(--muted-dark);
}

.address {
  margin-top: 28px;
  display: grid;
  gap: 4px;
  font-style: normal;
  color: var(--muted-dark);
}

.address strong,
.footer strong {
  color: #f7f3ea;
  font-weight: 600;
}

.address a {
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.address a:hover {
  color: var(--ral);
}

.contact-grid {
  display: grid;
  gap: 32px;
}

.contact-cards {
  display: grid;
  gap: 12px;
  align-content: end;
}

.contact-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.03);
}

.contact-link span {
  color: var(--ral);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-link strong {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 560;
  color: #f7f3ea;
  overflow-wrap: anywhere;
}

.contact-link:hover {
  border-color: var(--ral);
  background: rgba(0, 137, 182, 0.08);
}

.footer {
  background: var(--ink);
  color: var(--muted-dark);
  padding: 8px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: grid;
  gap: 8px;
}

.footer p {
  margin: 0;
}

.slogan {
  color: var(--ral);
}

.copy {
  margin-top: 8px;
  font-size: 0.9rem;
}

.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(16, 20, 24, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0, 137, 182, 0.2);
}

body {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

:focus-visible {
  outline: 2px solid var(--ral);
  outline-offset: 3px;
}

::selection {
  background: var(--ral);
  color: #041820;
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .card-wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 800px) {
  .nav-call {
    display: inline-flex;
  }

  .callbar {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

@media (max-width: 799px) {
  .nav-call {
    display: none;
  }

  .nav-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px 0 6px;
    min-height: 0;
  }

  .links {
    justify-content: space-between;
    margin: 0 -8px;
  }

  .links a {
    padding: 12px 8px;
  }

  .hero {
    padding-top: 28px;
  }
}

@media (min-width: 980px) {
  .hero {
    padding: 72px 0 96px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
    gap: 48px;
    align-items: end;
  }

  .cards {
    grid-template-columns: repeat(6, 1fr);
  }

  .card-wide {
    grid-column: span 3;
  }

  .card:not(.card-wide) {
    grid-column: span 2;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 48px;
  }

  .footer-inner {
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 28px;
  }

  .copy {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .wejscie {
    transition: none;
  }
}

@media print {
  .nav,
  .callbar,
  .hero-arc {
    display: none;
  }

  body {
    padding-bottom: 0;
    background: white;
  }

  .hero,
  .contact,
  .footer,
  .card-dark {
    background: white;
    color: black;
  }
}
