/* ============================================================
   SMF Cards — hover reveal
   ============================================================ */

.smf-card.elementor-column > .elementor-widget-wrap {
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer;
  min-height: 560px;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
}

/* Zdjęcie — absolute, wypełnia całą kartę */
.smf-card .elementor-widget-image {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.smf-card .elementor-widget-image .elementor-widget-container {
  height: 100% !important;
  padding: 0 !important;
}

.smf-card .elementor-widget-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Overlay — przyklejony do dołu */
.smf-card-overlay {
  position: absolute !important;
  bottom: 0 !important;
  top: auto !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 2 !important;
  padding: 20px 24px !important;
  background: rgba(217, 217, 217, 0.77) !important;
  box-sizing: border-box !important;
  height: 74px;
  overflow: hidden !important;
  transition: height 0.45s ease !important;
}

/* Header: tytuł + strzałka w jednej linii */
.smf-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 34px !important;
}

.smf-card-arrow {
  flex-shrink: 0;
  transition: transform 0.35s ease;
  margin-bottom: 4px;
}

/* Opis domyślnie niewidoczny */
.smf-card-body {
  overflow: hidden !important;
  opacity: 0 !important;
  margin-top: 12px !important;
  transition: opacity 0.45s ease, max-height 0.45s ease !important;
  max-height: 0 !important;
}

/* Hover — height ustawia JS przy otwarciu, CSS animuje zamknięcie */
.smf-card:not(.is-open) .smf-card-overlay {
  height: 74px !important;
}

@media (max-width: 1024px) {
  .smf-card:not(.is-open) .smf-card-overlay {
    height: 61px !important;
  }
}

.smf-card.is-open .smf-card-body {
  opacity: 1 !important;
}

.smf-card.is-open .smf-card-arrow {
  transform: rotate(180deg) !important;
}

/* Mobile — overlay zawsze otwarty */
.elementor-element-c76c09a .elementor-container {
  gap: 40px !important;
}

/* Tablet — 1 karta w rzędzie, gap pionowy */
@media (max-width: 1024px) {
  .elementor-element-c76c09a .elementor-container {
    gap: 40px !important;
    flex-direction: column !important;
  }
  .elementor-element-c76c09a .smf-card.elementor-column {
    width: 100% !important;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .smf-card-overlay {
    height: 61px;
  }
}
@media (max-width: 767px) {
  .smf-card-overlay {
    height: auto !important;
  }
  .smf-card-body {
    opacity: 1 !important;
    max-height: none !important;
  }
}
/* ============================================================
   MQS — Marquee Static Section
   ============================================================ */

.mqs-wrap {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
}

.mqs-row {
  display: flex;
  white-space: nowrap;
  font-family: inherit;
  font-weight: 200;
  font-size: 64px;
  color: #d0d0d0;
  line-height: 1.25;
  will-change: transform, opacity, filter;
}

.mqs-row .mqs-item {
  flex-shrink: 0;
  padding-right: 60px;
}

.mqs-row .mqs-item.active {
  color: #202020;
}

@media (max-width: 1024px) {
  .mqs-row { font-size: 50px; }
  .mqs-row .mqs-item { padding-right: 48px; }
}

@media (max-width: 767px) {
  .mqs-row { font-size: 27px; }
  .mqs-row .mqs-item { padding-right: 28px; }
}