/* ============================================================
   DreamFix — home page: overlays, lightbox, dock, FAB
   + mobile layer (implements DreamFixMobile design)
   ============================================================ */

/* ============ OVERLAY / MODAL (desktop) ============ */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(21, 24, 28, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overscroll-behavior: contain;
  animation: df-fade .3s ease;
}
.overlay[hidden] { display: none; }

.sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  max-width: 640px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .45);
  animation: df-fade-up .35s var(--ease) both;
}
.sheet--wide { max-width: 960px; }

/* drag grip — mobile bottom-sheet only */
.sheet__grip { display: none; }

.sheet__inner {
  padding: 36px 38px 38px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sheet__media {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--card-alt);
}
.sheet__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.sheet__headline {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sheet__headline .kicker { font-size: 12px; letter-spacing: .2em; }

.sheet__title {
  margin: 0;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.sheet__sub {
  margin: 0;
  color: var(--text-mute);
  font-size: 14.5px;
  line-height: 1.6;
}

.sheet__close {
  width: 40px;
  height: 40px;
  background: var(--bg-alt);
  border: none;
}

.sheet__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sheet__body p {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
}
.sheet__body ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.9;
}

.sheet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.sheet__actions .btn {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
}

/* ============ SZYBKI KONTAKT (POPUP) ============ */

.quick {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 38px 34px 32px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
  animation: df-fade-up .35s var(--ease) both;
}

.quick__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  background: var(--bg-alt);
  border: none;
}

.quick__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick__title {
  margin: 0;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.quick__text {
  margin: 0 0 8px;
  color: var(--text-mute);
  font-size: 15px;
  line-height: 1.6;
}

.quick__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick__form input[type="tel"] {
  width: 100%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  padding: 16px 18px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;             /* 16px = iOS nie przybliża widoku przy focusie */
  letter-spacing: .04em;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.quick__form input[type="tel"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(61, 125, 246, .16);
  background: rgba(61, 125, 246, .07);
}

/* stan błędu — wspólny dla popupu i formularza w sekcji Kontakt */
input.is-invalid {
  border-color: #E2564D !important;
  box-shadow: 0 0 0 4px rgba(226, 86, 77, .14) !important;
}

.quick .form-success { padding: 10px 0 0; }

@media (max-width: 520px) {
  .quick { padding: 34px 22px 26px; border-radius: 22px; }
  .quick__title { font-size: 23px; }
}

/* ============ PEŁNOEKRANOWA GALERIA OPINII ============ */

.rgal {
  position: fixed;
  inset: 0;
  z-index: 700;
  overscroll-behavior: contain;
}
.rgal[hidden] { display: none; }

.rgal__backdrop {
  position: absolute;
  inset: 0;
  background: #07090D;
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.rgal.is-open .rgal__backdrop { opacity: 1; }

/* górny pasek: licznik + zamknięcie */
.rgal__chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 2.5vw, 28px) clamp(16px, 3vw, 32px);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .4s var(--ease) .1s, transform .4s var(--ease) .1s;
}
.rgal.is-open .rgal__chrome { opacity: 1; transform: none; }

.rgal__counter {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .72);
  font-variant-numeric: tabular-nums;
}

/* scena — jedna opinia, maksimum ekranu, proporcje nienaruszone */
.rgal__stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(64px, 9vh, 96px) clamp(64px, 9vw, 132px);
  touch-action: pan-y;
}

/* na scenie jest TYLKO zrzut — bez obudowy telefonu.
   Dzięki temu w przejściu bierze udział jeden element, a ramka na stronie stoi nieruchomo. */
.rgal__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .65);
  user-select: none;
}

/* duże strzałki, zawsze widoczne */
.rgal__nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  margin-top: -34px;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity .4s var(--ease) .15s, background .2s ease, border-color .2s ease;
}
.rgal.is-open .rgal__nav { opacity: 1; }
.rgal__nav:hover {
  background: rgba(61, 125, 246, .45);
  border-color: rgba(61, 125, 246, .7);
}
.rgal__nav svg { width: 28px; height: 28px; }
.rgal__nav--prev { left: clamp(12px, 2.5vw, 34px); }
.rgal__nav--next { right: clamp(12px, 2.5vw, 34px); }

/* klon SAMEGO zrzutu lecący między kartą a sceną (shared element) */
.rgal-flier {
  position: fixed;
  z-index: 900;
  object-fit: cover;
  pointer-events: none;
  will-change: transform;
}

@media (max-width: 820px) {
  .rgal__stage { padding: 72px 16px 96px; }
  .rgal__nav {
    top: auto;
    bottom: 20px;
    margin-top: 0;
    width: 56px;
    height: 56px;
  }
  .rgal__nav--prev { left: calc(50% - 68px); }
  .rgal__nav--next { right: calc(50% - 68px); }
  .rgal__nav svg { width: 24px; height: 24px; }
  .rgal__counter { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .rgal__backdrop, .rgal__chrome, .rgal__nav { transition: none; }
}


/* ============ LIGHTBOX ============ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(7, 9, 13, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  overscroll-behavior: contain;
  animation: df-fade .35s ease;
}
.lightbox[hidden] { display: none; }

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
}

.lightbox__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 880px;
  width: 100%;
}

.lightbox__frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 58vh;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card-alt);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
}
.lightbox__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  animation: df-fade-up .5s var(--ease) both .1s;
}

.lightbox__text {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 600px;
}
.lightbox__text .kicker { font-size: 12px; letter-spacing: .2em; }

/* Wysokości poniżej są STAŁE (2 wiersze tytułu, 3 wiersze opisu, jeden rząd tagów).
   Podpisy mają różną długość, więc bez tego blok tekstu zmieniał wysokość przy każdym
   zdjęciu, a razem z nim skakały kadr i strzałki — kursor trafiał w tło i popup się zamykał. */
.lightbox__title {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.12;
  height: 2.24em;              /* 2 × line-height */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lightbox__desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.65;
  height: 4.95em;              /* 3 × line-height */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  min-height: 34px;            /* jeden rząd tagów — nawet gdy tagów jest mniej */
}
.tag {
  background: rgba(61, 125, 246, .14);
  border: 1px solid rgba(61, 125, 246, .35);
  color: var(--blue-light);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 7px 15px;
  border-radius: 99px;
}

.lightbox__nav {
  display: flex;
  gap: 10px;
  flex: none;
}
.lightbox__nav .icon-btn { width: 50px; height: 50px; }

/* ============ FAB (desktop) ============ */

.fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 450;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

.fab__btn {
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform .25s var(--ease);
}
.fab__btn--wa {
  background: var(--wa);
  box-shadow: 0 12px 30px rgba(37, 211, 102, .4);
}
.fab__btn--call {
  background: var(--blue);
  box-shadow: 0 12px 30px rgba(61, 125, 246, .45);
}
.fab__btn--wa svg { width: 29px; height: 29px; }
.fab__btn--call svg { width: 24px; height: 24px; }
.fab__btn:hover { color: #fff; }

/* ============ DOCK (mobile bottom nav) ============ */

.dock { display: none; }

/* ============================================================
   MOBILE — implements DreamFixMobile.dc.html
   ============================================================ */

@media (max-width: 900px) {

  :root {
    --gutter: 22px;
    --header-h: 62px;
  }

  body { padding-bottom: 0; }

  /* ---------- header ---------- */
  .nav,
  .header__cta { display: none; }
  .header__call { display: flex; }
  .header__inner { gap: 12px; }
  .brand__mark { height: 34px; }
  .brand__name { font-size: 15px; gap: 5px; }
  .brand__tagline { font-size: 7.5px; letter-spacing: .3em; }

  /* ---------- hero ---------- */
  .hero {
    min-height: calc(100svh - 70px);
    align-items: flex-end;
    flex-direction: column;
    justify-content: flex-end;
  }
  .hero__video { object-position: 64% top; }
  .hero__scrim {
    background: linear-gradient(180deg, rgba(20, 23, 28, .62) 0%, rgba(20, 23, 28, .18) 34%, rgba(20, 23, 28, .55) 62%, #0E1116 96%);
  }
  .hero__scrim--vertical,
  .hero__spot,
  .hero__rule,
  .hero__scroll { display: none; }

  /* bottom padding clears the fixed dock */
  .hero__inner {
    padding: calc(var(--header-h) + 24px) var(--gutter)
             calc(var(--dock-h) + 26px + env(safe-area-inset-bottom, 0px));
  }
  /* Blok faktów ma trafić POMIĘDZY .hero__lead a przyciski, a leży w innym kontenerze.
     display: contents rozpuszcza .hero__content — jego dzieci stają się dziećmi
     .hero__inner, więc można je poukładać razem z listą faktów przez `order`.
     Odstępy przenosimy na .hero__inner, bo gap z .hero__content wtedy nie działa. */
  .hero__inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .hero__content { display: contents; }

  .hero__kicker  { order: 1; }
  .hero__title   { order: 2; }
  .hero__lead    { order: 3; }
  .hero__facts   { order: 4; }
  .hero__actions { order: 5; }
  .hero__kicker { font-size: 11.5px; }
  .hero__title { font-size: clamp(38px, 11vw, 50px); line-height: 1.05; }
  .accent--paint { border-radius: 8px; padding: 0 .12em; }
  .hero__lead { font-size: 16px; line-height: 1.65; }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 6px;
  }
  .hero__actions .btn--primary {
    padding: 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
  }
  /* phone link becomes a full-width button */
  .hero__phone {
    justify-content: center;
    gap: 12px;
    padding: 17px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .2);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .06em;
  }
  .hero__phone-icon,
  .hero__phone-label { display: none; }
  .hero__phone-number { font-size: 14px; font-weight: 800; }

  /* na telefonie zostaje jeden fakt — „Warszawa i okolice" (czwarty) */
  .hero__facts {
    margin: 0;
    background: none;
    border: none;
    border-radius: 0;
    display: block;
  }
  .fact:nth-child(-n+3) { display: none; }
  .fact {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0 14px 13px 0;
    min-width: 0;
		border: 0;
  }
  .fact__head { gap: 10px; min-width: 0; }
  .fact__head svg { width: 18px; height: 18px; }
  .fact__title {
    font-size: 11.5px;
    letter-spacing: .04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .fact__text { display: none; }

  /* ---------- strip ---------- */
  .strip {
    width: 106%;
    margin: -14px 0 -14px -3%;
    transform: rotate(-1.4deg);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .4);
  }
  .strip__track { animation-duration: 26s; }
  .strip__group { gap: 30px; padding: 13px 16px; }
  .strip__word { font-size: 14px; letter-spacing: .18em; }
  .strip__icon { width: 15px; height: 15px; }

  /* ---------- sections ---------- */
  .section { padding: 76px 0; }
  .section--services { padding: 82px 0 76px; }
  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 26px;
  }
  .section__headline { gap: 12px; }
  .section__title { font-size: clamp(27px, 7.6vw, 34px); line-height: 1.1; }
  .kicker { font-size: 11.5px; }
  .section__intro { font-size: 15px; max-width: none; }

  /* ---------- usługi: list rows ---------- */
  .services {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .service {
    flex-direction: row;
    align-items: stretch;
    min-height: 104px;
    border-radius: 20px;
  }
  .service__media {
    flex: none;
    width: 118px;
    aspect-ratio: auto;
  }
  .service__body {
    flex: 1;
    /* right padding reserves the arrow's lane — the arrow overlays the whole row */
    padding: 16px 62px 16px 18px;
    justify-content: center;
    gap: 4px;
    min-width: 0;
  }
  .service__title { font-size: 16px; line-height: 1.2; }
  .service__text { font-size: 13px; }
  .service__more {
    position: absolute;
    inset: 0;
    margin: 0;
    align-self: auto;
    justify-content: flex-end;
    align-items: center;
    padding-right: 16px;
    font-size: 0;
    gap: 0;
  }
  .service { position: relative; }
  .service__more svg {
    width: 16px;
    height: 16px;
    padding: 8px;
    box-sizing: content-box;
    border-radius: 50%;
    background: rgba(61, 125, 246, .14);
    border: 1px solid rgba(61, 125, 246, .35);
  }

  /* ---------- o firmie ---------- */
  .about {
    display: flex;
    flex-direction: column;
    /* bez tego zostaje align-items:center z desktopu i zdjęcie kurczy się do wąskiego paska */
    align-items: stretch;
    gap: 26px;
    margin-bottom: 26px;
  }
  .about__media { width: 100%; }
  .about__photo { width: 100%; }
  .about__copy { gap: 12px; }
  .about__lead { font-size: 15px; }
  .about__expand,
  .about__toggle-row { display: none; }

  .stats {
    gap: 0;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 20px;
    padding: 22px 0;
    margin-top: 14px;
  }
  .stat {
    flex: 1;
    align-items: center;
    text-align: center;
    padding: 0 10px;
    gap: 4px;
  }
  .stat__value { font-size: 34px; }
  .stat__label { font-size: 12.5px; }
  .stat__divider { background: rgba(255, 255, 255, .1); }

  .about__media { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
  .about__photo {
    height: 210px;
    object-position: center 30%;
    border-radius: 0;
    box-shadow: none;
  }
  .about__badge { display: none; }

  /* values → horizontal snap rail */
  .values {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .values::-webkit-scrollbar { display: none; }
  .value {
    flex: none;
    width: 250px;
    scroll-snap-align: start;
    border-radius: 18px;
    padding: 20px;
    gap: 8px;
  }
  .value__num { font-size: 13px; }
  .value__title { font-size: 14.5px; }
  .value__text { font-size: 13px; }

  /* ---------- realizacje ---------- */
  .section--works { background: var(--bg-alt); }
  .works__head { padding-bottom: 34px; flex-direction: column; align-items: flex-start; }
  .works__hint { font-size: 14.5px; }
  .works { gap: 14px; }
  .works__track { animation-duration: 58s; }
  .works__track[data-mtrack="1"] { animation-duration: 66s; }
  .works__track[data-mtrack="2"] { animation-duration: 50s; }
  .work {
    height: 148px;
    margin-right: 14px;
    border-radius: 16px;
  }
  .works__fade { width: 36px; }
  .works__fade--left { background: linear-gradient(90deg, var(--bg-alt), transparent); }
  .works__fade--right { background: linear-gradient(270deg, var(--bg-alt), transparent); }

  /* ---------- proces: vertical timeline ---------- */
  .section--process { background: var(--bg); }
  .process {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 30px;
  }
  /* ta sama logika co na desktopie — tylko oś pionowa; nadal steruje tym --p */
  .process__line,
  .process__line--bg {
    left: 21px;
    right: auto;
    top: 24px;
    bottom: 54px;
    width: 2px;
    height: auto;
  }
  .process__line--bg { background: rgba(255, 255, 255, .08); transform: scaleY(1); }
  .process__line {
    background: var(--blue);
    transform: scaleY(var(--p, 0));
    transform-origin: top center;
  }

  .process { counter-reset: step; }

  .step {
    position: relative;
    counter-increment: step;
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 18px;
    row-gap: 4px;
    align-items: start;
    padding: 14px 0;
  }
  .step__num {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    border-width: 1.5px;
    /* kolor i skala nadal wynikają z --t, jak na desktopie */
    border-color: color-mix(in srgb, rgba(61, 125, 246, .22), var(--blue) calc(var(--t, 0) * 100%));
    color: color-mix(in srgb, #6E7681, var(--blue) calc(var(--t, 0) * 100%));
    font-size: 0; /* etykietę 01–05 daje licznik poniżej */
  }
  .step__num::before {
    content: counter(step, decimal-leading-zero);
    font-size: 14px;
    font-weight: 800;
  }
  .step__title { grid-column: 2; grid-row: 1; }
  .step__text { grid-column: 2; grid-row: 2; }
  /* ostatni krok „zapala się" na niebiesko — też proporcjonalnie do postępu */
  .step:last-of-type .step__num {
    background: color-mix(in srgb, var(--card), var(--blue) calc(var(--t, 0) * 100%));
    border-color: color-mix(in srgb, rgba(61, 125, 246, .22), var(--blue) calc(var(--t, 0) * 100%));
    color: color-mix(in srgb, #6E7681, #fff calc(var(--t, 0) * 100%));
    box-shadow: 0 8px 22px rgba(61, 125, 246, calc(var(--t, 0) * .4));
  }
  .step__title { font-size: 16px; letter-spacing: -.01em; margin-top: 4px; }
  .step__text { font-size: 13.5px; }

  /* ---------- CTA ---------- */
  .section--cta { padding: 86px 0; }
  .cta__bg { transform: none; opacity: .2; }
  .cta__glow { background: radial-gradient(ellipse at 50% 40%, rgba(61, 125, 246, .16), transparent 65%); }
  .cta { gap: 20px; }
  .cta__title { font-size: clamp(28px, 8vw, 36px); line-height: 1.1; }
  .cta__text { font-size: 15px; }
  .cta__actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .cta__actions .btn {
    width: 100%;
    border-radius: 14px;
    padding: 17px;
    font-size: 15px;
    font-weight: 800;
  }

  /* ---------- opinie ---------- */
  .section--reviews { padding: 76px 0; }
  .reviews__head { max-width: none; gap: 12px; }
  .reviews__head .btn {
    width: 100%;
    margin-top: 18px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    border-radius: 14px;
    padding: 16px;
    font-size: 14.5px;
    font-weight: 800;
    box-shadow: none;
  }
  .reviews__head .btn:hover { border-color: var(--blue); background: var(--card); }

  .phones {
    justify-content: flex-start;
    gap: 16px;
    padding: 34px var(--gutter) 10px;
    scroll-snap-type: x mandatory;
  }
  .phone,
  .phone--b {
    width: 236px;
    height: auto;
    margin: 0;
    scroll-snap-align: center;
    border-radius: 34px;
    padding: 8px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .5);
    animation: none;
  }
  .phone + .phone { margin-left: 0; }
  .phone:nth-child(2),
  .phone:nth-child(4) { margin-top: 0; }
  .phone__screen {
    aspect-ratio: 9 / 18.5;
    height: auto;
    border-radius: 27px;
  }
  .phone__notch {
    top: 5px;
    margin-left: -37px;
    width: 74px;
    height: 16px;
    border-radius: 99px;
  }

  /* ---------- faq ---------- */
  .faq__item { border-radius: 18px; }
  .faq__button {
    padding: 19px 20px;
    font-size: 15px;
    min-height: 58px;
    gap: 14px;
  }
  .faq__panel > p { padding: 0 20px; font-size: 14px; color: var(--text-soft); }
  .faq__item.is-open .faq__panel > p { padding-bottom: 19px; }

  /* ---------- kontakt ---------- */
  .section--contact { padding: 76px 0 90px; }
  .contact {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin-top: 26px;
  }
  .contact__side { gap: 26px; }
  .contact__cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .contact__card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    min-width: 0;
  }
  .contact__card-label {
    color: var(--blue);
    font-size: 11px;
  }
  .contact__card-value { font-size: 13px; line-height: 1.4; }
  .contact__card-value--email {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .contact__map,
  .contact__map iframe {
    height: 220px;
    min-height: 220px;
    border-radius: 20px;
  }

  .contact__form-wrap {
    background: var(--bg-alt);
    border-radius: 22px;
    padding: 26px 22px;
    gap: 16px;
    order: -1;
  }
  .form__title { font-size: 20px; margin-bottom: 16px; }
  .form { gap: 12px; }
  .form__row { grid-template-columns: 1fr; gap: 12px; }
  /* 16px keeps iOS from zooming the viewport on focus */
  .form input,
  .form select,
  .form textarea {
    font-size: 16px;
    padding: 16px 17px;
  }
  .btn--block { border-radius: 14px; padding: 18px; font-size: 16px; }

  /* ---------- stopka + dock ---------- */
  .footer {
    background: #080A0E;
    border-top: 1px solid rgba(255, 255, 255, .07);
    padding: 56px 0 calc(var(--dock-h) + 54px + env(safe-area-inset-bottom, 0px));
  }
  .footer__top { flex-direction: column; gap: 30px; margin-bottom: 30px; }
  .footer__brand img { width: 180px; }
  .footer__about { font-size: 13.5px; }
  .footer__cols { gap: 44px; }
  .footer__col a,
  .footer__addr { font-size: 13.5px; }
  .footer__col-title { font-size: 12px; }
  .footer__wordmark span { font-size: clamp(52px, 16vw, 84px); }
  .footer__bottom {
    flex-direction: column;
    gap: 6px;
    margin-top: 30px;
    padding-top: 20px;
    font-size: 12px;
  }

  .fab { display: none; }

  .dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 400;
    display: block;
    height: calc(110px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
  }
  .dock.is-hidden { display: none; }

  .dock__bubble {
    position: absolute;
    left: var(--dock-x, 12.5%);
    bottom: calc(42px + env(safe-area-inset-bottom, 0px));
    margin-left: -24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 8px 22px rgba(61, 125, 246, .45), 0 4px 12px rgba(0, 0, 0, .4);
    color: #fff;
    pointer-events: auto;
    transition: left .55s cubic-bezier(.3, 1.25, .35, 1);
  }
  .dock__bubble:hover { color: #fff; }

  .dock__bubble-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
  }
  .dock__bubble-icon.is-on { opacity: 1; }
  .dock__bubble-icon svg { width: 19px; height: 19px; }

  .dock__bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    display: flex;
    background: rgba(15, 19, 26, .98);
    border-top: 1px solid var(--line);
    pointer-events: auto;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 66' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 0 H540 C560 0 566 6 574 16 C582 26 586 31 600 31 C614 31 618 26 626 16 C634 6 640 0 660 0 H1200 V66 H0 Z'/%3E%3C/svg%3E");
    -webkit-mask-size: 300% 100%;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: var(--dock-mask-x, 68.75%) 0;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 66' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 0 H540 C560 0 566 6 574 16 C582 26 586 31 600 31 C614 31 618 26 626 16 C634 6 640 0 660 0 H1200 V66 H0 Z'/%3E%3C/svg%3E");
    mask-size: 300% 100%;
    mask-repeat: no-repeat;
    mask-position: var(--dock-mask-x, 68.75%) 0;
    transition: -webkit-mask-position .55s cubic-bezier(.3, 1.25, .35, 1), mask-position .55s cubic-bezier(.3, 1.25, .35, 1);
  }

  .dock__link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    padding-bottom: 9px;
    color: rgba(255, 255, 255, .6);
    transition: color .3s ease;
  }
  .dock__link.is-active { color: var(--blue); }

  .dock__icon {
    display: flex;
    transition: opacity .25s ease;
  }
  .dock__link.is-active .dock__icon { opacity: 0; }
  .dock__icon svg { width: 19px; height: 19px; }

  .dock__label {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .05em;
  }

  /* ---------- overlays become bottom sheets ---------- */
  .overlay {
    align-items: flex-end;
    padding: 0;
    background: rgba(7, 9, 13, .8);
  }
  .sheet,
  .sheet--wide {
    max-width: 520px;
    max-height: 88svh;
    border-radius: 26px 26px 0 0;
    border-bottom: none;
    animation: df-sheet-up .45s var(--ease);
  }
  .sheet__grip {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 3;
    justify-content: center;
    padding: 12px 0 18px;
    background: linear-gradient(180deg, var(--card) 60%, transparent);
  }
  .sheet__grip span {
    width: 44px;
    height: 5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .2);
  }
  .sheet__inner {
    padding: 0 var(--gutter) 30px;
    gap: 16px;
  }
  .sheet__title { font-size: 23px; }
  .sheet__body p { font-size: 14.5px; }
  .sheet__body ul { font-size: 14px; line-height: 2; }
  .sheet__actions {
    flex-direction: column;
    gap: 10px;
  }
  .sheet__actions .btn {
    width: 100%;
    border-radius: 14px;
    padding: 17px;
    font-size: 15px;
    font-weight: 800;
  }
  .rgal__sub { font-size: 13.5px; }
  .rgal__title { font-size: 24px; }

  @keyframes df-sheet-up {
    from { transform: translateY(100%); }
    to { transform: none; }
  }

  /* ---------- lightbox ---------- */
  .lightbox { padding: 20px; }
  .lightbox__close { top: 18px; right: 18px; }
  .lightbox__inner { gap: 18px; max-width: 480px; }
  .lightbox__frame {
    aspect-ratio: 4 / 3;
    max-height: 52svh;
    border-radius: 18px;
  }
  .lightbox__meta { flex-direction: column; align-items: stretch; gap: 12px; }
  .lightbox__title { font-size: 21px; }
  .lightbox__desc { font-size: 14px; }
  .lightbox__nav { gap: 10px; }
  .lightbox__nav .icon-btn {
    flex: 1;
    width: auto;
    height: 52px;
    border-radius: 14px;
  }
}

/* very small phones */
@media (max-width: 580px) {
	.hero__video { object-position: 79% top; }
	.hero__scrim {
		background: linear-gradient(180deg, rgb(20 23 28 / 69%) 0%, rgb(20 23 28 / 69%) 34%, rgb(20 23 28 / 82%) 62%, #0e1116fc 96%);
	}
}
@media (max-width: 380px) {
  .contact__cards { grid-template-columns: 1fr; }
  .footer__cols { gap: 28px; }
}
