:root {
  --ink: #555555;
  --ink-strong: #333333;
  --white: #ffffff;
  --navy: #002d68;
  --navy-band: rgba(0, 45, 104, 0.9);
  --blue: #0070d8;
  --blue-hover: #005bb0;
  --totop: #333333;
  --max: 1080px;
  --pad-x: 60px;
  --font: "Open Sans", Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  background-color: #0a1a33;
  background-image: url("../img/siteBG03.jpg");
  background-image: image-set(
    url("../img/siteBG03.webp") type("image/webp"),
    url("../img/siteBG03.jpg") type("image/jpeg")
  );
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-hover); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 0.5rem 1rem;
  z-index: 200;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

@media (max-width: 720px) {
  :root { --pad-x: 24px; }
}

/* Header */
.topbar {
  position: relative;
  z-index: 40;
  padding: 18px 0 10px;
}
.topbar .shell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.menu-btn svg { width: 34px; height: 34px; fill: currentColor; }

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.menu a:hover,
.menu a[aria-current="page"] {
  color: #9fd0ff;
}

@media (max-width: 899px) {
  .menu-btn { display: inline-flex; }
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: var(--pad-x);
    right: var(--pad-x);
    flex-direction: column;
    gap: 0;
    background: rgba(0, 20, 50, 0.96);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    padding: 0.5rem 0;
  }
  .menu.is-open { display: flex; }
  .menu a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 16px;
  }
}

/* Hero */
.hero {
  padding: 48px 0 36px;
  color: #fff;
}
.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.1rem, 4.5vw, 52px);
  line-height: 1.3;
  font-weight: 700;
  color: #fff;
  text-align: left;
  max-width: 18ch;
}
.hero .lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 400;
  color: #fff;
  text-align: left;
  text-wrap: balance;
}

/* White content card */
.card {
  background: var(--white);
  color: var(--ink);
  padding: 80px var(--pad-x) 70px;
  margin: 0 auto;
  max-width: var(--max);
}
.card h2 {
  margin: 0 0 30px;
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 34px);
  line-height: 1.3;
  font-weight: 700;
}
.card h3 {
  margin: 0 0 0.75rem;
  color: var(--ink-strong);
  font-size: 1.35rem;
}

.prose p { margin: 0 0 1rem; }
.prose strong { color: var(--ink-strong); font-weight: 700; }

/* Dlaczego: 2 columns image+text */
.split-2 {
  display: grid;
  gap: 2rem 4%;
}
@media (min-width: 800px) {
  .split-2 {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.split-2 figure { margin: 0 0 40px; }
.split-2 img {
  width: 100%;
  height: auto;
}

/* Image zoom-in (jak Avada hover-type-zoomin) */
.zoom,
.split-2 figure,
.cover-frame {
  display: block;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
}
.zoom img,
.split-2 figure img,
.cover-frame img {
  transition: opacity 1s, transform 1s;
}
.zoom:hover img,
.split-2 figure:hover img,
.cover-frame:hover img {
  opacity: 0.9;
  transform: scale3d(1.1, 1.1, 1);
}

/* Navy download band */
.band {
  background: var(--navy-band);
  color: #e8eef6;
  padding: 80px 0 40px;
}
.band .shell-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.band h2 {
  margin: 0 0 60px;
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 34px);
  line-height: 1.3;
  font-weight: 700;
}
.band h3 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 28px);
}
.band .byline {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.band .free-note {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}
.band .meta {
  margin: 0.35rem 0 1rem;
  font-size: 0.95rem;
  color: #d7e3f2;
}
.band .meta p { margin: 0 0 0.75rem; }
.band .note { font-size: 0.8em; }
.band .prose strong { color: #fff; }
.band a:not(.btn) { color: #9fd0ff; }
.band a:not(.btn):hover { color: #fff; }

.download-grid {
  display: grid;
  gap: 2rem 4%;
  align-items: start;
}
@media (min-width: 860px) {
  .download-grid {
    grid-template-columns: 1.45fr 1fr;
  }
}
.cover-frame {
  width: min(320px, 100%);
  margin: 0 auto;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.cover {
  width: 100%;
  height: auto;
  margin: 0;
}

.btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 17px 40px;
  background: var(--blue);
  color: #fff !important;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: normal;
  border: 0 solid #fff;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: 0.2s;
}
.btn:hover { background: var(--blue-hover); }
.band .btn:hover,
.band .btn:focus {
  background: #fff;
  color: #8bc34a !important;
  border-color: #8bc34a;
}
.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4%;
  margin: 1.25rem 0 1.75rem;
}
@media (max-width: 520px) {
  .btn-row { grid-template-columns: 1fr; }
}

.signoff {
  margin-top: 1rem;
  font-style: normal;
  color: inherit;
}

/* Share row – jak na produkcji: tytuł z lewej, białe ikony z prawej */
.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 22px;
  padding-top: 24px;
  border-top: 2px solid #fff;
  margin-bottom: 30px;
}
.share h3 {
  margin: 0;
  font-size: 1.3em;
  font-weight: 400;
  color: #fff;
  line-height: 1.3;
}
.share-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.share-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 28px;
  color: #fff !important;
  text-decoration: none;
  background: transparent;
  border-radius: 0;
}
.share-list a:hover { color: #9fd0ff !important; }
.share-list svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: block;
}

/* Author: tytuł góra, prose dół, foto prawa (jak produkcja) */
.author {
  display: grid;
  gap: 1.5rem 4%;
  align-items: start;
}
.author h2 {
  margin: 0;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}
.author .prose {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
}
.author .prose h3 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--ink-strong);
}
.author-photo {
  margin: 0;
  width: min(266px, 100%);
}
.author-photo img {
  width: 100%;
  height: auto;
}
@media (min-width: 760px) {
  .author {
    grid-template-columns: minmax(0, 1fr) min(266px, 33%);
    grid-template-rows: auto 1fr;
  }
  .author-photo {
    grid-column: 2;
    grid-row: 1 / -1;
    justify-self: end;
    align-self: start;
  }
}
@media (max-width: 759px) {
  .author h2 { grid-column: 1; grid-row: 1; }
  .author-photo { grid-column: 1; grid-row: 2; }
  .author .prose { grid-column: 1; grid-row: 3; align-self: start; }
}

/* Subpages */
.page-hero {
  padding: 40px 0 28px;
  color: #fff;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #fff;
}
.page {
  background: var(--white);
  max-width: var(--max);
  margin: 0 auto 2rem;
  padding: 2.5rem var(--pad-x) 3.5rem;
}
.page > p:first-of-type {
  margin-top: 0;
  color: var(--ink);
}

/* Form */
.form {
  display: grid;
  gap: 0.95rem;
  max-width: 42rem;
}
.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-strong);
}
.form input,
.form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid #ccc;
  background: #fff;
  color: var(--ink-strong);
  font: inherit;
  border-radius: 0;
}
.form textarea { min-height: 11rem; resize: vertical; }
.form input:focus,
.form textarea:focus {
  outline: 2px solid rgba(0, 112, 216, 0.35);
  outline-offset: 1px;
}
.hp {
  position: absolute !important;
  left: -10000px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}
.form label.consent {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.85rem;
  font-weight: 400;
  color: var(--ink);
  font-size: 0.9rem;
  text-align: left;
}
.form label.consent input[type="checkbox"] {
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin: 0.2rem 0.55rem 0 0;
  padding: 0;
  flex: 0 0 auto;
  align-self: flex-start;
  border: 1px solid #777;
  border-radius: 2px;
  background: #fff;
  vertical-align: top;
  cursor: pointer;
}
.form label.consent input[type="checkbox"]:checked {
  background: var(--blue);
  border-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M2.5 6.2l2.4 2.4 4.6-4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}
.form label.consent input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(0, 112, 216, 0.45);
  outline-offset: 2px;
}
.form-status { min-height: 1.4rem; font-size: 0.92rem; }
.form-status.ok { color: #0a7a3e; }
.form-status.err { color: #c0392b; }
.turnstile-slot { min-height: 65px; }
.form .btn { width: auto; min-width: 12rem; }

/* Privacy */
.privacy h2 {
  margin: 2rem 0 0.85rem;
  color: var(--ink-strong);
  font-size: 1.2rem;
}
.privacy ol,
.privacy ul { padding-left: 1.25rem; }
.privacy li { margin: 0.35rem 0; }

/* Footer */
.site-footer {
  color: #c8d0da;
  font-size: 11px;
  padding: 2rem 0 5.5rem;
  text-transform: uppercase;
  font-weight: 600;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.site-footer a { color: #9fd0ff; }

/* Cookie */
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  background: var(--totop);
  color: #dfdfdf;
  padding: 3em;
}
.cookie[hidden] { display: none !important; }
.cookie.is-visible:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-copy {
  flex: auto;
}
.cookie-copy p {
  margin: 0;
  font-size: 0.92rem;
}
.cookie-title {
  margin: 0 0 0.35rem !important;
  font-size: 1rem !important;
}
.cookie a { color: #9fd0ff; }
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex: 0 0 auto;
}
.cookie .btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 10rem;
  padding: 12px 22px;
  font-size: 0.85rem;
}
.cookie .btn-reject {
  background: transparent;
  color: #fff !important;
  border: 1px solid #fff;
}
.cookie .btn-reject:hover,
.cookie .btn-reject:focus {
  background: #fff;
  color: var(--totop) !important;
  border-color: #fff;
}

/* To top */
.totop {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  z-index: 95;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--totop);
  color: #fff;
  border: 0;
  cursor: pointer;
}
.totop[hidden] { display: none !important; }
.totop.is-visible:not([hidden]) { display: inline-flex; }
.totop:hover { background: #111; color: #fff; }
.totop svg { width: 18px; height: 18px; fill: currentColor; }

@media (min-width: 900px) {
  .totop { bottom: 1.25rem; }
  body:has(.cookie.is-visible:not([hidden])) .totop { bottom: 5.5rem; }
}
