/* Cennik – accordion pricing page */

.cennik-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  font-family: Poppins, sans-serif;
  color: #333;
}

/* ── Search ── */

.cennik-search {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.cennik-search input {
  width: 280px;
  max-width: 100%;
  padding: 10px 14px 10px 38px;
  font-size: .95rem;
  font-family: inherit;
  border: 1px solid #d5cdc6;
  border-radius: 6px;
  outline: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.868-3.834Zm-5.242.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10Z'/%3E%3C/svg%3E") 12px center / 14px no-repeat;
  transition: border-color .2s;
}

.cennik-search input:focus {
  border-color: #af8573;
}

/* ── Column header ── */

.cennik-header {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 12px;
  padding: 12px 16px;
  background: #f5f0eb;
  border-radius: 6px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #777;
  margin-bottom: 8px;
}

/* ── Category accordion ── */

.cennik-cat {
  border-bottom: 1px solid #e9e2dc;
  scroll-margin-top: 80px;
}

.cennik-cat h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 20px 16px;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  cursor: pointer;
  user-select: none;
  transition: color .2s;
  color: #333;
}

.cennik-cat h2:hover {
  color: #af8573;
}

.cennik-cat h2::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 16px;
  color: #999;
  transition: transform .2s;
}

.cennik-cat.open h2::after {
  content: "\2013";
}

/* table hidden by default; .open shows it */
.cennik-cat table {
  display: none;
  width: 100%;
  border-collapse: collapse;
}

.cennik-cat.open table {
  display: table;
}

.cennik-cat table tr {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid #f0ebe6;
  align-items: center;
}

.cennik-cat table tr,
.cennik-cat table tr:first-of-type {
  background: none;
  color: inherit;
  font-weight: inherit;
}

.cennik-cat table tr:first-of-type td {
  padding: inherit;
}

.cennik-cat table tr:hover {
  background: #faf7f4;
}

.cennik-cat table td {
  font-size: .92rem;
  font-weight: 400;
  color: #444;
  padding: 0;
  border: 0;
}

/* Hidden middle columns – uncomment grid columns above to re-enable */
.cennik-cat table td:nth-child(2),
.cennik-cat table td:nth-child(3) {
  display: none;
}

.cennik-cat table td:last-child {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
  text-align: right;
  white-space: nowrap;
}

/* hidden row during search */
.cennik-cat table tr.cennik-hidden {
  display: none;
}

/* ── Notes ── */

.cennik-notes {
  margin-top: 40px;
  padding: 24px;
  background: #faf7f4;
  border-radius: 8px;
  font-size: .85rem;
  color: #777;
  line-height: 1.6;
}

.cennik-notes p {
  margin: .4em 0;
  font-size: inherit;
  color: inherit;
}

/* ── No results message ── */

.cennik-no-results {
  display: none;
  text-align: center;
  padding: 40px 16px;
  font-size: 1rem;
  color: #999;
}

.cennik-no-results.visible {
  display: block;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .cennik-header {
    display: none;
  }

  .cennik-search {
    justify-content: stretch;
  }

  .cennik-search input {
    width: 100%;
  }

  .cennik-cat table tr {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    padding: 12px 16px;
  }

  .cennik-cat table td {
    width: 100%;
    text-align: left !important;
  }

  .cennik-cat table td:last-child {
    margin-top: 4px;
    font-size: 1.05rem;
  }

  .cennik-cat h2 {
    font-size: .95rem;
    padding: 16px 12px;
  }

  .cennik-cat table tr {
    padding: 12px;
  }
}
