* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  --navy: #16303f;
  --green: #344d48;
  --ice: #e4eef2;
  --paper: #fff;
  --soft: #edf2ef;
  --rule: #cbd5d0;
  --ink: var(--navy);
  --measure: min(1320px, calc(100% - clamp(34px, 9vw, 142px)));
  --space: clamp(42px, 7vw, 106px);
  --display: system-ui, sans-serif;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 system-ui, sans-serif;
}
h1,h2,h3,p,figure { margin: 0; }
h1,h2,h3 { line-height: 1.06; font-family: var(--display); font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 93px); letter-spacing: -.064em; }
h2 { font-size: clamp(30px, 4.3vw, 63px); letter-spacing: -.049em; }
h3 { font-size: clamp(20px, 2.04vw, 31px); letter-spacing: -.034em; }
p + p { margin-top: 12px; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #bd583e; outline-offset: 4px; }
img { display: block; width: 100%; height: auto; }
[hidden] { display: none !important; }
button,input,select,textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
.wrap { width: var(--measure); margin-inline: auto; }
.skip { position: fixed; top: -7rem; left: 16px; padding: 12px; background: white; color: var(--navy); z-index: 10; }
.skip:focus { top: 12px; }

.preview-bar { padding-block: 6px; font-size: 12px; background: var(--soft); color: var(--navy); }
.preview-inner { display: flex; justify-content: space-between; gap: 12px; }
.preview-inner details { max-width: min(100%, 420px); }
summary { cursor: pointer; }
.site-header { position: relative; z-index: 3; border-bottom: 1px solid var(--rule); color: var(--navy); background: var(--paper); }
[data-tone="ciemny"] .site-header { background: var(--navy); color: white; border-color: #ffffff28; }
.header-inner { display: flex; align-items: center; gap: clamp(18px, 3.2vw, 46px); min-height: 76px; }
.brand { flex: none; display: inline-flex; }
.brand img { width: clamp(98px, 9vw, 132px); height: auto; }
.desktop-nav { display: flex; align-items: center; justify-content: end; gap: clamp(18px, 3vw, 45px); margin-left: auto; font-size: 14px; }
.desktop-nav a { text-decoration: none; }
.desktop-nav a:hover { text-decoration: underline; }
.menu-toggle,.mobile-nav { display: none; }
.btn,.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}
.menu-toggle { display: none; }
.btn-primary { color: white; background: var(--navy); border-color: var(--navy); }
.btn-primary:hover { background: var(--green); border-color: var(--green); }
.btn-primary:disabled { background: #506575; border-color: #506575; }
[data-tone="ciemny"] .hero-copy .btn-primary { color: var(--navy); background: white; border-color: white; }
[data-tone="ciemny"] .hero-copy .btn-primary:hover { background: var(--ice); border-color: var(--ice); }

.pan-hero { position: relative; isolation: isolate; color: var(--hero-ink, var(--ink)); background: var(--hero-bg, var(--paper)); }
.hero-inner {
  position: relative;
  display: grid;
  width: var(--measure);
  min-height: var(--hero-min, 485px);
  margin-inline: auto;
  padding-block: var(--hero-pad, clamp(36px, 5vw, 76px));
  grid-template-columns: var(--hero-cols, minmax(0, 1.03fr) minmax(0, .97fr));
  grid-template-areas: var(--hero-areas, "copy image");
  align-items: var(--hero-align, center);
  gap: var(--hero-gap, clamp(22px, 4vw, 68px));
}
.hero-copy { grid-area: copy; position: relative; z-index: 1; min-width: 0; }
.hero-copy h1 { max-width: var(--title-width, 18ch); }
.hero-copy > p:not(.advisory-category) { margin-top: 21px; max-width: 48ch; font-size: clamp(15px, 1.4vw, 19px); }
.advisory-category { margin-bottom: 15px; font-size: 13px; font-weight: 650; }
.hero-copy .actions { margin-top: 24px; }
.hero-photo,.hero-photo { grid-area: image; width: 100%; }
.hero-photo img { height: 100%; object-fit: cover; object-position: var(--hero-crop, 50% 52%); }
.hero-photo { aspect-ratio: var(--hero-ratio, 1.4); }
.document-preview { padding: clamp(11px, 2vw, 26px); background: #e6eeeb; }
.document-preview a { display: grid; place-items: center; }
.pan-card .document-preview img { width: 100%; height: auto; aspect-ratio: 2.15; object-fit: contain; }
figcaption { padding-top: 9px; color: var(--navy); font-size: 12px; line-height: 1.4; }

main > .section { padding-block: var(--space); }
.section-head { margin-bottom: clamp(26px, 4vw, 52px); }
.section-head h2 { max-width: 24ch; }
.pan-grid,.pan-audience { display: grid; gap: clamp(20px, 3.2vw, 48px); }
.pan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pan-card,.pan-audience article { display: flex; flex-direction: column; min-width: 0; }
.pan-card > .photo { overflow: hidden; }
.pan-card .photo:not(.document-preview) { aspect-ratio: 1.9; }
.pan-card img,.pan-audience img,.delivery-photo img { height: 100%; object-fit: cover; }
.pan-card .card-copy { padding-block: 18px 24px; }
.card-copy p,.audience-copy p { margin-top: 9px; max-width: 56ch; }
.card-outputs { margin: 9px 0 0; padding-inline-start: 20px; }
.card-outputs li + li { margin-top: 3px; }
.pan-card.feature { grid-column: 1/-1; display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); background: var(--soft); gap: clamp(20px, 4vw, 60px); }
.pan-card.feature .card-copy { align-self: center; padding: 24px 25px 24px 0; }
.pan-card.feature h3 { font-size: clamp(24px, 3.1vw, 43px); }
.pan-audience { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pan-audience .photo { aspect-ratio: 3/2; overflow: hidden; }
.audience-copy { padding-block: 15px; }

.pan-delivery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: var(--measure);
  margin-inline: auto;
  color: white;
  background: var(--green);
}
.delivery-photo { min-width: 0; min-height: 0; }
.delivery-copy { padding: clamp(24px, 4.2vw, 68px); }
.kicker { font-size: 13px; margin-bottom: 17px; font-weight: 650; }
.pan-delivery h2 { font-size: clamp(31px, 3.45vw, 55px); }
.software-note { margin-top: 16px; }
.delivery-list { list-style: none; margin: 20px 0 0; padding: 0; }
.delivery-list li { border-top: 1px solid #ffffff55; padding: 13px 0; }
.delivery-list li:last-child { padding-bottom: 0; }
.delivery-list p { margin-top: 3px; font-size: 15px; }
.delivery-list strong { font-weight: 650; }

.inquiry-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 90px); align-items: start; }
.pan-inquiry { background: var(--ice); }
.inquiry-email { margin-top: 24px; }
.inquiry-email h3,.inquiry-form h3 { font-size: 19px; }
.inquiry-email p { margin-top: 5px; }
.inquiry-form { display: grid; grid-template-columns: repeat(2,minmax(0, 1fr)); gap: 17px; min-width: 0; }
.inquiry-form .full { grid-column: 1/-1; }
.inquiry-form label { display: block; font-size: 14px; margin-bottom: 5px; }
.inquiry-form label span { opacity: .75; }
.inquiry-form input,.inquiry-form select,.inquiry-form textarea {
  width: 100%; min-width: 0; min-height: 44px; padding: 9px; border: 1px solid #637b85; border-radius: 2px; color: var(--navy); background: #fff;
}
.inquiry-form input[type="checkbox"] { width: auto; min-height: 0; }
.inquiry-form textarea { resize: vertical; }
.inquiry-submit { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
#preview-form-note { font-size: 13px; }

body {
  --site-width: 1560px;
  --site-gutter: clamp(18px, 4vw, 94px);
  --measure: min(var(--site-width), calc(100% - 2 * var(--site-gutter)));
  --hero-gutter: max(var(--site-gutter), calc((100% - var(--site-width)) / 2));
  --paper: #f8fbfc;
  --portal-line: #adbfbe;
}

.pan-hero {
  --hero-ink: #fff;
  --hero-bg: var(--navy);
  overflow: hidden;
}
.hero-inner {
  min-height: clamp(480px, 34vw, 740px);
  width: 100%;
  grid-template-columns: var(--hero-gutter) minmax(0, 680px) minmax(var(--site-gutter), 1fr);
  grid-template-areas: ". copy .";
  padding: 0;
  gap: 0;
}
.hero-inner::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #122d3afa, #122d3ae6 30%, #122d3a91 47%, transparent 69%);
  content: "";
  pointer-events: none;
}
.hero-copy { padding-block: clamp(36px, 6vw, 96px); }
.hero-copy h1 {
  max-width: 16ch;
  font-size: clamp(42px, 5vw, 89px);
  letter-spacing: -.043em;
  font-weight: 520;
}
.hero-copy > p:not(.advisory-category) { margin-top: 17px; }
.hero-photo {
  position: absolute;
  inset: 0;
  grid-area: auto;
  height: 100%;
}
.hero-photo img { object-position: 50% 34%; }

.service-portal { background: #dce9e8; padding: clamp(22px, 2.7vw, 46px) 0; }
.portal-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #e9f0f0;
  border: 1px solid var(--portal-line);
}
.portal-tabs button {
  min-width: 0;
  min-height: 56px;
  padding: 9px 7px;
  border: 0;
  border-right: 1px solid var(--portal-line);
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  text-align: center;
  text-wrap: balance;
}
.portal-tabs button:last-child { border-right: 0; }
.portal-tabs button:hover { background: #dbe8e7; }
.portal-tabs button[aria-selected="true"] {
  color: #fff;
  background: var(--green);
  box-shadow: inset 0 -4px #b7d5d3;
}
.portal-tabs button:focus-visible { outline-offset: -5px; }
.portal-panel {
  border: 1px solid var(--portal-line);
  border-top: 0;
  padding: clamp(18px, 2.5vw, 38px);
  background: #f3f8f6;
}
.portal-panel h2 { font-size: clamp(25px, 2.4vw, 38px); letter-spacing: -.035em; }
.portal-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 35px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.portal-items li { min-width: 0; border-top: 1px solid var(--portal-line); padding-top: 9px; }
.portal-items li p { margin-top: 5px; font-size: 14px; line-height: 1.45; color: #405a62; }
.offer-links a { display: block; padding-block: 2px 4px; font-weight: 650; }
.pricing-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 12px 22px;
  margin-bottom: 22px;
}
.pricing-intro p { margin-top: 7px; }
.scope-copy { display: grid; gap: 26px; max-width: 78ch; }
.scope-copy p { margin-top: 9px; line-height: 1.58; }
.scope-copy section + section { border-top: 1px solid var(--portal-line); padding-top: 22px; }
.topics { margin-top: 16px; }
.topics a { display: inline-block; padding-block: 2px 4px; }
.pricing-table { width: 100%; border-collapse: collapse; }
.pricing-table th, .pricing-table td {
  border-top: 1px solid var(--portal-line);
  padding: 11px 0 11px 9px;
  text-align: left;
  vertical-align: top;
}
.pricing-table th:first-child { padding-left: 0; font-weight: 650; }
.pricing-table :is(th,td):last-child {
  width: clamp(48px, 16%, 175px);
  text-align: end;
}
.pricing-table th span { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: #405a62; }

#opracowania { background: #f7faf9; }
#opracowania .pan-card {
  display: flex;
  flex-direction: column;
  grid-column: auto;
  background: transparent;
  gap: 0;
  border-bottom: 1px solid #cbd5d0;
}
#opracowania .pan-card .card-copy { align-self: stretch; padding: 18px 0 22px; }
#opracowania .pan-card.feature h3 { font-size: clamp(20px, 2.04vw, 31px); }
#opracowania .document-preview {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: clamp(14px, 2.3vw, 40px);
  border-top: 5px solid #668482;
  background: linear-gradient(155deg, #e5efee 0 42%, #f9fbfa 42%);
}
#opracowania .pan-card:nth-child(2) .document-preview {
  border-color: #81947e;
  background: linear-gradient(155deg, #e5ece0 0 42%, #f9fbfa 42%);
}
.sample-link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  text-decoration: none;
}
.document-preview a.sample-link { display: flex; align-items: stretch; }
.document-mat {
  display: block;
  padding: clamp(4px, .7vw, 13px);
  background: #fff;
  box-shadow: 0 6px 14px #223b4127;
}
.pan-card .document-mat img { display: block; height: auto; aspect-ratio: auto; }
.sample-action { align-self: end; font-size: 13px; font-weight: 600; text-decoration: underline; }
.document-preview figcaption { padding-top: 8px; border-top: 1px solid #a4b8b7; }
.pan-delivery { background: var(--navy); border-radius: 16px; overflow: hidden; }
.inquiry-form { background: #fff; padding: clamp(15px, 2.7vw, 34px); border-radius: 12px; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .mobile-nav.open {
    position: absolute;
    display: flex;
    flex-direction: column;
    z-index: 4;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--navy);
    color: #fff;
    padding: 12px 22px;
  }
  .mobile-nav a { padding: 11px 0; text-align: left; justify-content: start; }
  .portal-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .preview-inner { display: block; }
  .header-inner { min-height: 62px; }
  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: var(--measure);
    min-height: 0;
    padding-block: 26px;
  }
  .hero-inner::after { display: none; }
  .hero-copy { padding: 0; width: 100%; }
  .hero-copy h1 { font-size: clamp(36px, 10vw, 56px); }
  .hero-copy .actions { margin-top: 17px; }
  .hero-photo { position: static; height: auto; aspect-ratio: 1.55; }
  .portal-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-tabs button { min-height: 47px; font-size: 14px; }
  .portal-tabs button:nth-child(2) { border-right: 0; }
  .portal-tabs button:nth-child(-n+2) { border-bottom: 1px solid var(--portal-line); }
  .portal-items li { font-size: 14px; }
  .pan-grid, .pan-delivery, .pan-audience, .inquiry-layout { grid-template-columns: minmax(0, 1fr); }
  .pan-delivery .delivery-photo { aspect-ratio: 1.9; }
  .inquiry-form { grid-template-columns: minmax(0, 1fr); }
}
