/* 30.11.2026 (PB): wspolne style narzedzi sklepu (klasy kk-* z kalkulatora korzeni + dodatki). Tlo hero ustawia strona. */
[id^="extblock-"] td > a > img{width:100%!important;height:auto!important;max-width:none!important;max-height:none!important;display:block;border-radius:4px}
.kk { max-width: 1200px; margin: 0 auto; padding: 24px 20px 30px; font-size: 15px; line-height: 1.6; color: #333; box-sizing: border-box; }
.kk *, .kk *:before, .kk *:after { box-sizing: border-box; }
.kk a { color: #8a4b08; }
.kk-hero { background-position: right center; background-size: contain; background-repeat: no-repeat; min-height: 230px; padding: 20px 46% 20px 0; display: flex; flex-direction: column; justify-content: center; }
.kk-hero h1 { font-size: 28px; line-height: 1.25; font-weight: 600; color: #333; margin: 0 0 12px; padding: 0; }
.kk-hero p { margin: 0; color: #555; }
.kk .kk-h2 { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 600; line-height: 1.25; color: #333; margin: 44px 0 16px; padding: 0; }
.kk .kk-h2--plain { margin-top: 48px; }
.kk .kk-h3 { font-size: 17px; font-weight: 600; color: #333; margin: 26px 0 8px; padding: 0; }
.kk-num { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: rgb(204,0,0); color: #fff; font-size: 16px; line-height: 32px; text-align: center; font-weight: 600; }
.kk-note { font-size: 13px; line-height: 1.55; color: #777; margin: 12px 0 0; }
.kk-text p { margin: 0 0 12px; }
.kk-text ul { margin: 0 0 14px; padding: 0 0 0 20px; }
.kk .kk-text ul li { margin: 0 0 7px; font-size: 15px; line-height: 1.6; color: #333; }
.kk-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.kk-fields, .kk-opts, .kk-result { background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.08); padding: 18px 20px; }
.kk-field { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; font-size: 14px; color: #555; }
.kk-field:last-child { margin-bottom: 0; }
.kk-inp { display: flex; align-items: center; width: 118px; height: 44px; border: 2px solid #c9d3cb; border-radius: 10px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.kk-inp:focus-within { border-color: #2e7d32; box-shadow: 0 0 0 4px rgba(46,125,50,.16); }
.kk-inp input { flex: 1 1 auto; min-width: 0; width: 100%; height: 100%; margin: 0; padding: 0 4px 0 12px; border: 0 !important; outline: 0; background: transparent; box-shadow: none; font-family: inherit; font-size: 18px; font-weight: 600; color: #1f2a22; }
.kk-inp i { flex: 0 0 auto; padding: 0 12px 0 2px; font-style: normal; font-size: 14px; font-weight: 600; color: #5f6b62; }
.kk-opt-t { font-size: 14px; font-weight: 600; color: rgb(204,0,0); margin: 0 0 10px; }
.kk-radio { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; line-height: 1.45; color: #444; margin: 0 0 10px; cursor: pointer; }
.kk-radio input { flex: 0 0 auto; margin: 3px 0 0; width: 16px; height: 16px; accent-color: #2e7d32; }
.kk-radio--chk { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #eee; }
.kk-result { border: 1px solid #cfe3cd; background: #eef7ec; box-shadow: none; color: #1f4d22; display: flex; flex-direction: column; justify-content: center; }
.kk-result div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid #d6e8d4; font-size: 14px; }
.kk-result div b { font-size: 19px; white-space: nowrap; }
.kk-result p { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: #3d6b40; }
.kk-result--err { background: #fdf3f3; border-color: #efc9c9; color: #a12020; font-size: 14px; }
.kk-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 22px 0 0; }
.kk-loading { grid-column: 1 / -1; padding: 30px; text-align: center; color: #888; background: #fafafa; border-radius: 10px; }
.kk-card { background: #fff; border: 1px solid #e6e6e6; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; min-width: 0; }
.kk-card--top { grid-column: 1 / -1; border: 2px solid rgb(204,0,0); }
.kk-card-head { display: flex; gap: 16px; align-items: flex-start; }
.kk-card-img { flex: 0 0 120px; }
.kk-card-img img { display: block; width: 120px; height: 120px; object-fit: contain; border-radius: 8px; }
.kk-card--top .kk-card-img { flex-basis: 170px; }
.kk-card--top .kk-card-img img { width: 170px; height: 170px; }
.kk-card-txt { min-width: 0; flex: 1 1 auto; }
.kk-card-t { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 8px; }
.kk-card-t h3 { font-size: 18px; line-height: 1.25; font-weight: 600; color: #222; margin: 0; padding: 0; }
.kk-card-t em { font-style: normal; font-size: 12px; font-weight: 600; color: #1f4d22; background: #e3f2e1; border-radius: 20px; padding: 2px 10px; white-space: nowrap; }
.kk-card--top .kk-card-t em { color: #fff; background: rgb(204,0,0); }
.kk-rank { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: #333; color: #fff; font-size: 14px; line-height: 26px; text-align: center; font-weight: 600; }
.kk-card-txt p { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: #444; }
.kk .kk-card-txt ul { margin: 0; padding: 0; list-style: none; }
.kk .kk-card-txt ul li { margin: 0 0 3px; padding: 0; list-style: none; font-size: 13px; line-height: 1.5; color: #555; }
.kk-form { margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; flex: 1 1 auto; }
.kk-need { background: #eef7ec; border-radius: 8px; padding: 9px 12px; font-size: 14px; color: #1f4d22; margin: 0 0 6px; }
.kk-need b { font-size: 16px; }
.kk-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid #f0f0f0; }
.kk-row-img img { display: block; width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.kk-row-n a { display: block; font-size: 13.5px; line-height: 1.35; font-weight: 600; color: #222; text-decoration: none; }
.kk-row-n a:hover { text-decoration: underline; }
.kk-row-n span { display: block; font-size: 12.5px; line-height: 1.45; color: #777; margin-top: 2px; }
.kk-row--off .kk-row-n a, .kk-row--off .kk-row-img { opacity: .6; }
.kk-row-q { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.kk-row-q input[type=text] { width: 44px; height: 36px; margin: 0; padding: 0; border: 1px solid #c9d3cb !important; border-radius: 6px; text-align: center; font-family: inherit; font-size: 16px; font-weight: 600; color: #1f2a22; background: #fff; box-shadow: none; }
.kk-row-q i { font-style: normal; font-size: 12.5px; color: #777; margin-left: 2px; }
.kk-step { width: 32px; height: 36px; border: 1px solid #c9d3cb; border-radius: 6px; background: #f6f8f6; color: #333; font-size: 18px; line-height: 1; font-family: inherit; cursor: pointer; padding: 0; }
.kk-step:hover { background: #e9efe9; }
.kk-gr-t { font-size: 13px; font-weight: 600; color: #333; margin: 14px 0 0; padding: 0 0 2px; }
.kk-gr-t span { font-weight: 400; color: #888; }
.kk-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 14px; }
.kk-sum { font-size: 14.5px; color: #222; }
.kk-btn { border: 0; border-radius: 8px; background: #2e7d32; color: #fff; font-family: inherit; font-size: 15px; font-weight: 700; padding: 11px 22px; cursor: pointer; transition: background .15s ease; }
.kk-btn:hover { background: #1f4d22; }
.kk-btn:disabled { background: #b9c4ba; cursor: default; }
.kk-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 22px; }
.kk-gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
.kk-gallery figure { margin: 0; padding: 0; background: #fff; border: 1px solid #ececec; border-radius: 10px; overflow: hidden; }
.kk-gallery img { display: block; width: 100%; height: 250px; object-fit: cover; }
.kk-gallery--3 img { height: 210px; }
.kk-gallery figcaption { font-size: 13.5px; line-height: 1.5; color: #444; padding: 10px 14px 12px; }
.kk-gallery figcaption span { display: block; font-size: 11.5px; color: #8a8a8a; margin-top: 3px; }
.kk-gallery figcaption span a { color: #8a8a8a; }
.kk-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 14px 0 22px; }
.kk-rule { background: #fff; border: 1px solid #ececec; border-radius: 10px; overflow: hidden; font-size: 13.5px; line-height: 1.55; color: #444; }
.kk-rule img { display: block; width: 100%; height: 190px; object-fit: contain; background: #f4f4f2; }
.kk-rule img.kk-tall { object-fit: cover; object-position: center top; }
.kk-rule div { padding: 12px 14px 14px; }
.kk-rule b { color: #222; }
@media (max-width: 1100px) {
  .kk-calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kk-result { grid-column: 1 / -1; }
  .kk-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .kk { padding: 16px 12px 24px; }
  .kk-hero { background-position: center top; background-size: 100% auto; padding: 46% 0 0; min-height: 0; }
  .kk-hero h1 { font-size: 23px; }
  .kk .kk-h2 { font-size: 19px; margin-top: 34px; }
  .kk-calc, .kk-cards, .kk-gallery, .kk-gallery--3, .kk-rules { grid-template-columns: minmax(0, 1fr); }
  .kk-card-head { flex-direction: column; }
  .kk-card-img, .kk-card--top .kk-card-img { flex-basis: auto; }
  .kk-card-img img, .kk-card--top .kk-card-img img { width: 100%; height: 180px; }
  .kk-row { grid-template-columns: 48px minmax(0, 1fr); }
  .kk-row-img img { width: 48px; height: 48px; }
  .kk-row-q { grid-column: 1 / -1; justify-content: flex-end; }
  .kk-btn { width: 100%; }
}
.kk-card-img img { background: #fff; }
.kk-row-img img { object-fit: contain; }
.kk .kk-desc-btn { display: none; border: 0; background: none; padding: 4px 0; margin: 0; font-family: inherit; font-size: 13.5px; font-weight: 600; color: #1f4d22; text-decoration: underline; cursor: pointer; }
.kk-fit { display: inline-block; font-size: 11.5px; font-weight: 600; border-radius: 20px; padding: 1px 8px; margin-left: 4px; background: #e3f2e1; color: #1f4d22; white-space: nowrap; }
.kk-fit--b { background: #fff3d6; color: #7a5200; }
.kk-film { margin: 18px 0 6px; }
.kk-film lite-youtube { font-size: 0; border-radius: 12px; overflow: hidden; }
.kk-film .kk-note { margin-top: 10px; }
.kk-foto { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 18px 0 0; }
.kk-fcard { background: #fff; border: 1px solid #e6e6e6; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.kk-fcard > a img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.kk-fcard-b { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.kk-fcard-n { font-size: 13.5px; line-height: 1.35; font-weight: 600; color: #222 !important; text-decoration: none; }
.kk-fcard-d { font-size: 12.5px; line-height: 1.45; color: #666; }
.kk-fcard-p { font-size: 16px; font-weight: 700; color: #222; margin-top: auto; }
.kk-fcard form { margin: 0; padding: 0; }
.kk-fbtn { display: block; width: 100%; border: 0; border-radius: 8px; background: #2e7d32; color: #fff !important; font-family: inherit; font-size: 13.5px; font-weight: 700; line-height: 1.3; padding: 9px 10px; cursor: pointer; text-align: center; text-decoration: none !important; }
.kk-fbtn:hover { background: #1f4d22; }
.kk-fbtn--alt { background: #fff; color: #1f4d22 !important; border: 1px solid #2e7d32; }
.kk-fbtn--alt:hover { background: #eef7ec; }
.kk-more { display: block; margin: 18px auto 0; border: 1px solid #c9d3cb; border-radius: 8px; background: #f6f8f6; color: #333; font-family: inherit; font-size: 14px; font-weight: 600; padding: 10px 22px; cursor: pointer; }
.kk-more:hover { background: #e9efe9; }
.kk-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 14px 0 22px; }
.kk-faq details { border: 1px solid #e6e6e6; border-radius: 10px; background: #fff; margin: 0 0 10px; padding: 0 16px; }
.kk-faq summary { cursor: pointer; font-size: 15.5px; font-weight: 600; color: #222; padding: 13px 0; list-style-position: inside; }
.kk-faq details p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.6; color: #444; }
.kk-blog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 14px 0 0; }
.kk-blog a { display: flex; flex-direction: column; background: #fff; border: 1px solid #ececec; border-radius: 10px; overflow: hidden; text-decoration: none !important; color: #222 !important; transition: box-shadow .15s ease, transform .15s ease; }
.kk-blog a:hover { box-shadow: 0 4px 14px rgba(0,0,0,.12); transform: translateY(-1px); }
.kk-blog img { display: block; width: 100%; height: 150px; object-fit: cover; }
.kk-blog span { display: block; padding: 10px 12px 12px; font-size: 13.5px; line-height: 1.4; font-weight: 600; }
@media (max-width: 1100px) { .kk-foto, .kk-blog { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kk-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .kk-foto, .kk-blog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .kk-steps { grid-template-columns: minmax(0, 1fr); } .kk-blog img { height: 110px; }
  .kk-card-img, .kk-card--top .kk-card-img { align-self: stretch; } .kk-card-img img, .kk-card--top .kk-card-img img { height: 140px; } .kk-row--x { display: none; }
  .kk-card:not(.kk-card--open) .kk-card-txt p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
  .kk-card:not(.kk-card--open) .kk-card-txt ul { display: none; }
  .kk .kk-desc-btn { display: inline-block; } }

/* dodatki narzedzi (ra_narzedzia.php) */
.kk-calc--2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.kk-fields--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 26px; align-content: start; }
.kk-fields--grid .kk-field { margin: 0; }
.kk-fields--grid .kk-wide { grid-column: 1 / -1; }
.kk-sel { height: 44px; min-width: 150px; max-width: 100%; border: 2px solid #c9d3cb !important; border-radius: 10px; background: #fff; padding: 0 10px; font-family: inherit; font-size: 15px; font-weight: 600; color: #1f2a22; }
.kk-sel:focus { border-color: #2e7d32 !important; outline: 0; box-shadow: 0 0 0 4px rgba(46,125,50,.16); }
.kk-inp--w { width: 140px; }
.kk-field small { display: block; font-size: 12px; line-height: 1.4; color: #8a8a8a; font-weight: 400; }
.kk-result--col { justify-content: flex-start; }
.kk-result h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; padding: 0; color: #1f4d22; }
.kk-warn { background: #fff8e6; border: 1px solid #f0dca8; border-radius: 10px; padding: 12px 16px; font-size: 14px; line-height: 1.55; color: #6b4a00; margin: 16px 0 0; }
.kk-warn--red { background: #fdf3f3; border-color: #efc9c9; color: #8f1d1d; }
.kk-info { background: #eef4fb; border: 1px solid #cfdff0; border-radius: 10px; padding: 12px 16px; font-size: 14px; line-height: 1.55; color: #1d3f66; margin: 16px 0 0; }
.kk-table { width: 100%; border-collapse: collapse; margin: 12px 0 0; font-size: 14px; background: #fff; }
.kk-table th, .kk-table td { border: 1px solid #e6e6e6; padding: 8px 10px; text-align: left; vertical-align: top; line-height: 1.45; }
.kk-table th { background: #f6f8f6; font-weight: 600; color: #333; }
.kk-table td.kk-r, .kk-table th.kk-r { text-align: right; white-space: nowrap; }
.kk-table tr.kk-sum-row td { font-weight: 700; background: #eef7ec; }
.kk-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.kk-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kk-cards--1 { grid-template-columns: minmax(0, 1fr); }
.kk-card h3.kk-card-h { font-size: 17px; line-height: 1.3; font-weight: 600; color: #222; margin: 0 0 6px; padding: 0; }
.kk-card > p { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: #444; }
.kk-row-p { font-size: 13.5px; font-weight: 700; color: #222; white-space: nowrap; }
.kk-av { color: #2e7d32; } .kk-av--0 { color: #9a6b00; }
.kk-bar { height: 10px; border-radius: 6px; background: #e3e9e3; overflow: hidden; margin: 4px 0 0; }
.kk-bar i { display: block; height: 100%; background: #2e7d32; }
.kk-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.kk-links a { display: inline-block; border: 1px solid #2e7d32; border-radius: 8px; padding: 8px 14px; font-size: 14px; font-weight: 600; color: #1f4d22 !important; text-decoration: none !important; background: #fff; }
.kk-links a:hover { background: #eef7ec; }
.kk-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.kk-tab { border: 2px solid #c9d3cb; border-radius: 10px; background: #fff; padding: 9px 16px; font-family: inherit; font-size: 14.5px; font-weight: 600; color: #333; cursor: pointer; }
.kk-tab.is-on { border-color: #2e7d32; background: #eef7ec; color: #1f4d22; }
.kk-list { display: block; }
.kk-empty { padding: 14px; font-size: 14px; color: #777; background: #fafafa; border-radius: 8px; }
@media (max-width: 1100px) { .kk-calc--2 { grid-template-columns: minmax(0, 1fr); } .kk-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .kk-fields--grid, .kk-cards--3 { grid-template-columns: minmax(0, 1fr); } .kk-field { flex-wrap: wrap; } .kk-table { font-size: 13px; } .kk-table th, .kk-table td { padding: 6px 7px; } }

/* 30.11.2026 (PB): formularze narzedzi - etykieta nad polem, pole na cala szerokosc kolumny, podpowiedz pod polem.
   Wczesniej etykieta stala obok pola i pola mialy rozna szerokosc (zalezna od dlugosci podpowiedzi). */
.kk-fields--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 18px; align-items: start; }
.kk-fields--grid .kk-field { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px; margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: #333; }
.kk-fields--grid .kk-field > span:first-child:not(.kk-inp) { display: contents; }
.kk-fields--grid .kk-field { white-space: nowrap; }
.kk-fields--grid .kk-field small { white-space: normal; }
.kk-fields--grid .kk-field .kk-inp { order: 2; width: 100%; flex: 0 0 44px; }
.kk-fields--grid .kk-field small { order: 3; font-size: 12px; font-weight: 400; line-height: 1.35; color: #8a8a8a; }
.kk-fields--grid .kk-field.kk-wide .kk-inp { max-width: 220px; }
.kk-fields--grid .kk-wide { border-top: 1px solid #eee; padding-top: 14px; }
.kk-fields--grid .kk-wide:first-child { border-top: 0; padding-top: 0; }
.kk-fields--grid .kk-wide .kk-radio:last-child { margin-bottom: 0; }
.kk-fields--grid > div:not(.kk-wide):not(.cb-mode) { grid-column: span 2; }
@media (max-width: 1100px) { .kk-fields--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .kk-fields--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; } .kk-fields--grid .kk-field { flex-wrap: nowrap; } }
