/* Strona główna – nowy design 2 (stonowana). Wszystko w przestrzeni .k2. */

@font-face {
  font-family: "Schibsted K2";
  src: url("fonts/schibsted-latin-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted K2";
  src: url("fonts/schibsted-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.k2 {
  --white: #ffffff;
  --stone: #efeeea;
  --taupe: #8f857a;
  --graphite: #1f2328;
  --muted: #5d6166;
  --line: #dad8d2;
  --olive: #2f3b33;
  --olive-text: #e9ebe4;
  --olive-muted: #b4bcb2;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 80px;
  --ease: cubic-bezier(.25, 1, .3, 1);

  --fs-small: .875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.02rem + .4vw, 1.3125rem);
  --fs-h3: clamp(1.1875rem, 1.1rem + .35vw, 1.375rem);
  --fs-h2: clamp(1.875rem, 1.4rem + 1.7vw, 2.875rem);
  --fs-hero: clamp(2.5rem, 1.35rem + 3.5vw, 4.75rem);

  background: var(--white);
  color: var(--graphite);
  font-family: "Schibsted K2", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.k2 *, .k2 *::before, .k2 *::after { box-sizing: border-box; }
/* Reset o specyficzności jednej klasy: przebija CSS Webflow, a klasy komponentów (niżej) wygrywają z nim */
.k2 :where(h1, h2, h3, p, ul, ol, dl, dd, dt, figure) { margin: 0; padding: 0; }
.k2 :where(ul, ol) { list-style: none; }
.k2 :where(img) { display: block; max-width: 100%; height: auto; }
.k2 :where(a) { color: inherit; }
.k2 :focus-visible { outline: 2px solid var(--graphite); outline-offset: 4px; }
.k2-contact :focus-visible { outline-color: var(--olive-text); }
.k2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.kd-k2 .myDrawer:not(.open):not(.active) { box-shadow: none !important; }

.k2-wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.k2-section { padding: clamp(80px, 10vw, 160px) 0; }
.k2-h2 { font-size: var(--fs-h2); font-weight: 500; line-height: 1.1; letter-spacing: -.025em; max-width: 20ch; text-wrap: balance; }
.k2-h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.k2-muted { color: var(--muted); }

/* Przyciski i linki */
.k2-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .9em 1.6em; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.k2-btn--dark { background: var(--graphite); color: var(--white); }
.k2-btn--dark:hover { background: #3a4048; }
.k2-btn--light { background: var(--olive-text); color: var(--olive); }
.k2-btn--light:hover { background: var(--white); }
.k2-textlink {
  font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px; transition: background-size .4s var(--ease);
}
.k2-textlink:hover { background-size: 0 1px; background-position: 100% 100%; }

/* Nagłówek */
.k2-header { position: fixed; inset: 0 0 auto; z-index: 900; height: var(--header-h); transition: background-color .3s, box-shadow .3s, transform .45s var(--ease); }
.k2-header.is-scrolled { background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.k2-header.is-hidden { transform: translateY(-100%); }
.admin-bar .k2-header { top: 32px; }
.k2-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.k2-header__logo img { width: 104px; height: auto; }
.k2-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.75rem); }
.k2-nav__link { font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--muted); transition: color .2s; }
.k2-nav__link:hover, .k2-nav__link.is-active { color: var(--graphite); }
.k2-nav__cta { min-height: 44px; padding: .7em 1.3em; font-size: .9375rem; }
.k2-burger { display: none; }

/* Hero */
.k2-hero { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 104px)); }
.k2-hero__top { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 96px); align-items: end; }
.k2-hero__title { font-size: var(--fs-hero); font-weight: 500; line-height: 1.03; letter-spacing: -.035em; max-width: 17ch; text-wrap: balance; }
.k2-mask { display: block; overflow: hidden; padding-bottom: .08em; }
.k2-mask > span { display: block; }
.k2-hero__lead { font-size: var(--fs-lead); color: var(--muted); line-height: 1.55; }
.k2-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.k2-hero__media { margin-top: clamp(48px, 6vw, 88px); }
.k2-hero__frame { overflow: hidden; background: var(--stone); }
.k2-hero__img { width: 100%; height: auto; }
.k2-hero__caption { margin-top: .9rem; font-size: var(--fs-small); color: var(--muted); }

.k2-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.k2-facts__item { display: flex; flex-direction: column; gap: .35rem; padding: 1.75rem 2rem 0 0; }
.k2-facts__item + .k2-facts__item { padding-left: 2rem; border-left: 1px solid var(--line); }
.k2-facts__value { order: 0; font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); font-weight: 500; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.k2-facts__value--text { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; max-width: 16ch; }
.k2-facts__label { order: 1; font-size: var(--fs-small); color: var(--muted); }

/* Układ dwukolumnowy: tytuł po lewej, treść po prawej */
.k2-split__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.k2-list__item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: .5rem 2.5rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.k2-list__item:last-child { border-bottom: 1px solid var(--line); }

/* Etapy */
.k2-steps { background: var(--stone); }
.k2-steps__intro { position: sticky; top: calc(var(--header-h) + 40px); }
.k2-steps__note { margin: 1.5rem 0 2.25rem; font-size: var(--fs-lead); color: var(--muted); max-width: 34ch; }
.k2-steps__track { position: relative; padding-left: clamp(28px, 4vw, 56px); }
.k2-steps__rail { position: absolute; left: 0; top: .6rem; bottom: .6rem; width: 1px; background: var(--line); }
.k2-steps__fill { position: absolute; inset: 0; background: var(--graphite); transform-origin: top; transform: scaleY(1); }
.k2-steps__item { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; padding: clamp(24px, 3vw, 40px) 0; transition: color .4s; }
.k2-steps__item + .k2-steps__item { border-top: 1px solid var(--line); }
.k2-steps__num { font-size: var(--fs-small); font-weight: 600; color: var(--taupe); padding-top: .55em; font-variant-numeric: tabular-nums; }
.k2-steps__text { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem); font-weight: 500; line-height: 1.3; letter-spacing: -.015em; }

/* Co zyskujesz */
.k2-gain__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); margin-top: clamp(40px, 5vw, 72px); }
.k2-gain__item { padding-top: 1.5rem; border-top: 1px solid var(--graphite); }
.k2-gain__item .k2-muted { margin-top: .9rem; max-width: 38ch; }

/* O mnie */
.k2-about { background: var(--stone); }
.k2-about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.k2-about__photo { overflow: hidden; aspect-ratio: 4 / 5; background: var(--line); }
.k2-about__img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 30%; }
.k2-about__lead { margin-top: 1.5rem; font-size: var(--fs-lead); line-height: 1.5; max-width: 40ch; }
.k2-about__sub { margin-top: 2.5rem; }
.k2-about__text { margin-top: .9rem; max-width: 56ch; }
.k2-about__text p + p { margin-top: .9rem; }
.k2-about__link { display: inline-block; margin-top: 2rem; }

/* Realizacje */
.k2-work__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 3rem; }
.k2-work__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px) clamp(16px, 2vw, 28px); margin-top: clamp(36px, 4vw, 64px); }
.k2-work__card { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.k2-work__card--0 { grid-column: span 2; grid-row: span 2; }
.k2-work__card--4 { grid-column: span 2; }
.k2-work__media { display: block; overflow: hidden; background: var(--stone); aspect-ratio: 4 / 3; }
.k2-work__card--0 .k2-work__media { aspect-ratio: auto; height: calc(100% - 3.25rem); min-height: 320px; }
.k2-work__card--4 .k2-work__media { aspect-ratio: 8 / 3; }
.k2-work__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.k2-work__card:hover .k2-work__img { transform: scale(1.035); }
.k2-work__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: .85rem; }
.k2-work__title { font-weight: 600; }
.k2-work__count { font-size: var(--fs-small); color: var(--muted); white-space: nowrap; }

/* Akordeony */
.k2-qa { background: var(--white); }
.k2-qa--light { background: var(--white); border-top: 1px solid var(--line); }
.k2-qa__intro { position: sticky; top: calc(var(--header-h) + 40px); }
.k2-qa__note { margin-top: 1.5rem; font-size: var(--fs-lead); max-width: 36ch; }
.k2-qa__note .k2-textlink { white-space: nowrap; }
.k2-acc { border-top: 1px solid var(--line); }
.k2-acc__item { border-bottom: 1px solid var(--line); }
.k2-acc__summary { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.6rem 0; cursor: pointer; list-style: none; font-size: var(--fs-h3); font-weight: 500; line-height: 1.35; letter-spacing: -.01em; }
.k2-acc__summary::-webkit-details-marker { display: none; }
.k2-acc__summary i { position: relative; flex: none; width: 16px; height: 16px; }
.k2-acc__summary i::before, .k2-acc__summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
.k2-acc__summary i::after { transform: rotate(90deg); }
.k2-acc__item[open] .k2-acc__summary i::after { transform: rotate(0deg); }
.k2-acc__body { overflow: hidden; }
.k2-acc__body p { padding: 0 3rem 1.75rem 0; color: var(--muted); max-width: 62ch; }

/* Kontakt */
.k2-contact { padding: clamp(88px, 11vw, 168px) 0; background: var(--olive); color: var(--olive-text); }
.k2-contact__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.k2-contact__title { font-size: clamp(2.4rem, 1.5rem + 3vw, 4.25rem); font-weight: 500; line-height: 1.04; letter-spacing: -.035em; max-width: 13ch; }
.k2-contact__lead { margin: 1.5rem 0 2.25rem; font-size: var(--fs-lead); color: var(--olive-muted); max-width: 40ch; }
.k2-contact__direct { display: grid; gap: 1.25rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(233, 235, 228, .2); }
.k2-contact__direct dt { font-size: var(--fs-small); color: var(--olive-muted); }
.k2-contact__direct dd a { font-size: var(--fs-h3); font-weight: 500; text-decoration: none; }
.k2-contact__direct dd a:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.k2-contact__form { padding: clamp(28px, 3.5vw, 48px); background: var(--white); color: var(--graphite); border-radius: 4px; }
.k2-contact__form .k2-h3 { margin-bottom: 1.5rem; }
.k2-contact__form .form-flex { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.k2-contact__form .form-flex-item { width: auto; max-width: none; margin: 0; padding: 0; }
.k2-contact__form .wpcf7-form-control-wrap { display: block; }
.k2-contact__form .f-input,
.k2-contact__form input[type="text"],
.k2-contact__form input[type="email"],
.k2-contact__form textarea {
  width: 100%; height: auto; min-height: 52px; margin: 0 0 1rem; padding: .9rem 0;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent;
  color: var(--graphite); font: inherit; font-size: 1rem; transition: border-color .25s;
}
.k2-contact__form textarea, .k2-contact__form textarea.f-input { height: 120px; resize: vertical; }
.k2-contact__form .f-input:focus, .k2-contact__form textarea:focus { outline: none; border-bottom-color: var(--graphite); }
.k2-contact__form .form-checkbox { margin: .5rem 0 1.5rem; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.k2-contact__form .form-checkbox label { display: flex; gap: .6rem; align-items: flex-start; }
.k2-contact__form .form-checkbox input { width: 18px; height: 18px; margin-top: .15rem; flex: none; accent-color: var(--graphite); }
.k2-contact__form .wpcf7-list-item { margin: 0; }
.k2-contact__form input[type="submit"] {
  width: 100%; min-height: 54px; border: 0; border-radius: 999px; background: var(--graphite); color: var(--white);
  font: inherit; font-weight: 600; cursor: pointer; transition: background-color .3s;
}
.k2-contact__form input[type="submit"]:hover { background: #3a4048; }
.k2-contact__form .wpcf7-not-valid-tip { margin: -.6rem 0 .8rem; font-size: .8125rem; color: #b42318; }
.k2-contact__form .wpcf7-response-output { margin: 1rem 0 0 !important; padding: .8rem 1rem !important; font-size: .875rem; }
.k2-contact__form .wpcf7-spinner { display: block; margin: .75rem auto 0; }

/* Pasek mobilny */
.k2-sticky { display: none; }

/* Lightbox */
.k2-icon { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--white); cursor: pointer; transition: background-color .2s; }
.k2-icon:hover { background: rgba(255, 255, 255, .18); }
.k2-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.k2-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 22, 25, .97); color: var(--white); }
.k2-lightbox::backdrop { background: rgba(20, 22, 25, .6); }
.k2-lightbox[open] { display: flex; flex-direction: column; animation: k2-fade .35s var(--ease); }
.k2-lightbox__bar { display: flex; align-items: center; gap: 1.5rem; padding: 1rem var(--gutter); }
.k2-lightbox__title { flex: 1; font-weight: 600; }
.k2-lightbox__count { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .6); }
.k2-lightbox__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 0 var(--gutter) 2rem; }
.k2-lightbox__img { max-height: 100%; max-width: min(100%, 1500px); min-width: 0; object-fit: contain; }
@keyframes k2-fade { from { opacity: 0; } to { opacity: 1; } }

/* Stany startowe animacji (tylko z JS i bez ograniczenia ruchu) */
.k2-js [data-k2-rise] { transform: translateY(105%); }
.k2-js [data-k2-fade] { opacity: 0; }
.k2-js [data-k2-reveal] { clip-path: inset(100% 0 0 0); }
.k2-js .k2-steps__fill { transform: scaleY(0); }

/* ============ Blog i wpisy ============ */

.k2-blog__hero, .k2-post__hero { padding-bottom: 0; }
.k2-blog__hero .k2-hero__top { padding-bottom: clamp(8px, 2vw, 24px); }

.k2-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.k2-chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: .45em 1.1em;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--muted);
  transition: border-color .25s, color .25s, background-color .25s;
}
.k2-chip:hover { border-color: var(--graphite); color: var(--graphite); }
.k2-chip.is-active { background: var(--graphite); border-color: var(--graphite); color: var(--white); }

.k2-blog__list { padding-top: clamp(40px, 5vw, 72px); }

.k2-card { display: flex; flex-direction: column; }
.k2-card__media { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--stone); }
.k2-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.k2-card:hover .k2-card__img { transform: scale(1.035); }
.k2-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--stone), #e4e2dc); }
.k2-card__body { padding-top: 1.25rem; }
.k2-card__meta { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: var(--fs-small); color: var(--muted); }
.k2-card__title { margin-top: .6rem; font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.k2-card__title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.k2-card__title a:hover { background-size: 100% 1px; }
.k2-card__excerpt { margin-top: .75rem; color: var(--muted); max-width: 60ch; }

/* Karta bez zdjęcia: układ typograficzny z linią u góry */
.k2-card--text { padding-top: 1.5rem; border-top: 1px solid var(--graphite); }
.k2-card--text .k2-card__body { padding-top: 0; display: flex; flex-direction: column; flex: 1; }
.k2-card__more { align-self: flex-start; justify-self: start; margin-top: 1.25rem; }
.k2-cards .k2-card__more { margin-top: auto; padding-top: 1.25rem; background-position: 0 calc(100% - 0px); }
.k2-cards .k2-card--text .k2-card__excerpt { margin-bottom: 0; }
.k2-card--featured.k2-card--text { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; padding-top: 0; border-top: 0; border-bottom: 0; padding-bottom: 0; }
.k2-card--featured.k2-card--text .k2-card__body { display: contents; }
.k2-card--featured.k2-card--text .k2-card__meta { grid-column: 1; grid-row: 1; }
.k2-card--featured.k2-card--text .k2-card__title { grid-column: 1; grid-row: 2; margin-top: .9rem; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.4rem); max-width: 18ch; }
.k2-card--featured.k2-card--text .k2-card__excerpt { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0; }
.k2-card--featured.k2-card--text .k2-card__more { grid-column: 2; grid-row: 3; margin-top: 0; }
.k2-card--featured { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding-bottom: clamp(48px, 6vw, 88px); margin-bottom: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.k2-card--featured .k2-card__body { padding-top: 0; }
.k2-card--featured .k2-card__title { font-size: var(--fs-h2); font-weight: 500; line-height: 1.12; letter-spacing: -.025em; }
.k2-card--featured .k2-card__excerpt { font-size: var(--fs-lead); line-height: 1.55; margin-bottom: 1.75rem; }

.k2-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 4vw, 64px) clamp(20px, 2.4vw, 36px); }

.k2-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: clamp(56px, 6vw, 88px); }
.k2-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 1rem;
  border: 1px solid var(--line); border-radius: 999px; font-weight: 500; text-decoration: none; color: var(--graphite);
  transition: border-color .25s, background-color .25s, color .25s;
}
.k2-pagination a.page-numbers:hover { border-color: var(--graphite); }
.k2-pagination .page-numbers.current { background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.k2-pagination .page-numbers.dots { border-color: transparent; }
.k2-empty { font-size: var(--fs-lead); color: var(--muted); }

/* Wpis */
.k2-post__top { display: block; }
.k2-post__head { max-width: 980px; }
.k2-backlink {
  display: inline-flex; align-items: center; gap: .35rem; margin-bottom: 1.75rem;
  font-size: .9375rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .2s;
}
.k2-backlink svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.k2-backlink:hover { color: var(--graphite); }
.k2-backlink:hover svg { transform: translateX(-3px); }
.k2-post__title { font-size: clamp(2.25rem, 1.4rem + 2.8vw, 4rem); max-width: 22ch; }
.k2-post__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin-top: 1.75rem; font-size: .9375rem; color: var(--muted); }
.k2-post__meta a { color: var(--graphite); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.k2-post__meta a:hover { border-bottom-color: var(--graphite); }
.k2-post__media { margin-top: clamp(40px, 5vw, 72px); }

.k2-post__body { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 112px); align-items: start; padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(72px, 9vw, 140px); }
.k2-post__aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 2.5rem; }

.k2-prose { font-size: 1.125rem; line-height: 1.75; color: #2b3036; max-width: 70ch; }
/* Odstępy działają też przy treściach wklejonych z zagnieżdżonymi <div> (np. z ChatGPT). */
.k2-prose :is(p, ul, ol, blockquote, figure, table, pre, hr, h2, h3, h4, div, section) { margin-top: 0; margin-bottom: 0; }
.k2-prose * + :is(p, ul, ol, blockquote, figure, table, pre, .wp-block-image) { margin-top: 1em; }
.k2-prose * + h2 { margin-top: 2.2em; }
.k2-prose * + h3 { margin-top: 2em; }
.k2-prose * + h4 { margin-top: 1.6em; }
.k2-prose :is(h2, h3, h4) + * { margin-top: .6em; }
.k2-prose h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); font-weight: 500; line-height: 1.2; letter-spacing: -.02em; color: var(--graphite); }
.k2-prose h3 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); font-weight: 500; line-height: 1.25; letter-spacing: -.015em; color: var(--graphite); }
.k2-prose h4 { font-size: 1.0625rem; font-weight: 600; color: var(--graphite); }
.k2-prose img { display: block; margin: 1.75em 0; }
.k2-prose a { color: var(--graphite); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.k2-prose a:hover { text-decoration-thickness: 2px; }
.k2-prose strong { font-weight: 600; color: var(--graphite); }
.k2-prose ul, .k2-prose ol { padding-left: 1.3em; }
.k2-prose ul { list-style: disc; }
.k2-prose ol { list-style: decimal; }
.k2-prose li + li { margin-top: .45em; }
.k2-prose li::marker { color: var(--taupe); }
.k2-prose blockquote { margin-left: 0; margin-right: 0; padding: .25em 0 .25em 1.5em; border-left: 2px solid var(--graphite); font-size: 1.25rem; line-height: 1.55; color: var(--graphite); }
.k2-prose img, .k2-prose figure { max-width: 100%; height: auto; }
.k2-prose figure { margin-left: 0; margin-right: 0; }
.k2-prose figcaption, .k2-prose .wp-caption-text { margin-top: .6em; font-size: var(--fs-small); color: var(--muted); }
.k2-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.k2-prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.k2-prose th, .k2-prose td { padding: .7em .9em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.k2-prose th { font-weight: 600; color: var(--graphite); }
.k2-prose iframe { max-width: 100%; }

.k2-share__label { font-size: var(--fs-small); color: var(--muted); margin-bottom: .75rem; }
.k2-share__links { display: flex; flex-wrap: wrap; gap: .5rem; }
.k2-share__btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: .45em 1.1em;
  border: 1px solid var(--line); border-radius: 999px; font-size: .9375rem; font-weight: 500; color: var(--graphite); text-decoration: none;
  transition: border-color .25s, background-color .25s, color .25s;
}
.k2-share__btn:hover { border-color: var(--graphite); }
.k2-share__btn.is-copied { background: var(--graphite); border-color: var(--graphite); color: var(--white); font-size: 0; }
.k2-share__btn.is-copied::after { content: "Skopiowano"; font-size: .9375rem; }

.k2-author { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.k2-author__img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 38% 25%; }
.k2-author__name { font-weight: 600; }
.k2-author__text { margin: .35rem 0 .75rem; font-size: .9375rem; line-height: 1.55; color: var(--muted); }

.k2-related { background: var(--stone); }
.k2-related .k2-cards { margin-top: clamp(32px, 4vw, 56px); }

.k2-contact--band { padding: clamp(72px, 9vw, 128px) 0; }
.k2-contact--band .k2-contact__grid { align-items: end; }
.k2-contact--band .k2-contact__lead { margin-bottom: 0; }
.k2-contact__actions .k2-contact__direct { margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
  .k2 *, .k2 *::before, .k2 *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 991px) {
  .k2 { --header-h: 66px; }
  .k2-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 7px; width: 48px; height: 48px; padding: 0 12px; border: 0; background: none; cursor: pointer; position: relative; z-index: 2; }
  .k2-burger span:not(.k2-sr) { display: block; height: 1.5px; background: var(--graphite); transition: transform .4s var(--ease); }
  .k2-burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .k2-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }
  .k2-header__logo { position: relative; z-index: 2; }
  .k2-nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.1rem;
    padding: var(--header-h) var(--gutter) 2rem; background: var(--white);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s;
  }
  .k2-nav.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease), visibility 0s; }
  .k2-nav__link { font-size: 1.875rem; font-weight: 500; color: var(--graphite); letter-spacing: -.02em; }
  .k2-nav__cta { margin-top: 1.25rem; }
  .k2-hero__top { grid-template-columns: 1fr; align-items: start; }
  .k2-split__grid, .k2-about__grid, .k2-contact__grid { grid-template-columns: 1fr; }
  .k2-steps__intro, .k2-qa__intro { position: static; }
  .k2-gain__grid { grid-template-columns: 1fr; }
  .k2-work__grid { grid-template-columns: 1fr 1fr; }
  .k2-work__card--0 { grid-row: auto; }
  .k2-work__card--0 .k2-work__media { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .k2-about__photo { max-width: 520px; }
  .k2-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; display: flex; gap: .75rem; align-items: center;
    padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); box-shadow: 0 -1px 0 var(--line);
    transform: translateY(110%); transition: transform .45s var(--ease);
  }
  .k2-sticky .k2-btn { flex: 1; }
  .k2-sticky.is-visible { transform: none; }
  .k2-sticky__tel { display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; color: var(--graphite); }
  .k2-sticky__tel svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
}

@media (max-width: 600px) {
  .k2-section { padding: 72px 0; }
  .k2-hero__actions .k2-btn { width: 100%; }
  .k2-facts { grid-template-columns: 1fr 1fr; }
  .k2-facts__item--cta { grid-column: 1 / -1; padding-left: 0 !important; border-left: 0 !important; border-top: 1px solid var(--line); margin-top: 1.75rem; padding-bottom: .5rem; }
  .k2-facts__item + .k2-facts__item { padding-left: 1.25rem; }
  .k2-list__item { grid-template-columns: 1fr; }
  .k2-work__grid { grid-template-columns: 1fr; }
  .k2-work__card--0, .k2-work__card--4 { grid-column: auto; }
  .k2-work__card--4 .k2-work__media { aspect-ratio: 4 / 3; }
  .k2-acc__body p { padding-right: 0; }
  .k2-contact__form .form-flex { grid-template-columns: 1fr; }
  .k2-contact .k2-btn { width: 100%; }
}
@media (max-width: 782px) { .admin-bar .k2-header { top: 46px; } }

@media (max-width: 991px) {
  .k2-card--featured, .k2-card--featured.k2-card--text { grid-template-columns: 1fr; }
  .k2-card--featured.k2-card--text .k2-card__excerpt, .k2-card--featured.k2-card--text .k2-card__more { grid-column: 1; grid-row: auto; }
  .k2-cards { grid-template-columns: 1fr 1fr; }
  .k2-post__body { grid-template-columns: 1fr; }
  .k2-post__aside { position: static; }
  .k2-contact--band .k2-contact__grid { align-items: start; }
}
@media (max-width: 600px) {
  .k2-cards { grid-template-columns: 1fr; }
  .k2-prose { font-size: 1.0625rem; }
  .k2-pagination .prev, .k2-pagination .next { width: 100%; }
}
