/* =====================================================
   DOKUMENTY / CENTRUM DOKUMENTÓW
===================================================== */

.visually-hidden{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.dark-eyebrow{
  color:var(--orange);
}

body.documents-page .documents-hero{
  min-height:520px;
  position:relative;
  display:flex;
  align-items:center;
  overflow:hidden;
  color:#fff;
  background:
    linear-gradient(
      105deg,
      rgba(65,0,47,.90) 0%,
      rgba(65,0,47,.74) 36%,
      rgba(65,0,47,.38) 66%,
      rgba(65,0,47,.12) 100%
    ),
    url("baner.jpg") center center/cover no-repeat;
}

body.documents-page .documents-hero::after{
  content:"";
  position:absolute;
  right:-110px;
  bottom:-150px;
  width:430px;
  height:430px;
  border-radius:50%;
  background:rgba(232,117,33,.18);
}

body.documents-page .documents-hero-inner{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1fr 360px;
  gap:42px;
  align-items:center;
  padding:78px 0;
}

body.documents-page .documents-hero-copy{
  max-width:760px;
}

body.documents-page .documents-hero h1{
  max-width:760px;
  color:#fff;
  font-size:clamp(44px,6vw,76px);
  line-height:.94;
  margin-bottom:18px;
  text-shadow:0 3px 18px rgba(0,0,0,.25);
}

body.documents-page .documents-search-card{
  padding:28px;
  border-radius:22px;
  background:rgba(255,255,255,.96);
  color:var(--graphite);
  box-shadow:var(--shadow);
}

body.documents-page .documents-search-card .search-icon{
  width:62px;
  height:62px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-bottom:16px;
  border-radius:18px;
  background:var(--burgundy);
  color:#fff;
  font-size:31px;
}

body.documents-page .documents-search-card h2{
  color:var(--burgundy);
  font-size:25px;
  line-height:1.15;
  margin-bottom:10px;
}

body.documents-page .documents-search-card p{
  color:var(--muted);
  font-size:15px;
  margin-bottom:18px;
}

body.documents-page .documents-search-card input{
  width:100%;
  min-height:50px;
  padding:0 16px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--graphite);
  font-size:16px;
  outline:none;
}

body.documents-page .documents-search-card input:focus{
  border-color:var(--orange);
  box-shadow:0 0 0 4px rgba(232,117,33,.15);
}

body.documents-page .documents-search-card small{
  display:block;
  margin-top:12px;
  color:var(--muted);
  font-weight:700;
}

body.documents-page .document-dashboard{
  padding:46px 0 22px;
}

body.documents-page .document-dashboard-head{
  max-width:820px;
  margin-bottom:26px;
}

body.documents-page .document-dashboard-head h2{
  color:var(--burgundy);
  font-size:clamp(30px,3.4vw,44px);
  line-height:1.12;
  margin-bottom:12px;
}

body.documents-page .document-dashboard-head p:not(.eyebrow){
  color:var(--muted);
  font-size:17px;
}

body.documents-page .document-category-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:14px;
}

body.documents-page .document-category-card{
  min-height:150px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:22px 18px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  box-shadow:var(--shadow-soft);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}

body.documents-page .document-category-card:hover{
  transform:translateY(-5px);
  border-color:#dec9d5;
  box-shadow:var(--shadow);
}

body.documents-page .category-icon{
  width:48px;
  height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:var(--soft);
  color:var(--burgundy);
  font-size:26px;
}

body.documents-page .document-category-card strong{
  color:var(--burgundy);
  font-size:17px;
  line-height:1.2;
}

body.documents-page .document-category-card small{
  color:var(--muted);
  font-weight:700;
}

body.documents-page .document-layout{
  display:grid;
  grid-template-columns:250px 1fr;
  gap:30px;
  align-items:start;
  padding:28px 0 20px;
}

body.documents-page .document-side-nav{
  position:sticky;
  top:98px;
  display:grid;
  gap:8px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  box-shadow:var(--shadow-soft);
}

body.documents-page .document-side-nav strong{
  color:var(--burgundy);
  font-size:20px;
  margin-bottom:6px;
}

body.documents-page .document-side-nav a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  color:var(--graphite);
  font-weight:700;
  font-size:14px;
}

body.documents-page .document-side-nav a:hover{
  background:var(--soft);
  color:var(--burgundy);
}

body.documents-page .document-section{
  scroll-margin-top:110px;
  margin-bottom:34px;
  padding:30px;
  border:1px solid var(--line);
  border-radius:26px;
  background:#fff;
  box-shadow:var(--shadow-soft);
}

body.documents-page .document-section-head{
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:flex-start;
  margin-bottom:24px;
}

body.documents-page .document-section-head h2{
  color:var(--burgundy);
  font-size:clamp(27px,3vw,38px);
  line-height:1.12;
  margin-bottom:10px;
}

body.documents-page .document-section-head p:not(.eyebrow){
  max-width:760px;
  color:var(--muted);
  font-size:16px;
  margin-bottom:0;
}

body.documents-page .section-count{
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 14px;
  border-radius:999px;
  background:var(--soft);
  color:var(--burgundy);
  font-weight:800;
  font-size:14px;
}

body.documents-page .document-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}

body.documents-page .document-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:255px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:20px;
  background:linear-gradient(180deg,#fff 0%,#fff 70%,var(--soft) 100%);
  overflow:hidden;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}

body.documents-page .document-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:4px;
  background:linear-gradient(90deg,var(--burgundy),var(--orange));
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .2s ease;
}

body.documents-page .document-card:hover{
  transform:translateY(-4px);
  border-color:#dec9d5;
  box-shadow:var(--shadow-soft);
}

body.documents-page .document-card:hover::before{
  transform:scaleX(1);
}

body.documents-page .document-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

body.documents-page .document-icon{
  width:48px;
  height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:var(--soft);
  color:var(--burgundy);
  font-size:25px;
}

body.documents-page .document-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(232,117,33,.12);
  color:var(--orange-dark);
  font-size:12px;
  font-weight:900;
  letter-spacing:.04em;
}

body.documents-page .document-card h3{
  color:var(--burgundy);
  font-size:20px;
  line-height:1.22;
  margin-bottom:10px;
}

body.documents-page .document-card p{
  color:var(--muted);
  font-size:14px;
  line-height:1.62;
  margin-bottom:18px;
}

body.documents-page .document-meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:auto;
  margin-bottom:16px;
}

body.documents-page .document-meta span{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

body.documents-page .document-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

body.documents-page .doc-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 18px;
  border-radius:999px;
  background:var(--burgundy);
  color:#fff;
  font-weight:900;
  font-size:14px;
  transition:background .2s ease,transform .2s ease;
}

body.documents-page .doc-btn:hover{
  background:var(--orange);
  transform:translateY(-2px);
}

body.documents-page #faq-dokumenty{
  scroll-margin-top:110px;
  padding:22px 0 12px;
}

@media(max-width:1100px){

  body.documents-page .document-category-grid{
    grid-template-columns:repeat(3,1fr);
  }

  body.documents-page .document-layout{
    grid-template-columns:1fr;
  }

  body.documents-page .document-side-nav{
    position:static;
    grid-template-columns:repeat(2,1fr);
  }

  body.documents-page .document-side-nav strong{
    grid-column:1/-1;
  }
}

@media(max-width:900px){

  body.documents-page .documents-hero-inner{
    grid-template-columns:1fr;
    padding:64px 0;
  }

  body.documents-page .documents-search-card{
    max-width:520px;
  }

  body.documents-page .document-grid,
  body.documents-page .document-category-grid{
    grid-template-columns:repeat(2,1fr);
  }

  body.documents-page .document-section-head{
    flex-direction:column;
  }
}

@media(max-width:640px){

  body.documents-page .documents-hero-inner{
    padding:52px 0 68px;
  }

  body.documents-page .document-grid,
  body.documents-page .document-category-grid,
  body.documents-page .document-side-nav{
    grid-template-columns:1fr;
  }

  body.documents-page .document-section{
    padding:24px 18px;
  }

  body.documents-page .document-card{
    min-height:auto;
  }
}



/* ===== Moved from dokumenty.html ===== */
/* Lokalna naprawa tylko dla dokumenty.html. Plik styles.css nie jest zmieniany. */
body.documents-page .doc-title-strip{display:flex;justify-content:space-between;align-items:flex-end;gap:28px;padding:46px 0 26px;border-bottom:1px solid var(--line);}
body.documents-page .doc-kicker{margin:0 0 10px;color:var(--orange);font-size:13px;text-transform:uppercase;letter-spacing:.12em;font-weight:900;}
body.documents-page .doc-title-strip h1{color:var(--burgundy);font-size:clamp(38px,5.2vw,66px);line-height:.98;margin:0 0 14px;letter-spacing:-1.5px;}
body.documents-page .doc-title-strip p:not(.doc-kicker){max-width:780px;color:var(--muted);font-size:18px;line-height:1.65;margin:0;}
body.documents-page .doc-updated{flex:0 0 auto;padding:12px 16px;border:1px solid var(--line);border-radius:999px;background:var(--soft);color:var(--burgundy);font-weight:800;font-size:14px;}
body.documents-page .doc-tools{padding:24px 0 24px;}
body.documents-page .doc-search-label{display:block;margin-bottom:8px;color:var(--burgundy);font-weight:900;}
body.documents-page .doc-search-input{width:100%;border:1px solid var(--line);border-radius:18px;padding:15px 18px;font:inherit;box-shadow:var(--shadow-soft);}
body.documents-page .doc-search-input:focus{outline:3px solid rgba(232,117,33,.16);border-color:var(--orange);}
body.documents-page .doc-category-line{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:16px;}
body.documents-page .doc-category-line a{display:block;padding:16px;border-radius:18px;border:1px solid var(--line);background:#fff;box-shadow:var(--shadow-soft);}
body.documents-page .doc-category-line strong{display:block;color:var(--burgundy);font-size:15px;line-height:1.25;}
body.documents-page .doc-category-line span{display:block;color:var(--muted);font-size:13px;margin-top:6px;}
body.documents-page .doc-main{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;align-items:start;padding:18px 0 76px;}
body.documents-page .doc-anchor-nav{position:sticky;top:100px;display:grid;gap:6px;padding:18px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--shadow-soft);}
body.documents-page .doc-anchor-nav strong{color:var(--burgundy);font-size:16px;margin-bottom:8px;}
body.documents-page .doc-anchor-nav a{padding:10px 12px;border-radius:12px;color:var(--graphite);font-weight:700;font-size:14px;line-height:1.25;}
body.documents-page .doc-anchor-nav a:hover{background:var(--soft);color:var(--burgundy);}
body.documents-page .doc-library{display:grid;gap:22px;min-width:0;}
body.documents-page .doc-library-section{padding:26px;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:var(--shadow-soft);scroll-margin-top:110px;}
body.documents-page .doc-library-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid var(--line);}
body.documents-page .doc-library-head h2{color:var(--burgundy);font-size:clamp(24px,3vw,34px);line-height:1.16;margin:0 0 6px;}
body.documents-page .doc-library-head p{margin:0;color:var(--muted);}
body.documents-page .doc-mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
body.documents-page .doc-mini-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;min-width:0;padding:17px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#fff 0%,#fdfbfc 100%);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;}
body.documents-page .doc-mini-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-soft);border-color:#dec9d5;}
body.documents-page .doc-mini-main{display:grid;grid-template-columns:54px minmax(0,1fr);gap:13px;align-items:start;min-width:0;}
body.documents-page .doc-format{display:inline-flex;align-items:center;justify-content:center;width:54px;min-height:34px;border-radius:12px;background:var(--burgundy);color:#fff;font-size:12px;font-weight:900;letter-spacing:.04em;}
body.documents-page .doc-mini-card h3{color:var(--burgundy);font-size:17px;line-height:1.22;margin:0 0 6px;overflow-wrap:anywhere;}
body.documents-page .doc-mini-card p{color:var(--muted);font-size:14px;line-height:1.45;margin:0;}
body.documents-page .doc-mini-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 15px;border-radius:999px;background:var(--orange);color:#fff;font-weight:900;white-space:nowrap;}
body.documents-page .doc-mini-link:hover{background:var(--orange-dark);}
body.documents-page .doc-order-section{background:linear-gradient(135deg,var(--burgundy),var(--burgundy-dark));color:#fff;}
body.documents-page .doc-order-section .doc-library-head{border-color:rgba(255,255,255,.18);}
body.documents-page .doc-order-section h2,body.documents-page .doc-order-section p{color:#fff;}
body.documents-page .doc-order-form{display:grid;gap:14px;}
body.documents-page .doc-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
body.documents-page .doc-form-wide{grid-column:1 / -1;}
body.documents-page .doc-order-form label{display:grid;gap:7px;color:#fff;font-weight:800;}
body.documents-page .doc-order-form input,body.documents-page .doc-order-form select,body.documents-page .doc-order-form textarea{width:100%;border:1px solid rgba(255,255,255,.28);border-radius:14px;padding:13px 14px;font:inherit;background:rgba(255,255,255,.96);color:var(--text);}
body.documents-page .doc-form-consent{font-size:13px;line-height:1.55;color:rgba(255,255,255,.84);}
body.documents-page .doc-contact-box{background:var(--soft);}
body.documents-page .doc-contact-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border-radius:999px;background:var(--burgundy);color:#fff;font-weight:900;}
@media(max-width:1050px){body.documents-page .doc-category-line{grid-template-columns:repeat(2,minmax(0,1fr));}body.documents-page .doc-main{grid-template-columns:1fr;}body.documents-page .doc-anchor-nav{position:static;grid-template-columns:repeat(2,minmax(0,1fr));}body.documents-page .doc-anchor-nav strong{grid-column:1 / -1;}}
@media(max-width:760px){body.documents-page .doc-title-strip{display:block;}body.documents-page .doc-updated{display:inline-block;margin-top:18px;}body.documents-page .doc-mini-grid,body.documents-page .doc-category-line,body.documents-page .doc-form-grid,body.documents-page .doc-anchor-nav{grid-template-columns:1fr;}body.documents-page .doc-mini-card{grid-template-columns:1fr;}body.documents-page .doc-mini-link{justify-self:start;}body.documents-page .doc-library-section{padding:20px;}body.documents-page .doc-title-strip h1{font-size:clamp(36px,12vw,54px);}}
