@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&display=swap");

:root {
  --bg:#ffffff;
  --bg2:#f3f7fd;
  --card:#ffffff;
  --text:#1b2842;
  --muted:#607498;
  --line:#cfdbec;
  --brand-blue:#243c69;
  --brand-sky:#2e93c9;
  --brand-green:#7ec145;
  --ok:#5bbf7d;
  --ink-900:#0f1e3a;
}
*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(1100px 540px at 8% -22%, rgba(46,147,201,.10) 0%, transparent 58%),
    radial-gradient(900px 500px at 110% 8%, rgba(126,193,69,.12) 0%, transparent 62%),
    linear-gradient(170deg, var(--bg2) 0%, var(--bg) 52%);
  color: var(--text);
}
.wrap{
  width: min(1380px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 22px 12px 40px;
}
.header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
  position: sticky;
  top: 10px;
  z-index: 40;
  padding: 10px 12px;
  border: 1px solid rgba(47, 78, 128, .25);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(23, 43, 74, .08);
}
.header-actions{ display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
h1{ margin:0; font-size:30px; letter-spacing:.2px; font-weight: 800; }
.subtitle{ margin:6px 0 0; color: var(--muted); }
.hero{
  display:grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #29467a;
  background:
    radial-gradient(520px 240px at 0% -15%, rgba(126,193,69,.18), transparent 68%),
    radial-gradient(440px 220px at 100% 0%, rgba(46,147,201,.20), transparent 72%),
    linear-gradient(145deg, #1f335a 0%, #132342 100%);
  box-shadow: 0 14px 32px rgba(22, 42, 74, .24);
}
.hero-copy{
  color: #e6eeff;
}
.hero-badge{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(126,193,69,.65);
  color: #d7efc0;
  font-size: 12px;
  font-weight: 700;
}
.hero-title{
  margin: 10px 0 8px;
  color: #f4f8ff;
  font-size: 30px;
  line-height: 1.1;
}
.hero-text{
  margin: 0;
  color: #c7d6f5;
}
.hero-points{
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.hero-point{
  color: #dce7ff;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(150,178,228,.35);
  background: rgba(18, 33, 58, .45);
}
.hero-panel{
  background: #f9fbff;
  border: 1px solid #cbd8ec;
  border-radius: 14px;
  padding: 14px;
}
.stats-strip{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.stats-item{
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.stats-value{
  color: var(--brand-blue);
  font-size: 20px;
  font-weight: 800;
}
.stats-label{
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand-home{
  text-decoration: none;
  color: inherit;
}
.brand-logo{
  height:56px;
  width:auto;
  display:block;
}
.brand-title{
  font-weight: 800;
  font-size: 34px;
  letter-spacing: .2px;
}
.brand-title .brand-word-primary{ color: #dbe6ff; }
.brand-title .brand-word-accent{ color: var(--brand-green); }
.brand-title .brand-word-primary{ color: var(--brand-blue); }

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(26, 46, 80, 0.08);
}
.grid{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
@media (max-width: 860px){ .grid{ grid-template-columns:1fr; } }
@media (max-width: 640px){
  .wrap{
    width: calc(100vw - 16px);
    padding: 16px 8px 28px;
  }
  .hero{
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .hero-title{
    font-size: 24px;
  }
  .hero-panel{
    padding: 12px;
  }
  .stats-strip{
    grid-template-columns: 1fr;
  }
  .brand-logo{ height:48px; }
  .brand-title{ font-size:28px; }
  .header{
    top: 6px;
    padding: 8px 10px;
    align-items: flex-start;
    flex-direction: column;
  }
  .header > div{
    width: 100%;
  }
  .header-actions{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    justify-content: stretch;
  }
  .header-actions .link{
    text-align: center;
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    font-size: 15px;
  }
  .row{
    flex-direction: column;
    gap: 8px;
  }
  .row .btn{
    width: 100%;
  }
  .btn{
    min-height: 44px;
  }
  .select-actions{
    flex-wrap: wrap;
  }
  .select-actions .btn{
    flex: 1 1 calc(50% - 4px);
    min-width: 120px;
    padding: 10px 8px;
    font-size: 14px;
  }
  .site-footer-row{
    gap: 10px;
    font-size: 12px;
  }
  .site-footer-note{
    font-size: 11px;
  }
  select.input[multiple]{
    min-height: 150px;
  }
  .pkd-count-row{
    align-items: flex-start;
  }
  .pkd-price{
    text-align: left;
  }
}

.form .label{ display:block; font-weight:600; margin-bottom:8px; }
.row{ display:flex; gap:10px; }
.input{
  flex:1;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  outline: none;
  font-size: 16px;
  min-width: 0;
}
.input:focus{
  border-color: var(--brand-sky);
  box-shadow: 0 0 0 2px rgba(46,147,201,.25);
}
select.input[multiple]{
  width: 100%;
}
.btn{
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #3b74b5;
  background: linear-gradient(135deg, #2e93c9 0%, #245a9e 100%);
  color: white;
  font-weight:700;
  cursor:pointer;
}
.btn:hover{ filter: brightness(1.08); }
.btn-download{
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
}
.hint{ margin:10px 0 0; color: var(--muted); font-size: 13px; }

.alert{
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #8e2f2f;
  background: #ffe9e9;
  color: #7a1111;
  font-weight: 600;
}
.success{
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(91,191,125,.45);
  background: rgba(91,191,125,.18);
  color: #1f6c37;
}

h2{ margin:0 0 12px; font-size:16px; color:#dbe7ff; }
h2{ color: var(--brand-blue); }
.kv{ display:grid; grid-template-columns: 150px 1fr; gap: 8px 12px; }
.k{ color: var(--muted); }
.v{ color: var(--text); word-break: break-word; }

.pill{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--line);
}
.pill.ok{ background: rgba(91,191,125,.18); border-color: rgba(91,191,125,.45); }
.pill.warn{ background: rgba(220,160,40,.18); border-color: rgba(220,160,40,.45); }

.table{ width:100%; border-collapse: collapse; margin-top: 10px; }
.table td{ border-top: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.tdk{ width: 220px; color: var(--muted); }
.tdv{ color: var(--text); word-break: break-word; }

.footer{ margin-top: 18px; color: var(--muted); font-size: 12px; }
.site-footer{
  margin-top: 26px;
  padding: 16px 14px 12px;
  border: 1px solid rgba(52, 82, 133, .35);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(247,250,255,.96), rgba(240,246,255,.98));
  box-shadow: 0 8px 20px rgba(26,46,80,.08);
  position: relative;
  overflow: hidden;
}
.site-footer::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, #1f3d70 0%, #2e93c9 55%, #7ec145 100%);
}
.site-footer-row{
  display:flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.site-footer-link{
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer-note{
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.list{ margin: 8px 0 0; padding-left: 18px; }
.list li{ margin: 6px 0; }
.subtle{ margin-top: 6px; color: var(--muted); font-size: 13px; }
.item{ margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.item-title{ font-weight: 700; }
.meta{ margin-top: 4px; color: var(--muted); font-size: 13px; }
.sudop-preview-locked{
  position: relative;
  margin-top: 8px;
  border-radius: 10px;
  overflow: hidden;
}
.sudop-preview-locked .item,
.sudop-preview-locked .subtle{
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}
.sudop-lock-layer{
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.28);
  backdrop-filter: blur(1.5px);
  pointer-events: none;
}
.sudop-lock-note{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(36,60,105,.25);
  background: rgba(255,255,255,.95);
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 700;
}
.sudop-chart{
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(180px, 260px) 1fr;
  background: #ffffff;
}
.sudop-chart-side{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sudop-side-row{
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.sudop-side-year{
  color: var(--muted);
  min-width: 56px;
}
.sudop-side-amount{
  font-weight: 700;
  color: var(--text);
}
.sudop-bars-wrap{
  overflow-x: auto;
}
.sudop-bars{
  min-height: 230px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 0 4px 8px;
}
.sudop-bar-group{
  width: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.sudop-bar{
  width: 24px;
  min-height: 2px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #37a99b 0%, #2b9588 100%);
}
.sudop-bar-year{
  font-size: 12px;
  color: var(--muted);
  transform: rotate(-35deg);
  transform-origin: center;
  white-space: nowrap;
}
.sudop-entries{
  margin-top: 10px;
}
.sudop-entry.is-hidden{
  display: none;
}
.sudop-more-row{
  margin-top: 12px;
}
@media (max-width: 900px){
  .sudop-chart{
    grid-template-columns: 1fr;
  }
}

.link{
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 10px;
  background: #ffffff;
}
.link:hover{ filter: brightness(1.1); }
.table thead th{
  text-align:left;
  font-weight:600;
  color: var(--muted);
  padding: 8px 8px;
  border-bottom: 1px solid var(--line);
}
.table-link{
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.relations-table .rel-company{
  width: 58%;
}
.relations-table .rel-nip{
  width: 22%;
  white-space: nowrap;
}
.relations-table .rel-krs{
  width: 20%;
  white-space: nowrap;
}
.pdf-card{ margin-top: 16px; }
.pdf-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap: wrap;
}
.export-row{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
}
.link-grid{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
}

@keyframes riseIn {
  from{
    opacity: 0;
    transform: translateY(10px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}
.wrap > header,
.wrap > section,
.wrap > footer{
  animation: riseIn .45s ease both;
}
.wrap > section:nth-of-type(1){ animation-delay: .04s; }
.wrap > section:nth-of-type(2){ animation-delay: .08s; }
.wrap > section:nth-of-type(3){ animation-delay: .12s; }
.wrap > section:nth-of-type(4){ animation-delay: .16s; }
.wrap > section:nth-of-type(5){ animation-delay: .20s; }
.wrap > section:nth-of-type(6){ animation-delay: .24s; }
.wrap > footer{ animation-delay: .28s; }

@media (prefers-reduced-motion: reduce){
  .wrap > header,
  .wrap > section,
  .wrap > footer{
    animation: none;
  }
}

.loading-overlay{
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.26);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}
.loading-card{
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  gap: 12px;
}
.spinner{
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: var(--brand-green);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cookie-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid #3b74b5;
  background: linear-gradient(135deg, #2e93c9 0%, #245a9e 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  z-index: 40;
}
.cookie-fab:hover{ filter: brightness(1.08); }
.cookie-fab svg{ width: 22px; height: 22px; }

.cookie-pop{
  position: fixed;
  right: 18px;
  bottom: 76px;
  width: min(320px, calc(100vw - 36px));
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,.4);
  z-index: 41;
}
.cookie-pop[hidden]{ display: none; }
.cookie-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 6px;
}
.cookie-title{ font-weight: 700; color: #dbe7ff; }
.cookie-title{ color: var(--brand-blue); }
.cookie-close{
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  border-radius: 8px;
  padding: 2px 8px;
  cursor: pointer;
}
.cookie-text{ color: var(--muted); font-size: 13px; margin: 0; }
.cookie-actions{ display:flex; gap:8px; justify-content:flex-end; margin-top:10px; }
.btn-ghost{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover{ filter: brightness(1.1); }
.select-actions{
  display:flex;
  gap:8px;
  justify-content:flex-end;
  margin: 6px 0 8px;
}

.map-card{ overflow: hidden; }
.map-wrap{
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eef4fc;
  min-height: 260px;
}
.map-wrap iframe{
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}
.pkd-count-wrap{
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pkd-count-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.pkd-count{
  font-size: clamp(42px, 9vw, 84px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--brand-green);
  text-shadow: 0 10px 26px rgba(126,193,69,.25);
}
.pkd-price{
  text-align:right;
}
.pkd-price-value{
  font-size: clamp(24px, 4.5vw, 38px);
  line-height: 1;
  font-weight: 800;
  color: var(--brand-blue);
}
.btn-order{
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
}
textarea.input{
  width: 100%;
  resize: vertical;
}
.pkd-grid{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 980px){
  .pkd-grid{
    grid-template-columns: 1fr;
  }
}
.article-card h1{
  margin: 0;
  color: var(--brand-blue);
  font-size: 34px;
}
.article-section{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.article-section p{
  margin: 10px 0 0;
  line-height: 1.65;
}
