/* Homepage —  layout × Nomebel brand */
/* Header styles: assets/header.css */

/* Hero — full-bleed edge-to-edge (jak Agata); treść poniżej w .fm-container */
.fm-hero {
  position: relative;
  background: #eee;
  line-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.fm-hero__track {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 0;
  aspect-ratio: 1920 / 450;
}
.fm-hero__slide {
  display: none;
  width: 100%;
  height: 100%;
}
.fm-hero__slide.is-active { display: block; }
.fm-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.fm-hero__slide img.fm-img--mirror {
  transform: scaleX(-1);
}
.fm-hero__nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}
.fm-hero__nav button {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: var(--fm-shadow-sm);
  font-size: 22px;
  color: var(--fm-gray-900);
}

.fm-trustmate-home {
  max-width: var(--fm-page-max, 1440px);
  margin: 24px auto 40px;
  padding-inline: var(--fm-gutter, 24px);
  box-sizing: border-box;
}
.fm-section { padding: 40px 0; }
.fm-section--tight { padding-top: 12px; padding-bottom: 8px; }
.fm-section--muted {
  background: #eceff3;
  padding: 48px 0 32px;
  margin-bottom: 0;
}
.fm-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.fm-section__title {
  margin: 0;
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--fm-gray-900, #111);
}
.fm-section__link { font-size: 14px; font-weight: 700; }
.fm-section__link:hover { color: var(--fm-red); }

/* Hero slide tabs — ss2: 2 lines, centered, red underline */
.fm-promo-tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border-bottom: 1px solid var(--fm-gray-200);
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.fm-promo-tabs::-webkit-scrollbar { display: none; }
.fm-promo-tabs__item {
  flex: 1 1 0;
  min-width: 120px;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 14px 10px 12px;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--fm-gray-900);
  text-align: center;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  white-space: normal;
  line-height: 1.25;
  transition: color .15s, border-color .15s;
}
.fm-promo-tabs__item strong {
  font-size: 14px;
  font-weight: 700;
  display: block;
  line-height: 1.2;
}
.fm-promo-tabs__item span {
  font-size: 12px;
  font-weight: 400;
  color: var(--fm-gray-600);
  display: block;
  line-height: 1.2;
}
.fm-promo-tabs__item.is-active,
.fm-promo-tabs__item:hover {
  border-bottom-color: var(--fm-red);
  color: var(--fm-red);
}
.fm-promo-tabs__item.is-active span,
.fm-promo-tabs__item:hover span {
  color: var(--fm-red);
}

/* Category circles — 6.5 widocznych jak referencyjny sklep meblowy */
.fm-circles-wrap {
  position: relative;
  overflow: hidden;
  margin-right: -16px;
  width: calc(100% + 16px);
}
.fm-circles {
  --fm-circle-gap: 20px;
  display: flex;
  gap: var(--fm-circle-gap);
  overflow-x: auto;
  padding: 6px 48px 16px 0;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.fm-circles::-webkit-scrollbar { display: none; }
.fm-circle {
  flex: 0 0 calc((100% - 5.5 * var(--fm-circle-gap)) / 6.5);
  min-width: 120px;
  max-width: 200px;
  text-align: center;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
}
.fm-circle__img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  background: var(--fm-gray-100);
  border: 2px solid transparent;
  transition: border-color .15s, transform .15s;
}
.fm-circle:hover .fm-circle__img { border-color: var(--fm-red); transform: scale(1.02); }
.fm-circle__img img { width: 100%; height: 100%; object-fit: cover; }
.fm-circle__label { font-size: 14px; font-weight: 700; line-height: 1.3; }
.fm-circles-btn {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #e8e8e8;
  font-size: 22px;
  color: var(--fm-gray-900);
  display: grid;
  place-items: center;
  box-shadow: var(--fm-shadow-sm);
  border: 0;
  cursor: pointer;
}
.fm-circles-btn--next { right: 8px; }
.fm-circles-btn--prev { left: 0; }
.fm-circles-btn[hidden] { display: none !important; }
.fm-circles-btn:disabled { opacity: .35; cursor: default; }
.fm-circles-btn:hover:not(:disabled) { background: var(--fm-red); color: #fff; }

/* 3 promo cards */
.fm-promo-rail {
  position: relative;
}
.fm-promo-rail__btn {
  display: none;
}
.fm-promo-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.fm-promo3-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--fm-gray-200);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.fm-promo3-card__media {
  position: relative;
  aspect-ratio: 1;
  background: var(--fm-gray-100);
  overflow: hidden;
}
.fm-promo3-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.fm-promo3-card:hover .fm-promo3-card__media img { transform: scale(1.04); }
.fm-promo3-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fm-promo3-card__body h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.fm-promo3-card__body p,
.fm-promo3-card__text { margin: 0; font-size: 14px; color: var(--fm-gray-600); }
.fm-promo3-card__until { font-size: 13px !important; font-weight: 600; color: var(--fm-gray-900) !important; }
.fm-promo3-card__link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--fm-red);
}

/* Product card — Agata-like type + spacing (title → desc → price) */
.fm-pcard {
  flex: 0 0 calc((100% - 48px) / 4);
  width: calc((100% - 48px) / 4);
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.fm-pcard__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 22px;
  margin-bottom: 8px;
}
.fm-label {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.fm-label--red { background: var(--fm-red); }
.fm-label--gray { background: #6b7280; }
.fm-label--black { background: #111111; }
.fm-label--teal { background: #6b7280; } /* legacy alias → gray */
.fm-label--blue { background: #111111; } /* legacy alias → black */
.fm-label--payu {
  background: #a6c307;
  color: #fff;
}
.fm-label--ship {
  background: var(--fm-red);
  letter-spacing: 0.01em;
}
.fm-label--ship24 {
  background: #0f766e !important;
  color: #fff !important;
  letter-spacing: 0.02em;
}
.fm-pcard__installment,
.fm-acat__installment,
[data-fm-payu-installment] {
  display: block;
  margin: 2px 0 0;
  min-height: 0;
  line-height: 1.2;
  text-align: left;
}
.fm-pcard__installment .payu-mini-installments-widget,
.fm-acat__installment .payu-mini-installments-widget,
[data-fm-payu-installment] .payu-mini-installments-widget {
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  width: auto !important;
  max-width: 100% !important;
  padding: 4px 8px !important;
  gap: 0 !important;
  border-radius: 4px !important;
  background: #a6c307 !important;
}
.fm-pcard__installment .payu-mini-installments-widget a,
.fm-pcard__installment .payu-mini-installments-widget span,
.fm-acat__installment .payu-mini-installments-widget a,
.fm-acat__installment .payu-mini-installments-widget span,
[data-fm-payu-installment] .payu-mini-installments-widget a,
[data-fm-payu-installment] .payu-mini-installments-widget span {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border: 0 !important;
  white-space: nowrap !important;
}
.fm-pcard__installment .payu-mini-installments-widget-separator,
.fm-acat__installment .payu-mini-installments-widget-separator,
[data-fm-payu-installment] .payu-mini-installments-widget-separator {
  padding: 0 2px 0 1px !important;
}
.fm-pcard__installment .payu-mini-installments-widget-amount,
.fm-acat__installment .payu-mini-installments-widget-amount,
[data-fm-payu-installment] .payu-mini-installments-widget-amount {
  font-size: 12px !important;
  font-weight: 900 !important;
}
.fm-pcard__media {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  display: block;
  margin-bottom: 10px;
}
.fm-pcard__media-wrap {
  position: relative;
}
.fm-pcard__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  transition: opacity .25s ease;
}
.fm-pcard__media img.fm-pcard__img--hover {
  opacity: 0;
}
.fm-pcard__media-wrap.has-hover:hover img.fm-pcard__img--primary { opacity: 0; }
.fm-pcard__media-wrap.has-hover:hover img.fm-pcard__img--hover { opacity: 1; }
/* Wishlist hearts temporarily removed from product cards (broke archive grid). */
.fm-wish-btn { display: none !important; }
.fm-pcard__name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: .01em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 0;
  line-height: 1.25;
}
.fm-pcard__desc {
  margin: 3px 0 0;
  font-size: 13px;
  font-weight: 400;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 0;
  line-height: 1.35;
}
.fm-pcard__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-bottom: 2px;
  overflow: visible;
  position: relative;
  z-index: 2;
}
.fm-pcard__price {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.fm-pcard__price small {
  font-size: 13px;
  font-weight: 700;
  vertical-align: super;
  line-height: 1;
}
.fm-pcard__atc {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #1a1a1a;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  position: relative;
  z-index: 3;
}
.fm-pcard__atc:hover {
  background: var(--fm-red, #d62828);
  border-color: var(--fm-red, #d62828);
  color: #fff;
  box-shadow: 0 3px 10px rgba(214, 40, 40, .28);
}
.fm-pcard__atc-icon {
  display: block;
  width: 1em;
  height: 1em;
  line-height: 1;
  font-size: 20px;
  pointer-events: none;
}
.fm-pcard__atc-icon::before {
  content: "\f105";
  font-family: "woodmart-font", sans-serif;
  font-style: normal;
  font-weight: normal;
  speak: never;
  line-height: 1;
}

/* Rails — Nowości: mniejszy lead jak Agata (~1 karta) + 4 widoczne w torze */
.fm-rail-wrap {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.fm-rail-lead {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
}
.fm-rail-lead::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 45%, transparent 70%);
  pointer-events: none;
}
.fm-rail-lead__overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 22px 22px 24px;
  background: transparent;
  color: #fff;
}
.fm-rail-lead__overlay strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
  color: #fff;
}
.fm-rail-lead__overlay span {
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: #fff;
}
.fm-rail-panel { position: relative; min-width: 0; display: flex; flex-direction: column; }
.fm-rail-panel--full { padding-right: 8px; }
.fm-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 2px 0 8px;
  margin: 0 44px;
  flex: 1;
  box-sizing: border-box;
}
.fm-rail .fm-pcard { scroll-snap-align: start; }
.fm-rail::-webkit-scrollbar { display: none; }
.fm-rail--compact { padding: 0 0 8px; margin: 0 0 12px; }
.fm-rail-btn {
  position: absolute;
  top: 36%;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
  color: var(--fm-gray-900);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.fm-rail-btn--prev { left: 0; }
.fm-rail-btn--next { right: 0; }
.fm-rail-btn:hover {
  background: #fff;
  border-color: var(--fm-red);
  color: var(--fm-red);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}
.fm-rail-btn:focus-visible {
  outline: 2px solid var(--fm-red);
  outline-offset: 2px;
}
/* Agata-like drag progress: 3px visual bar + tall hit area */
.fm-rail-progress {
  position: relative;
  height: 28px;
  margin: 8px 44px 0;
  flex-shrink: 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
  background: transparent;
  display: flex;
  align-items: center;
}
.fm-rail-progress::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: var(--fm-gray-200, #e5e7eb);
  border-radius: 999px;
  pointer-events: none;
}
.fm-rail-progress.is-dragging { cursor: grabbing; }
.fm-rail-progress.is-disabled {
  cursor: default;
  opacity: 0.55;
}
.fm-rail-progress span {
  position: relative;
  z-index: 1;
  display: block;
  height: 3px;
  width: 35%;
  background: #9ca3af;
  border-radius: 999px;
  will-change: transform, width;
  pointer-events: none;
}
.fm-rail-progress.is-dragging span,
.fm-rail-progress:active span {
  transition: none;
}

.fm-kolekcje {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 420px;
  background: #111;
  color: #fff;
}
.fm-kolekcje__track {
  position: relative;
  min-height: 420px;
}
.fm-kolekcje__slide {
  display: none;
  position: relative;
  min-height: 420px;
}
.fm-kolekcje__slide.is-active {
  display: block;
}
.fm-kolekcje__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fm-kolekcje__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 12, 0.82) 0%,
    rgba(10, 10, 12, 0.55) 38%,
    rgba(10, 10, 12, 0.12) 68%,
    rgba(10, 10, 12, 0) 100%
  );
  pointer-events: none;
}
.fm-kolekcje__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
}
.fm-kolekcje video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .8;
}
.fm-kolekcje__content {
  position: relative;
  z-index: 2;
  padding: 48px;
  max-width: 460px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.fm-kolekcje__content h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 36px);
  color: #fff;
}
.fm-kolekcje__content p {
  margin: 0 0 20px;
  opacity: .95;
  color: #fff;
  line-height: 1.5;
}
.fm-kolekcje__nav,
.fm-kolekcje__dots {
  display: none !important;
}
.fm-kolekcje-tabs {
  margin-top: 20px;
  margin-bottom: 0;
}
.fm-kolekcje-tabs .fm-promo-tabs__item.is-active {
  background: #f3f4f6;
  color: var(--fm-red);
  border-bottom-color: var(--fm-red);
}
.fm-kolekcje-tabs .fm-promo-tabs__item.is-active span {
  color: var(--fm-red);
}
.fm-home-video {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 9;
  max-height: 560px;
  width: 100%;
  margin-inline: auto;
}
.fm-home-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.fm-home-video video::-webkit-media-controls {
  display: none !important;
}
.fm-home-video video::-webkit-media-controls-enclosure {
  display: none !important;
}
.fm-trendy {
  max-width: var(--fm-page-max, 1440px);
  margin-inline: auto;
  text-align: left;
}
.fm-trendy__rule {
  width: 100%;
  height: 1px;
  margin: 0 0 28px;
  background: #1a1a1a;
}
.fm-trendy__head {
  justify-content: flex-start;
  margin-bottom: 20px;
}
.fm-trendy__head .fm-section__title {
  width: auto;
  text-align: left;
}
.fm-home-video__btn {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .22);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform .15s ease, box-shadow .15s ease;
}
.fm-home-video__btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .28);
}
.fm-home-video__icon {
  display: none;
  width: 0;
  height: 0;
  border-style: solid;
}
.fm-home-video__icon--play {
  margin-left: 3px;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #111;
}
.fm-home-video__icon--pause {
  width: 14px;
  height: 14px;
  border: none;
  background:
    linear-gradient(#111, #111) left / 4px 100% no-repeat,
    linear-gradient(#111, #111) right / 4px 100% no-repeat;
}
.fm-home-video__btn.is-playing .fm-home-video__icon--pause { display: block; }
.fm-home-video__btn:not(.is-playing) .fm-home-video__icon--play { display: block; }
.fm-section--trendy {
  padding-left: 0;
  padding-right: 0;
}
.fm-section--trendy .fm-section__head {
  margin-bottom: 20px;
}
.fm-btn--light { background: #fff; color: var(--fm-gray-900); }
.fm-btn--light:hover { background: var(--fm-red-soft); color: var(--fm-red); }

.fm-inspire {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.35fr);
  gap: 40px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.fm-inspire__copy {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.fm-inspire__copy h3 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
  font-weight: 700;
}
.fm-inspire__copy > p {
  margin: 0 0 20px;
  color: var(--fm-gray-600);
  font-size: 15px;
  line-height: 1.5;
  max-width: 36ch;
}
/* Inspire rail: 2 cards, not 4-up (narrow copy column) */
.fm-inspire__copy .fm-rail--compact {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 0 16px;
  padding: 0 0 10px;
}
.fm-inspire__copy .fm-rail--compact::-webkit-scrollbar { display: none; }
.fm-inspire__copy .fm-rail--compact .fm-pcard {
  flex: 0 0 calc((100% - 12px) / 2);
  width: calc((100% - 12px) / 2);
  max-width: none;
  min-width: 0;
  scroll-snap-align: start;
}
.fm-inspire__copy .fm-pcard__name {
  font-size: 13px;
  line-height: 1.25;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
}
.fm-inspire__copy .fm-pcard__desc {
  margin-top: 2px;
  font-size: 12px;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
}
.fm-inspire__copy .fm-pcard__price {
  font-size: 20px;
  color: #1a1a1a;
}
.fm-inspire__copy .fm-pcard__row {
  margin-top: 10px;
}
.fm-inspire__scene {
  position: relative;
  border-radius: 20px;
  overflow: visible;
  aspect-ratio: 4/3;
  min-height: 320px;
  max-width: 100%;
  width: 100%;
  background: #fff;
  isolation: isolate;
  z-index: 1;
}
.fm-inspire__scene > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 0;
  border-radius: 20px;
}
.fm-pin {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-decoration: none;
  color: inherit;
}
.fm-pin__dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--fm-red);
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  pointer-events: none;
}
.fm-pin__dot::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--fm-red);
}
.fm-pin__tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  max-width: 260px;
  background: #fff;
  color: var(--fm-gray-900);
  padding: 8px 10px;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  white-space: normal;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s, visibility .15s;
  text-align: left;
  line-height: 1.3;
  z-index: 4;
}
.fm-pin__tip-img {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.fm-pin__tip-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.fm-pin__tip-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
  font-size: 12px;
}
.fm-pin__tip-price {
  color: var(--fm-gray-700, #444);
  font-weight: 600;
  font-size: 12px;
}
.fm-pin__tip-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--fm-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  width: fit-content;
}
.fm-pin:hover .fm-pin__tip,
.fm-pin:focus-visible .fm-pin__tip,
.fm-pin.is-open .fm-pin__tip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile pin product modal */
.fm-pin-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.fm-pin-modal[hidden] { display: none !important; }
.fm-pin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .48);
}
.fm-pin-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .22);
  padding: 20px 18px 18px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.fm-pin-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--fm-gray-700, #444);
  cursor: pointer;
}
.fm-pin-modal__media {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e5e5;
}
.fm-pin-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.fm-pin-modal__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding-right: 24px;
}
.fm-pin-modal__name {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--fm-gray-900);
}
.fm-pin-modal__price {
  font-size: 14px;
  font-weight: 600;
  color: var(--fm-gray-700, #444);
}
.fm-pin-modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--fm-red);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
}
.fm-pin-modal__cta:hover { filter: brightness(0.95); }
body.fm-pin-modal-open { overflow: hidden; }

.fm-section--usp {
  padding-block: 28px;
}
.fm-usp-slider {
  position: relative;
}
.fm-usp-icons {
  display: flex;
  gap: 12px;
  padding: 20px 4px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.fm-usp-icons::-webkit-scrollbar { display: none; }
.fm-usp-icon {
  flex: 0 0 calc((100% - 48px) / 5);
  min-width: 180px;
  padding: 20px 18px;
  border-radius: 16px;
  background: var(--fm-gray-100);
  scroll-snap-align: start;
  pointer-events: none;
  user-select: none;
}
.fm-usp-icon a { pointer-events: none; }
.fm-usp-icon svg {
  width: 32px; height: 32px;
  stroke: var(--fm-gray-900);
  fill: none;
  stroke-width: 1.5;
  margin-bottom: 12px;
}
.fm-usp-icon h3 { margin: 0 0 6px; font-size: 15px; }
.fm-usp-icon p { margin: 0; font-size: 13px; color: var(--fm-gray-600); line-height: 1.45; }
.fm-usp-progress {
  position: relative;
  height: 3px;
  margin: 14px 0 0;
  background: #e5e5e5;
  border-radius: 999px;
  overflow: hidden;
}
.fm-usp-progress > span {
  display: block;
  height: 100%;
  width: 40%;
  background: #1a1a1a;
  border-radius: inherit;
  transform: translateX(0);
  will-change: transform, width;
}

/* UGC squares + lightbox */
.fm-ugc {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 16px;
  align-items: start;
}
.fm-ugc__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.fm-ugc__card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  width: 100%;
}
.fm-ugc__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .35s ease;
}
.fm-ugc__card:hover img { transform: scale(1.05); }
.fm-ugc__handle {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fm-gray-900);
  text-align: left;
  margin: 0;
}
.fm-seo-blurb {
  margin: 28px 0 0;
  max-width: none;
  width: 100%;
  font-size: 14px;
  color: var(--fm-gray-600);
  line-height: 1.65;
}
.fm-ugc__handles { display: none; }
.fm-ugc__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fm-gray-900);
  text-decoration: none;
}
.fm-ugc__more:hover { color: var(--fm-red); }

.fm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.82);
  display: grid;
  place-items: center;
  padding: 24px;
}
.fm-lightbox[hidden] { display: none; }
.fm-lightbox img {
  max-width: min(960px, 100%);
  max-height: 90vh;
  border-radius: 12px;
  object-fit: contain;
}
.fm-lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  font-size: 28px;
  line-height: 1;
}

.fm-newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}
.fm-newsletter__media {
  min-height: 340px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-color: #fff;
}
.fm-newsletter__form {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fm-newsletter__form h2 { margin: 0 0 4px; font-size: 28px; }
.fm-newsletter__form .sub { margin: 0 0 20px; color: var(--fm-gray-600); }
.fm-newsletter__row { display: flex; gap: 10px; flex-wrap: wrap; }
.fm-newsletter__row input {
  flex: 1;
  min-width: 180px;
  height: 48px;
  border: 1px solid var(--fm-gray-200);
  border-radius: 10px;
  padding: 0 16px;
  font: inherit;
}
.fm-newsletter__legal { margin-top: 14px; font-size: 11px; color: var(--fm-gray-600); line-height: 1.55; }
.fm-newsletter__legal label { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
.fm-newsletter__legal p { margin: 0; max-width: 52ch; }
.fm-newsletter__legal a { text-decoration: underline; color: inherit; }

.fm-foot {
  background: #f3f4f6;
  padding-top: 40px;
  margin-top: 0;
}
.fm-foot__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 40px;
  align-items: start;
}
.fm-foot__grid h3 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--fm-gray-900);
}
.fm-foot__grid ul { list-style: none; margin: 0; padding: 0; }
.fm-foot__grid li + li { margin-top: 8px; }
.fm-foot__grid a { font-size: 13px; color: #444; text-decoration: none; }
.fm-foot__grid a:hover { color: var(--fm-red); }
.fm-foot__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fm-gray-900) !important;
  margin-bottom: 14px;
}
.fm-foot__phone {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fm-gray-900) !important;
  text-decoration: none;
}
.fm-foot__hours {
  margin: 0 0 10px;
  font-size: 13px;
  color: #555;
  line-height: 1.45;
}
.fm-foot__hours span { font-size: 11px; color: #888; }
.fm-foot__mail {
  margin: 0;
  font-size: 13px;
  color: #555;
}
.fm-foot__mail a {
  color: inherit;
  text-decoration: none;
}
.fm-foot__mail a:hover { color: var(--fm-red); }
.fm-foot__social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.fm-foot__social a {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.fm-foot__social img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}
.fm-foot__trust {
  padding: 28px 0 8px;
  border-top: 1px solid rgba(0,0,0,.08);
  background: transparent;
}
.fm-foot__trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 28px 64px;
}
.fm-foot__trust-block {
  flex: 1 1 280px;
  max-width: 520px;
  text-align: center;
}
.fm-foot__trust h4 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fm-gray-600);
  text-transform: none;
  letter-spacing: 0;
}
.fm-foot__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 0;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.fm-foot__logos img {
  height: 32px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
  filter: none;
  opacity: 1;
}
@media (max-width: 900px) {
  .fm-foot__logos,
  .fm-foot__logos--pay {
    flex-wrap: wrap !important;
    justify-content: center !important;
    overflow: visible !important;
    max-width: 100% !important;
    row-gap: 12px;
    column-gap: 12px;
  }
  .fm-foot__logos img,
  .fm-foot__logos--pay img {
    flex: 0 0 auto !important;
    height: 28px !important;
    max-width: 68px !important;
  }
  .fm-foot__trust,
  .fm-foot__trust-block--pay {
    overflow: hidden;
    max-width: 100%;
  }
}
.fm-foot__disclaimer {
  padding: 8px 0 20px;
  border-top: 1px solid rgba(0,0,0,.06);
}
.fm-foot__disclaimer p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  color: #777;
  max-width: 1100px;
}
.fm-foot__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 16px 0 32px;
  border-top: 1px solid rgba(0,0,0,.08);
  font-size: 12px;
  color: var(--fm-gray-600);
  text-align: center;
}

@media (max-width: 1100px) {
  .fm-rail-wrap { grid-template-columns: 160px minmax(0, 1fr); gap: 12px; }
  .fm-rail-lead { min-height: 360px; }
}
@media (max-width: 900px) {
  /* Hero: na mobile desktopowy 1920/450 = ~91px — za niski vs Agata */
  .fm-hero__track {
    aspect-ratio: 5 / 4;
    min-height: 240px;
    max-height: min(70vh, 420px);
  }
  .fm-hero__slide picture,
  .fm-hero__slide img {
    display: block;
    width: 100%;
    height: 100%;
  }
  .fm-hero__slide picture { height: 100%; }
  /* Polecane promocje — Agata: 1 karta + peek, strzałki na foto */
  .fm-promo-rail {
    overflow: clip;
  }
  .fm-promo-3 {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .fm-promo-3::-webkit-scrollbar { display: none; }
  .fm-promo3-card {
    flex: 0 0 calc(100% - 28px);
    max-width: calc(100% - 28px);
    scroll-snap-align: start;
    border-radius: 14px;
    border-color: #e5e5e5;
  }
  .fm-promo3-card__media {
    aspect-ratio: 16 / 10;
  }
  .fm-promo3-card:hover .fm-promo3-card__media img { transform: none; }
  .fm-promo3-card__body {
    padding: 16px 16px 18px;
    gap: 10px;
  }
  .fm-promo3-card__body h3 {
    font-size: 17px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
  }
  .fm-promo3-card__text {
    font-size: 14px;
    color: var(--fm-gray-700, #444);
  }
  .fm-promo3-card__until {
    font-size: 13px !important;
  }
  .fm-promo3-card__link {
    margin-top: 6px;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    background: #1a1a1a;
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
  }
  .fm-promo3-card__link:hover,
  .fm-promo3-card__link:focus {
    background: var(--fm-red);
    color: #fff !important;
  }
  .fm-promo-rail__btn {
    display: grid;
    place-items: center;
    position: absolute;
    z-index: 3;
    top: 30%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: rgba(232, 232, 232, 0.92);
    color: var(--fm-gray-900);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--fm-shadow-sm);
    pointer-events: auto;
  }
  .fm-promo-rail__btn--prev { left: 8px; }
  .fm-promo-rail__btn--next { right: 8px; }
  .fm-promo-rail__btn[hidden] { display: none !important; }
  .fm-promo-rail__btn:disabled { opacity: .35; cursor: default; }
  .fm-promo-rail__btn:hover:not(:disabled) {
    background: #fff;
  }
  .fm-rail-wrap { grid-template-columns: 1fr; }
  .fm-rail-lead { min-height: 220px; max-height: 280px; }
  /* leftover removed — USP is flex slider now */
  .fm-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm-ugc { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .fm-ugc__handles { grid-template-columns: repeat(2, 1fr); }
  /* Bleed kółek tylko w obrębie kontenera — bez page overflow */
  .fm-circles-wrap {
    margin-right: 0;
    width: 100%;
    max-width: 100%;
  }
  .fm-circles-btn { display: none; }
  .fm-circle {
    flex: 0 0 88px;
    min-width: 88px;
    max-width: 88px;
  }
  .fm-circle__img { width: 100%; height: auto; aspect-ratio: 1; }
  .fm-circle__label { font-size: 11px; line-height: 1.25; }
  .fm-home-video { aspect-ratio: 16 / 9; min-height: 180px; max-height: 360px; }
  .fm-kolekcje__content { padding: 24px 18px; max-width: 100%; }
  .fm-kolekcje-tabs .fm-promo-tabs__item { min-width: 100px; padding: 12px 8px 10px; }
  .fm-section { padding: 18px 0; }
  .fm-section--tight { padding-top: 8px; padding-bottom: 4px; }
  .fm-section--muted { padding: 18px 0 12px; }
  .fm-section--usp { padding-block: 16px; }
  .fm-section__head { margin-bottom: 12px; }
  .fm-section__title { font-size: clamp(22px, 6vw, 28px); }
  .fm-usp-icon {
    flex: 0 0 calc((100% - 12px) / 1.35);
    min-width: 240px;
  }
  .fm-nowosci-lead + .fm-rail-wrap,
  .fm-section + .fm-section { margin-top: 0; }
  .fm-promo-tabs {
    justify-content: flex-start;
    margin-bottom: 16px;
    max-width: 100%;
  }
  .fm-promo-tabs__item {
    flex: 0 0 auto;
    min-width: 108px;
    max-width: none;
    padding: 10px 12px 8px;
  }
  /* Rail: ~1.6 karty w viewportcie (Agata-like peek) */
  .fm-rail .fm-pcard,
  .fm-rail > * {
    flex: 0 0 calc((100% - 12px) / 1.55);
    max-width: none;
  }
  .fm-rail { margin: 0 0 0 0; }
  .fm-rail-btn { width: 36px; height: 36px; }
}
@media (max-width: 900px) {
  #zainspiruj-sie {
    overflow-x: clip;
  }
  #zainspiruj-sie > .fm-container {
    max-width: 100%;
    min-width: 0;
  }
  .fm-inspire {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .fm-inspire__scene {
    min-height: 220px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }
  .fm-pin__tip {
    display: none !important;
  }
  .fm-pin {
    width: 32px;
    height: 32px;
  }
}
@media (max-width: 800px) {
  .fm-inspire { grid-template-columns: 1fr; gap: 16px; }
  .fm-newsletter { grid-template-columns: 1fr; }
  .fm-newsletter__media { min-height: 200px; order: -1; }
  .fm-usp-icon {
    flex: 0 0 calc((100% - 12px) / 1.25);
    min-width: 220px;
  }
  .fm-foot__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .fm-promo-tabs__item { min-width: 96px; padding: 10px 8px 8px; }
  .fm-promo-tabs__item strong { font-size: 13px; }
  .fm-promo-tabs__item span { font-size: 11px; }
  .fm-hero__nav button { width: 36px; height: 36px; font-size: 18px; }
  .fm-rail { margin: 0; }
  .fm-rail-wrap { gap: 0; }
}
@media (max-width: 520px) {
  .fm-hero__track {
    aspect-ratio: 1 / 1;
    min-height: 280px;
    max-height: min(78vh, 460px);
  }
  .fm-usp-icon {
    flex: 0 0 78%;
    min-width: 260px;
  }
  .fm-ugc { grid-template-columns: 1fr 1fr; }
  .fm-kolekcje { min-height: 300px; border-radius: 12px; }
  .fm-kolekcje__track,
  .fm-kolekcje__slide { min-height: 300px; }
  .fm-inspire__copy .fm-rail--compact .fm-pcard {
    flex: 0 0 calc((100% - 12px) / 1.4);
  }
  .fm-home-video { aspect-ratio: 4 / 3; max-height: 320px; }
  .fm-foot__grid { grid-template-columns: 1fr; gap: 24px; }
}
