/* Layout: biały pasek z logo, ciemne pasma stapiają się z okładką, jasne pasma z plakatami, infografikami i blogiem */
:root {
  --night: #01020a;
  --paper: #f3f4fa;
  --navy: #062447;
  --slate: #4f5a78;
  --hair: #dcdfee;
  --violet: #4f2fc9;
  --blue: #3b8cff;
  --white: #ffffff;
  --mist: #a9afd0;
  --font: "Lexend", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--navy); font: 400 18px/1.5 var(--font); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.btn {
  display: inline-block; font: 600 19px/1 var(--font); text-decoration: none; text-align: center;
  padding: 20px 34px; border-radius: 14px; color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--violet));
  transition: box-shadow .25s, transform .25s;
}
.btn:hover { box-shadow: 0 0 34px -6px var(--blue); transform: translateY(-2px); }
.btn.small { padding: 12px 18px; font-size: 15px; border-radius: 10px; }

/* pasek z logo */
.bar { background: var(--white); border-bottom: 1px solid var(--hair); }
.bar .wrap { display: flex; align-items: center; gap: 28px; padding-block: 12px; }
.bar .logo { margin-right: auto; }
.bar .logo img { width: 138px; }
.bar nav { display: flex; gap: 24px; font-weight: 600; font-size: 16px; }
.bar nav a { text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--violet); }

/* ciemne pasma */
.dark { background: var(--night); color: var(--white); }
.hero { padding-block: 40px 56px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: center; }
.hero .wrap > * { min-width: 0; }
h1 { font-weight: 800; font-size: clamp(46px, 8vw, 96px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 28px; text-wrap: balance; }
h1 em { font-style: normal; color: var(--blue); text-shadow: 0 0 34px color-mix(in srgb, var(--blue) 60%, transparent); }
.slogans { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 6px; font-weight: 600; font-size: clamp(21px, 2.7vw, 30px); line-height: 1.25; }
.note { font-size: 15px; color: var(--mist); margin: 16px 0 0; }

/* jasne pasma */
section { padding-block: 72px; }
section.tight { padding-top: 0; }
h2 { font-weight: 800; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 32px; text-wrap: balance; }
h2 em { font-style: normal; color: var(--violet); }

.shot { display: block; width: 100%; padding: 0; border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; background: var(--white); cursor: zoom-in; transition: transform .25s, box-shadow .25s; }
.shot:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px var(--navy); }
.shot img { width: 100%; }

.posters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.posters > *, .inside > *, .cards > * { min-width: 0; }

.inside { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; align-items: start; }
.chapters { margin: 0; padding: 0; list-style: none; counter-reset: c; display: grid; }
.chapters li { counter-increment: c; display: flex; gap: 14px; padding-block: 15px; border-bottom: 1px solid var(--hair); font-weight: 600; font-size: 18px; line-height: 1.3; }
.chapters li::before { content: counter(c); color: var(--violet); font-weight: 800; }

/* blog: karty */
.head-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 32px; }
.head-row h2 { margin: 0; }
.head-row a { font-weight: 600; color: var(--violet); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cards.two { grid-template-columns: 1fr 1fr; }
.card {
  display: flex; flex-direction: column; gap: 14px; padding: 24px; text-decoration: none;
  background: var(--white); border: 1px solid var(--hair); border-radius: 14px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); border-color: var(--violet); box-shadow: 0 18px 40px -26px var(--navy); }
.card h3 { font-weight: 800; font-size: 21px; line-height: 1.22; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.card p { margin: 0; font-size: 16px; color: var(--slate); }
.card span { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--violet); }

/* blog: nagłówek i artykuł */
.page-head { padding-block: 56px 48px; }
.page-head h1 { font-size: clamp(36px, 6vw, 68px); margin-bottom: 18px; }
.page-head p { margin: 0; max-width: 34em; font-size: clamp(19px, 2.2vw, 23px); color: var(--mist); }
.back { display: inline-block; margin-bottom: 20px; font-size: 15px; font-weight: 600; color: var(--mist); text-decoration: none; }
.back:hover { color: var(--white); }
.article { max-width: 700px; padding-block: 52px 64px; line-height: 1.7; }
.article h2 { font-size: clamp(25px, 3.2vw, 32px); line-height: 1.2; letter-spacing: -.01em; margin: 40px 0 12px; }
.article h2:first-child { margin-top: 0; }
.article p { margin: 0 0 18px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 24px; display: grid; gap: 8px; }
.article li::marker { color: var(--violet); font-weight: 600; }
.article a { color: var(--violet); }
.article blockquote { margin: 0 0 18px; padding: 16px 20px; background: var(--white); border: 1px solid var(--hair); border-radius: 12px; }
.article figure { margin: 8px 0 28px; max-width: 420px; }
.article figcaption { margin-top: 8px; font-size: 14px; color: var(--slate); }
.more { padding-block: 0 72px; }
.more h2 { font-size: clamp(25px, 3.2vw, 32px); margin-bottom: 20px; }

.final { text-align: center; padding-block: 72px; }
.final h2 { margin-bottom: 12px; }
.final h2 em { color: var(--blue); }
.final p { font-size: 22px; font-weight: 600; margin: 0 0 28px; }

footer { background: var(--white); color: var(--slate); font-size: 14px; padding-block: 18px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
footer img { width: 110px; }
footer a { font-weight: 600; }

/* usługi */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.services > * { min-width: 0; }
.service { padding: 28px 26px; background: var(--white); border: 1px solid var(--hair); border-radius: 14px; }
.service svg { width: 38px; height: 38px; color: var(--violet); margin-bottom: 18px; }
.service h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 8px; }
.service p { margin: 0; font-size: 17px; color: var(--slate); }
.consent { margin: 18px 0 0; font-size: 15px; color: var(--slate); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { counter-increment: s; min-width: 0; padding-top: 16px; border-top: 2px solid var(--violet); color: var(--slate); font-size: 17px; }
.steps li::before { content: counter(s) "."; color: var(--violet); font-weight: 800; margin-right: 6px; }
.steps b { font-weight: 800; color: var(--navy); font-size: 20px; }
.steps b::after { content: ""; display: block; height: 6px; }
.mail { display: block; font-weight: 600; font-size: clamp(22px, 4vw, 34px); color: var(--white); margin-bottom: 24px; overflow-wrap: anywhere; }
button.btn { border: 0; cursor: pointer; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills a { padding: 12px 18px; background: var(--white); border: 1px solid var(--hair); border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; }
.pills a:hover { border-color: var(--violet); color: var(--violet); }

/* powiększenie */
dialog { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
dialog::backdrop { background: rgba(1, 2, 10, .88); }
dialog img { max-height: 90vh; max-width: 94vw; width: auto; border-radius: 10px; }
dialog form { position: absolute; top: 8px; right: 8px; margin: 0; }
.close { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--navy); color: var(--white); font: 400 24px/1 var(--font); cursor: pointer; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero img { width: min(100%, 300px); margin: 0 auto; }
  .hero .btn { display: block; }
  .posters { grid-template-columns: 1fr 1fr; }
  .inside { grid-template-columns: 1fr 1fr; }
  .chapters { grid-column: 1 / -1; }
  .cards, .services { grid-template-columns: 1fr 1fr; }
  section, .final { padding-block: 52px; }
  section.tight { padding-top: 0; }
}
@media (max-width: 560px) {
  .cards, .cards.two, .services, .steps { grid-template-columns: 1fr; }
  .bar .wrap { gap: 14px; }
  .bar .logo img { width: 112px; }
  .bar nav { gap: 18px; }
  .bar nav .home, .bar .btn.small { display: none; }
  .final .btn { display: block; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .shot, .card { transition: none; }
}
