/* =========================================================================
   Czytelna Strona — arkusz stylów
   Paleta: granat / krem / szałwia · Font: Inter
   Bazuje na najnowszym makiecie (strona-glowna v6) + dodatki dla podstron.
   ========================================================================= */

/* ====== ZMIENNE ====== */
:root {
  --granat: #1B2845;
  --granat-90: rgba(27, 40, 69, 0.9);
  --granat-75: rgba(27, 40, 69, 0.75);
  --granat-60: rgba(27, 40, 69, 0.6);
  --granat-08: rgba(27, 40, 69, 0.08);

  --krem: #F8F5EF;
  --krem-jasniejszy: #FBF9F5;
  --bialy: #FFFFFF;

  --szalwia: #7A8B73;
  --szalwia-18: rgba(122, 139, 115, 0.18);
  --szalwia-08: rgba(122, 139, 115, 0.08);

  --max-width: 1100px;
  --radius-button: 8px;
  --radius-card: 12px;
  --radius-section: 16px;
}

/* ====== RESET ====== */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* ====== SELECTION ====== */
::selection { background: rgba(122, 139, 115, 0.35); color: var(--granat); }
::-moz-selection { background: rgba(122, 139, 115, 0.35); color: var(--granat); }
.section-dark ::selection, .footer ::selection { background: rgba(122, 139, 115, 0.55); color: var(--krem); }
.section-dark ::-moz-selection, .footer ::-moz-selection { background: rgba(122, 139, 115, 0.55); color: var(--krem); }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--granat);
  background: var(--krem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; height: auto; display: block; }

/* ====== UTILITIES ====== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.section { padding: 56px 0; }
.section-tight { padding: 60px 0; }
.section-dark { background: var(--granat); color: var(--krem); }
.section-white { background: var(--krem); }

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--szalwia);
  margin-bottom: 12px;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--granat);
}
.section-dark .section-title { color: var(--krem); }

.section-intro {
  font-size: 17px;
  color: var(--granat-75);
  max-width: 640px;
  margin-bottom: 40px;
  line-height: 1.55;
}
.section-dark .section-intro { color: rgba(248, 245, 239, 0.78); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--szalwia);
  padding: 8px 0;
  border-bottom: 1px solid var(--szalwia);
  transition: opacity 0.2s;
}
.link-more:hover { opacity: 0.75; }
.section-dark .link-more { color: var(--krem); }

/* ====== HEADER ====== */
.header {
  background: var(--krem);
  border-bottom: 1px solid var(--granat-08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}
.logo { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--granat); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--granat-75); transition: color 0.2s; }
.nav-link:hover { color: var(--granat); }
.nav-link.active { color: var(--granat); }
.nav-link.active::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--szalwia);
  border-radius: 2px;
  margin-top: 3px;
}

.nav-cta {
  background: var(--szalwia);
  color: var(--krem);
  padding: 8px 16px;
  border-radius: var(--radius-button);
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.9; }

.menu-toggle { display: none; font-size: 24px; color: var(--granat); }

/* ====== TOOLTIPS (nowoczesny "title" w <a>) ====== */
.logo, .nav .nav-link, .nav .nav-cta, .btn-primary, .btn-secondary { position: relative; }

.logo-tooltip, .nav-tooltip {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--granat);
  color: var(--krem);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
  box-shadow: 0 6px 18px rgba(27, 40, 69, 0.18);
  letter-spacing: 0.005em;
}

.logo-tooltip {
  white-space: normal;
  min-width: 220px;
  text-align: center;
  line-height: 1.5;
  padding: 14px 18px;
}
.logo-tooltip strong { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; color: var(--krem); }
.logo-tooltip span { color: rgba(248, 245, 239, 0.75); font-weight: 400; }

.logo-tooltip::before, .nav-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--granat);
}

.logo:hover .logo-tooltip,
.logo:focus .logo-tooltip,
.nav-link:hover .nav-tooltip,
.nav-link:focus .nav-tooltip,
.nav-cta:hover .nav-tooltip,
.nav-cta:focus .nav-tooltip,
.btn-primary:hover .nav-tooltip,
.btn-primary:focus .nav-tooltip,
.btn-secondary:hover .nav-tooltip,
.btn-secondary:focus .nav-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ====== PRZYCISKI ====== */
.btn-primary {
  background: var(--granat);
  color: var(--krem);
  padding: 14px 24px;
  border-radius: var(--radius-button);
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.2s;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.9; }

.btn-secondary {
  background: transparent;
  color: var(--granat);
  padding: 14px 24px;
  border-radius: var(--radius-button);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--szalwia);
  transition: background 0.2s;
  display: inline-block;
}
.btn-secondary:hover { background: var(--szalwia-08); }
.section-dark .btn-secondary { color: var(--krem); }

/* ====== HERO (strona główna) ====== */
.hero { padding: 80px 0 40px; }
.hero + .section { padding-top: 16px; }
.hero-headline {
  font-size: 48px; font-weight: 600; letter-spacing: -0.025em;
  line-height: 1.1; margin-bottom: 12px; color: var(--granat);
}
.hero-subheadline {
  font-size: 22px; font-weight: 400; color: var(--granat-75);
  margin-bottom: 40px; letter-spacing: -0.005em;
}
.hero-points { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; max-width: 680px; }
.hero-point { display: flex; gap: 18px; align-items: flex-start; }
.hero-point-num {
  flex-shrink: 0; width: 36px; height: 36px;
  background: var(--szalwia-18); color: var(--szalwia);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.hero-point-content h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.hero-point-content p { font-size: 15px; color: var(--granat-75); line-height: 1.55; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ====== HERO: strona + panel ====== */
.hero-duo { display: grid; grid-template-columns: 1fr 56px 1fr; gap: 0 24px; align-items: start; margin: 8px 0 28px; }
.hero-duo-col { min-width: 0; }
.hero-duo-label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--szalwia); margin-bottom: 14px; }
.hero-duo-img { display: block; width: 100%; max-width: 980px; height: auto; margin: 24px auto 28px; border-radius: 12px; border: 1px solid rgba(27, 40, 69, 0.18); box-shadow: 0 12px 32px rgba(27, 40, 69, 0.12); }
.hero-duo-desc { font-size: 15px; color: var(--granat-75); line-height: 1.55; margin-top: 16px; }
/* Podpis pod zrzutem — jak w katalogu: etykieta blisko obrazu, cicho */
.img-caption { max-width: 980px; margin: -16px auto 28px; text-align: center; font-size: 14px; line-height: 1.6; color: var(--granat-60); }
.hero-duo-plus { align-self: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bialy); border: 1.5px solid var(--szalwia); color: var(--granat); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 600; line-height: 1; box-shadow: 0 6px 18px rgba(27, 40, 69, 0.08); }
.hero-duo-summary { font-size: 18px; line-height: 1.5; color: var(--granat); max-width: 760px; margin: 0 0 32px; }
.hero-duo-summary strong { font-weight: 600; }
.module-tags { list-style: none; padding: 0; max-width: 980px; margin: 20px auto 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.module-tags li { font-size: 14px; color: var(--granat-75); background: var(--bialy); border: 1px solid var(--granat-08); border-radius: 999px; padding: 7px 16px; }
.lead-list { list-style: none; max-width: 980px; margin: 8px auto 0; padding: 0; }
.lead-list li { font-size: 19px; line-height: 1.5; color: var(--granat); padding: 16px 0 16px 32px; position: relative; border-bottom: 1px solid var(--granat-08); }
.lead-list li:last-child { border-bottom: none; }
.lead-list li::before { content: ''; position: absolute; left: 0; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--szalwia); }
.author-block { max-width: 720px; margin: 0 auto; text-align: center; }
.author-prose p { font-size: 17px; line-height: 1.65; color: var(--granat-75); margin-bottom: 16px; }
.author-prose p:last-child { margin-bottom: 0; }
.author-photo { width: 88px; height: 88px; border-radius: 50%; background: var(--szalwia-18); border: 1px solid var(--granat-08); color: var(--szalwia); display: flex; align-items: center; justify-content: center; margin: 30px auto 14px; }
.author-photo svg { width: 40px; height: 40px; }
.author-sign { font-size: 15px; color: var(--granat-60); }
.author-sign strong { color: var(--granat); font-weight: 600; }
@media (max-width: 860px) {
  .hero-duo { grid-template-columns: 1fr; gap: 0; }
  .hero-duo-plus { margin: 10px auto; }
}

/* ====== HERO PODSTRON ====== */
.page-hero { padding: 70px 0 50px; }
.page-hero h1 {
  font-size: 40px; font-weight: 600; letter-spacing: -0.025em;
  line-height: 1.12; margin-bottom: 14px; color: var(--granat);
}
.section-dark.page-hero h1 { color: var(--krem); }
.page-hero p { font-size: 18px; color: var(--granat-75); max-width: 680px; line-height: 1.55; }
.section-dark.page-hero p { color: rgba(248, 245, 239, 0.8); }

/* ====== NAJWIĘKSZA WARTOŚĆ ====== */
.value { background: var(--krem); }
.value-content { max-width: 760px; margin: 0 auto; text-align: center; }
.value-quote { font-size: 24px; line-height: 1.45; letter-spacing: -0.01em; color: var(--granat); font-weight: 500; margin-bottom: 24px; }
.section-dark .value-quote { color: var(--krem); }
.value-desc { font-size: 17px; color: var(--granat-75); line-height: 1.6; }

/* ====== FUNKCJE ====== */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 32px; }
.feature-card { background: var(--bialy); padding: 28px; border-radius: var(--radius-card); display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
  flex-shrink: 0; width: 40px; height: 40px; background: var(--szalwia-18);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--szalwia); font-weight: 700;
}
.feature-content h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.feature-content p { font-size: 14px; color: var(--granat-75); line-height: 1.55; }

/* ====== WYGLĄD / ZARZĄDZANIE (mockupy) ====== */
.product-view-content { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.product-view-content.reversed { grid-template-columns: 1.1fr 1fr; }
.product-view-content.reversed .product-view-text { order: 2; }
.product-view-content.reversed .product-view-mockup { order: 1; }
.product-view-text .btn-primary { margin-top: 8px; }

.mockup-browser { background: var(--bialy); border-radius: 10px; overflow: hidden; box-shadow: 0 12px 32px rgba(27, 40, 69, 0.12); }
.mockup-bar { background: #EAE6DE; padding: 10px 14px; display: flex; align-items: center; gap: 12px; }
.mockup-dots { display: flex; gap: 5px; }
.mockup-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--granat-08); }
.mockup-url { font-size: 11px; color: var(--granat-60); background: var(--krem); padding: 4px 12px; border-radius: 4px; flex-grow: 1; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.mockup-screen { padding: 20px; min-height: 280px; background: var(--bialy); }
.mockup-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--granat-08); margin-bottom: 20px; }
.mockup-logo-block { width: 60px; height: 14px; background: var(--granat); border-radius: 3px; }
.mockup-menu { display: flex; gap: 10px; }
.mockup-menu span { width: 32px; height: 6px; background: var(--granat-08); border-radius: 2px; }
.mockup-hero { margin-bottom: 20px; }
.mockup-h1 { width: 80%; height: 16px; background: var(--granat); border-radius: 3px; margin-bottom: 8px; }
.mockup-h2 { width: 60%; height: 10px; background: var(--granat-08); border-radius: 3px; }
.mockup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mockup-card { height: 70px; background: var(--krem); border-radius: 5px; position: relative; }
.mockup-card::after { content: ''; position: absolute; top: 10px; left: 10px; width: 18px; height: 18px; background: var(--szalwia-18); border-radius: 50%; }

.mockup-admin { background: var(--bialy); border-radius: 10px; overflow: hidden; display: grid; grid-template-columns: 130px 1fr; box-shadow: 0 12px 32px rgba(27, 40, 69, 0.12); min-height: 320px; }
.mockup-admin-sidebar { background: var(--granat); padding: 20px 14px; }
.mockup-admin-logo { width: 100%; height: 16px; background: rgba(248, 245, 239, 0.9); border-radius: 3px; margin-bottom: 24px; }
.mockup-admin-nav { display: flex; flex-direction: column; gap: 8px; }
.mockup-admin-nav span { height: 28px; background: rgba(248, 245, 239, 0.1); border-radius: 4px; }
.mockup-admin-nav span.active { background: var(--szalwia); }
.mockup-admin-content { padding: 24px; background: var(--bialy); }
.mockup-admin-title { width: 50%; height: 18px; background: var(--granat); border-radius: 3px; margin-bottom: 20px; }
.mockup-admin-list { display: flex; flex-direction: column; gap: 10px; }
.mockup-admin-row { height: 36px; background: var(--krem); border-radius: 5px; position: relative; }
.mockup-admin-row::before { content: ''; position: absolute; top: 50%; left: 12px; transform: translateY(-50%); width: 60%; height: 8px; background: var(--granat-08); border-radius: 2px; }
.mockup-admin-row::after { content: ''; position: absolute; top: 50%; right: 12px; transform: translateY(-50%); width: 30px; height: 14px; background: var(--szalwia-18); border-radius: 3px; }

/* ====== CENA ====== */
.price-card { background: var(--bialy); padding: 48px; border-radius: var(--radius-section); text-align: center; max-width: 760px; margin: 0 auto; box-shadow: 0 1px 2px rgba(27, 40, 69, 0.04), 0 14px 32px rgba(27, 40, 69, 0.07); }
.price-amount { font-size: 56px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin-bottom: 12px; color: var(--granat); }
.price-amount sup { font-size: 24px; font-weight: 500; vertical-align: top; margin-left: 6px; color: var(--granat-60); }
.price-desc { font-size: 17px; color: var(--granat-75); margin-bottom: 28px; line-height: 1.5; }
.price-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 32px; text-align: left; max-width: 480px; margin-left: auto; margin-right: auto; }
.price-card-flush { max-width: 720px; margin: 0 0 10px; padding: 30px 32px 28px; text-align: left; }
.price-card-flush .price-amount { margin-bottom: 10px; }
.price-card-flush .price-desc { margin-bottom: 0; }
.page-hero + .section, .page-hero + .section-tight { padding-top: 20px; }
.prose .lead-list { max-width: none; margin: 6px 0 24px; }
.prose .lead-list li { font-size: 17px; padding: 11px 0 11px 30px; }
.prose .lead-list li::before { top: 20px; width: 7px; height: 7px; }
.toc { list-style: none; margin: 0; padding: 22px 26px; background: var(--bialy); border: 1px solid var(--granat-08); border-radius: 16px; box-shadow: 0 1px 2px rgba(27, 40, 69, 0.04), 0 14px 32px rgba(27, 40, 69, 0.07); display: flex; flex-direction: column; justify-content: space-between; }
.toc li { position: relative; padding: 6px 0; }
.toc a { position: relative; display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; color: var(--granat); transition: color 0.2s; }
.toc a::before { content: ''; flex: none; width: 15px; height: 15px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Crect x='3.25' y='1.75' width='9.5' height='12.5' rx='1.8' stroke='%231B2845' stroke-width='1.3'/%3E%3Cpath d='M5.6 5h4.8M5.6 7.7h4.8M5.6 10.4h3' stroke='%231B2845' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.toc a::after { content: ''; position: absolute; left: 24px; right: 0; bottom: -3px; height: 3px; border-radius: 2px; background: var(--granat); transform: scaleX(0); transform-origin: left center; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.toc a:hover::after, .toc a:focus-visible::after { transform: scaleX(1); }

/* Karty sekcji — tylko na stronie „Współpraca i cennik" */
body.page-wspolpraca-i-cennik .section {
  width: calc(100% - 32px);
  max-width: 900px;
  margin: 0 auto 24px;
  padding: 60px;
  background: var(--bialy);
  border: 1px solid rgba(27, 40, 69, 0.12);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(27, 40, 69, 0.04), 0 14px 32px rgba(27, 40, 69, 0.07);
}
body.page-wspolpraca-i-cennik .section > .container { max-width: none; padding: 0; }
@media (max-width: 700px) {
  body.page-wspolpraca-i-cennik .section { padding: 28px; border-radius: 16px; box-shadow: 0 8px 20px rgba(27, 40, 69, 0.06); }
}
.toc a.active { color: var(--granat); font-weight: 600; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; margin-top: 28px; }
.price-facts { background: var(--bialy); border: 1px solid var(--granat-08); border-radius: 16px; box-shadow: 0 1px 2px rgba(27, 40, 69, 0.04), 0 14px 32px rgba(27, 40, 69, 0.07); padding: 20px 32px; display: flex; flex-direction: column; justify-content: space-evenly; }
.price-fact { position: relative; flex: 1 1 0; min-height: 130px; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 8px 0; color: inherit; transition: color 0.2s; }
.price-fact:not(:last-child)::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 0; height: 1px; background: var(--granat-08); }
.price-fact .pf-big { display: block; font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--granat); }
.price-fact .pf-word { font-size: 24px; }
.price-fact .pf-sub { display: block; position: relative; font-size: 15px; color: var(--granat-60); margin-top: 6px; line-height: 1.4; }
.price-fact:hover .pf-sub { color: var(--granat-75); }
.price-fact .pf-sub::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 64px; height: 2px; border-radius: 2px; background: var(--granat); transform: translateX(-50%) scaleX(0); transform-origin: center; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.price-fact:hover .pf-sub::after, .price-fact:focus-visible .pf-sub::after { transform: translateX(-50%) scaleX(1); }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .price-facts { order: -1; }
}
h2[id] { scroll-margin-top: 70px; }
/* Kotwice na stronie cennika: id jest na nagłówku wewnątrz karty, więc offset musi objąć sticky menu + górny padding karty, aby widoczna była góra boxa */
body.page-wspolpraca-i-cennik .section-title[id] { scroll-margin-top: 174px; }
@media (max-width: 700px) { body.page-wspolpraca-i-cennik .section-title[id] { scroll-margin-top: 155px; } }
.include-boxes { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 640px; }
.include-boxes li { background: var(--bialy); border: 1px solid var(--granat-08); border-radius: 10px; padding: 14px 18px; font-size: 15px; line-height: 1.5; color: var(--granat); position: relative; padding-left: 40px; }
.include-boxes li::before { content: ''; position: absolute; left: 18px; top: 21px; width: 7px; height: 7px; border-radius: 50%; background: var(--szalwia); }
.price-vat { max-width: 460px; margin: 8px auto 0; padding-top: 22px; border-top: 1px solid var(--granat-08); }
.price-vat-note { font-size: 13px; color: var(--granat-60); line-height: 1.55; margin-bottom: 16px; text-align: center; }
.price-vat-breakdown { list-style: none; padding: 0; max-width: 300px; margin: 0 auto; }
.price-vat-breakdown li { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--granat-75); padding: 6px 0; }
.price-vat-breakdown li.total { border-top: 1px solid var(--granat-08); margin-top: 4px; padding-top: 10px; color: var(--granat); font-weight: 600; }
.price-vat-breakdown .amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-feature { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--granat-75); }
.price-feature::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; background: var(--szalwia); border-radius: 50%; margin-top: 8px; }

/* ====== KROKI WSPÓŁPRACY ====== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.step { background: var(--bialy); padding: 28px 24px; border-radius: var(--radius-card); position: relative; }
.step-num { font-size: 13px; font-weight: 700; letter-spacing: 0.05em; color: var(--szalwia); margin-bottom: 14px; }
.step h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--granat-75); line-height: 1.55; }

/* Lista kroków pełna (podstrona współpracy) */
.steps-full { display: flex; flex-direction: column; gap: 16px; }
.step-row { display: flex; gap: 18px; align-items: flex-start; background: var(--bialy); padding: 22px 24px; border-radius: var(--radius-card); }
.step-row-num { flex-shrink: 0; width: 36px; height: 36px; background: var(--szalwia-18); color: var(--szalwia); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.step-row h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.01em; }
.step-row p { font-size: 14px; color: var(--granat-75); line-height: 1.55; }

/* ====== DEMO ====== */
.demo { background: var(--krem); }
.demo-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.demo-video { background: var(--granat); border-radius: var(--radius-card); aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; color: var(--krem); font-size: 14px; opacity: 0.8; }

/* ====== REFERENCJE ====== */
.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 32px; }
.testimonial { background: var(--bialy); padding: 32px; border-radius: var(--radius-card); box-shadow: 0 1px 2px rgba(27, 40, 69, 0.04), 0 14px 32px rgba(27, 40, 69, 0.07); }
.testimonial-quote { font-size: 16px; line-height: 1.6; color: var(--granat-75); margin-bottom: 20px; }
.testimonial-quote strong { color: var(--granat); font-weight: 600; }
.testimonial-author { font-size: 14px; color: var(--granat-75); border-top: 1px solid var(--granat-08); padding-top: 16px; }
.testimonial-author strong { display: block; color: var(--granat); font-weight: 600; margin-bottom: 2px; }

/* Pełne referencje (stos jednokolumnowy) + dyskretny link do źródła */
.testimonials-stack { display: flex; flex-direction: column; gap: 24px; max-width: 820px; margin: 0 auto; }
.testimonial-source { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 500; color: var(--szalwia); border-bottom: 1px solid var(--szalwia); padding-bottom: 2px; transition: opacity 0.2s; }
.testimonial-source:hover { opacity: 0.75; }
.testimonial-source .src-icon { font-size: 12px; opacity: 0.85; }

/* ====== FILMY ====== */
.videos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.video-card { background: var(--bialy); border-radius: var(--radius-card); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
a.video-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(27, 40, 69, 0.08); }
.video-thumb { background: var(--granat-08); aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; color: var(--granat-60); font-size: 12px; }
.video-info { padding: 16px 20px; }
.video-info h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.01em; }
.video-info span { font-size: 12px; color: var(--granat-60); }

/* ====== WIEDZA ====== */
.articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 32px; }
.article-card { background: var(--bialy); padding: 28px; border-radius: var(--radius-card); display: flex; flex-direction: column; gap: 10px; transition: transform 0.2s, box-shadow 0.2s; }
a.article-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(27, 40, 69, 0.08); }
.article-category { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--szalwia); }
.article-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.article-card p { font-size: 14px; color: var(--granat-75); line-height: 1.55; }
.article-meta { display: flex; gap: 12px; font-size: 12px; color: var(--granat-60); margin-top: auto; padding-top: 12px; }

/* ====== ZESPÓŁ ====== */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.team-member { background: rgba(248, 245, 239, 0.04); padding: 36px; border-radius: var(--radius-card); border: 1px solid rgba(248, 245, 239, 0.1); }
.team-member h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.team-member-role { font-size: 13px; color: var(--szalwia); margin-bottom: 16px; font-weight: 500; }
.team-member-desc { font-size: 14px; line-height: 1.6; opacity: 0.85; margin-bottom: 16px; }
.team-member-contact { font-size: 14px; opacity: 0.8; }
.team-member-contact a { border-bottom: 1px solid rgba(248, 245, 239, 0.3); transition: border-color 0.2s; }
.team-member-contact a:hover { border-bottom-color: var(--krem); }

/* ====== KONTAKT (wersja bez formularza) ====== */
.direct-contact-card { background: var(--bialy); padding: 56px 48px; border-radius: var(--radius-section); text-align: center; max-width: 720px; margin: 0 auto; }
.direct-contact-card h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.direct-contact-card > p { font-size: 16px; color: var(--granat-75); margin-bottom: 32px; line-height: 1.55; }
.direct-contact-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-large { display: inline-flex; align-items: center; gap: 12px; padding: 18px 28px; border-radius: var(--radius-button); font-size: 16px; font-weight: 500; transition: all 0.2s; }
.btn-large-primary { background: var(--granat); color: var(--krem); }
.btn-large-primary:hover { opacity: 0.9; }
.btn-large-secondary { background: transparent; color: var(--granat); border: 1px solid var(--szalwia); }
.btn-large-secondary:hover { background: var(--szalwia-08); }
.btn-icon { font-size: 18px; opacity: 0.8; }

.team-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 60px; }
.team-card { background: var(--bialy); padding: 36px; border-radius: var(--radius-card); }
.team-card h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 4px; }
.team-role { font-size: 13px; color: var(--szalwia); font-weight: 500; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.05em; }
.team-desc { font-size: 15px; color: var(--granat-75); line-height: 1.6; margin-bottom: 24px; }
.team-contact { border-top: 1px solid var(--granat-08); padding-top: 20px; }
.team-contact-item { display: flex; align-items: center; gap: 12px; font-size: 14px; padding: 8px 0; }
.team-contact-item .label { color: var(--granat-60); width: 70px; flex-shrink: 0; }
.team-contact-item a { color: var(--szalwia); border-bottom: 1px solid var(--szalwia); transition: opacity 0.2s; font-weight: 500; }
.team-contact-item a:hover { opacity: 0.75; }

.contact-note { font-size: 14px; color: var(--granat-60); margin-top: 16px; }
.page-hero p.lead-full { max-width: none; }
.contact-section { padding-top: 8px; }
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 32px; }
.contact-card { background: var(--bialy); padding: 36px; border-radius: var(--radius-card); }
.contact-avatars { display: flex; margin: 16px 0 18px; }
.contact-avatars .avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--szalwia-18); color: var(--szalwia); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 18px; border: 2px solid var(--bialy); margin-left: -12px; }
.contact-avatars .avatar:first-child { margin-left: 0; }
.contact-lead { font-size: 15px; line-height: 1.6; color: var(--granat-75); }
.contact-card .team-contact { margin-top: 22px; }
.contact-intro { max-width: 720px; margin: 0 0 40px; font-size: 18px; line-height: 1.6; color: var(--granat-75); }
.contact-people { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 36px; }
.person-card { background: var(--bialy); border-radius: var(--radius-card); padding: 20px 20px 28px; text-align: center; box-shadow: 0 1px 2px rgba(27, 40, 69, 0.04), 0 14px 32px rgba(27, 40, 69, 0.07); }
.person-photo { width: 100%; aspect-ratio: 1.618 / 1; border-radius: var(--radius-card); object-fit: cover; display: block; margin: 0 0 22px; background: var(--szalwia-18); }
.person-name { font-size: 18px; font-weight: 600; color: var(--granat); margin-bottom: 12px; }
.person-line { font-size: 15px; padding: 3px 0; }
.offer-downloads { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.offer-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 240px; padding: 13px 24px; border: 1px solid var(--granat-08); border-radius: var(--radius-button); font-size: 14px; font-weight: 500; color: var(--granat); transition: border-color 0.2s, background 0.2s; }
.offer-btn:hover { border-color: var(--szalwia); background: var(--szalwia-08); }
.offer-box { background: var(--bialy); border-radius: var(--radius-card); padding: 32px; max-width: 620px; margin: 0 auto 44px; text-align: center; box-shadow: 0 1px 2px rgba(27, 40, 69, 0.04), 0 14px 32px rgba(27, 40, 69, 0.07); }
.offer-box h2 { font-size: 20px; font-weight: 600; color: var(--granat); margin-bottom: 8px; }
.offer-box p { font-size: 15px; color: var(--granat-60); margin: 0 0 22px; }
.offer-box .offer-downloads { margin-bottom: 0; }
@media (max-width: 760px) { .contact-people { grid-template-columns: 1fr; } }
.company-data { background: var(--bialy); padding: 36px; border-radius: var(--radius-card); box-shadow: 0 1px 2px rgba(27, 40, 69, 0.04), 0 14px 32px rgba(27, 40, 69, 0.07); }
.company-data + .company-data { margin-top: 20px; }
.auth-list { list-style: none; padding: 0; margin: 4px 0 0; }
.auth-list li { font-size: 15px; color: var(--granat-90); line-height: 1.6; padding: 10px 0; border-top: 1px solid var(--granat-08); }
.auth-list li:first-child { border-top: none; }
.auth-list strong { color: var(--granat); font-weight: 600; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }
.company-data h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 24px; }
.company-data-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; }
.company-data-item { display: flex; flex-direction: column; gap: 4px; }
.company-data-label { font-size: 12px; color: var(--granat-60); font-weight: 500; letter-spacing: 0.02em; }
.company-data-value { font-size: 15px; color: var(--granat); font-weight: 500; }

@media (max-width: 900px) {
  .direct-contact-card { padding: 40px 24px; }
  .direct-contact-card h2 { font-size: 24px; }
  .direct-contact-buttons { flex-direction: column; }
  .btn-large { justify-content: center; }
  .team-cards { grid-template-columns: 1fr; }
  .company-data-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .team-card, .company-data { padding: 28px 24px; }
}

/* ====== PROZA / TREŚĆ ARTYKUŁÓW I PODSTRON ====== */
.prose { max-width: 720px; }
.prose p { font-size: 16px; color: var(--granat-90); line-height: 1.7; margin-bottom: 18px; }
.prose h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; margin: 36px 0 14px; color: var(--granat); }
.prose > :first-child { margin-top: 0; }
.prose h3 { font-size: 19px; font-weight: 600; margin: 28px 0 10px; color: var(--granat); }
.prose ol { margin: 0 0 18px 22px; }
/* Cicha lista jak w katalogu: myślnik zamiast kropki */
.prose ul { list-style: none; margin: 0 0 18px; }
.prose li { font-size: 16px; color: var(--granat-90); line-height: 1.7; margin-bottom: 8px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: '—'; position: absolute; left: 0; top: 0; color: var(--szalwia); }
.prose strong { color: var(--granat); font-weight: 600; }
.prose a, .company-data-value a, .lead-list li a, .person-line a { color: var(--szalwia); border-bottom: 1px solid var(--szalwia); transition: color 0.2s, border-color 0.2s; }
.prose a:hover, .company-data-value a:hover, .lead-list li a:hover, .person-line a:hover,
.prose a:focus-visible, .company-data-value a:focus-visible, .lead-list li a:focus-visible, .person-line a:focus-visible { color: var(--granat); border-bottom-color: var(--granat); }
.prose blockquote { border-left: 2px solid var(--szalwia); padding-left: 18px; margin: 0 0 18px; font-style: italic; color: var(--granat); }

/* ====== BIAŁY BOX NA PROZĘ (decyzja 2026-07-10: każda proza sekcji w karcie) ====== */
.prose-box {
  background: var(--bialy);
  border-radius: var(--radius-card);
  padding: 34px 38px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 1px 2px rgba(27, 40, 69, 0.04), 0 14px 32px rgba(27, 40, 69, 0.07);
}
.prose-box + .prose-box { margin-top: 24px; }
.prose-box h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--granat); margin: 0 0 14px; }
.prose-box .section-label { margin-bottom: 10px; }
.prose-box .section-title { font-size: 26px; margin-bottom: 18px; }
.prose-box .prose > :last-child { margin-bottom: 0; }
/* Cytaty prostym krojem — jak w katalogu (długi italik czyta się gorzej) */
.prose-box blockquote, .prose-box blockquote p { font-style: normal; color: var(--granat); }

/* ====== NAGŁÓWEK ARTYKUŁU / FILMU ====== */
.article-head { max-width: 760px; }
.article-back { display: inline-block; font-size: 14px; font-weight: 500; color: var(--szalwia); border-bottom: 1px solid var(--szalwia); padding-bottom: 2px; margin-bottom: 22px; transition: opacity 0.2s; }
.article-back:hover { opacity: 0.75; }
.article-head .article-meta { margin-top: 14px; padding-top: 0; }
.article-related { border-top: 1px solid var(--granat-08); margin-top: 48px; padding-top: 32px; }

/* Osadzone wideo (16:9) */
.video-embed { position: relative; aspect-ratio: 16 / 9; background: var(--granat); border-radius: var(--radius-card); overflow: hidden; margin-bottom: 28px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed .video-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(248,245,239,0.8); font-size: 14px; }

/* ====== FAQ (lekki akordeon na <details>) ====== */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.faq details { background: var(--bialy); border-radius: var(--radius-card); padding: 4px 24px; border: 1px solid var(--granat-08); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-size: 16px; font-weight: 600; color: var(--granat); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--szalwia); font-size: 22px; font-weight: 400; line-height: 1; flex-shrink: 0; transition: transform 0.2s; }
.faq details[open] summary::after { content: '−'; }
.faq details > p { font-size: 15px; color: var(--granat-75); line-height: 1.65; padding: 0 0 18px; margin: 0; }

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: var(--krem);
    padding: 8px 0; border-bottom: 1px solid var(--granat-08);
    box-shadow: 0 8px 20px rgba(27, 40, 69, 0.06); gap: 0; z-index: 99;
  }
  .product-view-content, .product-view-content.reversed { grid-template-columns: 1fr; gap: 32px; }
  .product-view-content.reversed .product-view-text { order: 1; }
  .product-view-content.reversed .product-view-mockup { order: 2; }
  .nav.open { display: flex; animation: slideDown 0.2s ease; }
  @keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
  .nav .nav-link { padding: 14px 24px; font-size: 15px; border-bottom: 1px solid var(--granat-08); }
  .nav .nav-link.active::after { display: none; }
  .nav .nav-link:last-of-type { border-bottom: none; }
  .nav .nav-cta { margin: 12px 24px 8px; text-align: center; padding: 14px 16px; font-size: 15px; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; transition: background 0.2s; }
  .menu-toggle:hover { background: var(--granat-08); }
  .menu-toggle.open { background: var(--granat); color: var(--krem); }
  .logo-tooltip, .nav-tooltip { display: none; }
  .hero-headline { font-size: 36px; }
  .hero-subheadline { font-size: 18px; }
  .page-hero h1 { font-size: 30px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 26px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .demo-content { grid-template-columns: 1fr; gap: 32px; }
  .testimonials { grid-template-columns: 1fr; }
  .videos-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .price-features { grid-template-columns: 1fr; }
  .price-card { padding: 32px 24px; }
  .price-amount { font-size: 44px; }
}

@media (max-width: 540px) {
  .container, .container-narrow { padding: 0 16px; }
  .hero { padding: 60px 0 80px; }
  .hero-headline { font-size: 30px; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .testimonial { padding: 24px; }
  .feature-card { padding: 22px; }
}

/* ====== MODAL WIDEO ====== */
.video-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; }
.video-modal.open { display: flex; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(20, 32, 58, 0.78); backdrop-filter: blur(2px); animation: fadeIn 0.2s ease; }
.video-modal-box { position: relative; z-index: 1; width: 100%; max-width: 900px; animation: modalIn 0.22s ease; }
.video-modal-title { color: var(--krem); font-size: 16px; font-weight: 500; letter-spacing: -0.01em; margin: 0 44px 12px 0; }
.video-modal-frame { background: #000; border-radius: var(--radius-card); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.video-modal-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
/* Tryb dokumentu. Dokument czyta się w pionie, więc ramka bierze wysokość ekranu
   zamiast kadru 16:9. Tło kremowe, nie czarne: strona PDF ma białe marginesy,
   które na czerni wyglądałyby jak dziura w oknie. */
.video-modal.dokument .video-modal-box { max-width: 760px; }
.video-modal.dokument .video-modal-frame { background: var(--krem); }
/* O tym, co widać, decyduje klasa trybu, nie atrybut hidden: [hidden] z arkusza
   przeglądarki przegrywa z każdą własną regułą display, więc sam atrybut nie
   ukryłby ani odtwarzacza, ani dokumentu. */
.video-modal-obraz { display: none; }
.video-modal.dokument .video-modal-obraz {
  display: block; margin: 0 auto;
  max-width: 100%; width: auto; height: auto;
}
.video-modal.dokument .video-modal-frame video { display: none; }
/* Skan ma marginesy, więc ramka dopasowuje się do obrazka zamiast rozpychać
   go na całą szerokość okna. */
/* Dokument czyta sie w naturalnej wielkosci, a nie zmniejszony do wysokosci
   okna — inaczej skan listu robi sie za drobny. Za przewijanie odpowiada ramka,
   tak samo jak w czytniku dokumentow. */
.video-modal.dokument .video-modal-frame { max-height: 82vh; overflow: auto; }
/* Na waskim ekranie dopasowanie do szerokosci daje 324 px na kartke A4 — pismo
   robi sie nieczytelne. Dokument dostaje wiec stala, czytelna szerokosc, a ramka
   przewija sie w obie strony, tak jak czytnik dokumentow. */
@media (max-width: 700px) {
  .video-modal.dokument .video-modal-obraz { max-width: none; width: 620px; }
}
.video-modal-poza { display: none; margin: 12px 0 0; text-align: right; }
.video-modal.dokument .video-modal-poza { display: block; }
.video-modal-poza a { font-size: 14px; color: rgba(248, 245, 239, 0.8); }
.video-modal-poza a:hover { color: var(--krem); }
.video-modal-close { position: absolute; top: -42px; right: 0; width: 36px; height: 36px; border-radius: 50%; background: rgba(248, 245, 239, 0.12); color: var(--krem); font-size: 16px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.video-modal-close:hover { background: rgba(248, 245, 239, 0.24); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(0.99); } to { opacity: 1; transform: none; } }
@media (max-width: 540px) {
  .video-modal-close { top: 0; right: 0; }
  .video-modal-title { margin-right: 44px; }
}

/* ====== FOOTER ====== */
/* Tekst wyłącznie dla czytników ekranu — znika z ekranu, zostaje w drzewie dostępności.
   Używane do ostrzeżenia o nowej karcie wewnątrz nazwy odnośnika (WCAG 3.2.5, technika G201). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
           overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.footer { background: var(--granat); color: rgba(248, 245, 239, 0.7); margin-top: 72px; padding: 64px 0 44px; }

/* Przycisk „do góry" — dyskretny, prawy dolny róg, pojawia się po przewinięciu */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--granat-08);
  border-radius: 50%;
  background: var(--bialy);
  color: var(--granat);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(27, 40, 69, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 200;
}
.to-top.is-visible { opacity: 0.7; visibility: visible; transform: translateY(0); }
.to-top:hover { opacity: 1; }
.to-top svg { width: 18px; height: 18px; display: block; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; margin-bottom: 14px; }
.footer-nav a { font-size: 15px; color: rgba(248, 245, 239, 0.85); padding: 4px 0; transition: color 0.2s; }
.footer-nav a:hover { color: var(--krem); }
.footer-nav a:not(:last-child)::after { content: '·'; color: rgba(248, 245, 239, 0.35); margin: 0 16px; display: inline-block; }
/* Drugi wiersz stopki — dodatki (umowa, faktury, filmy, strona demonstracyjna).
   WARIANT 3 „Wszystko zrównane": ten sam rozmiar i ta sama jasność co menu.
   Podział na dwa wiersze wystarczy, żeby powiedzieć, że to inna kategoria —
   wyciszanie drugiego wiersza czytało się jak menu z zepsutą połową.

   POWRÓT DO POPRZEDNIEJ WERSJI (wariant 1 „Obecna"), gdyby zaszła potrzeba:
     .footer-nav  { margin-bottom: 16px }
     .footer-docs a { font-size: 13px; color: rgba(248,245,239,0.5) }
     .footer-docs a:hover { color: rgba(248,245,239,0.9) }
     .footer-docs a::after { color: rgba(248,245,239,0.22); margin: 0 13px } */
.footer-docs { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; margin-bottom: 34px; }
.footer-docs a { font-size: 15px; color: rgba(248, 245, 239, 0.85); padding: 4px 0; transition: color 0.2s; }
.footer-docs a:hover { color: var(--krem); }
.footer-docs a:not(:last-child)::after { content: '·'; color: rgba(248, 245, 239, 0.35); margin: 0 16px; display: inline-block; }

/* Warianty odrzucone przy wyborze (2026-08-18): „Cicha" (dodatki 13 px / 50 %),
   „W ramce" (kontur wokół drugiego wiersza) i „Większy margines" (34 px → 48 px).
   Wybrana została wersja wyżej — zrównana, bez dodatkowego marginesu. */

.footer-line { height: 1px; background: rgba(248, 245, 239, 0.12); max-width: 980px; margin: 0 auto 24px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 13px; flex-wrap: wrap; gap: 12px; }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: rgba(248, 245, 239, 0.7); transition: color 0.2s; }
.footer-legal a:hover { color: var(--krem); }

/* Stopka na telefonach i małych tabletach pionowych: menu w pionie z poziomymi liniami, dolna linia rozbita na wiersze */
@media (max-width: 768px) {
  .footer-nav { flex-direction: column; align-items: stretch; margin-bottom: 28px; }
  .footer-nav a { padding: 15px 0; text-align: center; border-top: 1px solid rgba(248, 245, 239, 0.1); }
  .footer-nav a:first-child { border-top: none; }
  .footer-nav a:not(:last-child)::after { display: none; }
  /* Drugi wiersz układa się tak samo jak pierwszy: kciuk trafia w cały wiersz,
     a nie w drobny napis wciśnięty między kropki. Odstęp 28px nad pierwszą
     pozycją rozdziela obie grupy, więc nie czytają się jak jedno menu. */
  .footer-docs { flex-direction: column; align-items: stretch; margin-bottom: 28px; }
  .footer-docs a { padding: 15px 0; text-align: center; border-top: 1px solid rgba(248, 245, 239, 0.1); }
  .footer-docs a:first-child { border-top: none; }
  .footer-docs a:not(:last-child)::after { display: none; }
  .footer-line { margin-bottom: 44px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .footer-legal { gap: 24px; }
}

/* ====== SKALOWANIE NA DUŻYCH EKRANACH ======
   Projekt jest wąską kolumną (900 px). Na dużych monitorach kolumna ginie w pustce,
   a tekst wydaje się mały — więc od pewnej szerokości powiększamy CAŁOŚĆ proporcjonalnie
   (kolumna, typografia, zrzuty, nagłówek, stopka rosną razem, proporcje bez zmian).
   Skok jest stopniowy, nie skokowy „+40% i już" — dopiero największe ekrany dostają maksimum.
   Lightbox celowo POZA skalowaniem: liczy się względem okna (vw/vh), więc zoom by go rozjechał. */
@media (min-width: 1700px) {
  main > *:not(.b-lightbox):not(.b-wroc), .header .container, .footer .container { zoom: 1.08; }
}
@media (min-width: 2100px) {
  main > *:not(.b-lightbox):not(.b-wroc), .header .container, .footer .container { zoom: 1.18; }
}
@media (min-width: 2600px) {
  main > *:not(.b-lightbox):not(.b-wroc), .header .container, .footer .container { zoom: 1.30; }
}
@media (min-width: 3200px) {
  main > *:not(.b-lightbox):not(.b-wroc), .header .container, .footer .container { zoom: 1.42; }
}

/* ====== DÓŁ STRONY NA TELEFONACH ======
   120 px dopełnienia pod ostatnim boksem plus 72 px marginesu stopki dawało na wąskim
   ekranie prawie ćwierć widoku pustki. Na desktopie ten oddech zostaje.
   „main" w selektorze jest konieczne: .b-stack definiują pliki treści, a ich <style>
   stoi w dokumencie po tym arkuszu, więc przy równej wadze wygrywałyby z nim. */
@media (max-width: 700px) {
  main .b-stack { padding-bottom: 56px; }
  .footer { margin-top: 40px; }
}

/* ====== POWRÓT DO SPISU TREŚCI ======
   Pigułka w lewym dolnym rogu na podstronach, które mają spis treści (box #spis).
   Prawdziwy odnośnik, nie przycisk ze skryptem: działa z klawiatury, przenosi fokus
   do spisu, a czytnik ekranu ogłasza, dokąd trafił. Skrypt w main.js jedynie pokazuje
   go i chowa. Tekst w dwóch wierszach, żeby pigułka była wąska i nie kładła się na treści.
   Kolor z zapasem — zmienna --szalwia-tekst żyje lokalnie na .b-page, a pigułka stoi poza nią. */
.b-wroc {
  /* Ten sam dół i lustrzany bok co .to-top w prawym rogu — oba mają stać równo. */
  position: fixed; left: 24px; bottom: 24px; z-index: 20;
  padding: 11px 15px; border-radius: 14px;
  background: var(--krem-jasniejszy);
  border: 1px solid var(--szalwia-tekst, #5C6E54);
  color: var(--szalwia-tekst, #5C6E54);
  font-size: 14px; font-weight: 500; line-height: 1.25; text-align: center;
  visibility: hidden; opacity: 0; transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s,
              background-color 0.2s, color 0.2s;
}
/* visibility, nie samo opacity — inaczej ukryty odnośnik wciąż łapałby Tab */
.b-wroc.jest { visibility: visible; opacity: 1; transform: none; }
.b-wroc:hover, .b-wroc:focus-visible { background: var(--szalwia-tekst, #5C6E54); color: var(--krem-jasniejszy); }
.b-wroc:focus-visible { outline: 2px solid var(--szalwia-tekst, #5C6E54); outline-offset: 3px; }

@media (max-width: 700px) {
  .b-wroc { left: 16px; bottom: 16px; padding: 9px 12px; font-size: 13px; border-radius: 12px; }
  .to-top { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .b-wroc { transition: opacity 0.01s, visibility 0.01s; transform: none; }
}
