.tek-wrap,
.tek-wrap *,
.tek-wrap *::before,
.tek-wrap *::after {
  box-sizing: border-box;
}

.tek-wrap {
  --tek-blue: #1e56b0;
  --tek-blue-mid: #3572cc;
  --tek-border: #d4e3f7;
  --tek-bg: #f4f7fd;
  --tek-text: #1a1a1a;
  --tek-muted: #555;
  font-family: "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  color: var(--tek-text);
  line-height: 1.65;
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

.tek-wrap table { border-collapse: collapse; width: 100%; margin: 0 0 1rem; }
.tek-wrap h2,
.tek-wrap h3 { font-family: inherit; }
.tek-wrap ul { list-style: none; margin: 0; padding: 0; }
.tek-wrap p { margin: 0 0 1rem; }

.tek-header {
  border-left: 4px solid var(--tek-blue);
  padding-left: 14px;
  margin-bottom: 18px;
}
.tek-header h2 {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--tek-text) !important;
  margin: 0 0 6px !important;
  line-height: 1.35 !important;
  border: none !important;
  padding: 0 !important;
  background: none !important;
}
.tek-header .tek-sub {
  display: block;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.tek-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.tek-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.35;
}
.tek-badge-blue { background: var(--tek-blue); color: #fff; }
.tek-badge-mid { background: var(--tek-blue-mid); color: #fff; }
.tek-badge-gray { background: #f0f0f0; color: #444; border: 1px solid #ddd; }

.tek-intro {
  font-size: 14px;
  line-height: 1.75;
  color: var(--tek-muted);
  padding: 14px 16px;
  border: 1px solid #e0eaf8;
  border-left: 3px solid var(--tek-blue);
  background: var(--tek-bg);
  border-radius: 4px;
  margin-bottom: 28px;
}

.tek-section-title {
  font-size: clamp(0.95rem, 2.2vw, 1rem) !important;
  font-weight: 700 !important;
  color: var(--tek-blue) !important;
  margin: 32px 0 14px !important;
  padding: 0 0 8px !important;
  border: none !important;
  border-bottom: 2px solid var(--tek-border) !important;
  line-height: 1.35 !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tek-params {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}
.tek-params > .tek-param,
.tek-params > p > .tek-param {
  min-width: 0;
}
@media (min-width: 900px) {
  .tek-params { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tek-param {
  border: 1px solid var(--tek-border);
  border-radius: 4px;
  background: #fff;
  padding: 14px 10px;
  text-align: center;
  min-width: 0;
}
.tek-param-val {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  color: var(--tek-blue);
  line-height: 1.15;
  margin-bottom: 6px;
}
.tek-param-label {
  font-size: 11px;
  color: #666;
  line-height: 1.4;
}

.tek-benefits {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.tek-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #333;
  padding: 12px 14px;
  border: 1px solid var(--tek-border);
  border-radius: 4px;
  background: #fff;
  line-height: 1.55;
}
.tek-benefits li::before {
  content: "\2713";
  font-weight: 700;
  color: var(--tek-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.tek-highlight {
  background: var(--tek-bg);
  border: 1px solid var(--tek-border);
  border-left: 4px solid var(--tek-blue);
  border-radius: 4px;
  padding: 16px 18px;
  margin-bottom: 28px;
}
.tek-highlight-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--tek-blue);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.tek-highlight-body {
  font-size: 14px;
  color: var(--tek-muted);
  line-height: 1.75;
}

.tek-usecases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 28px;
}
@media (min-width: 520px) {
  .tek-usecases { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .tek-usecases { grid-template-columns: repeat(3, 1fr); }
}
.tek-usecase {
  border: 1px solid var(--tek-border);
  border-radius: 4px;
  background: var(--tek-bg);
  padding: 14px;
  min-width: 0;
}
.tek-usecase-icon {
  display: block;
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: var(--tek-blue);
  margin-bottom: 10px;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}
.tek-usecase-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tek-text);
  margin-bottom: 6px;
  line-height: 1.35;
}
.tek-usecase-desc {
  font-size: 13px;
  color: var(--tek-muted);
  line-height: 1.55;
}

.tek-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 28px;
}
@media (min-width: 720px) {
  .tek-features { grid-template-columns: repeat(3, 1fr); }
}
.tek-feat {
  border: 1px solid var(--tek-border);
  padding: 14px;
  border-radius: 4px;
  background: var(--tek-bg);
  min-width: 0;
}
.tek-feat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tek-blue);
  margin-bottom: 8px;
  line-height: 1.35;
}
.tek-feat-val {
  font-size: 13px;
  color: #222;
  line-height: 1.6;
}

.tek-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 8px;
  border: 1px solid var(--tek-border);
  border-radius: 4px;
  background: #fff;
}
.tek-table-scroll::after {
  content: "Przewi\u0144 w poziomie \2192";
  display: block;
  font-size: 11px;
  color: #888;
  text-align: center;
  padding: 6px 8px;
  background: #fafbfd;
  border-top: 1px solid var(--tek-border);
}
@media (min-width: 720px) {
  .tek-table-scroll::after { display: none; }
}

.tek-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 13px;
  margin: 0 !important;
  border: none !important;
}
.tek-table th {
  background: var(--tek-blue) !important;
  color: #fff !important;
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tek-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e4eef8;
  vertical-align: top;
  color: #333;
  line-height: 1.5;
}
.tek-table tr:last-child td { border-bottom: none; }
.tek-table tr:nth-child(even) td { background: var(--tek-bg); }
.tek-table td:first-child { font-weight: 600; color: #111; }
.tek-val-blue { color: var(--tek-blue); font-weight: 700; }

.tek-table-note {
  font-size: 12px;
  color: #888;
  margin: 0 0 24px;
  line-height: 1.5;
}

.tek-note {
  background: var(--tek-bg);
  border: 1px solid var(--tek-border);
  border-left: 3px solid var(--tek-blue-mid);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--tek-muted);
  line-height: 1.7;
  border-radius: 4px;
  margin-bottom: 28px;
}

.tek-divider {
  border: none;
  border-top: 2px solid #e4eef8;
  margin: 28px 0;
}

.tek-summary {
  background: var(--tek-blue);
  color: #fff;
  border-radius: 4px;
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 28px;
}
.tek-summary strong { color: #a8ccf5; font-weight: 700; }

.tek-faq {
  margin-bottom: 10px;
  border: 1px solid var(--tek-border);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.tek-faq-q {
  background: var(--tek-bg);
  padding: 14px 16px;
  padding-right: 40px;
  font-size: 14px;
  font-weight: 700;
  color: var(--tek-text);
  cursor: pointer;
  list-style: none;
  position: relative;
  line-height: 1.45;
}
.tek-faq-q::-webkit-details-marker { display: none; }
.tek-faq-q::marker { content: ""; }
.tek-faq-q::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--tek-blue);
  line-height: 1;
}
.tek-faq[open] .tek-faq-q::after { content: "\2212"; }
.tek-faq-a {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--tek-muted);
  line-height: 1.75;
  border-top: 1px solid var(--tek-border);
}

/* Pełna szerokość opisu (zakładki Woo + Elementor wd-single-content) */
body.single-product .wd-content-area .tek-wrap,
body.single-product .elementor-widget-wd_single_product_content .tek-wrap,
body.single-product .wd-single-content .tek-wrap,
body.single-product.pkc-custom-product-desc .wd-content-area .woocommerce-tabs .woocommerce-Tabs-panel--description,
body.single-product.pkc-custom-product-desc .wd-content-area .woocommerce-tabs .woocommerce-Tabs-panel--description .tek-wrap {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Nadpisanie inline <style> wklejonego w opis produktu (max-width: 900px) */
body.single-product .tek-wrap[style],
body.single-product .wd-single-content .tek-wrap[style] {
  max-width: none !important;
  width: 100% !important;
}

@media (max-width: 479px) {
  .tek-wrap { padding: 0 2px; font-size: 14px; }
  .tek-badge { font-size: 10px; padding: 4px 10px; }
  .tek-table { min-width: 480px; font-size: 12px; }
  .tek-table th,
  .tek-table td { padding: 8px 10px; }
}
