/* KOBZMET Design System 2026 — redesign UX/UI */

:root {
  /* Kolory firmowe KOBZMET — czerwień + czerń (gradienty) */
  --k-brand-bright: #c41e2a;
  --k-brand: #8f1515;
  --k-brand-dark: #4a0808;
  --k-brand-logo: #630d0d;
  --k-black: #0a0a0a;
  --k-gold: var(--k-brand-bright);
  --k-gold-hover: #e02535;
  --k-gold-soft: transparent;
  --k-dark: var(--k-black);
  --k-dark-soft: #141414;
  --k-text: #121212;
  --k-muted: #4a4a4a;
  --k-bg: #ffffff;
  --k-surface: #ffffff;
  --k-elevated: #ffffff;
  --k-border: #e5e5e5;
  --k-border-strong: #cccccc;
  --k-header-bg: #ffffff;
  --k-grad-h: linear-gradient(90deg, var(--k-brand-bright) 0%, var(--k-brand-dark) 45%, var(--k-black) 100%);
  --k-grad-v: linear-gradient(0deg, var(--k-black) 0%, var(--k-brand-dark) 42%, var(--k-brand-bright) 100%);
  --k-grad-hero: linear-gradient(125deg, var(--k-black) 0%, #1a0505 40%, #2d0808 70%, var(--k-black) 100%);
  --k-grad-cta: linear-gradient(135deg, var(--k-brand-dark) 0%, var(--k-brand-bright) 100%);
  --k-grad-premium: var(--k-grad-hero);
  --k-radius-sm: 4px;
  --k-radius: 8px;
  --k-radius-lg: 12px;
  --k-shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --k-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  --k-shadow-premium: 0 20px 60px rgba(0, 0, 0, 0.14);
  --k-max: 1200px;
  --k-header-h: 72px;
  --k-font-ui: "Source Sans 3", system-ui, sans-serif;
  --k-font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --k-transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.k-site {
  margin: 0;
  font-family: var(--k-font-ui);
  font-size: 16px;
  line-height: 1.65;
  color: var(--k-text);
  background: var(--k-bg);
  overflow-x: hidden;
}

body.k-site.has-sticky-cta {
  padding-bottom: 72px;
}

@media (min-width: 992px) {
  body.k-site.has-sticky-cta {
    padding-bottom: 0;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.k-container {
  width: min(100% - 32px, var(--k-max));
  margin-inline: auto;
}

.k-skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--k-grad-cta);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--k-radius-sm);
}

.k-skip:focus {
  top: 16px;
}

/* Header — czysta biel, mocny kontrast z ciemnym hero */
.k-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--k-header-bg);
  box-shadow: 0 1px 0 var(--k-border);
  border-bottom: none;
}

.k-header::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--k-grad-h);
}

.k-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--k-header-h);
}

.k-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.k-logo img {
  height: 54px;
  width: auto;
}

.k-header__contact {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 13px;
}

.k-header__contact a {
  color: var(--k-text);
  text-decoration: none;
  font-weight: 600;
}

.k-header__contact a:hover {
  color: var(--k-brand);
}

.k-header__contact .k-mail {
  font-weight: 400;
  color: var(--k-muted);
  font-size: 12px;
}

@media (min-width: 900px) {
  .k-header__contact {
    display: flex;
  }
}

.k-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--k-border-strong);
  border-radius: var(--k-radius-sm);
  background: var(--k-surface);
  color: var(--k-text);
  cursor: pointer;
}

.k-nav-toggle__box {
  position: relative;
  width: 22px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}

.k-nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transform-origin: center;
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.22s ease;
}

.k-nav-toggle[aria-expanded="true"] .k-nav-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.k-nav-toggle[aria-expanded="true"] .k-nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.k-nav-toggle[aria-expanded="true"] .k-nav-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 900px) {
  .k-nav-toggle {
    display: none;
  }
}

.k-nav {
  display: none;
  position: fixed;
  inset: calc(var(--k-header-h) + 3px) 0 auto 0;
  background: var(--k-header-bg);
  padding: 24px;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100dvh - var(--k-header-h));
  overflow-y: auto;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-top: 1px solid var(--k-border-strong);
}

.k-nav.is-open {
  display: flex;
}

@media (min-width: 900px) {
  .k-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    max-height: none;
    overflow: visible;
  }
}

.k-nav a {
  display: block;
  padding: 12px 16px;
  color: var(--k-text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
  background: transparent;
  transition: color var(--k-transition), border-color var(--k-transition);
}

.k-nav a:hover {
  color: var(--k-brand);
  background: transparent;
}

.k-nav a.is-active {
  color: var(--k-brand);
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--k-brand);
}

@media (min-width: 900px) {
  .k-nav a {
    padding: 10px 14px 8px;
  }

  .k-nav a.is-active {
    box-shadow: none;
    border-bottom: 2px solid var(--k-brand);
    padding-bottom: 6px;
  }

  .k-nav a[href="kontakt.html"] {
    background: var(--k-brand-dark);
    color: #fff;
    margin-left: 8px;
    padding: 10px 18px;
    border-radius: 2px;
    letter-spacing: 0.08em;
    border-bottom: none;
    box-shadow: none;
  }

  .k-nav a[href="kontakt.html"]:hover,
  .k-nav a[href="kontakt.html"].is-active {
    background: var(--k-brand);
    color: #fff;
    border-bottom: none;
  }
}

/* Hero — jeden ciemny blok gradientu (nagłówek + intro w jednej sekcji) */
.k-hero,
.k-page-hero {
  position: relative;
  background: var(--k-grad-hero);
  color: #fff;
  overflow: hidden;
}

.k-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(8, 8, 8, 0.92) 0%, rgba(45, 10, 10, 0.82) 45%, rgba(8, 8, 8, 0.94) 100%),
    url("../images/b47-min.webp") center/cover no-repeat;
  z-index: 0;
}

.k-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(8, 8, 8, 0.92) 0%, rgba(45, 10, 10, 0.82) 45%, rgba(8, 8, 8, 0.94) 100%),
    var(--k-hero-bg-image, url("../images/b47-min.webp")) center/cover no-repeat;
  z-index: 0;
}

.k-page-hero--firma {
  --k-hero-bg-image: url("../images/cnc.webp");
}

.k-page-hero--galeria {
  --k-hero-bg-image: url("../images/automatyka.webp");
}

.k-page-hero--kontakt {
  --k-hero-bg-image: url("../images/bw14.webp");
}

.k-page-hero--oferty {
  --k-hero-bg-image: url("../images/ks13.webp");
}

.k-page-hero--polityka {
  --k-hero-bg-image: url("../images/20230602_183212.webp");
}

.k-hero__main,
.k-hero__intro {
  position: relative;
  z-index: 1;
}

.k-hero__main {
  padding: 56px 0 0;
}

.k-hero__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.k-hero__intro {
  padding: 40px 0 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 48px;
  background: transparent;
}

.k-hero__intro p {
  margin: 0 auto;
  max-width: 72ch;
  text-align: center;
  font-family: var(--k-font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
}

.k-hero__intro strong {
  color: #fff;
  font-weight: 600;
}

.k-hero__intro a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.k-hero__intro a:hover {
  color: var(--k-brand-bright);
}

.k-hero__badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--k-grad-cta);
  border: none;
  border-radius: 999px;
}

.k-hero h1,
.k-page-hero h1 {
  margin: 0 0 16px;
  font-family: var(--k-font-display);
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.k-hero h1 {
  max-width: 20ch;
}

.k-page-hero h1 {
  max-width: 24ch;
}

.k-hero__lead {
  margin: 0 0 16px;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 52ch;
  opacity: 0.92;
  line-height: 1.55;
}

.k-page-hero .k-hero__lead:last-child {
  margin-bottom: 0;
}

.k-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Buttons */
.k-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--k-font-ui);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--k-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--k-transition), color var(--k-transition), border-color var(--k-transition), transform 0.15s ease;
}

.k-btn:active {
  transform: scale(0.98);
}

.k-btn--gold {
  background: var(--k-grad-cta);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(143, 21, 21, 0.35);
}

.k-btn--gold:hover {
  background: linear-gradient(135deg, var(--k-brand) 0%, var(--k-gold-hover) 100%);
}

.k-btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.k-btn--outline-light:hover {
  border-color: var(--k-brand-bright);
  color: var(--k-brand-bright);
  background: rgba(196, 30, 42, 0.12);
}

.k-btn--dark {
  background: var(--k-dark);
  color: #fff;
}

.k-btn--outline {
  background: transparent;
  color: var(--k-dark);
  border-color: var(--k-dark);
}

.k-btn--outline:hover {
  background: var(--k-dark);
  color: #fff;
}

/* Sections — biel + ciemne pasy jak hero (premium) */
.k-section {
  padding: 80px 0;
  background: var(--k-bg);
}

.k-section--alt {
  background: var(--k-bg);
  border-block: 1px solid var(--k-border);
}

.k-section--dark {
  background: var(--k-grad-premium);
  color: rgba(255, 255, 255, 0.92);
}

/* Ciemny gradient tylko: hero, page-hero, CTA, stopka — nie osobne pasy treści */

.k-section--dark .k-section__head h2,
.k-section--dark h2 {
  color: #fff;
}

.k-section--dark .k-section__head p {
  color: rgba(255, 255, 255, 0.78);
}

.k-section--dark .k-split p {
  color: rgba(255, 255, 255, 0.85);
}

.k-section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.k-section__head h2 {
  margin: 0 0 12px;
  font-family: var(--k-font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--k-dark);
}

.k-section__head h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin: 14px auto 0;
  background: var(--k-grad-h);
  border-radius: 2px;
}

.k-section__head p {
  margin: 0;
  color: var(--k-muted);
}

/* Service cards */
.k-grid {
  display: grid;
  gap: 24px;
}

.k-grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .k-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .k-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.k-card {
  background: var(--k-elevated);
  border-radius: var(--k-radius-sm);
  overflow: hidden;
  box-shadow: var(--k-shadow-sm);
  border: 1px solid var(--k-border);
  transition: box-shadow var(--k-transition), transform var(--k-transition), border-color var(--k-transition);
}

.k-card:hover {
  box-shadow: var(--k-shadow-premium);
  transform: translateY(-6px);
  border-color: var(--k-border-strong);
}

.k-card__img {
  display: block;
  overflow: hidden;
  background: #f3f3f3;
  line-height: 0;
}

.k-card__img img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  object-position: center center;
  vertical-align: middle;
}

.k-card__body {
  padding: 20px;
}

.k-card__body h3 {
  margin: 0 0 8px;
  font-family: var(--k-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.k-card__body p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--k-muted);
}

.k-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--k-brand);
  text-decoration: none;
}

.k-card__link:hover {
  text-decoration: underline;
}

/* Feature row */
.k-split {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 768px) {
  .k-split {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .k-split--reverse .k-split__media {
    order: 2;
  }
}

.k-split__media {
  border-radius: var(--k-radius-sm);
  overflow: hidden;
  box-shadow: var(--k-shadow);
  line-height: 0;
  background: transparent;
}

.k-split__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* Keep bottom-right watermark visible when using object-fit: cover */
  object-position: right bottom;
}

/* Oferta / landingi: zdjęcie 100% (bez docinania), bez pustych pasów.
   Robimy to przez dopasowanie wysokości kontenera do zdjęcia + limit max-height. */
.k-page--oferty .k-split__media,
.k-page--palisada .k-split__media {
  box-shadow: none;
  background: transparent;
  max-height: clamp(280px, 44vw, 520px);
}

.k-page--oferty .k-split__media img,
.k-page--palisada .k-split__media img {
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

/* Special: schody metalowe — lepszy kadr bez pustych pól */
.k-page--oferty .k-split__media--cover {
  max-height: clamp(300px, 46vw, 560px);
}

.k-page--oferty .k-split__media--cover img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .k-page--oferty .k-split__media--cover {
    aspect-ratio: 4 / 3;
  }
}

/* Landing: ogrodzenia palisadowe — bez ramek/mat i bez ucinania */
.k-page--palisada .k-split__media {
  box-shadow: none;
  background: transparent;
}

.k-page--palisada .k-split__media img {
  height: 100%;
  object-fit: cover;
  background: transparent;
}

@media (min-width: 768px) {
  .k-split__media {
    aspect-ratio: 16 / 10;
  }
}

@media (min-width: 768px) {
  .k-page--palisada .k-split__media {
    aspect-ratio: auto;
  }
}

@media (min-width: 768px) {
  .k-page--oferty .k-split__media {
    aspect-ratio: auto;
  }
}

.k-split h2 {
  font-family: var(--k-font-display);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
}

.k-split p {
  margin: 0 0 16px;
  color: var(--k-muted);
}

/* Process */
.k-steps {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .k-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .k-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.k-step {
  padding: 32px 24px;
  background: var(--k-elevated);
  border-radius: var(--k-radius-sm);
  border: 1px solid var(--k-border);
  box-shadow: var(--k-shadow);
  text-align: center;
}

.k-section--dark .k-step {
  border-color: rgba(255, 255, 255, 0.12);
}

.k-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  background: var(--k-brand-dark);
  color: #fff;
  font-family: var(--k-font-ui);
  font-weight: 700;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  border: 2px solid var(--k-brand-bright);
}

.k-step strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--k-font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--k-dark);
}

.k-step > span:not(.k-step__num) {
  display: block;
  font-size: 13px;
  color: var(--k-muted);
}

/* FAQ (accordion) */
.k-faq {
  display: grid;
  gap: 12px;
  max-width: 980px;
  margin-inline: auto;
}

.k-faq__item {
  background: var(--k-elevated);
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius-sm);
  box-shadow: var(--k-shadow-sm);
  overflow: hidden;
}

.k-faq__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--k-text);
}

.k-faq__btn:focus-visible {
  outline: 3px solid rgba(196, 30, 42, 0.32);
  outline-offset: 2px;
}

.k-faq__q {
  font-family: var(--k-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.k-faq__icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  position: relative;
  opacity: 0.9;
}

.k-faq__icon::before,
.k-faq__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.k-faq__icon::after {
  transform: rotate(90deg);
  transition: transform 0.22s ease;
}

.k-faq__item.is-open .k-faq__icon::after {
  transform: rotate(0deg);
}

.k-faq__panel {
  height: 0;
  overflow: hidden;
  transition: height 0.26s ease;
}

.k-faq__panel-inner {
  padding: 0 18px 18px;
  color: var(--k-muted);
}

.k-faq__panel-inner p {
  margin: 0;
}

/* Cities */
.k-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.k-tags li {
  padding: 8px 14px;
  font-size: 13px;
  background: var(--k-surface);
  border: 1px solid var(--k-border);
  border-radius: 999px;
  color: var(--k-muted);
}

.k-area-box {
  padding: 40px;
  background: var(--k-surface);
  border-left: 4px solid var(--k-brand-dark);
  border-radius: var(--k-radius-sm);
  box-shadow: var(--k-shadow);
  border: 1px solid var(--k-border);
  border-left-width: 4px;
  border-left-color: var(--k-brand-bright);
}

/* Trust bar */
.k-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 32px;
  background: var(--k-grad-hero);
  color: #fff;
  border-radius: var(--k-radius);
  position: relative;
  overflow: hidden;
}

.k-trust::before {
  display: none;
}

.k-trust div {
  text-align: center;
}

.k-trust strong {
  display: block;
  font-size: 1.5rem;
  color: var(--k-brand-bright);
  font-family: var(--k-font-display);
  position: relative;
}

.k-trust span {
  font-size: 13px;
  opacity: 0.85;
}

/* CTA band */
.k-cta-band {
  padding: 48px 32px;
  text-align: center;
  background: var(--k-grad-hero);
  color: #fff;
  border-radius: var(--k-radius-lg);
  position: relative;
  overflow: hidden;
}

.k-section:has(.k-cta-band) {
  padding-bottom: 80px;
}

.k-cta-band h2 {
  margin: 0 0 12px;
  font-family: var(--k-font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.k-cta-band p {
  margin: 0 0 24px;
  opacity: 0.9;
}

.k-cta-band .k-hero__cta {
  justify-content: center;
}

/* Footer — gradient jak hero */
.k-footer {
  background: var(--k-grad-premium);
  color: rgba(255, 255, 255, 0.88);
  padding: 56px 0 28px;
  position: relative;
}

.k-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--k-grad-h);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.k-footer__mark {
  margin: 0 0 4px;
  font-family: var(--k-font-display);
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--k-brand-bright);
  line-height: 1.1;
  background: linear-gradient(90deg, var(--k-brand-dark) 0%, var(--k-brand-bright) 55%, #ffffff 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.k-footer__logo {
  display: block;
  width: min(260px, 100%);
  height: auto;
  margin: 0 0 14px;
  opacity: 0.95;
}

.k-footer__tagline {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.75) 0%, var(--k-brand-bright) 55%, rgba(255, 255, 255, 0.7) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.k-footer__about p {
  margin: 0;
  font-size: 14px;
  max-width: 32ch;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.k-footer__grid {
  display: grid;
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .k-footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.k-footer h3 {
  margin: 0 0 12px;
  font-family: var(--k-font-display);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--k-brand-bright);
}

.k-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.k-footer li {
  margin-bottom: 8px;
}

.k-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
}

.k-footer a:hover {
  color: #fff;
}

.k-footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.k-footer__bottom a {
  color: rgba(255, 255, 255, 0.75);
}

/* Form */
.k-form {
  display: grid;
  gap: 16px;
}

.k-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.k-form input,
.k-form textarea,
.k-form select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--k-font-ui);
  font-size: 16px;
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius-sm);
  background: var(--k-surface);
}

.k-form input:focus,
.k-form textarea:focus {
  outline: 2px solid var(--k-gold);
  outline-offset: 0;
  border-color: var(--k-gold);
}

.k-form textarea {
  min-height: 140px;
  resize: vertical;
}

.k-form .k-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 400;
}

.k-form .k-check input {
  width: auto;
  margin-top: 4px;
}

.k-form .k-check a {
  color: var(--k-gold);
}

.k-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.k-alert {
  padding: 14px 16px;
  border-radius: var(--k-radius-sm);
  font-size: 14px;
}

.k-alert--ok {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

/* Gallery page */
.k-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.k-gallery-filters button {
  padding: 10px 18px;
  font-family: var(--k-font-ui);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--k-border);
  border-radius: 999px;
  background: var(--k-surface);
  cursor: pointer;
  transition: all var(--k-transition);
}

.k-gallery-filters button.is-active,
.k-gallery-filters button:hover {
  background: var(--k-grad-cta);
  color: #fff;
  border-color: var(--k-brand);
}

.k-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  align-items: start;
}

.k-gallery-item {
  display: block;
  border-radius: var(--k-radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--k-border);
  padding: 0;
  background: #f5f5f5;
  box-shadow: var(--k-shadow-sm);
  transition: box-shadow var(--k-transition), border-color var(--k-transition);
  text-decoration: none;
}

.k-gallery-item:hover {
  box-shadow: var(--k-shadow);
  border-color: var(--k-border-strong);
}

.k-gallery-item img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  object-position: center;
  display: block;
  vertical-align: middle;
}

.k-gallery-item:hover img {
  transform: none;
}

/* Gallery lightbox (galeria.html) */
.k-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

.k-lightbox.is-open {
  display: block;
}

.k-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.k-lightbox__dialog {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
}

.k-lightbox__frame {
  width: min(1100px, 100%);
  height: min(78vh, 720px);
  border-radius: var(--k-radius);
  overflow: hidden;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.k-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: rgba(0, 0, 0, 0.25);
  display: block;
  margin: auto;
  flex: 0 0 auto;
}

.k-lightbox__btn {
  position: absolute;
  top: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 10, 10, 0.75);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--k-transition), transform 0.15s ease;
}

.k-lightbox__btn:active {
  transform: scale(0.98);
}

.k-lightbox__btn:hover {
  background: rgba(74, 8, 8, 0.92);
}

.k-lightbox__btn--close {
  right: 14px;
}

.k-lightbox__btn--prev,
.k-lightbox__btn--next {
  top: 50%;
  transform: translateY(-50%);
}

.k-lightbox__btn--prev {
  left: 14px;
}

.k-lightbox__btn--next {
  right: 14px;
}

.k-lightbox__btn svg {
  width: 20px;
  height: 20px;
}

.k-lightbox__caption {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.k-rotate-fade {
  transition: opacity 0.55s ease;
}

.k-rotate-fade.is-hero-fading {
  opacity: 0;
}

/* Map */
.k-map iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: var(--k-radius);
}

/* Sticky mobile CTA */
.k-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: var(--k-dark);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
}

.k-sticky-cta.is-hidden {
  transform: translateY(110%);
}

.k-sticky-cta a {
  flex: 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--k-radius-sm);
}

/* Floating gallery navigation arrow (galeria.html) */
.k-gallery-nav-fab {
  position: fixed;
  right: 16px;
  bottom: 92px;
  z-index: 9998;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 10, 0.92);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.k-gallery-nav-fab:hover {
  background: rgba(74, 8, 8, 0.95);
}

.k-gallery-nav-fab.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.k-gallery-nav-fab svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 480px) {
  .k-gallery-nav-fab {
    right: 12px;
    bottom: 86px;
  }
}

.k-sticky-cta .cta-tel {
  background: var(--k-grad-cta);
  color: #fff;
}

.k-sticky-cta .cta-form {
  border: 2px solid var(--k-brand-bright);
  color: #fff;
}

@media (min-width: 992px) {
  .k-sticky-cta {
    display: none;
  }
}

/* Reveal */
.k-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.k-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Legacy gallery embed */
.k-legacy-gallery {
  padding: 32px 0 64px;
}

.k-legacy-gallery .section,
.k-legacy-gallery .w-container {
  max-width: 100%;
}

/* —— Redesign 2026: UX, dostępność, podstrony —— */

.k-header.is-scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.k-breadcrumb {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.k-breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.k-breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.k-breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  opacity: 0.5;
}


.k-form-wrap {
  padding: 28px;
  background: var(--k-elevated);
  border: 1px solid var(--k-border-strong);
  border-radius: var(--k-radius);
  box-shadow: var(--k-shadow-sm);
}

.k-form-wrap h2 {
  margin: 0 0 20px;
  font-family: var(--k-font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.k-prose {
  max-width: 68ch;
}

.k-prose h2 {
  font-family: var(--k-font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.k-prose p + p {
  margin-top: 1em;
}

.k-values {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .k-values {
    grid-template-columns: repeat(3, 1fr);
  }
}

.k-value {
  padding: 28px;
  background: var(--k-elevated);
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius-sm);
  box-shadow: var(--k-shadow-sm);
}

.k-value h3 {
  margin: 0 0 8px;
  font-family: var(--k-font-display);
  font-size: 1.2rem;
  color: var(--k-brand);
}

.k-value p {
  margin: 0;
  font-size: 14px;
  color: var(--k-muted);
}


.k-page-hero .k-breadcrumb {
  margin: 0 0 12px;
}

.k-gallery-note {
  font-size: 14px;
  color: var(--k-muted);
}

.k-gallery-note a {
  color: var(--k-brand);
  font-weight: 600;
}

.k-gallery-tools {
  display: grid;
  gap: 12px;
  align-items: center;
  margin: 18px 0 0;
}

@media (min-width: 720px) {
  .k-gallery-tools {
    grid-template-columns: 1fr auto;
  }
}

.k-gallery-search {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--k-elevated);
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius-sm);
  padding: 10px 12px;
  box-shadow: var(--k-shadow-sm);
}

.k-gallery-search input {
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--k-text);
}

.k-gallery-meta {
  font-size: 13px;
  color: var(--k-muted);
  white-space: nowrap;
}

.k-gallery-empty {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--k-radius-sm);
  border: 1px dashed var(--k-border-strong);
  background: rgba(255, 255, 255, 0.6);
  color: var(--k-muted);
  font-size: 14px;
}

/* Konfigurator 3D RAL */
.k-ral-demo {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 900px) {
  .k-ral-demo {
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: center;
  }
}

.k-ral-demo h2 {
  font-family: var(--k-font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 12px;
}

.k-ral-demo__lead {
  margin: 0 0 24px;
  color: var(--k-muted);
  max-width: 42ch;
}

.k-ral-active {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--k-brand-dark);
}

.k-ral-hint {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--k-muted);
}

.k-ral-controls {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 14px;
  border-radius: var(--k-radius-sm);
  border: 1px solid var(--k-border);
  background: rgba(255, 255, 255, 0.6);
}

.k-ral-control {
  display: grid;
  gap: 8px;
}

.k-ral-control span {
  font-size: 13px;
  font-weight: 600;
  color: var(--k-text);
}

.k-ral-control input[type="search"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius-sm);
  background: var(--k-surface);
  font: inherit;
  font-size: 14px;
}

.k-ral-control input[type="search"]:focus-visible {
  outline: 2px solid var(--k-brand-bright);
  outline-offset: 2px;
  border-color: var(--k-brand);
}

.k-ral-control input[type="range"] {
  width: 100%;
  accent-color: var(--k-brand);
}

.k-ral-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.k-ral-swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--k-border);
  border-radius: 999px;
  background: var(--k-surface);
  cursor: pointer;
  font-family: var(--k-font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--k-text);
  transition: border-color var(--k-transition), box-shadow var(--k-transition);
}

.k-ral-swatch:hover,
.k-ral-swatch.is-active {
  border-color: var(--k-brand);
  box-shadow: 0 0 0 2px rgba(143, 21, 21, 0.15);
}

.k-ral-swatch.is-active {
  outline: 2px solid var(--k-brand);
  outline-offset: 1px;
}

.k-ral-swatch__chip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--swatch, #888);
  border: 1px solid rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.k-ral-viewer {
  position: relative;
  min-height: 320px;
  height: min(52vh, 480px);
  border-radius: var(--k-radius-sm);
  overflow: hidden;
  border: 1px solid var(--k-border);
  background: linear-gradient(180deg, #f8f8f8 0%, #ececec 100%);
  box-shadow: var(--k-shadow);
}

.k-ral-preview {
  width: 100%;
  height: 100%;
  background: #383e42;
  position: relative;
  overflow: hidden;
}

.k-ral-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.2) 40%, rgba(0, 0, 0, 0.06) 100%),
    radial-gradient(1000px 380px at 20% 0%, rgba(255, 255, 255, 0.25), transparent 60%),
    radial-gradient(900px 360px at 90% 120%, rgba(0, 0, 0, 0.18), transparent 55%);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.k-ral-preview::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.k-ral-viewer__badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--k-muted);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  border: 1px solid var(--k-border);
  pointer-events: none;
}

:focus-visible {
  outline: 2px solid var(--k-brand-bright);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .k-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .k-card:hover {
    transform: none;
  }
}

@media (min-width: 900px) {
  .k-hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }

  .k-hero__visual {
    border-radius: var(--k-radius-sm);
    overflow: hidden;
    box-shadow: var(--k-shadow-premium);
    border: 1px solid rgba(255, 255, 255, 0.15);
    line-height: 0;
    background: rgba(0, 0, 0, 0.25);
    aspect-ratio: 4 / 3;
    height: 100%;
    max-height: 440px;
    display: block;
  }

  .k-hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: opacity 1.2s ease;
  }
}

@media (max-width: 899px) {
  .k-hero__main,
  .k-page-hero .k-hero__main {
    padding-top: 40px;
  }

  .k-hero__intro {
    margin-top: 32px;
    padding-bottom: 48px;
  }

  .k-hero__visual {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--k-radius-sm);
  }

  .k-hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 1.2s ease;
  }
}

.k-hero__visual img.is-hero-fading {
  opacity: 0;
}
