/* WOLCO demo. Kolory z logo i obecnej strony wolco.pl (#00437a, #f9ac00). Krój: Source Sans 3, otwarty krewny Myriad Pro z obecnej strony. */
:root {
  --navy: #00437a;
  --navy-deep: #0b2b4a;
  --navy-ink: #072039;
  --signal: #f9ac00;
  --signal-ink: #3a2700;
  --paper: #eef2f5;
  --white: #ffffff;
  --ink: #17212c;
  --muted: #55626e;
  --line: #cdd6de;
  --line-strong: #9fb0bf;
  --ok: #1d6b3a;
  --err: #a3261b;
  --focus: #f9ac00;
  /* metale w przekrojach */
  --steel: #6b757e;
  --m-cu: #b8693d;
  --m-ni: #aab1b6;
  --m-sn: #d3d8d6;
  --m-zn: #8a9ba8;
  --m-cuzn: #c6a24b;
  --m-brass: #c9a447;
  --m-copper: #b5652f;
  --radius: 3px;
  --wrap: 1180px;
  --font: "Source Sans 3", "Myriad Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 2px; }
a:hover { color: var(--navy-deep); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* pasek demo */
.demo-bar { background: var(--signal); color: var(--signal-ink); font-size: 14px; }
.demo-bar .wrap { padding-top: 6px; padding-bottom: 6px; }

/* nagłówek */
.site-header { background: var(--white); border-bottom: 3px solid var(--navy); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--muted); font-size: 14px; line-height: 1.2; }
.logo img { width: 150px; height: auto; }
.logo span { max-width: 22ch; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 10px 12px; border-radius: var(--radius); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper); color: var(--navy); }
.lang { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lang a { text-decoration: none; padding: 6px 10px; font-weight: 600; font-size: 15px; color: var(--muted); }
.lang a[aria-current="true"] { background: var(--navy); color: var(--white); }
.inq-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: var(--white); text-decoration: none; font-weight: 600; padding: 10px 14px; border-radius: var(--radius); white-space: nowrap; }
.inq-btn:hover { background: var(--navy-deep); color: var(--white); }
.inq-count { background: var(--signal); color: var(--signal-ink); min-width: 24px; height: 24px; border-radius: 12px; display: inline-grid; place-items: center; font-size: 14px; padding: 0 6px; }
.site-header .menu-btn { display: none; }

/* przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; padding: 12px 20px; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; text-decoration: none; min-height: 48px; }
.btn-primary { background: var(--signal); color: var(--signal-ink); }
.btn-primary:hover { background: #ffbb24; color: var(--signal-ink); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-line { background: var(--white); color: var(--navy); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--navy); }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--navy); font: inherit; text-decoration: underline; cursor: pointer; }

/* hero */
.hero { background: var(--navy-deep); color: var(--white); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 56px; }
.hero h1 { color: var(--white); max-width: 22ch; text-wrap: balance; }
.hero p { color: #c9d8e6; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.scale { background: var(--navy-ink); border: 1px solid #1d4268; border-radius: var(--radius); padding: 24px 24px 16px; }
.scale svg { width: 100%; height: auto; }
.scale-caption { color: #9fb6cc; font-size: 14px; margin: 8px 0 0; }

/* sekcje */
.section { padding: 56px 0; }
.section-white { background: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head p { color: var(--muted); margin: 0; }

/* indeks kategorii */
.index-group { margin-top: 28px; }
.index-group h3 { color: var(--muted); font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.index { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); background: var(--white); }
.index li { border-bottom: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: 56px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 16px; text-decoration: none; color: var(--ink); }
.index a:hover { background: #f6f8fa; }
.index a:hover .idx-name { color: var(--navy); text-decoration: underline; }
.idx-name { font-weight: 600; font-size: 18px; }
.idx-meta { color: var(--muted); font-size: 15px; }
.idx-meta b { color: var(--ink); font-weight: 600; }
.swatch { width: 44px; height: 44px; }

/* o firmie */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--navy); margin-top: 24px; }
.fact { padding: 16px 20px 16px 0; }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--line); }
.fact strong { display: block; font-size: 1.6rem; color: var(--navy); line-height: 1.1; }
.fact span { color: var(--muted); font-size: 15px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.photo { background: var(--white); border: 1px solid var(--line); padding: 8px; }
.photo figcaption { font-size: 13px; color: var(--muted); padding-top: 6px; }

/* aktualności */
.news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.news article { border-top: 2px solid var(--line-strong); padding-top: 12px; }
.news time { color: var(--muted); font-size: 15px; }

/* okruszki i nagłówek strony */
.crumbs { font-size: 15px; color: var(--muted); padding: 16px 0 0; }
.crumbs a { color: var(--muted); }
.page-head { background: var(--white); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-bottom: 28px; }
.page-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-top: 12px; }
.page-head .lead { font-size: 18px; color: var(--muted); }
.head-row { display: flex; gap: 24px; align-items: flex-start; }
.head-row .swatch { width: 72px; height: 72px; flex: none; margin-top: 14px; }
.note { border-left: 4px solid var(--signal); background: #fff8e6; padding: 10px 14px; margin: 16px 0 0; max-width: 72ch; }

/* lista produktów w kategorii */
.products { display: grid; gap: 16px; }
.product-row { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--navy); padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; }
.product-row h2 { font-size: 1.3rem; margin: 0 0 4px; }
.product-row p { margin: 0; color: var(--muted); }
.specs-inline { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 10px; font-size: 15px; }
.specs-inline span { color: var(--muted); }
.specs-inline b { color: var(--ink); font-weight: 600; }

/* karta produktu */
.product-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.spec { width: 100%; border-collapse: collapse; background: var(--white); border-top: 2px solid var(--navy); }
.spec th, .spec td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 38%; color: var(--muted); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tags li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 10px; font-size: 15px; }
.config { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--signal); padding: 20px; position: sticky; top: 96px; }
.config h2 { font-size: 1.25rem; }

/* formularze */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field legend { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); color: var(--ink); width: 100%; min-height: 46px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--navy); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); }
.field .error { color: var(--err); font-size: 14px; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: inherit; font-size: 15px; padding: 6px 12px; border: 1px solid var(--line-strong); background: var(--white); border-radius: 20px; cursor: pointer; color: var(--ink); min-height: 36px; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* DPF */
.dpf-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; background: var(--white); border: 1px solid var(--line); padding: 16px; margin-bottom: 16px; }
.dpf-tools .field { margin: 0; }
.table-wrap { background: var(--white); border-top: 2px solid var(--navy); }
.dpf-table { width: 100%; border-collapse: collapse; }
.dpf-table th, .dpf-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.dpf-table th { font-size: 14px; color: var(--muted); font-weight: 600; background: #f7f9fb; }
.dpf-table td.sym { font-weight: 600; white-space: nowrap; }
.dpf-table td.oe { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.qty { width: 76px !important; min-height: 40px !important; padding: 6px 8px !important; }
.add-cell { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.result-count { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.type-pill { display: inline-block; font-size: 14px; padding: 1px 8px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.empty { background: var(--white); border: 1px dashed var(--line-strong); padding: 28px; text-align: left; }

/* demistery */
.demi-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.segs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.seg { text-align: center; font-size: 14px; color: var(--muted); }
.seg svg { width: 100%; max-width: 72px; margin: 0 auto 4px; }
.seg b { display: block; color: var(--ink); }

/* zapytanie */
.inq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.inq-list { list-style: none; margin: 0; padding: 0; background: var(--white); border-top: 2px solid var(--navy); }
.inq-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.inq-list .meta { color: var(--muted); font-size: 15px; }
.inq-list .ctrl { display: flex; align-items: center; gap: 10px; }
.drop { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 18px; background: #f9fbfc; text-align: center; cursor: pointer; }
.drop.over { border-color: var(--navy); background: #e8f0f7; }
.drop p { margin: 0 auto; }
.files { list-style: none; padding: 0; margin: 10px 0 0; }
.files li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 6px; background: var(--white); font-size: 15px; }
.files li span { overflow-wrap: anywhere; }
.form-card { background: var(--white); border: 1px solid var(--line); padding: 24px; }
.done { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--ok); padding: 24px; }
.done pre { white-space: pre-wrap; background: var(--paper); border: 1px solid var(--line); padding: 14px; font-family: var(--font); font-size: 15px; margin: 0; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); background: var(--ink); color: var(--white); padding: 12px 16px; border-radius: var(--radius); display: flex; gap: 16px; align-items: center; opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; z-index: 50; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--signal); font-weight: 600; }

/* stopka */
.site-footer { background: var(--navy-ink); color: #b9c9d8; font-size: 15px; margin-top: 0; }
.site-footer .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.site-footer h2 { color: var(--white); font-size: 1.05rem; }
.site-footer a { color: var(--white); }
.site-footer p { margin: 0 0 6px; }
.footer-note { border-top: 1px solid #1d4268; }
.footer-note .wrap { display: block; padding-top: 14px; padding-bottom: 18px; font-size: 13px; color: #8ea6bd; }

@media (max-width: 1000px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; padding: 8px 20px 16px; border-bottom: 3px solid var(--navy); }
  .nav.open { display: flex; }
  .site-header .menu-btn { display: inline-flex; margin-left: auto; }
  .logo span { display: none; }
  .hero .wrap, .about-grid, .product-grid, .demi-grid, .inq-grid { grid-template-columns: minmax(0, 1fr); }
  .config { position: static; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { gap: 10px; min-height: 64px; }
  .logo img { width: 118px; }
  .inq-btn .inq-label { display: none; }
  .hero .wrap { padding-top: 36px; padding-bottom: 36px; gap: 28px; }
  .section { padding: 40px 0; }
  .index a { grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; }
  .index a .idx-meta { grid-column: 2; }
  .swatch { width: 36px; height: 36px; }
  .news, .row-2, .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .product-row { grid-template-columns: minmax(0, 1fr); }
  .dpf-tools { grid-template-columns: minmax(0, 1fr); }
  .dpf-table thead { display: none; }
  .dpf-table, .dpf-table tbody, .dpf-table tr, .dpf-table td { display: block; width: 100%; }
  .dpf-table tr { padding: 12px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .dpf-table td { border: 0; padding: 0; }
  .dpf-table td:nth-child(1) { grid-column: 1; grid-row: 1; font-size: 18px; }
  .dpf-table td:nth-child(2) { grid-column: 2; grid-row: 1; text-align: right; }
  .dpf-table td:nth-child(3) { grid-column: 1; grid-row: 2; }
  .dpf-table td:nth-child(5) { grid-column: 2; grid-row: 2; text-align: right; color: var(--muted); }
  .dpf-table td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; }
  .dpf-table td:nth-child(4)::before { content: "OE: "; }
  .dpf-table td:nth-child(6) { grid-column: 1 / -1; grid-row: 4; margin-top: 6px; }
  .dpf-table .add-cell { justify-content: stretch; }
  .dpf-table .add-cell .btn { flex: 1; }
  .toast { left: 16px; right: 16px; transform: translateY(12px); justify-content: space-between; max-width: none; }
  .toast.show { transform: none; }
  .segs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .head-row .swatch { width: 52px; height: 52px; }
  .inq-list li { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
}
.qty { font: inherit; font-size: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); color: var(--ink); }
