/* =========================================================
   Duży Apartament – slider wideo i efekty (wtyczka WordPress)
   Wszystkie klasy z przedrostkiem da- – nie kolidują z motywem i Elementorem.
   ========================================================= */

/* Fonty zastępcze dopasowane szerokością (mniej skakania układu przy doczytaniu fontów) */
@font-face { font-family: "Outfit Fallback"; src: local("Arial"), local("ArialMT"), local("Roboto"), local("Helvetica"); font-weight: 100 549; size-adjust: 98.8%; }
@font-face { font-family: "Outfit Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Roboto-Bold"), local("Helvetica Bold"); font-weight: 550 900; size-adjust: 94.1%; }
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia Italic"), local("Georgia-Italic"), local("Times New Roman Italic"); font-style: italic; font-weight: 100 900; size-adjust: 80.6%; }

.da-hero, .da-marquee, .da-statement {
  --da-sea-950: #0a1e25; --da-sea-900: #0f2a33; --da-sea-700: #1f4a56;
  --da-sand-50: #fbf8f2; --da-sand-300: #e4d6bf;
  --da-sun: #f3b358; --da-sun-light: #f8cc8c; --da-sun-600: #e39a35;
  --da-ink: #1b2a30; --da-white: #fff;
  --da-display: "Outfit", "Outfit Fallback", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --da-accent: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;
  --da-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --da-gutter: clamp(16px, 4vw, 40px);
  box-sizing: border-box;
}
.da-hero *, .da-hero *::before, .da-hero *::after,
.da-marquee *, .da-statement *, .da-statement *::before { box-sizing: border-box; }
.da-container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--da-gutter); }

/* =========================================================
   HERO – wideo slider
   ========================================================= */
.da-hero {
  --da-header-h: 96px;            /* wysokość nagłówka Elementora nad hero – można nadpisać w Elementorze */
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  color: var(--da-white);
  font-family: var(--da-body); font-size: 17px; line-height: 1.6;
  background: var(--da-sea-950) var(--da-poster) center / cover no-repeat;
  overflow: hidden; isolation: isolate;
}
@media (max-aspect-ratio: 1/1) { .da-hero { background-image: var(--da-poster-pion); } }
.da-hero p { margin: 0; }

.da-hero__stage { position: absolute; inset: 0; z-index: -2; }
.da-hero { touch-action: pan-y; }   /* pionowe przewijanie strony zostaje, poziomy ruch palcem zmienia scenę */
.da-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; z-index: 0; transition: opacity .9s ease; }
.da-hero__video.is-active { opacity: 1; z-index: 2; }
.da-hero__video.is-prev { opacity: 1; z-index: 1; transition: none; }
@media (prefers-reduced-motion: reduce) { .da-hero__video { transition-duration: .2s; } }

.da-hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,24,30,.9) 0%, rgba(8,24,30,.8) 45%, rgba(8,24,30,.62) 66%, rgba(8,24,30,.24) 85%, rgba(8,24,30,.08) 100%),
    linear-gradient(0deg, rgba(8,24,30,.82) 0%, rgba(8,24,30,0) 40%),
    linear-gradient(180deg, rgba(8,24,30,.55) 0%, rgba(8,24,30,0) 24%);
}

.da-hero__content { align-self: center; padding-top: calc(var(--da-header-h) + 20px); padding-bottom: 20px; }
.da-pill {
  display: inline-flex; align-items: center; margin: 0;
  padding: .42em 1.05em; border-radius: 999px;
  border: 1px solid rgba(248,204,140,.75); background: rgba(10,30,37,.58); backdrop-filter: blur(8px);
  color: var(--da-sun-light); font: 700 .8rem/1.3 var(--da-body); letter-spacing: .03em;
}
.da-hero__hook {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 2.06em; margin: 18px 0 16px;
  font-family: var(--da-display); font-weight: 600;
  font-size: clamp(2.5rem, min(7.2vw, 11.4vh), 6.2rem);
  line-height: 1.03; letter-spacing: -.028em; color: var(--da-white);
  text-shadow: 0 2px 34px rgba(8,24,30,.45);
  transition: opacity .25s ease;
}
.da-hero__hook.is-out { opacity: 0; }
.da-hero__lead { min-height: 3.2em; }                       /* dwa wiersze – układ nie skacze przy zmianie zdania */
.da-hero__lead [data-lead-el] { display: block; transition: opacity .25s ease; }
.da-hero__lead [data-lead-el].is-out { opacity: 0; }
.da-hook__main, .da-hook__accent { display: block; }
.da-hook__accent { font-family: var(--da-accent); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--da-sun-light); }
.da-hw { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .12em .06em .14em 0; margin: -.12em -.06em -.14em 0; }
.da-hw__i { display: inline-block; }
.da-fx .da-hero__hook.is-in .da-hw__i { animation: daHookIn .85s cubic-bezier(.2,.75,.2,1) both; animation-delay: calc(var(--d, 0) * 80ms); }
@keyframes daHookIn { from { transform: translateY(112%); } to { transform: none; } }

.da-hero__lead { max-width: 35rem; font-size: clamp(1.05rem, 1.45vw, 1.2rem); line-height: 1.6; color: rgba(255,255,255,.92); text-shadow: 0 1px 18px rgba(8,24,30,.5); }

.da-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 54px; padding: 0 1.7em; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 1rem/1 var(--da-body); letter-spacing: .01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.da-btn:hover { transform: translateY(-2px); }
.da-btn:focus-visible { outline: 3px solid var(--da-sun); outline-offset: 3px; }
.da-btn--sun { background: var(--da-sun); color: var(--da-sea-950); box-shadow: 0 10px 26px rgba(243,179,88,.28); }
.da-btn--sun:hover { background: #f7c172; color: var(--da-sea-950); }
.da-btn--ghost { color: var(--da-white); border-color: rgba(255,255,255,.6); background: rgba(10,30,37,.2); backdrop-filter: blur(6px); }
.da-btn--ghost:hover { color: var(--da-white); background: rgba(255,255,255,.14); border-color: #fff; }
.da-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* pasek zapytania (komputery) */
.da-inquiry, .da-inquiry__alt { display: none; }
@media (min-width: 1081px) and (min-height: 680px) {
  .da-hero__ctas { display: none; }
  .da-inquiry {
    display: grid; grid-template-columns: 1fr 1fr 96px 88px auto; align-items: stretch;
    width: min(100%, 860px); margin-top: 30px; padding: 8px;
    background: rgba(251,248,242,.97); color: var(--da-ink);
    border-radius: 24px; box-shadow: 0 26px 60px rgba(0,0,0,.3);
  }
  .da-inquiry label { display: block; margin: 0; padding: 9px 18px 7px; border-right: 1px solid var(--da-sand-300); cursor: pointer; }
  .da-inquiry label > span { display: block; font: 700 .8rem/1.3 var(--da-body); letter-spacing: .05em; text-transform: uppercase; color: #4d5d63; margin-bottom: 2px; }
  .da-inquiry input { width: 100%; border: 0 !important; background: transparent !important; padding: 0 !important; min-height: 30px; font: 700 1.02rem/1.3 var(--da-body); color: var(--da-ink); border-radius: 6px; box-shadow: none; }
  .da-inquiry input:focus { outline: none; box-shadow: 0 0 0 3px rgba(61,116,130,.25); }
  .da-inquiry .da-btn { min-height: 62px; border-radius: 18px; margin-left: 8px; box-shadow: none; }
  .da-inquiry__alt { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; margin-top: 14px; color: var(--da-white); font-weight: 700; text-decoration: none; }
  .da-inquiry__alt::after { content: "→"; }
  .da-inquiry__alt:hover { color: var(--da-sun); }
}

.da-hero__bottom { padding-bottom: 40px; }
.da-player { display: flex; align-items: center; gap: 16px; max-width: 620px; }
.da-play { flex: none; width: 46px; height: 46px; padding: 0; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.55); background: rgba(10,30,37,.35); color: var(--da-white); cursor: pointer; }
.da-play:hover { border-color: #fff; background: rgba(10,30,37,.5); }
.da-play:focus-visible { outline: 3px solid var(--da-sun); outline-offset: 2px; }
.da-play svg { width: 18px; height: 18px; fill: currentColor; }
.da-play .da-i-play { display: none; }
.da-play[aria-pressed="true"] .da-i-play { display: block; }
.da-play[aria-pressed="true"] .da-i-pause { display: none; }
.da-segments { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.da-seg { appearance: none; border: 0; background: none; padding: 21px 0; margin: 0; cursor: pointer; min-height: 0; }
.da-seg:hover, .da-seg:focus { background: none; }
.da-seg__bar { display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,.32); overflow: hidden; transition: height .2s ease, background-color .2s ease; }
.da-seg:hover .da-seg__bar { height: 5px; background: rgba(255,255,255,.5); }
.da-seg__fill { display: block; height: 100%; background: var(--da-sun); transform: scaleX(0); transform-origin: left center; }
.da-seg:focus-visible { outline: 2px solid var(--da-sun); outline-offset: 2px; border-radius: 4px; }
.da-count { flex: none; font-size: .82rem; font-weight: 700; letter-spacing: .1em; color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; }

/* wejście tekstu i głębia */
.da-fx .da-hero__content > * { animation: daRise 1s cubic-bezier(.2,.7,.2,1) both; }
.da-fx .da-hero__content > :nth-child(2) { animation: none; }
.da-fx .da-hero__content > :nth-child(3) { animation-delay: .35s; }
.da-fx .da-hero__content > :nth-child(n+4) { animation-delay: .5s; }
@keyframes daRise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: none; } }
.da-fx .da-hero__stage, .da-fx .da-hero__content { will-change: transform; }

@media (max-width: 820px) {
  .da-hero { --da-header-h: 80px; font-size: 16.5px; }
  .da-hero__content { align-self: center; padding-top: calc(var(--da-header-h) + 20px); padding-bottom: 18px; }   /* treść na środku – bez pustej przestrzeni pod nagłówkiem */
  .da-hero__hook { min-height: 3.09em; margin: 16px 0 14px; font-size: clamp(2.45rem, 9.6vw, 4.4rem); }
  .da-hero__shade { background: linear-gradient(0deg, rgba(8,24,30,.93) 0%, rgba(8,24,30,.8) 45%, rgba(8,24,30,.68) 70%, rgba(8,24,30,.42) 86%, rgba(8,24,30,.5) 100%); }
  .da-hero__ctas { margin-top: 22px; }
  .da-hero__ctas .da-btn { flex: 1 1 auto; }
  .da-hero__bottom { padding-bottom: 24px; }
  .da-player { max-width: none; gap: 12px; }
}
@media (min-width: 600px) and (max-width: 820px) {
  .da-hero__hook { min-height: 2.06em; }
  .da-hero__ctas .da-btn { flex: 0 0 auto; }
}
@media (max-width: 480px) { .da-count { display: none; } .da-segments { gap: 5px; } }
@media (max-width: 380px) { .da-hero__ctas .da-btn { width: 100%; } .da-hero__hook { font-size: 2.3rem; } }
@media (max-height: 520px) and (orientation: landscape) {
  .da-hero__content { align-self: center; padding-top: calc(var(--da-header-h) - 10px); padding-bottom: 6px; }
  .da-hero__hook { font-size: clamp(1.8rem, 9.4vh, 2.6rem); min-height: 2.06em; margin: 8px 0 10px; }
  .da-hero__lead { display: none; }
  .da-hero__ctas { margin-top: 0; flex-wrap: nowrap; }
  .da-hero__ctas .da-btn { flex: 0 0 auto; min-height: 46px; }
  .da-hero__shade { background: linear-gradient(90deg, rgba(8,24,30,.9) 0%, rgba(8,24,30,.78) 50%, rgba(8,24,30,.4) 80%, rgba(8,24,30,.15) 100%), linear-gradient(0deg, rgba(8,24,30,.7) 0%, rgba(8,24,30,0) 40%); }
  .da-hero__bottom { padding-bottom: 8px; }
  .da-player { max-width: 420px; }
}

/* =========================================================
   PŁYNĄCY PASEK  [duzy_pasek]
   ========================================================= */
.da-marquee { overflow: hidden; background: var(--da-sand-50); border-bottom: 1px solid var(--da-sand-300); padding: 22px 0; }
.da-marquee__track { display: flex; align-items: center; width: max-content; font-family: var(--da-accent); font-style: italic; font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1.2; color: var(--da-sea-700); white-space: nowrap; }
.da-marquee__track > * { margin-right: 28px; }
.da-marquee__track i { font-style: normal; font-size: .6em; color: var(--da-sun-600); }
.da-fx .da-marquee__track { animation: daMarquee 42s linear infinite; }
.da-marquee:hover .da-marquee__track { animation-play-state: paused; }
@keyframes daMarquee { to { transform: translateX(-50%); } }
@media (max-width: 820px) { .da-marquee { padding: 16px 0; } }

/* =========================================================
   HASŁO Z PODŚWIETLANYMI SŁOWAMI  [duzy_haslo]
   ========================================================= */
.da-statement { position: relative; overflow: hidden; isolation: isolate; color: var(--da-white); background: var(--da-sea-950); padding: clamp(96px, 15vw, 210px) 0; }
.da-statement__bg { position: absolute; left: 0; top: -20%; z-index: -2; width: 100%; height: 140%; max-width: none; object-fit: cover; }
.da-statement__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,24,30,.8) 0%, rgba(8,24,30,.66) 50%, rgba(8,24,30,.82) 100%); }
.da-statement .da-pill { margin-bottom: 1.15rem; }
.da-statement__text { margin: 0; font-family: var(--da-display); font-weight: 500; font-size: clamp(1.9rem, 4.6vw, 3.9rem); line-height: 1.14; letter-spacing: -.02em; max-width: 22ch; color: var(--da-white); }
.da-statement__text .da-w { opacity: .24; transition: opacity .4s ease; }
.da-statement__text .da-w.on { opacity: 1; }
