/* Softineo: konfigurator. Tylko to, czego nie ma w softineo.css.
   Arkusz = narzędzie: założenia (formularz) | plan rysowany przez js/konfigurator.js | tabliczka z szacunkiem.
   Klasy cf-* są używane przez skrypt (liczniki, podsumowania, plan, zestawienie, szacunek); nie zmieniać nazw. */

/* ---------- arkusz ---------- */
.cf { --cgap: clamp(28px, 4vw, 80px); }
.cf-sheet { height: auto; min-height: 0; max-height: none; }
.cf-sheet .sheet-body {
  height: auto;
  grid-template-columns: minmax(0, 1fr) clamp(340px, 24vw, 440px);
  align-items: stretch;
}
.cf-tb { grid-column: 2; grid-row: 1; display: block; box-shadow: none; }
.cf-work { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: clamp(300px, 23vw, 400px) minmax(0, 1fr); min-width: 0; }
.cf [hidden] { display: none !important; }

/* tabliczka: przyklejona, przewija się sama, gdy jest wyższa niż ekran */
.cf-tb .tb-in {
  position: sticky; top: calc(var(--head-h) + 12px);
  max-height: calc(100svh - var(--head-h) - 24px); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin;
}
.cf-tb .tb-head { justify-content: flex-start; box-shadow: none; padding-bottom: clamp(18px, 1.8vw, 28px); }
.cf-tb h1 { font-size: clamp(34px, 2.8vw, 50px); margin-bottom: .45em; }
.cf-tb .tb-lead { font-size: clamp(16px, 1.05vw, 18px); max-width: 40ch; }

/* ---------- założenia: kroki formularza ---------- */
.cf-form { border-right: 1px solid var(--ink); background: rgba(237, 241, 244, .72); min-width: 0; }
.cf-col-h { font: 14px/1 var(--tech); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); padding: 15px 18px 13px; border-bottom: 1.5px solid var(--ink); }
.cf-step { border-bottom: 1px solid var(--ink); }
.cf-step summary {
  display: grid; grid-template-columns: 26px minmax(0, auto) minmax(0, 1fr) 12px; gap: 12px; align-items: center;
  min-height: 56px; padding: 12px 18px; cursor: pointer; list-style: none;
  transition: background-color .2s var(--ease-out);
}
.cf-step summary::-webkit-details-marker { display: none; }
.cf-step summary:hover { background: var(--paper-hi); }
.cf-step summary:focus-visible { outline-offset: -4px; box-shadow: inset 0 0 0 6px var(--y); }
.cf-n { width: 26px; height: 26px; display: grid; place-items: center; border: 1.2px solid var(--ink); border-radius: 50%; font: 14px/1 var(--tech); color: var(--ink); background: var(--paper-hi); }
.cf-step[open] .cf-n { background: var(--ink); color: var(--y); }
.cf-step summary b { font-size: 17px; line-height: 1.2; }
.cf-sv { font: 14px/1.25 var(--tech); font-style: normal; color: var(--ink-2); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-step[open] .cf-sv { visibility: hidden; }
.cf-step .chev { justify-self: end; }
.cf-step[open] > summary .chev { transform: rotate(180deg); }
.cf-body { padding: 2px 18px 20px; }

/* rodzaj zakładu */
.cf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cf-chips label { position: relative; cursor: pointer; }
.cf-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cf-chips span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 7px 12px;
  font-size: 15px; font-weight: 600; line-height: 1.2;
  border: 1px solid var(--ink); background: var(--paper-hi);
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.cf-chips label:hover span { background: #fff; }
.cf-chips input:checked + span { background: var(--ink); color: var(--paper-hi); box-shadow: inset 0 -4px 0 var(--y); }
.cf-chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--y); }

/* liczniki: przycisk | wartość | przycisk, jak pole wymiaru */
.cf-counter { display: grid; grid-template-columns: minmax(0, 1fr) 44px 50px 44px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.cf-counter:last-child { border-bottom: 0; }
.cf-counter > div { padding-right: 12px; min-width: 0; }
.cf-counter b { display: block; font-size: 16px; line-height: 1.25; }
.cf-counter small { display: block; font-size: 14px; line-height: 1.3; color: var(--ink-2); }
.cf-counter button {
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border: 1.5px solid var(--ink); background: var(--paper-hi); color: var(--ink); cursor: pointer;
  transition: background-color .2s var(--ease-out);
}
.cf-counter button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cf-counter button:hover:not(:disabled) { background: var(--y); }
.cf-counter button:active:not(:disabled) { background: var(--y-deep); }
.cf-counter button:disabled { color: var(--line-2); border-color: var(--line-2); cursor: not-allowed; background: transparent; }
.cf-counter output { height: 44px; display: grid; place-items: center; border-block: 1.5px solid var(--ink); background: #fff; font: 700 21px/1 var(--display); font-variant-numeric: tabular-nums lining-nums; }

/* pola wyboru */
.cf-checks label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; padding: 8px 0; cursor: pointer; font-size: 16px; line-height: 1.3; }
.cf-checks small { display: block; font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.cf input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; margin: 0; width: 22px; height: 22px; flex: none;
  border: 1.5px solid var(--ink); background: var(--paper-hi) center / 100% no-repeat; cursor: pointer;
  transition: background-color .15s var(--ease-out), box-shadow .2s var(--ease-out);
}
.cf input[type="checkbox"]:checked {
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M5 11.5l4 4 8-9' fill='none' stroke='%23ffb600' stroke-width='2.4'/%3E%3C/svg%3E");
}
.cf-checks label:hover input { box-shadow: 0 0 0 4px rgba(255, 182, 0, .45); }
.cf-checks-inline { display: flex; flex-wrap: wrap; gap: 0 22px; }
.cf-checks-inline label { grid-template-columns: 22px auto; align-items: center; }
.cf-docs { border: 0; margin: 16px 0 0; padding: 0; min-width: 0; }
.cf-docs legend { font: 13px/1 var(--tech); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding: 0; margin-bottom: 4px; }

/* kamery LPR w użyciu: tabliczka odczytu jak na planie */
.cf-checks label:has(input[name="lpr"]:checked) > span::after {
  content: "odczyt: DW 4K217"; display: flex; align-items: center; width: max-content; gap: 6px; margin-top: 6px;
  padding: 3px 26px 2px 8px; font: 13px/1.2 var(--tech); letter-spacing: .04em; color: var(--ink);
  background: var(--y) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1.5 5l3 3 6-6.5' fill='none' stroke='%231b2127' stroke-width='1.7'/%3E%3C/svg%3E") no-repeat right 8px center / 12px 10px;
  border: 1px solid var(--ink);
}

/* ruch dziennie */
.cf-range { display: block; font-size: 16px; }
.cf-range b { font-size: 21px; background: linear-gradient(transparent 56%, var(--y) 56%, var(--y) 93%, transparent 93%); padding: 0 .1em; }
.cf-range input { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 34px; margin: 8px 0 0; background: transparent; cursor: pointer; }
.cf-range input::-webkit-slider-runnable-track { height: 2px; background: var(--ink); }
.cf-range input::-moz-range-track { height: 2px; background: var(--ink); }
.cf-range input::-moz-range-progress { height: 6px; background: var(--y); }
.cf-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border: 1.5px solid var(--ink); border-radius: 0; background: var(--y); transform: rotate(45deg) scale(.86); }
.cf-range input::-moz-range-thumb { width: 18px; height: 18px; border: 1.5px solid var(--ink); border-radius: 0; background: var(--y); transform: rotate(45deg); }
.cf-range input:focus-visible { outline-offset: 4px; }

/* ERP */
.cf-select-wrap { display: block; }
.cf-select, .cf-input {
  display: block; width: 100%; min-height: 46px; padding: 10px 12px;
  font: 500 16px/1.3 var(--display); color: var(--ink);
  background-color: var(--paper-hi); border: 1.5px solid var(--ink); border-radius: 0;
}
.cf-select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231b2127' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 11px 7px;
}
.cf-input { margin-top: 8px; }
.cf-input::placeholder { color: #5f6d7a; opacity: 1; }
.cf-sites-note { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin: 0 0 8px; max-width: 60ch; }

/* ---------- plan, legenda, zestawienie ---------- */
.cf-plan { min-width: 0; }
.cf-plan .cf-sticky {
  position: sticky; top: calc(var(--head-h) + 12px);
  max-height: calc(100svh - var(--head-h) - 24px);
  display: flex; flex-direction: column; gap: 14px; padding: 12px clamp(14px, 1.4vw, 24px) 16px;
}
.cf-map-box { flex: none; }
.cf-map-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; padding: 2px 0 8px; border-bottom: 1px solid var(--line); }
.cf-map-head b { font: 14px/1 var(--tech); letter-spacing: .08em; text-transform: uppercase; font-weight: 400; }
#cf-caption { font: 14px/1.3 var(--tech); color: var(--ink-2); text-align: right; }
#cf-map { display: block; width: 100%; height: auto; max-height: calc(100svh - var(--head-h) - 360px); min-height: 200px; overflow: hidden; }

/* rysunek z js/konfigurator.js: liternictwo rysunkowe, obrys jezdni, kreskowanie wag */
#cf-map text { font-family: var(--tech); font-weight: 400; letter-spacing: .03em; }
#cf-map .cf-t7 { font-size: 9.5px; }
#cf-map .cf-t8 { font-size: 11px; }
#cf-map .cf-t9 { font-size: 15px; }
#cf-map .cf-t12 { font-size: 19px; }
#cf-map .cf-t13 { font-size: 17px; }
#cf-map .cf-roads, #cf-map .cf-road-pub { filter: url(#cf-edge); }   /* obrys jezdni */
#cf-map .cf-fence { stroke-dasharray: 14 4 2 4; stroke-width: 1.4; }
#cf-map .cf-plant { stroke: var(--ink-2); stroke-width: 1.2; }
#cf-map .cf-scale { stroke-dasharray: none; stroke-width: 1.5; }
#cf-map .cf-stcs { stroke-width: 1.5; }
/* odczyt tablic (js: drawReads / readAt): stożek, tabliczka z numerem, odczyt → STCS */
.cf-reads { pointer-events: none; }
.cf-reads .flow { transition: none; }
.cf-cone { fill: var(--y); }
.cf-tag rect { fill: var(--y); stroke: var(--ink); stroke-width: 1.4; }
.cf-reads.is-static .cf-tag rect { fill: var(--paper-hi); }
.cf-reads.is-static .leader-dot { fill: var(--ink); }
#cf-map .cf-tag text { font-size: 17px; fill: var(--ink); letter-spacing: .04em; }
.cf-tick { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cf-pop { animation: cfPop .45s var(--ease-out); transform-box: fill-box; transform-origin: center; }
@keyframes cfPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }

/* legenda rysunku */
.cf-legend { flex: none; }
.cf-legend-h, .cf-sum-head h3 { font: 14px/1 var(--tech); letter-spacing: .08em; text-transform: uppercase; font-weight: 400; color: var(--ink); }
.cf-legend-h { padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.cf-legend ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); column-gap: 18px; }
.cf-legend li { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--line-2); font: 14px/1.2 var(--tech); color: var(--ink); }
.cf-g { width: 40px; height: 20px; flex: none; }
.g-ink { fill: var(--ink); }
.g-ink2 { fill: var(--ink-2); }
.g-y { fill: var(--y); }
.g-line { fill: var(--line); }
.g-red { fill: var(--err); }
.g-green { fill: var(--ok); }
.g-ir { fill: none; stroke: var(--err); stroke-width: 1.5; stroke-dasharray: 2 2; }
.g-scale { fill: url(#h-diag); stroke: var(--ink); stroke-width: 1.4; }
.g-turn { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.5; }
.g-turn-a { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.g-box { fill: var(--paper-hi); stroke: var(--ink-2); stroke-width: 1.2; }
.g-link { fill: none; stroke: var(--line); stroke-width: 1.3; stroke-dasharray: 4 4; }

/* zestawienie */
.cf-sum { flex: 1 1 auto; min-height: 150px; display: flex; flex-direction: column; }
.cf-sum-head { flex: none; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); }
#cf-sum-count { font: 14px/1 var(--tech); color: var(--ink-2); }
.cf-sum-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
#cf-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.35; }
#cf-table th { text-align: left; font: 13px/1 var(--tech); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding: 14px 0 6px; border-bottom: 1px solid var(--ink); }
#cf-table tr:first-child th { padding-top: 10px; }
#cf-table td { padding: 6px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
#cf-table td:last-child { text-align: right; white-space: nowrap; font-weight: 700; padding-left: 14px; font-variant-numeric: tabular-nums lining-nums; }
#cf-table td[colspan] { text-align: left; white-space: normal; font-weight: 400; padding-left: 0; }
#cf-table td small { color: var(--ink-2); font-size: 14px; }

/* ---------- tabliczka: szacunek wstępny ---------- */
.cf-price { border-top: 1.5px solid var(--ink); }
.cq-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 20px 10px; background: var(--paper); border-bottom: 1px solid var(--ink); }
.cq-head h2 { font: 15px/1 var(--tech); letter-spacing: .08em; text-transform: uppercase; font-weight: 400; }
.cq-flag { font: 13px/1 var(--tech); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px 4px; border: 1px solid var(--ink); background: var(--paper-hi); }
.cq-cell { padding: 14px 20px 16px; border-bottom: 1px solid var(--ink); }
.cf-price-label { font: 13px/1.2 var(--tech); letter-spacing: .04em; color: var(--ink-2); }
.cf-price-value { font: 700 clamp(34px, 2.6vw, 46px)/1.05 var(--display); letter-spacing: -.02em; margin: 6px 0 10px; }
.cf-price-value #cf-price { background: linear-gradient(transparent 60%, var(--y) 60%, var(--y) 92%, transparent 92%); padding: 0 .06em; }
.cf-price-value small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.cf-price-scope { font-size: 14px; line-height: 1.45; color: var(--ink-2); margin: 0 0 10px; }
.cf-price-scope b { color: var(--ink); }
.cf-price-rows { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.35; }
.cf-price-rows td { padding: 5px 0; border-top: 1px solid var(--line-2); vertical-align: top; }
.cf-price-rows td:last-child { text-align: right; white-space: nowrap; font-weight: 700; padding-left: 12px; }
.cf-price-rows td[colspan] { text-align: left; white-space: normal; font-weight: 400; }
.cf-price-rows tr.cf-year td { border-top: 1px solid var(--ink); padding-top: 7px; font-weight: 700; }
.cf-impl-value { font: 700 clamp(24px, 1.8vw, 30px)/1.1 var(--display); letter-spacing: -.01em; margin: 6px 0 6px; }
.cf-impl-value small { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.cf-impl-more summary { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; list-style: none; font-weight: 600; font-size: 15px; text-decoration: underline; text-decoration-color: var(--y-deep); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.cf-impl-more summary::-webkit-details-marker { display: none; }
.cf-impl-more[open] summary .chev { transform: rotate(180deg); }
.cf-impl-more table { margin-top: 6px; }
.cf-estimate { margin: 0; padding: 14px 20px; font-size: 14px; line-height: 1.5; color: var(--ink-2); border-bottom: 1px solid var(--ink); background: rgba(255, 182, 0, .1); }
.cf-estimate b { color: var(--ink); display: block; font-size: 15px; margin-bottom: 2px; }
.cf-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px 16px; }
.cf-actions .btn { flex: 1 1 auto; min-height: 44px; padding: 9px 16px; font-size: 15px; }
.cf-copy::after { display: none; }
.cf-copy i { display: inline-block; width: 16px; height: 16px; flex: none; background: currentColor; }
.cf-copy .fa-copy {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 5.5h8v9h-8zM2.5 10.5v-9h8' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 5.5h8v9h-8zM2.5 10.5v-9h8' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cf-copy .fa-check {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cf-stamp { border-top: 1.5px solid var(--ink); margin-top: 0; }
.cf-stamp > div, .cf-stamp > div:nth-child(2n+2) { border-right: 0; }
.cf-stamp > div:nth-child(odd) { border-right: 1px solid var(--ink); }
.cf-stamp dd { font-size: 14px; }

/* ---------- zapytanie: zgłoszenie do wyceny ---------- */
.cf-send { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--cgap); align-items: start; padding-bottom: 28px; }
.cf-send h2 { margin-bottom: 22px; }
.cf-send .rev-form { box-shadow: none; }
.cf-send-note { color: var(--ink-2); max-width: 46ch; }
.cf-send-note a { text-decoration-color: var(--y-deep); text-decoration-thickness: 2px; }
.cf-preview { border-bottom: 1px solid var(--ink); }
.cf-preview summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px; cursor: pointer; list-style: none; font: 15px/1.2 var(--tech); color: var(--ink); }
.cf-preview summary::-webkit-details-marker { display: none; }
.cf-preview summary:hover { background: rgba(255, 182, 0, .16); }
.cf-preview[open] summary .chev { transform: rotate(180deg); }
.cf-preview textarea { display: block; width: 100%; min-height: 240px; margin: 0; padding: 12px 16px; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; background: var(--paper); color: var(--ink-2); font: 14px/1.5 var(--display); resize: vertical; }
.cf-submit { white-space: nowrap; }
/* komunikat site.js trafia na koniec formularza: wyrównany do kolumny formularza */
.cf > .form-status { margin: 0 var(--g) clamp(56px, 7vw, 110px) calc(var(--g) + (100% - 2 * var(--g) - var(--cgap)) / 3 + var(--cgap)); border: 1.5px solid var(--ink); }
.cf-send + .form-status { margin-top: 0; }

/* ---------- układ piętrowy: tabliczka nad arkuszem, szacunek pod planem ---------- */
@media (max-width: 1279px) {
  .cf-sheet .sheet-body { grid-template-columns: minmax(0, 1fr); }
  .cf-tb, .cf-tb .tb-in { display: contents; }
  .cf-tb .tb-head { order: -1; background: var(--paper-hi); border-bottom: 1.5px solid var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px clamp(20px, 3vw, 48px); align-items: end; }
  .cf-tb .tb-head h1 { grid-row: 1 / span 2; align-self: end; margin: 0; }
  .cf-tb .tb-lead { max-width: 52ch; }
  .cf-tb .tb-actions .btn { flex: 0 1 auto; }
  .cf-work { order: 0; grid-column: 1; grid-row: auto; }
  .cf-quote { order: 1; background: var(--paper-hi); border-top: 1.5px solid var(--ink); }
  .cf-price { border-top: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cq-head, .cf-estimate { grid-column: 1 / -1; }
  .cf-impl { border-left: 1px solid var(--ink); }
  .cf-actions { align-content: start; border-right: 1px solid var(--ink); }
  .cf-stamp { border-top: 0; }
  #cf-map { max-height: calc(100svh - var(--head-h) - 300px); }
}
/* poniżej 1100 px skrypt przenosi zestawienie pod szacunek */
@media (max-width: 1099px) {
  .cf-quote .cf-sum { padding: 16px 20px 20px; border-top: 1.5px solid var(--ink); }
  .cf-quote .cf-sum-body { overflow: visible; }
  .cf-plan .cf-sticky { max-height: none; }
  #cf-map { max-height: none; }
}
@media (max-width: 1000px) {
  .cf-stamp { margin-top: 0; }
  .cf-send { grid-template-columns: 1fr; gap: 28px; }
  .cf > .form-status { margin-left: var(--g); }
  .cf-work { grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr); }
}
/* telefon: plan przyklejony pod nagłówkiem, pod nim założenia, legenda na końcu */
@media (max-width: 759px) {
  .cf-work { display: flex; flex-direction: column; }
  .cf-plan, .cf-plan .cf-sticky { display: contents; }
  .cf-map-box { order: 0; position: sticky; top: var(--head-h); z-index: 6; background: var(--paper-hi); padding: 8px 10px 6px; border-bottom: 1.5px solid var(--ink); box-shadow: none; }
  .cf-map-head { padding: 0 0 4px; }
  .cf-map-head b { display: none; }
  #cf-caption { text-align: left; font-size: 13px; }
  #cf-map { min-height: 0; }
  .cf-form { order: 1; border-right: 0; }
  .cf-legend { order: 2; padding: 18px 14px 20px; border-top: 1.5px solid var(--ink); }
  .cf-tb .tb-head { display: flex; }
  .cf-price { grid-template-columns: 1fr; }
  .cf-impl { border-left: 0; }
  .cf-actions { border-right: 0; border-bottom: 1px solid var(--ink); }
  .cf-body { padding: 2px 14px 18px; }
  .cf-step summary { padding: 10px 14px; gap: 10px; }
  .cf-col-h { padding: 14px; }
  .cq-head, .cq-cell, .cf-estimate, .cf-actions { padding-left: 16px; padding-right: 16px; }
  .cf-quote .cf-sum { padding: 16px; }
}
@media (max-width: 680px) {
  .cf-sheet .sheet-body { margin: 0; }
  .cf-legend ul { grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .cf-legend li { font-size: 13px; gap: 6px; }
  .cf-legend .cf-g { width: 32px; }
  .cf-submit { white-space: normal; }
  .cf-actions { flex-direction: column; }
}
@media (max-width: 400px) {
  .cf-counter { grid-template-columns: minmax(0, 1fr) 44px 42px 44px; }
  .cf-step summary { grid-template-columns: 26px minmax(0, 1fr) 12px; }
  .cf-sv { display: none; }
  .cf-legend ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-pop { animation: none; }
}
.cf-note { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
/* symbol STCS w legendzie = pomniejszona ramka serwera z planu */
.g-stcs { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.5; }
.g-stcs-t { font: 8.5px/1 var(--tech); fill: var(--ink); letter-spacing: .02em; }
