@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

/* Project-wide design tokens. Components should use these variables. */
:root {
  --color-ink: #182019;
  --color-muted: #566158;
  --color-paper: #f1f3ee;
  --color-surface: #ffffff;
  --color-line: #dfe4dc;
  --color-brand: #28613e;
  --color-brand-dark: #1d472e;
  --color-brand-soft: #dcebdd;
  --color-nav: #101812;
  --color-nav-muted: #d5dfd6;
  --shadow-soft: 0 12px 28px rgba(16, 24, 18, 0.18);
  --radius-sm: 6px;
  --radius-md: 10px;
  --content-width: 1160px;
  --space-page: clamp(20px, 4vw, 48px);
  --font-body: 'DM Sans', sans-serif;
  --font-heading: 'Manrope', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
body.disabled { overflow: hidden; }
img { max-width: 100%; }
main.about {
  flex: 1 0 auto;
}
a { color: var(--color-brand); }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(49, 92, 69, 0.35);
  outline-offset: 3px;
}
::selection { background: #cfe1d2; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-paper); }
::-webkit-scrollbar-thumb {
  background: #aab6aa;
  border: 3px solid var(--color-paper);
  border-radius: 10px;
}
.content {
  width: min(100% - (var(--space-page) * 2), var(--content-width));
  margin: 0 auto;
}

/* Navigation */
.navbar {
  position: fixed;
  z-index: 10;
  top: 0;
  width: 100%;
  background: rgba(16, 24, 18, 0.98);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background 220ms ease, box-shadow 220ms ease;
}
.navbar::after {
  position: fixed;
  z-index: 0;
  inset: 0;
  background: rgba(5, 10, 7, 0.58);
  content: '';
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.navbar.show::after {
  opacity: 1;
  pointer-events: auto;
}
.navbar .content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  transition: min-height 220ms ease;
}
.navbar.sticky {
  background: rgba(16, 24, 18, 0.99);
  box-shadow: 0 5px 18px rgba(16, 24, 18, 0.2);
}
.navbar.sticky .content { min-height: 74px; }
.navbar .logo { flex: 0 0 auto; }
.logo a {
  display: flex;
  align-items: center;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
}
.logo img {
  width: 74px;
  height: 74px;
  margin-right: 12px;
  object-fit: contain;
  transition: width 220ms ease, height 220ms ease, margin 220ms ease;
}
.navbar.sticky .logo img {
  width: 58px;
  height: 58px;
  margin-right: 10px;
}
.navbar .logo .logo_2 { padding: 0; }
.navbar .menu-list {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.nav-account { display: flex; flex: 0 0 34px; align-items: center; margin-left: 8px; }
.nav-account form { margin: 0; }
.nav-account-link {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--color-nav-muted);
  font-size: 15px;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}
.nav-account-link:hover, .nav-account-link:focus-visible {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.menu-list li { position: relative; list-style: none; }
.menu-list li a, .menu-list li button, .menu {
  display: block;
  padding: 10px 13px;
  color: var(--color-nav-muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: color 160ms ease, background 160ms ease;
}
.navbar .menu-list .nav-account-link {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  color: var(--color-nav-muted);
}
.menu-list li button:not(.icon) {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}
.navbar .menu-list > li > .margin > a:hover,
.navbar .menu-list > li > .margin > a:focus-visible,
.navbar .menu-list > li > .margin > button:hover,
.navbar .menu-list > li > .margin > button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.menu-list li a:hover, .menu-list li a:focus-visible { color: #fff; }
.navbar ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 210px;
  padding: 8px;
  background: var(--color-nav);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}
.navbar ul li.submenu-open > ul {
  display: block;
}
.navbar .menu-list > li > .margin .fas {
  display: inline-block;
  transition: transform 180ms ease;
}
.navbar .menu-list > li.submenu-open > .margin .fas {
  transform: rotate(180deg);
}
.navbar .menu-list > li > .margin > button:focus,
.navbar .menu-list > li > .margin > button:focus-visible {
  outline: none;
}
.navbar ul ul li a {
  white-space: nowrap;
  color: #e4ece5;
}
.navbar ul ul li a:hover,
.navbar ul ul li a:focus-visible {
  background: var(--color-brand);
  border-radius: 4px;
}
.navbar .padding, .navbar .margin { padding: 0; margin: 0; }
.icon {
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.menu-list .menu-close { display: none; }

/* Shared page layout and type */
.banner { height: 96px; }
.about { padding: 50px 0 80px; }
.about .title, h1, h2, h3, .title3 {
  color: var(--color-ink);
  font-family: var(--font-heading);
  line-height: 1.2;
}
.about .title, h1 {
  margin: 0 0 42px;
  padding: 0;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
}
.about p { padding-top: 12px; text-align: left; }
.rich-content > h1 { margin-bottom: 42px; }
.rich-content h2 { margin: 42px 0 18px; }
.rich-content h3 { margin: 28px 0 10px; }
.rich-content img { max-width: 100%; height: auto; }
.rich-content table { margin-top: 20px; }
.rich-content-body {
  width: 100%;
  max-width: 100%;
  color: var(--color-ink);
  font-size: 17px;
  line-height: 1.75;
}
.page-ekwipunek .rich-content-body {
  max-width: 100%;
}
.page-zastep .rich-content-body,
.page-zastep-edytor .rich-content-body {
  width: 100%;
  max-width: 100%;
}
.page-intro {
  max-width: 760px;
  margin: -8px 0 34px;
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.7;
}
.page-zastepy .rich-content {
  max-width: 100%;
}
.team-grid {
  display: flex;
  flex-direction: column;
  gap: 44px;
  margin-top: 28px;
}
.team-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  min-width: 0;
}
.team-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e1e8df;
  border-radius: var(--radius-sm);
}
.team-card__image--empty {
  display: grid;
  place-items: center;
  background: var(--color-brand-soft);
  color: var(--color-brand);
  font-size: 34px;
}
.team-card__content {
  min-width: 0;
}
.team-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.team-card h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
}
.team-card p {
  margin: 0;
  padding: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.7;
}
.team-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--color-ink);
  line-height: 1.8;
}
.team-card__details {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}
.team-card__details > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.65fr) minmax(0, 1.35fr);
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid rgba(24, 32, 25, 0.1);
}
.team-card__details dt {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
}
.team-card__details dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.team-grid__empty { grid-column: 1 / -1; color: var(--color-muted); }
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--color-brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}
.button-link--simple {
  padding: 0;
  min-height: auto;
  background: transparent;
  color: var(--color-brand-dark);
  border-radius: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.button-link:hover,
.button-link:focus-visible {
  background: var(--color-brand-dark);
  transform: translateY(-1px);
}
.button-link--simple:hover,
.button-link--simple:focus-visible {
  background: transparent;
  color: var(--color-brand);
  transform: none;
}
.troop-page {
  display: grid;
  gap: 28px;
}
.troop-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 8px;
  border-bottom: 1px solid var(--color-line);
}
.troop-hero h2 {
  margin: 6px 0 0;
  font-size: clamp(30px, 4vw, 42px);
}
.eyebrow {
  display: none;
}
.troop-badge {
  display: none;
}
.troop-edit-form {
  display: grid;
  gap: 12px;
}
.troop-edit-form textarea {
  width: 100%;
  min-height: 380px;
  padding: 14px 16px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: #fff;
  color: var(--color-ink);
  font: inherit;
  resize: vertical;
}
.news-editor-form {
  max-width: 100%;
}
.news-editor-field {
  display: grid;
  gap: 7px;
  font-weight: 500;
  color: var(--color-ink);
}
.news-editor-field span {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--color-muted);
}
.news-editor-field input,
.news-editor-field textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: #fff;
  color: var(--color-ink);
  font: inherit;
}
.news-editor-field--title input,
.news-editor-field--compact input {
  max-width: 100%;
  min-height: 42px;
}
.news-editor-field--title {
  max-width: 620px;
}
.news-editor-field--content {
  width: 100%;
}
.news-editor-field input[type="file"] {
  height: 42px;
  padding: 8px 10px;
  border: 1px dashed var(--color-line);
  background: #f8faf8;
}
.news-editor-field textarea {
  min-height: 340px;
}
.news-editor-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.news-editor-row--bottom {
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.2fr) auto;
  align-items: end;
}
.news-editor-row--bottom.news-editor-row--edit {
  grid-template-columns: minmax(220px, 420px) auto;
}
.news-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
@media (max-width: 760px) {
  .news-editor-row--bottom,
  .news-editor-row--bottom.news-editor-row--edit {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 540px) {
  .team-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .team-grid { gap: 30px; }
  .team-card__content { display: contents; }
  .team-card__heading {
    order: 0;
    margin-bottom: 0;
  }
  .team-card h2 {
    order: 0;
    margin: 0;
    font-size: 28px;
  }
  .team-card__image {
    order: 1;
    aspect-ratio: 16 / 10;
  }
  .team-card__details { order: 2; }
  .team-card__details > div {
    grid-template-columns: minmax(92px, 0.7fr) minmax(0, 1.3fr);
    gap: 12px;
  }
}
.troop-hero--compact {
  padding-top: 8px;
  padding-bottom: 8px;
}
.troop-hero--compact h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
}
.troop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
}
.troop-info-card {
  width: 100%;
  padding: 22px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 16px;
  box-shadow: 0 16px 28px rgba(17, 24, 21, 0.04);
}
.troop-info-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
}
.troop-info-card ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.9;
}
.rich-content-body + .rich-content-secondary {
  padding-top: 28px;
  margin-top: 34px;
  border-top: 1px solid var(--color-line);
}
.rich-content-body p { margin: 0 0 18px; padding: 0; }
.rich-content-body p:last-child { margin-bottom: 0; }
.rich-content-body ul, .rich-content-body ol {
  padding-left: 28px;
  margin: 0 0 24px;
}
.rich-content-body li { padding-left: 6px; margin-bottom: 6px; }
.rich-content-body ul li::marker { color: var(--color-brand); }
.rich-content-body a { font-weight: 600; }
.rich-content-body h2 { margin-top: 34px; }
.rich-content-body img {
  display: block;
  width: min(100%, 760px);
  margin: 24px 0 8px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.rich-content-body b, .rich-content-body strong { color: var(--color-brand-dark); }
.info-section { margin-top: 34px; }
.info-section h2 { margin-top: 0; }
.page-dokumenty .rich-content-body {
  max-width: 860px;
}
.documents-notice {
  margin-bottom: 36px;
}
.documents-notice h2 {
  margin: 0 0 4px;
  color: var(--color-brand-dark);
  font-size: 20px;
}
.documents-notice p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}
.documents-section {
  margin-top: 38px;
}
.documents-section > h2 {
  margin: 0 0 14px;
  font-size: 23px;
}
.documents-list {
  display: grid;
  gap: 10px;
}
.documents-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}
.documents-file-icon {
  display: grid;
  width: 42px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius-sm);
  background: #f6e9e7;
  color: #a34036;
  font-size: 21px;
}
.documents-file-info {
  min-width: 0;
  flex: 1;
}
.documents-file-info h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}
.documents-file-info span {
  color: var(--color-muted);
  font-size: 13px;
}
.download-button.documents-download {
  flex: 0 0 auto;
  gap: 8px;
  margin: 0;
}
.download-button.documents-download i {
  margin: 0;
}
.page-stopnie .rich-content-body {
  max-width: 900px;
  font-size: 17px;
  line-height: 1.7;
}
.page-stopnie .rich-content-body > h2 {
  padding-bottom: 10px;
  margin: 46px 0 24px;
  border-bottom: 2px solid var(--color-brand);
  color: var(--color-brand-dark);
  font-size: clamp(24px, 3vw, 30px);
}
.page-stopnie .rich-content-body > h2:first-child { margin-top: 0; }
.page-stopnie .rich-content-body > h3 {
  padding: 0;
  margin: 30px 0 10px;
  color: var(--color-ink);
  font-size: clamp(18px, 2.5vw, 22px);
}
.page-stopnie .rich-content-body > p {
  padding: 0;
  margin: 0 0 14px;
}
.degree-path {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  color: var(--color-brand-dark);
  font-weight: 700;
  white-space: nowrap;
}
.degree-path-arrow {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 400;
}
.page-stopnie .info-section {
  padding-top: 4px;
  margin-top: 44px;
  border-top: 1px solid var(--color-line);
}
.page-stopnie .info-section h2 {
  margin-bottom: 16px;
  font-size: clamp(21px, 3vw, 27px);
}
.page-stopnie .button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.page-stopnie .download-button { margin: 0; }
.inline-note { margin: 30px 0 26px !important; }
.inline-note strong { font-weight: 800; }
.fee-highlight {
  display: grid;
  width: min(100%, 420px);
  gap: 4px;
  padding: 24px;
  margin: 30px 0 38px;
  border-radius: var(--radius-md);
  background: var(--color-brand-dark);
  color: #fff;
}
.fee-highlight-label { color: #dcebdd; font-size: 14px; font-weight: 600; }
.fee-highlight strong { color: #fff; font-family: var(--font-heading); font-size: 34px; line-height: 1.1; }
.fee-highlight strong small { font-family: var(--font-body); font-size: 16px; font-weight: 600; }
.fee-highlight > span:last-child { color: #dcebdd; }
.payment-details { max-width: 680px; margin: 0; }
.payment-details div { padding: 16px 0; border-bottom: 1px solid var(--color-line); }
.payment-details dt { color: var(--color-muted); font-size: 13px; font-weight: 700; }
.payment-details dd { margin: 4px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.page-skladki .rich-content-secondary { padding-top: 28px; margin-top: 34px; }
.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 420px);
  align-items: start;
  gap: 28px;
  width: 100%;
}
.payment-layout > .rich-content-body,
.payment-layout > .rich-content-secondary {
  margin: 0;
}
.payment-layout .rich-content-secondary {
  padding: 24px 24px 18px;
  margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px rgba(24, 32, 25, 0.04);
}
.payment-layout .rich-content-secondary h2 {
  margin-top: 0;
}
.equipment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 460px);
  align-items: stretch;
  gap: 28px;
  width: 100%;
}
.equipment-layout > div {
  min-width: 0;
}
.packing-diagram {
  display: flex;
  width: min(100%, 460px);
  max-width: 100%;
  flex-direction: column;
  align-items: stretch;
  justify-self: end;
  margin: 8px 0 0 auto;
}
.packing-diagram img {
  display: block;
  width: 100%;
  max-width: 460px;
  max-height: 560px;
  height: auto;
  margin: 0;
  border-radius: var(--radius-sm);
  box-shadow: none;
  object-fit: contain;
}
.packing-diagram figcaption {
  width: 100%;
  max-width: 460px;
  padding-top: 9px;
  color: var(--color-muted);
  font-size: 13px;
  text-align: center;
  margin: 0;
}

/* News and reusable content */
.linki {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}
.linki a, .wpis-calosc a { color: var(--color-brand); text-decoration: none; }
.linki a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(40, 97, 62, .2);
  border-radius: 8px;
  background: rgba(40, 97, 62, .08);
  color: var(--color-brand-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.linki a:hover, .linki a:focus-visible {
  border-color: rgba(40, 97, 62, .35);
  background: var(--color-brand-soft);
  outline: none;
  transform: translateY(-1px);
}
.underline { position: relative; }
.linki .underline::after { display: none; }
.underline::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 2px;
  content: '';
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}
.underline:hover::after, .underline:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
.wpis-calosc {
  padding: 0 0 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--color-line);
  font-size: 17px;
  text-align: left;
}
.wpis-calosc:last-of-type { margin-bottom: 0; }
.data2 { margin: 0 0 10px; color: var(--color-muted); font-size: 14px; font-weight: 600; }
.tytul2 {
  margin: 0 0 18px;
  padding: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
}
.tresc { white-space: pre-wrap; }
.tresc img {
  display: block;
  width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: var(--radius-md);
}
.autor { padding-top: 24px; color: var(--color-muted); font-size: 14px; font-weight: 600; text-align: right; }
.news-pagination {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}
.news-pagination__older {
  min-height: 38px;
  padding: 7px 16px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: transparent;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}
.news-pagination__older:hover,
.news-pagination__older:focus-visible {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
  color: var(--color-brand-dark);
}
.wpis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.wpis-header .tytul2 {
  margin: 0;
  line-height: 1.2;
}
.akcje {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 0;
  margin-left: auto;
  padding: 0;
}
.action-link {
  display: inline-flex;
  width: 30px;
  height: 30px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(40, 97, 62, 0.14);
  border-radius: 50%;
  color: var(--color-brand-dark);
  background: rgba(40, 97, 62, 0.06);
  font: inherit;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.action-link i {
  font-size: 13px;
  line-height: 1;
}
.action-link--edit {
  color: var(--color-brand-dark);
}
.action-link--danger {
  background: rgba(143, 38, 38, 0.06);
  border-color: rgba(143, 38, 38, 0.14);
  color: #7a1d1d;
}
.action-link:hover,
.action-link:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
  background: rgba(40, 97, 62, 0.10);
  border-color: rgba(40, 97, 62, 0.18);
  outline: none;
}
.action-link--danger:hover,
.action-link--danger:focus-visible {
  background: rgba(143, 38, 38, 0.10);
  border-color: rgba(143, 38, 38, 0.18);
  color: #7a1d1d;
}
button.action-link,
button.action-link--danger,
button.action-link--restore {
  min-height: 30px;
  padding: 0;
  border: 1px solid rgba(40, 97, 62, 0.14);
  border-radius: 50%;
  background: rgba(40, 97, 62, 0.06);
  color: var(--color-brand-dark);
  box-shadow: none;
  cursor: pointer;
}
button.action-link--danger {
  background: rgba(143, 38, 38, 0.06);
  border-color: rgba(143, 38, 38, 0.14);
  color: #7a1d1d;
}
button.action-link--restore {
  background: rgba(40, 97, 62, 0.06);
  border-color: rgba(40, 97, 62, 0.14);
  color: var(--color-brand-dark);
}
button.action-link:hover,
button.action-link:focus-visible,
button.action-link--danger:hover,
button.action-link--danger:focus-visible,
button.action-link--restore:hover,
button.action-link--restore:focus-visible {
  background: rgba(40, 97, 62, 0.10);
  border-color: rgba(40, 97, 62, 0.18);
  transform: translateY(-1px);
  outline: none;
}
button.action-link--danger:hover,
button.action-link--danger:focus-visible {
  background: rgba(143, 38, 38, 0.10);
  border-color: rgba(143, 38, 38, 0.18);
}

.deleted-list {
  display: grid;
  gap: 0;
}
.deleted-item {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--color-line);
}
.deleted-item:last-child {
  border-bottom: 0;
}
.inline-action-form {
  margin: 0;
}
.action-link--restore {
  color: var(--color-brand-dark);
  background: rgba(40, 97, 62, 0.06);
  border-color: rgba(40, 97, 62, 0.14);
}
.action-link--restore:hover,
.action-link--restore:focus-visible {
  background: rgba(40, 97, 62, 0.10);
  border-color: rgba(40, 97, 62, 0.18);
}
.empty-state {
  padding: 22px 0;
  color: var(--color-muted);
  font-size: 17px;
}
.news-files {
  margin-top: 18px;
  padding-top: 10px;
}
.news-files__label {
  margin-bottom: 8px;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.news-files__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.news-file-item {
  display: inline-flex;
  max-width: 100%;
}
.news-file-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 10px 7px 8px;
  border: 1px solid rgba(40, 97, 62, 0.12);
  border-radius: 999px;
  background: rgba(40, 97, 62, 0.025);
  color: var(--color-ink);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.news-file-link.is-pending {
  background: rgba(120, 120, 120, 0.04);
  border-style: dashed;
  color: var(--color-muted);
}
.news-file-link:hover,
.news-file-link:focus-visible {
  border-color: rgba(40, 97, 62, 0.24);
  background: rgba(40, 97, 62, 0.04);
  transform: translateY(-1px);
  text-decoration: none;
  outline: none;
}
.news-file-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(40, 97, 62, 0.06);
  color: var(--color-brand-dark);
  font-size: 11px;
}
.news-file-meta {
  display: flex;
  min-width: 0;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
}
.news-file-name {
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}
.news-file-size {
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.3;
}
.legacy-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.legacy-attachments a {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid rgba(40, 97, 62, 0.12);
  border-radius: 999px;
  background: rgba(40, 97, 62, 0.025);
  color: var(--color-brand-dark);
  text-decoration: none;
}

/* Controls, forms and tables */
button, .przycisk, .przycisk2, .download-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid var(--color-brand);
  border-radius: var(--radius-sm);
  background: var(--color-brand);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
button:hover, .przycisk:hover, .przycisk2:hover, .download-button:hover {
  background: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
  transform: translateY(-1px);
}
.navbar .menu-list li button:hover,
.navbar .menu-list li button:focus-visible {
  transform: none;
}
.download-button { margin: 0 8px 8px 0; }
.download-button i { margin-right: 8px; }
input, textarea, select {
  max-width: 100%;
  padding: 9px 11px;
  border: 1px solid #c9d2c9;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-ink);
  font: inherit;
}
.textarea1, .textarea_opis { width: 100%; padding: 12px; resize: vertical; }
.textarea1 { min-height: 450px; }
.textarea_opis { min-height: 200px; }
.tytul { width: min(100%, 420px); margin-bottom: 12px; }
.osoba { width: min(100%, 260px); margin-bottom: 15px; }
.title3 { margin: 42px 0 24px; font-size: clamp(26px, 4vw, 38px); font-weight: 700; }
.podtytul2 { margin-top: 32px; }
.godziny2 { font-weight: 600; }
.godziny { margin-bottom: 10px; }
table { width: 100%; margin: 30px 0 40px; border-collapse: collapse; background: var(--color-surface); }
td, th { padding: 10px; border: 1px solid var(--color-line); text-align: left; }
th { background: var(--color-brand-soft); font-weight: 700; }
th:nth-of-type(1) { width: 7%; }
th:nth-of-type(3) { width: 15%; }
.tel a { text-decoration: none; }
.calosc_filtry { clear: both; }
.filtry { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 20px 0; }
.usun { width: 100%; }

/* Footer */
.footer {
  width: 100%;
  padding: 24px 0 16px;
  background: var(--color-nav);
  color: var(--color-nav-muted);
  font-size: 14px;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer-contact {
  display: grid;
  gap: 8px;
  flex: 1 1 auto;
}
.footer-contact-title {
  margin: 0;
  color: #dfe8df;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-contact-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  font-style: normal;
}
.footer .tel {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}
.footer .tel i {
  color: #dcebdd;
  font-size: 11px;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.58);
}
.meta-brand {
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.meta-team {
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
}
.footer a { color: #fff; text-decoration: none; }
.footer a:hover, .footer a:focus-visible { text-decoration: underline; }

@media (max-width: 760px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-contact-list {
    gap: 8px 12px;
  }
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* Sections retained for the remaining migration. */
.komenda, .galeria_container { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.komenda .info { margin-top: 10px; }
.komenda p { padding: 0; }
.komenda-element img { display: block; width: min(100%, 190px); height: auto; }
.galeria_container { align-items: flex-start; margin: 0 auto; font-size: 14px; text-align: center; }
.galeria_container img { width: 200px; height: 200px; object-fit: cover; border-radius: var(--radius-sm); }
.galeria_container a { color: var(--color-ink); text-decoration: none; }
.wydarzenie { max-width: 200px; }
h2.galeria { margin: 0 0 42px; padding: 0; font-size: clamp(30px, 5vw, 48px); }

@media (max-width: 1000px) {
  .navbar .content { min-height: 82px; }
  .logo img { width: 60px; height: 60px; }
  .logo a { font-size: 18px; }
  .icon { display: block; }
  .icon.hide { display: none; }
  .navbar .menu-list {
    position: fixed;
    flex: none;
    top: 0;
    left: -100%;
    display: block;
    width: min(88vw, 360px);
    height: 100vh;
    z-index: 2;
    padding: 76px 20px 24px;
    overflow-y: auto;
    background: var(--color-nav);
    box-shadow: 12px 0 32px rgba(5, 10, 7, 0.28);
    transition: left 220ms ease;
  }
  .nav-account-item {
    margin-top: 10px;
    padding: 12px 8px 0;
  }
  .nav-account { margin: 0; }
  .navbar.show .menu-list { left: 0; }
  .navbar .menu-list .menu-close {
    display: block;
    position: static;
  }
  .menu-list li a, .menu-list li button, .menu { margin: 0; padding: 12px 8px; }
  .menu-list .cancel-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
  }
  .navbar ul ul {
    position: static;
    min-width: 0;
    padding: 0 0 8px 16px;
    border: 0;
    box-shadow: none;
  }
  .navbar .menu-list li.submenu-open > ul { display: block; }
  .about { padding-top: 40px; }
  .wpis-calosc { font-size: 16px; }
  .galeria_container img { width: min(42vw, 200px); height: min(42vw, 200px); }
  .wydarzenie { max-width: 42vw; }
}

@media (max-width: 520px) {
  .navbar .menu-list {
    width: calc(100% - 16px);
  }
  .about .title, h1 { margin-bottom: 30px; }
  .documents-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }
  .download-button.documents-download {
    grid-column: 2;
    justify-self: start;
  }
  table { display: block; overflow-x: auto; font-size: 14px; }
  .rich-content-body { font-size: 16px; }
  .payment-layout {
    display: block;
  }
  .payment-layout .rich-content-secondary {
    margin-top: 24px;
    padding: 20px 18px 14px;
  }
  .page-skladki .rich-content-secondary { padding-top: 22px; margin-top: 28px; }
  .equipment-layout {
    display: block;
  }
  .packing-diagram {
    width: 100%;
    max-width: 100%;
    margin-top: 28px;
    align-items: stretch;
  }
  .packing-diagram img {
    width: 100%;
    max-width: 100%;
    max-height: none;
  }
  .packing-diagram figcaption {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
  .galeria_container { gap: 12px; }
  .galeria_container img { width: 42vw; height: 42vw; }
}

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