/* Homepage —  layout × Family Meble 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-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-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 {
  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 { 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 — 4 pełne karty w pełnym railu (jak Agata Nowości) */
.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: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.fm-pcard__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 22px;
}
.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-pcard__installment {
  margin: 6px 0 0;
  min-height: 1.2em;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: #1d4ed8;
}
.fm-pcard__installment a,
.fm-pcard__installment span {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(29, 78, 216, 0.35);
}
.fm-pcard__media {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  display: block;
}
.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: 4px 0 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.35em * 2);
  line-height: 1.35;
}
.fm-pcard__desc {
  margin: 0;
  font-size: 12px;
  color: var(--fm-gray-600);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.35em * 2);
  line-height: 1.35;
}
.fm-pcard__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-bottom: 6px;
  overflow: visible;
  position: relative;
  z-index: 2;
}
.fm-pcard__price { margin: 0; font-size: 18px; font-weight: 700; }
.fm-pcard__price small { font-size: 12px; font-weight: 600; vertical-align: super; }
.fm-pcard__atc {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--fm-gray-200);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #1a1a1a;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
  position: relative;
  z-index: 3;
}
.fm-pcard__atc:hover {
  background: #d62828;
  border-color: #d62828;
  color: #fff;
}
.fm-pcard__atc svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  display: block;
  pointer-events: none;
}
.fm-pcard__atc:hover svg {
  stroke: #fff;
}

/* 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;
}
.fm-inspire__copy {
  min-width: 0;
  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: 12px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fm-inspire__copy .fm-pcard__desc {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fm-inspire__scene {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  min-height: 320px;
  background: #fff;
}
.fm-inspire__scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fm-pin {
  position: absolute;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--fm-red);
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  transform: translate(-50%, -50%);
  z-index: 2;
}
.fm-pin::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;
  pointer-events: none;
  transition: opacity .15s;
  text-align: left;
  line-height: 1.3;
}
.fm-pin__tip-img {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f5f5;
}
.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:hover .fm-pin__tip,
.fm-pin:focus-visible .fm-pin__tip { opacity: 1; }

.fm-usp-icons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 28px 8px;
  background: var(--fm-gray-100);
  border-radius: 20px;
}
.fm-usp-icon {
  padding: 20px 18px;
  border-radius: 14px;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.fm-usp-icon:hover {
  background: #fff;
  transform: translateY(-4px);
  box-shadow: var(--fm-shadow);
}
.fm-usp-icon svg {
  width: 32px; height: 32px;
  stroke: var(--fm-gray-900);
  fill: none;
  stroke-width: 1.5;
  margin-bottom: 12px;
  transition: stroke .2s, transform .2s;
}
.fm-usp-icon:hover svg {
  stroke: var(--fm-red);
  transform: scale(1.08);
}
.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; }

/* 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: nowrap;
  justify-content: center;
  align-items: center;
  gap: 12px 18px;
  margin-bottom: 0;
  overflow-x: auto;
}
.fm-foot__logos img {
  height: 36px;
  width: auto;
  max-width: 88px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
  filter: none;
  opacity: 1;
}
.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-promo-3 { grid-template-columns: 1fr; }
  .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-rail-wrap { grid-template-columns: 1fr; }
  .fm-rail-lead { min-height: 220px; max-height: 280px; }
  .fm-usp-icons { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .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: 22px 0; }
  .fm-section--tight { padding-top: 10px; padding-bottom: 6px; }
  .fm-section--muted { padding: 24px 0 16px; }
  .fm-section__head { margin-bottom: 14px; }
  .fm-section__title { font-size: clamp(22px, 6vw, 28px); }
  .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: 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-icons { grid-template-columns: 1fr 1fr; }
  .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-icons { grid-template-columns: 1fr; }
  .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; }
}
