/*
Theme Name: Kalkulatory Kredytów
Theme URI: https://kalkulatorykredytow.pl
Author: kalkulatorykredytow.pl
Description: Motyw WordPress dla serwisu kalkulatorykredytow.pl — strona główna z interaktywnym kalkulatorem raty kredytu, sekcjami kalkulatorów, nadpłaty, poradników i treścią SEO.
Version: 2.11.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kalkulatorykredytow
*/

/* ============ tokeny kolorów (spójne z logo: granat → niebieski) ============ */
:root {
  --kk-navy:      #16233a;   /* granat logo — nagłówki, tekst mocny   */
  --kk-navy-2:    #0c2c74;   /* granat gradientu logo                  */
  --kk-blue:      #1e5fd4;   /* niebieski logo — akcent, CTA           */
  --kk-blue-2:    #2a7de0;   /* jaśniejszy stop gradientu              */
  --kk-blue-dark: #1746b0;   /* hover                                  */
  --kk-blue-bg:   #eef3fc;   /* tinta niebieska                        */
  --kk-blue-bg-2: #e4edfb;   /* tinta ikon                             */
  --kk-green:     #218a4a;   /* TYLKO oszczędności/nadpłata            */
  --kk-green-2:   #2f9e56;
  --kk-ink-2:     #54607a;
  --kk-muted:     #6e7a8a;
  --kk-line:      #e9edf4;
  --kk-grad:      linear-gradient(135deg, #0c2c74 0%, #1e5fd4 60%, #2a7de0 100%);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: #1a2b45; background: #ffffff; -webkit-font-smoothing: antialiased; }
a { color: var(--kk-blue); text-decoration: none; }
a:hover { color: var(--kk-blue-dark); }
img { max-width: 100%; height: auto; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: #dbe4f2; outline: none; accent-color: var(--kk-blue); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--kk-blue); border: 4px solid #fff; box-shadow: 0 2px 6px rgba(30,95,212,.4); cursor: pointer; transition: transform .15s ease; }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--kk-blue); border: 4px solid #fff; box-shadow: 0 2px 6px rgba(30,95,212,.4); cursor: pointer; }

/* ============ siatki ============ */
.kk-feat { grid-template-columns: repeat(4,1fr); }
@media (max-width: 960px) { .kk-fgrid { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 560px) { .kk-fgrid { grid-template-columns: 1fr !important; } }
.kk-articles { grid-template-columns: 1fr 1fr 1fr 1.05fr; }
.kk-seo6 { grid-template-columns: repeat(3,1fr); }
.kk-stats { grid-template-columns: repeat(4,1fr); }

/* ============ nagłówek: cień po przewinięciu ============ */
.kk-header { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .25s ease; }
.kk-header.is-scrolled { box-shadow: 0 6px 24px rgba(22,35,58,.10); }
.kk-header header { position: relative; }

/* ============ menu główne (Wygląd → Menu, lokalizacja „Menu główne") ============ */
.kk-nav { margin-left: 20px; }
.kk-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; font-size: 16px; font-weight: 600; white-space: nowrap; }
.kk-menu a { color: #2b3a55; text-decoration: none; transition: color .15s ease; }
.kk-menu a:hover { color: var(--kk-blue); }
.kk-menu > li { position: relative; }
.kk-menu > li > a { display: inline-flex; align-items: center; gap: 7px; padding: 12px 0; }
/* strzałka przy pozycjach z podmenu */
.kk-menu > li.menu-item-has-children > a::after {
  content: ''; width: 7px; height: 7px; flex: none;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px,-1px); transition: transform .2s ease;
}
.kk-menu > li.menu-item-has-children:hover > a::after,
.kk-menu > li.menu-item-has-children:focus-within > a::after { transform: rotate(-135deg) translate(-2px,-2px); }
/* rozwijane podmenu — hover na desktopie, focus-within dla klawiatury (dostępność) */
.kk-menu .sub-menu {
  position: absolute; top: 100%; left: -18px; min-width: 300px;
  list-style: none; margin: 0; padding: 10px;
  background: #fff; border: 1px solid #e9edf4; border-radius: 14px;
  box-shadow: 0 18px 44px rgba(22,35,58,.14);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.kk-menu > li:hover > .sub-menu,
.kk-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.kk-menu .sub-menu li { white-space: normal; }
.kk-menu .sub-menu a { display: block; padding: 10px 14px; border-radius: 9px; font-size: 14.5px; font-weight: 600; }
.kk-menu .sub-menu a:hover { background: #eef4ff; color: var(--kk-blue); }
/* podświetlenie aktualnej strony */
.kk-menu .current-menu-item > a,
.kk-menu .current-menu-ancestor > a { color: var(--kk-blue); }

/* hamburger — widoczny tylko na mobile */
.kk-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px 4px; margin-left: 14px; }
.kk-burger span { display: block; width: 25px; height: 2.5px; background: var(--kk-navy); margin: 5.5px 0; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
body.kk-nav-open .kk-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.kk-nav-open .kk-burger span:nth-child(2) { opacity: 0; }
body.kk-nav-open .kk-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ HERO — animacja wejścia ============ */
@keyframes kkUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.kk-hero > div > * { animation: kkUp .6s cubic-bezier(.2,.7,.2,1) both; }
.kk-hero > div > *:nth-child(1) { animation-delay: .05s; }
.kk-hero > div > *:nth-child(2) { animation-delay: .12s; }
.kk-hero > div > *:nth-child(3) { animation-delay: .19s; }
.kk-hero > div > *:nth-child(4) { animation-delay: .26s; }
.kk-hero > div > *:nth-child(5) { animation-delay: .33s; }
.kk-hero-card { animation: kkUp .7s .2s cubic-bezier(.2,.7,.2,1) both; }

/* pływające plamy gradientu w tle hero */
.kk-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .16; pointer-events: none; z-index: 0; }
.kk-blob-1 { width: 380px; height: 380px; background: #1e5fd4; top: -120px; right: 320px; animation: kkFloat 9s ease-in-out infinite; }
.kk-blob-2 { width: 260px; height: 260px; background: #2a7de0; bottom: -60px; left: -80px; animation: kkFloat 11s 1.5s ease-in-out infinite; }
@keyframes kkFloat { 0%,100% { transform: translateY(0) } 50% { transform: translateY(26px) } }

/* animacja raty po przeliczeniu */
#kk-rata { display: inline-block; }
#kk-rata.kk-pop { animation: kkPop .35s ease; }
@keyframes kkPop { 0% { transform: scale(1) } 40% { transform: scale(1.12); color: var(--kk-blue-dark); } 100% { transform: scale(1) } }

/* przyciski */
.kk-btn-main { position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.kk-btn-main:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(30,95,212,.38) !important; color: #fff; }
.kk-btn-main::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); animation: kkShine 4.5s 1.2s ease-in-out infinite; }
@keyframes kkShine { 0%, 55% { left: -80% } 75%, 100% { left: 130% } }
.kk-btn-ghost { transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.kk-btn-ghost:hover { border-color: var(--kk-blue) !important; background: var(--kk-blue-bg); transform: translateY(-2px); }

/* ============ scroll-reveal (JS dodaje .is-in) ============ */
.kk-reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.kk-reveal.is-in { opacity: 1; transform: none; }
.kk-stagger > * { opacity: 0; transform: translateY(26px); transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1); }
.kk-stagger.is-in > * { opacity: 1; transform: none; }
.kk-stagger.is-in > *:nth-child(1) { transition-delay: .00s } .kk-stagger.is-in > *:nth-child(2) { transition-delay: .07s }
.kk-stagger.is-in > *:nth-child(3) { transition-delay: .14s } .kk-stagger.is-in > *:nth-child(4) { transition-delay: .21s }
.kk-stagger.is-in > *:nth-child(5) { transition-delay: .28s } .kk-stagger.is-in > *:nth-child(6) { transition-delay: .35s }

/* ============ KAFELKI KALKULATORÓW — wyeksponowane ============ */
.kk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.kk-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--kk-line); border-radius: 18px; padding: 26px 24px 22px; min-height: 240px; color: inherit; background: #fff; overflow: hidden; transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s ease, border-color .22s ease; }
.kk-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--kk-grad); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.kk-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(22,35,58,.13); border-color: #cdd9ef; color: inherit; }
.kk-card:hover::before { transform: scaleX(1); }
.kk-card-ic { width: 58px; height: 58px; border-radius: 15px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; background: var(--kk-blue-bg-2); color: var(--kk-blue); transition: transform .25s ease, background .25s ease, color .25s ease; }
.kk-card:hover .kk-card-ic { background: var(--kk-grad); color: #fff; transform: scale(1.07) rotate(-3deg); }
.kk-card-t { font-weight: 800; font-size: 19px; color: var(--kk-navy); line-height: 1.25; margin-bottom: 10px; }
.kk-card-d { font-size: 14px; color: #6b7488; line-height: 1.55; flex: 1; }
.kk-card-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; font-size: 13.5px; color: var(--kk-blue); }
.kk-card-go svg { transition: transform .22s ease; }
.kk-card:hover .kk-card-go svg { transform: translateX(5px); }

/* kafelek wyróżniony (hipoteczny) */
.kk-card--feat { grid-column: span 2; background: var(--kk-grad); border: none; color: #fff; }
.kk-card--feat::before { display: none; }
.kk-card--feat .kk-card-t { color: #fff; font-size: 24px; }
.kk-card--feat .kk-card-d { color: rgba(255,255,255,.85); font-size: 14.5px; max-width: 430px; }
.kk-card--feat .kk-card-ic { background: rgba(255,255,255,.16); color: #fff; }
.kk-card--feat:hover .kk-card-ic { background: #fff; color: var(--kk-blue); }
.kk-card--feat .kk-card-go { color: #fff; }
.kk-card--feat:hover { box-shadow: 0 26px 50px rgba(12,44,116,.35); color: #fff; }
.kk-badge { position: absolute; top: 18px; right: 18px; background: #f5b731; color: #16233a; font-size: 11px; font-weight: 800; letter-spacing: .05em; padding: 5px 12px; border-radius: 99px; }
.kk-feat-mini { display: flex; gap: 26px; margin-top: 16px; flex-wrap: wrap; }
.kk-feat-mini b { display: block; font-size: 21px; }
.kk-feat-mini span { font-size: 12px; color: rgba(255,255,255,.75); }

/* kafelek-zapowiedź */
.kk-card--soon { border-style: dashed; border-color: #cdd9ef; background: #fbfcfe; cursor: default; }
.kk-card--soon:hover { transform: none; box-shadow: none; }
.kk-card--soon:hover::before { transform: scaleX(0); }
.kk-card--soon .kk-card-t { color: #54607a; }
.kk-card--soon .kk-card-ic { background: #f2f5fa; color: #6e7a8a; }
.kk-card--soon:hover .kk-card-ic { background: #f2f5fa; color: #6e7a8a; transform: none; }

/* chipy filtrów */
.kk-chip { background: #f2f5fa; color: #4a5568; font-weight: 600; font-size: 14px; padding: 11px 22px; border-radius: 24px; cursor: pointer; border: none; font-family: inherit; transition: background .18s, color .18s, transform .18s; }
.kk-chip:hover { transform: translateY(-1px); background: #e8eef8; }
.kk-chip.is-on { background: var(--kk-blue); color: #fff; }
.kk-card.is-hidden { display: none; }

/* ============ artykuły ============ */
.kk-art { transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s ease; }
.kk-art:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(22,35,58,.12); color: inherit; }
.kk-art .kk-art-img svg { transition: transform .35s ease; }
.kk-art:hover .kk-art-img svg { transform: scale(2.85) !important; }

/* ============ FAQ accordion ============ */
.kk-faq-item { background: #fff; border: 1px solid var(--kk-line); border-radius: 14px; transition: box-shadow .2s ease; }
.kk-faq-item[open] { box-shadow: 0 10px 26px rgba(22,35,58,.08); }
.kk-faq-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; padding: 20px 24px; font-weight: 700; font-size: 16px; color: var(--kk-navy); }
.kk-faq-item summary::-webkit-details-marker { display: none; }
.kk-faq-plus { margin-left: auto; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--kk-blue-bg); color: var(--kk-blue); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; transition: transform .25s ease, background .2s, color .2s; }
.kk-faq-item[open] .kk-faq-plus { transform: rotate(45deg); background: var(--kk-blue); color: #fff; }
.kk-faq-a { padding: 0 24px 20px 62px; font-size: 14.5px; line-height: 1.65; color: #6b7488; }

/* liczniki */
.kk-count { font-variant-numeric: tabular-nums; }

/* ============ podstrona kalkulatora: porównanie i tooltip ============ */
.kk-cmp2-card { border: 1.5px solid var(--kk-line); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.kk-cmp2-card:hover { transform: translateY(-2px); border-color: #cdd9ef; }
.kk-cmp2-card.is-active { border-color: var(--kk-blue); background: var(--kk-blue-bg); }
.kk-ctip { position: absolute; display: none; z-index: 6; pointer-events: none; background: #fff; border: 1px solid var(--kk-line); box-shadow: 0 6px 20px rgba(22,35,58,.14); border-radius: 9px; padding: 9px 12px; font-size: 12.5px; line-height: 1.55; color: #54607a; min-width: 165px; font-variant-numeric: tabular-nums; }
.kk-ctip b { display: block; color: var(--kk-navy); margin-bottom: 2px; }
@media (max-width: 560px) { .kk-cmp2 { grid-template-columns: 1fr !important; } }

/* ============ donut: struktura spłaty w hero ============ */
.kk-donut-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding: 12px 14px; border: 1px dashed #e3e9f2; border-radius: 12px; }
.kk-donut { flex-shrink: 0; transform: rotate(-90deg); }
.kk-donut circle { fill: none; stroke-width: 6.5; }
.kk-donut-bg { stroke: #eef1f6; }
.kk-donut-seg { stroke-linecap: butt; transition: stroke-dasharray .5s cubic-bezier(.2,.7,.2,1), stroke-dashoffset .5s cubic-bezier(.2,.7,.2,1); }
.kk-donut-leg { font-size: 12.5px; color: #54607a; line-height: 1.7; }
.kk-donut-leg b { color: #16233a; }
.kk-donut-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 7px; }

/* ============ presety kwot ============ */
.kk-preset { border: 1.5px solid #e3e9f2; background: #fff; color: #54607a; font-family: inherit; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 8px; cursor: pointer; transition: all .15s ease; }
.kk-preset:hover { border-color: var(--kk-blue); color: var(--kk-blue); }
.kk-preset.is-on { background: var(--kk-blue); border-color: var(--kk-blue); color: #fff; }

/* ============ suwak nadpłaty (zielona sekcja) ============ */
.kk-nad-slider { max-width: 440px; }
.kk-nad-slider input[type=range] { background: #cfe8d7; accent-color: var(--kk-green-2); }
.kk-nad-slider input[type=range]::-webkit-slider-thumb { background: var(--kk-green-2); box-shadow: 0 2px 6px rgba(47,158,86,.4); }
.kk-nad-slider input[type=range]::-moz-range-thumb { background: var(--kk-green-2); box-shadow: 0 2px 6px rgba(47,158,86,.4); }

/* ============ sticky pasek raty (mobile) ============ */
.kk-sticky { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; border-top: 1px solid var(--kk-line); box-shadow: 0 -8px 24px rgba(22,35,58,.12); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 14px; transform: translateY(110%); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.kk-sticky.is-visible { transform: none; }
.kk-sticky-txt { font-size: 12px; color: #54607a; line-height: 1.35; }
.kk-sticky-txt b { font-size: 17px; color: var(--kk-navy); font-variant-numeric: tabular-nums; }
.kk-sticky-btn { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #0c2c74, #1e5fd4); color: #fff; font-weight: 700; font-size: 13.5px; padding: 12px 18px; border-radius: 10px; white-space: nowrap; }
.kk-sticky-btn:hover { color: #fff; }
@media (max-width: 860px) { .kk-sticky { display: flex; } }

/* parallax: tylko transform, bez wpływu na layout */
.kk-hero-img, .kk-blobs { will-change: transform; }
.kk-blobs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

/* ============ animowana scena osiedla w hero ============ */
.kk-scene svg { display: block; }
.kk-scene .kk-draw { stroke: #a9bedf; stroke-width: 2.5; }
/* rysowanie linii: pathLength przez CSS (wspierane w nowoczesnych przeglądarkach) */
.kk-scene .kk-draw {
  /* każdy element ma pathLength="1", więc dasharray 1 = pełna długość konturu */
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: kkSceneDraw 1s cubic-bezier(.4,0,.2,1) forwards;
}
@supports not (stroke-dashoffset: 1) { .kk-scene .kk-draw { animation: none; } }
@keyframes kkSceneDraw { to { stroke-dashoffset: 0; } }
.kk-scene .kk-win {
  fill: #f5b731; stroke: #a9bedf; stroke-width: 1.5;
  opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: kkWinPop .45s cubic-bezier(.2,.7,.3,1.4) forwards;
}
@keyframes kkWinPop { 0% { opacity: 0; transform: scale(.4); } 100% { opacity: .85; transform: scale(1); } }
.kk-scene .kk-smoke {
  fill: #c3d2ea; stroke: none; opacity: 0;
  animation: kkSmoke 5.5s ease-out infinite;
}
@keyframes kkSmoke {
  0%   { opacity: 0;   transform: translateY(0); }
  15%  { opacity: .45; }
  70%  { opacity: 0;   transform: translateY(-46px); }
  100% { opacity: 0;   transform: translateY(-46px); }
}
/* hak dźwigu: bardzo powolne "podnoszenie" w pętli */
.kk-hook { animation: kkHook 9s 3s ease-in-out infinite; }
@keyframes kkHook { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) {
  .kk-scene .kk-draw { stroke-dashoffset: 0; animation: none; }
  .kk-scene .kk-win { opacity: .85; animation: none; }
  .kk-scene .kk-smoke, .kk-hook { animation: none; }
}

/* ============ mobile/UX: cele dotykowe i wejścia ============ */
@media (max-width: 860px) {
  [data-seg] { padding: 10px 16px !important; }
  .kk-preset { padding: 8px 12px; font-size: 13px; }
  #kk-kalk input[type=number] { font-size: 16px !important; } /* iOS: bez zoomu */
  .kk-faq-item summary { min-height: 48px; }
}
#kk-kalk { scroll-margin-top: 70px; }

.kk-print-head { display: none; }
.kk-print-btn { display: flex; align-items: center; gap: 7px; border: 1.5px solid #cdd9ef; color: #1e5fd4; font-weight: 700; font-size: 12.5px; padding: 8px 14px; border-radius: 9px; cursor: pointer; }

/* ============ wydruk: czysty harmonogram dla doradcy/banku ============ */
@media print {
  .kk-header, footer, .kk-sticky, .kk-ctip, .kk-print-btn, .kk-scene-page,
  [id^="btn-"], .kk-btn-main, .kk-btn-ghost, .kk-cmp2,
  div[style*="dashed"] { display: none !important; }
  .kk-print-head { display: block !important; border-bottom: 2px solid #16233a; padding: 0 0 10px; margin-bottom: 16px; font-size: 13px; color: #444; }
  .kk-print-head > div:first-child { font-size: 17px; color: #16233a; margin-bottom: 3px; }
  body, #kk-kalk { background: #fff !important; }
  #kk-kalk > div { max-width: 100% !important; padding: 0 !important; }
  table { font-size: 11px !important; }
  a { color: #000 !important; }
  .kk-reveal, .kk-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* dostępność: wyłączenie animacji na życzenie systemu */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .kk-reveal, .kk-stagger > * { opacity: 1; transform: none; }
}

/* ============ responsywność ============ */
@media (max-width: 960px) {
  .kk-hero { grid-template-columns: 1fr !important; }
  .kk-cards { grid-template-columns: repeat(2,1fr); }
  .kk-card--feat { grid-column: span 2; }
  .kk-feat { grid-template-columns: repeat(2,1fr); }
  .kk-articles { grid-template-columns: 1fr 1fr; }
  .kk-nadplata { grid-template-columns: 1fr !important; }
  .kk-seo6 { grid-template-columns: repeat(2,1fr); }
  .kk-seotop { grid-template-columns: 1fr !important; }
  .kk-trust { grid-template-columns: 1fr 1fr !important; }
  .kk-hero-img { display: none; }
  .kk-fav { display: none !important; }
  .kk-burger { display: block; margin-left: auto; }
  /* panel mobilny: rozwija się pod nagłówkiem po tapnięciu hamburgera */
  .kk-nav { display: none; }
  body.kk-nav-open .kk-nav {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    margin: 0; padding: 6px 20px 16px;
    background: #fff; border-bottom: 1px solid #e9edf4;
    box-shadow: 0 24px 40px rgba(22,35,58,.13); z-index: 70;
    max-height: calc(100vh - 90px); overflow-y: auto;
  }
  body.kk-nav-open .kk-menu { flex-direction: column; align-items: stretch; gap: 0; white-space: normal; }
  body.kk-nav-open .kk-menu > li { border-bottom: 1px solid #f0f3f8; }
  body.kk-nav-open .kk-menu > li:last-child { border-bottom: 0; }
  body.kk-nav-open .kk-menu > li > a { display: flex; justify-content: space-between; padding: 15px 2px; font-size: 16px; }
  /* podmenu jako akordeon — tap na rodzica rozwija (JS dodaje .sub-open) */
  body.kk-nav-open .kk-menu .sub-menu {
    position: static; min-width: 0; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; border-radius: 0; padding: 0 0 8px 12px;
    display: none;
  }
  body.kk-nav-open .kk-menu > li.sub-open > .sub-menu { display: block; }
  body.kk-nav-open .kk-menu > li.sub-open > a::after { transform: rotate(-135deg) translate(-2px,-2px); }
}
@media (max-width: 560px) {
  .kk-cards, .kk-feat, .kk-articles, .kk-seo6, .kk-stats { grid-template-columns: 1fr; }
  .kk-card--feat { grid-column: span 1; }
}

/* ============ artykuły poradnika ============ */
.kk-toc { background: #fff; border: 1px solid #e9edf4; border-radius: 14px; padding: 20px 24px; margin: 0 0 26px; }
.kk-toc ol { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.kk-toc a { font-size: 14.5px; font-weight: 600; color: #2b3a55; }
.kk-toc a:hover { color: var(--kk-blue); }

.kk-prose { background: #fff; border: 1px solid #e9edf4; border-radius: 16px; padding: 34px 38px; font-size: 15.5px; line-height: 1.8; color: #3a4560; }
.kk-prose > *:first-child { margin-top: 0; }
.kk-prose h2 { font-size: 25px; font-weight: 800; color: var(--kk-navy); margin: 38px 0 14px; letter-spacing: -.01em; scroll-margin-top: 96px; }
.kk-prose h3 { font-size: 19px; font-weight: 700; color: var(--kk-navy); margin: 26px 0 10px; }
.kk-prose p { margin: 0 0 16px; }
.kk-prose ul, .kk-prose ol { margin: 0 0 16px; padding-left: 24px; }
.kk-prose li { margin-bottom: 8px; }
.kk-prose a { font-weight: 600; }
.kk-prose table { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 14px; }
.kk-prose th { background: #f0f4fb; color: var(--kk-navy); font-weight: 700; text-align: left; padding: 11px 14px; border: 1px solid #e3e9f2; }
.kk-prose td { padding: 10px 14px; border: 1px solid #e9edf4; font-variant-numeric: tabular-nums; }
.kk-prose tr:nth-child(even) td { background: #fafbfd; }
.kk-prose figure { margin: 26px 0; text-align: center; }
.kk-prose figure svg { max-width: 100%; height: auto; }
.kk-prose figcaption { font-size: 12.5px; color: #74808f; margin-top: 10px; }
.kk-prose blockquote { border-left: 4px solid var(--kk-blue); background: #f5f8fd; margin: 18px 0; padding: 14px 20px; border-radius: 0 10px 10px 0; font-style: normal; color: #2b3a55; }

/* box „W skrócie" (podsumowanie na początku/końcu artykułu) */
.kk-prose .kk-skrot { background: #eef3fc; border: 1px solid #d7e3f8; border-radius: 14px; padding: 20px 24px; margin: 0 0 24px; }
.kk-prose .kk-skrot > b:first-child { display: block; color: var(--kk-navy-2); font-size: 15px; margin-bottom: 10px; }
.kk-prose .kk-skrot ul { margin: 0; }
/* box ostrzeżenie / wskazówka */
.kk-prose .kk-uwaga { background: #fdf3e4; border: 1px solid #f3ddb8; border-radius: 12px; padding: 14px 18px; margin: 18px 0; color: #7a4a10; font-size: 14px; }
.kk-prose .kk-tip { background: #eef7f0; border: 1px solid #d3e9d9; border-radius: 12px; padding: 14px 18px; margin: 18px 0; color: #1c6e3c; font-size: 14px; }

/* FAQ w artykule korzysta z .kk-faq-item (style wyżej) */
.kk-prose details { border: 1px solid #e9edf4; border-radius: 12px; margin-bottom: 10px; background: #fbfcfe; }
.kk-prose details summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 700; font-size: 14.5px; color: var(--kk-navy); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kk-prose details summary::-webkit-details-marker { display: none; }
.kk-prose details summary::after { content: '+'; font-size: 20px; color: var(--kk-blue); flex: none; transition: transform .2s ease; }
.kk-prose details[open] summary::after { transform: rotate(45deg); }
.kk-prose details > div, .kk-prose details > p { padding: 0 18px 16px; margin: 0; font-size: 14px; }

/* animowane grafiki w artykułach (spójne ze scenami kalkulatorów) */
.kk-prose .kk-scena-art { width: min(560px, 100%); margin: 0 auto; }
.kk-prose .kk-scena-art .kk-draw { stroke: #a9bedf; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
@supports (stroke-dashoffset: 1px) {
  .kk-prose .kk-scena-art .kk-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: kkDrawArt 1.4s ease forwards; }
}
@keyframes kkDrawArt { to { stroke-dashoffset: 0; } }
.kk-prose .kk-scena-art .kk-win { fill: #f3c14b; opacity: 0; animation: kkWinArt .5s ease forwards; }
@keyframes kkWinArt { to { opacity: 1; } }
.kk-prose .kk-slupek { transform-origin: bottom; transform: scaleY(0); animation: kkSlupek .9s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes kkSlupek { to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  .kk-prose .kk-scena-art .kk-draw { animation: none; stroke-dasharray: none; }
  .kk-prose .kk-scena-art .kk-win, .kk-prose .kk-slupek { animation: none; opacity: 1; transform: none; }
}

/* paginacja listingu */
.kk-pag .page-numbers { display: inline-block; padding: 10px 16px; border: 1.5px solid #cdd9ef; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--kk-blue); background: #fff; }
.kk-pag .page-numbers.current { background: var(--kk-blue); color: #fff; border-color: var(--kk-blue); }

@media (max-width: 960px) {
  .kk-prose { padding: 24px 20px; }
  .kk-rel-grid { grid-template-columns: 1fr !important; }
  .kk-articles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .kk-articles { grid-template-columns: 1fr; } }

/* ============ formularz kontaktowy (Contact Form 7) ============ */
.wpcf7 form { display: flex; flex-direction: column; gap: 16px; }
.wpcf7 label { font-size: 13.5px; font-weight: 600; color: #2b3a55; display: block; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"],
.wpcf7 input[type="url"], .wpcf7 textarea, .wpcf7 select {
  width: 100%; box-sizing: border-box; margin-top: 7px;
  border: 1.5px solid #e3e9f2; border-radius: 11px; padding: 12px 14px;
  font-size: 14.5px; color: #16233a; font-family: inherit; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--kk-blue); box-shadow: 0 0 0 3px rgba(30,95,212,.12); }
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7 input[type="submit"] {
  align-self: flex-start; cursor: pointer; border: 0; border-radius: 11px;
  background: linear-gradient(135deg, var(--kk-navy-2), var(--kk-blue)); color: #fff;
  font-weight: 700; font-size: 14.5px; font-family: inherit; padding: 15px 30px;
  box-shadow: 0 10px 22px rgba(30,95,212,.26); transition: transform .15s ease, box-shadow .15s ease;
}
.wpcf7 input[type="submit"]:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(30,95,212,.34); }
.wpcf7 .wpcf7-acceptance { font-size: 12.5px; color: #6b7488; font-weight: 500; }
.wpcf7 .wpcf7-acceptance input { margin-right: 8px; }
.wpcf7 .wpcf7-not-valid-tip { font-size: 12px; color: #b32d2e; margin-top: 5px; }
.wpcf7 .wpcf7-response-output { border-radius: 11px !important; padding: 13px 16px !important; font-size: 13.5px; margin: 4px 0 0 !important; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #218a4a !important; color: #1c6e3c; background: #eef7f0; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: #f3ddb8 !important; color: #a05a12; background: #fdf3e4; }
.wpcf7 .wpcf7-spinner { margin: 0 0 0 12px; }

/* ============ przycisk „na górę" ============ */
.kk-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 55;
  width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--kk-navy-2), var(--kk-blue)); color: #fff;
  box-shadow: 0 10px 26px rgba(30,95,212,.35);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, box-shadow .2s ease;
}
.kk-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.kk-top:hover { box-shadow: 0 14px 32px rgba(30,95,212,.45); transform: translateY(-2px); }
@media (max-width: 960px) {
  /* nad mobilnym paskiem wyniku (kk-sticky), żeby się nie nakładały */
  .kk-top { bottom: 86px; right: 14px; width: 42px; height: 42px; }
}
@media print { .kk-top { display: none !important; } }

/* sceny na podstronach kalkulatorów */
.kk-scene-page { width: min(430px, 84%); margin: 4px auto 0; opacity: .95; }
