/* Europejskie Centrum Bezpieczeństwa Sportu i Rekreacji — demo Programo */

:root {
  --ink: #16283a;
  --ink-2: #1e3550;
  --steel: #35597c;
  --gold: #b4863a;
  --gold-light: #d9b571;
  --paper: #f1efe8;
  --paper-2: #e8e4d8;
  --line: #d9d4c6;
  --slate: #5b6472;
  --white: #ffffff;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--steel); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.mono {
  font-family: "IBM Plex Mono", "Courier New", monospace;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  height: 42px;
  width: auto;
  flex: none;
}

.brand-name {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.25;
  color: var(--ink);
}

.brand-name span {
  display: block;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--slate);
  letter-spacing: 0.01em;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.96rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  font-family: "IBM Plex Sans", Arial, sans-serif;
}

.btn:hover { background: var(--ink-2); }

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover { background: var(--ink); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 8px 10px;
  font-size: 1rem;
  color: var(--ink);
}

@media (max-width: 860px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 20px;
    gap: 4px;
    display: none;
  }

  nav.main-nav.open { display: flex; }

  nav.main-nav a {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  nav.main-nav .btn {
    margin-top: 10px;
    justify-content: center;
  }

  .nav-toggle { display: inline-flex; }
}

/* ---------- hero ---------- */

.hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero .kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  color: var(--gold-light);
  margin: 0 0 18px;
}

.hero h1 { color: var(--white); }

.hero .lede {
  color: #cfd7de;
  font-size: 1.08rem;
  max-width: 46ch;
}

.hero .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-frame {
  position: relative;
  border: 1px solid rgba(217, 181, 113, 0.5);
  padding: 14px;
}

.hero-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-frame::before,
.hero-frame::after,
.hero-frame span::before,
.hero-frame span::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--gold);
  border-style: solid;
}

.hero-frame::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.hero-frame::after { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.hero-frame span::before { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.hero-frame span::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 44px; gap: 36px; }
  .hero-frame { order: -1; }
}

/* ---------- sections ---------- */

section { padding: 72px 0; }

.section-tight { padding: 56px 0; }

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 62ch;
  margin-bottom: 44px;
}

.section-head p { color: var(--slate); font-size: 1.05rem; }

/* three pillars — vertical ledger list, not cards */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.pillar {
  padding: 30px 28px 30px 0;
  border-bottom: 1px solid var(--line);
}

.pillar + .pillar { border-left: 1px solid var(--line); padding-left: 28px; }

.pillar .num {
  font-family: "IBM Plex Mono", monospace;
  color: var(--gold);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 14px;
}

.pillar h3 { margin-bottom: 10px; }

.pillar p { color: var(--slate); margin-bottom: 0; }

@media (max-width: 780px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: none; padding-left: 0; }
  .pillar { padding-right: 0; }
}

/* step ledger — jak wygląda zlecenie kontroli */

.steps {
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.step .step-no {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  color: var(--gold);
  padding-top: 2px;
}

.step h3 { margin-bottom: 6px; }
.step p { color: var(--slate); margin-bottom: 0; max-width: 62ch; }

/* protocol widget — element wyróżniający */

.protocol {
  background: var(--ink);
  color: var(--paper);
}

.protocol .section-head p { color: #b7c1cb; }
.protocol .section-head h2 { color: var(--white); }

.protocol-doc {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--gold);
  max-width: 760px;
}

.protocol-doc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
}

.protocol-doc-head .doc-title {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
}

.protocol-doc-head .doc-ref {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: var(--slate);
}

.protocol-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 16px 26px;
  border-bottom: 1px solid var(--line);
}

.protocol-row:last-child { border-bottom: none; }

.protocol-row .p-name { font-weight: 600; }
.protocol-row .p-desc { display: block; font-weight: 400; color: var(--slate); font-size: 0.92rem; margin-top: 2px; }

.protocol-row .p-norm {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: var(--steel);
  white-space: nowrap;
}

/* trust strip */

.trust {
  border-top: 1px solid var(--line);
  padding-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  align-items: baseline;
}

.trust span.label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: var(--slate);
}

.trust strong { font-weight: 600; }

/* full-bleed photo banner */

.photo-banner {
  position: relative;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.photo-banner .caption {
  background: rgba(22, 40, 58, 0.88);
  color: var(--paper);
  padding: 22px 26px;
  max-width: 520px;
  margin: 24px;
}

.photo-banner .caption p { margin: 0; font-size: 0.95rem; color: #cfd7de; }
.photo-banner .caption .norm { font-family: "IBM Plex Mono", monospace; color: var(--gold-light); font-size: 0.8rem; display: block; margin-bottom: 8px; }

/* offer page — service groups */

.offer-group {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
}

.offer-group:last-child { border-bottom: 1px solid var(--line); }

.offer-group h3 { margin-bottom: 8px; }
.offer-group .group-note { color: var(--slate); font-size: 0.92rem; }

.offer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.offer-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
}

.offer-list li:last-child { border-bottom: none; }

.offer-list li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  background: var(--gold);
}

@media (max-width: 780px) {
  .offer-group { grid-template-columns: 1fr; gap: 12px; }
}

/* norms table */

.norms {
  border-top: 1px solid var(--line);
}

.norm-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.norm-row .code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  color: var(--steel);
  padding-top: 2px;
}

.norm-row .norm-title { font-weight: 600; margin-bottom: 4px; }
.norm-row .norm-desc { color: var(--slate); font-size: 0.94rem; margin: 0; }

@media (max-width: 700px) {
  .norm-row { grid-template-columns: 1fr; gap: 6px; }
}

/* o nas */

.people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.person-card {
  border: 1px solid var(--line);
  padding: 28px;
  background: var(--white);
}

.person-card .role { color: var(--gold); font-family: "IBM Plex Mono", monospace; font-size: 0.82rem; display: block; margin-bottom: 10px; }

@media (max-width: 780px) {
  .people { grid-template-columns: 1fr; }
}

/* kontakt */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-block + .contact-block { margin-top: 34px; }

.contact-block .label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--slate);
  display: block;
  margin-bottom: 6px;
}

.contact-block a { color: var(--ink); text-decoration: none; }
.contact-block a:hover { color: var(--steel); }

form.order-form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 0.98rem;
  color: var(--ink);
  border-radius: 2px;
}

.field textarea { resize: vertical; min-height: 110px; }

.form-note {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--slate);
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  display: none;
}

.form-note.visible { display: block; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* final cta */

.cta-band {
  background: var(--gold);
  color: var(--ink);
  text-align: left;
}

.cta-band .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 { margin-bottom: 6px; }
.cta-band p { margin: 0; color: #4a3a1c; }

/* footer */

footer.site-footer {
  background: var(--ink);
  color: #b7c1cb;
  padding: 48px 0 22px;
}

footer.site-footer .foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(217, 212, 198, 0.15);
}

footer.site-footer h4 {
  color: var(--paper);
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 0.92rem;
  margin: 0 0 14px;
}

footer.site-footer a { color: #b7c1cb; text-decoration: none; }
footer.site-footer a:hover { color: var(--gold-light); }

footer.site-footer ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer li { margin-bottom: 8px; font-size: 0.94rem; }

footer.site-footer .brand-name { color: var(--paper); }
footer.site-footer .brand-name span { color: #93a0ab; }

.foot-bottom {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #7f8b96;
}

@media (max-width: 780px) {
  footer.site-footer .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* page header (subpages) */

.page-head {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 52px 0 40px;
}

.page-head .kicker {
  font-family: "IBM Plex Mono", monospace;
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.page-head p { color: var(--slate); max-width: 62ch; font-size: 1.05rem; }
