/* ============================================================
   DreamFix — sections (desktop-first) + footer
   ============================================================ */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--narrow { max-width: 840px; }

.section {
  position: relative;
  overflow: hidden;
  padding: 110px 0;
  background: var(--bg);
}
.section--about,
.section--process,
.section--faq { background: var(--bg-alt); }

/* rozjeżdża się OD ŚRODKA (transform-origin: center) — stąd scaleX + fade.
   Linia jest cienka i półprzezroczysta, więc bez opacity animacja była praktycznie
   niewidoczna; dochodzi też z opóźnieniem, bo klasę dodajemy dopiero, gdy seam
   jest już dobrze w kadrze (patrz js/home.js) — inaczej efekt kończył się,
   zanim wzrok tam dotarł. */
.seam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 3;
  background: linear-gradient(90deg, transparent 8%, rgba(61, 125, 246, .75), transparent 92%);
  transform: scaleX(0);
  transform-origin: center center;
  opacity: 0;
  transition: transform 1.2s var(--ease), opacity .6s ease;
}
.seam.is-on {
  transform: scaleX(1);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .seam { transition: none; }
}

.kicker {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.section__title {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
}

.accent {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 54px;
}

.section__headline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 620px;
}
.section__headline--center {
  align-items: center;
  text-align: center;
  margin: 0 auto 44px;
}

.section__intro {
  margin: 0;
  color: var(--text-mute);
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 380px;
}

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--hero-bg);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 28%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #14171C 0%, rgba(20, 23, 28, .82) 28%, rgba(20, 23, 28, .35) 55%, rgba(20, 23, 28, .12) 100%);
}
.hero__scrim--vertical {
  background: linear-gradient(180deg, rgba(20, 23, 28, .55) 0%, rgba(20, 23, 28, 0) 30%, rgba(20, 23, 28, 0) 65%, rgba(20, 23, 28, .6) 100%);
}

.hero__spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 140px var(--gutter) 90px;
}

.hero__content {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.hero__kicker {
  font-size: 14px;
  letter-spacing: .24em;
  animation: df-fade-up .8s var(--ease) both .1s;
}

.hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(44px, 6.4vw, 82px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -.03em;
  animation: df-fade-up .8s var(--ease) both .22s;
}

.accent--paint {
  font-size: 1.05em;
  color: var(--blue-light);
  background-image: linear-gradient(120deg, rgba(61, 125, 246, .45), rgba(61, 125, 246, .16));
  background-repeat: no-repeat;
  background-size: 0 88%;
  background-position: 0 78%;
  border-radius: 10px;
  padding: 0 .14em;
}
.accent--paint.is-painted { animation: df-paint-in 1.1s var(--ease) forwards; }

.hero__rule {
  width: 66px;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
  animation: df-fade-up .8s var(--ease) both .28s;
}

.hero__lead {
  margin: 0;
  max-width: 455px;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.75;
  font-weight: 500;
  animation: df-fade-up .8s var(--ease) both .34s;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 10px;
  animation: df-fade-up .8s var(--ease) both .46s;
}

/* Delikatne „oddychanie" poświaty pod głównym CTA w hero.
   Cień NIE jest animowany bezpośrednio (to kosztowne repainty) — poświata siedzi
   na ::after, a ruszają się tylko opacity i transform, czyli rzeczy liczone przez GPU.
   Pseudoelement ma przezroczyste tło, więc nie zasłania przycisku: widać sam cień,
   który i tak wychodzi poza jego obrys. */
.hero__actions .btn--primary {
  position: relative;
  isolation: isolate;
}

.hero__actions .btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 0 14px 40px rgba(61, 125, 246, .55);
  opacity: .35;
  animation: df-cta-glow 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes df-cta-glow {
  0%, 100% { opacity: .3;  transform: scale(.985); }
  50%      { opacity: .85; transform: scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__actions .btn--primary::after { animation: none; opacity: .4; }
}

.hero__phone {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #fff;
}
.hero__phone:hover { color: #fff; }

.hero__phone-icon {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .25s ease;
}
.hero__phone:hover .hero__phone-icon { border-color: var(--blue); }
.hero__phone-icon svg { width: 19px; height: 19px; }

.hero__phone-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}
.hero__phone-label {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .6);
}
.hero__phone-number {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .02em;
}

.hero__facts {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  background: rgba(14, 18, 24, .88);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  animation: df-fade-up .8s var(--ease) both .58s;
}

.fact {
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 1px solid rgba(255, 255, 255, .07);
}
.fact:first-child { border-left: none; }

.fact__head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.fact__head svg { width: 24px; height: 24px; flex: none; }

.fact__title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.fact__text {
  margin: 0;
  color: rgba(255, 255, 255, .55);
  font-size: 13.5px;
  line-height: 1.6;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
/* Na niższych ekranach (laptopy) hero jest pełne — H1 + lead + przyciski + fakty.
   Wskaźnik „Przewiń" nachodził wtedy na blok faktów i wyglądał na zepsuty,
   dlatego chowamy go tam, gdzie brakuje miejsca. */
@media (max-height: 900px) {
  .hero__scroll { display: none; }
}
.hero__scroll-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.hero__scroll-track {
  width: 2px;
  height: 46px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .15);
  overflow: hidden;
}
.hero__scroll-dot {
  width: 100%;
  height: 20px;
  border-radius: 2px;
  background: var(--blue);
  animation: df-scroll-dot 1.9s cubic-bezier(.45, 0, .2, 1) infinite;
}

@keyframes df-fade-up {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes df-paint-in {
  to { background-size: 100% 88%; }
}
@keyframes df-scroll-dot {
  0% { transform: translateY(-20px); }
  65%, 100% { transform: translateY(48px); }
}
@keyframes df-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ PASEK USŁUG ============ */

.strip {
  position: relative;
  z-index: 5;
  width: 104%;
  margin: -18px 0 -18px -2%;
  background: var(--blue);
  transform: rotate(-1.1deg);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .4);
  overflow: hidden;
}

.strip__track {
  display: flex;
  width: max-content;
  animation: df-marquee 30s linear infinite;
}

.strip__group {
  display: flex;
  align-items: center;
  gap: 44px;
  padding: 17px 22px;
  flex: none;
}

.strip__word {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bg);
  white-space: nowrap;
}

.strip__icon {
  width: 20px;
  height: 20px;
  flex: none;
  opacity: .7;
}

/* ============ USŁUGI ============ */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}

.service {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .25s ease, background .25s ease;
}
.service:hover {
  border-color: rgba(61, 125, 246, .45);
  background: var(--card-alt);
}

.service__media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--bg-alt);
}
.service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service__body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service__title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.015em;
}

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

.service__more {
  margin-top: 6px;
  /* pionowy padding daje 44px celu dotykowego bez zmiany wyglądu linku */
  padding: 11px 0;
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color .2s ease;
}
.service__more:hover { color: var(--blue-light); }
.service__more svg { width: 15px; height: 15px; flex: none; }

/* ============ O FIRMIE ============ */

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 56px;
  align-items: center;
  margin-bottom: 56px;
}

.about__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.about__lead {
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.7;
}

.about__expand p {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
}

.about__list {
  margin: 0;
  padding: 0 0 4px 20px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.9;
}

.stats {
  display: flex;
  gap: 44px;
  align-items: center;
  padding: 6px 0;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat__value {
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--blue);
  line-height: 1;
}
.stat__label {
  color: var(--text-mute);
  font-size: 14px;
  font-weight: 600;
}
.stat__divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, .12);
}

.about__toggle-row { display: flex; }

.about__media { position: relative; }

.about__photo {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .14);
}

.about__badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  background: rgba(14, 18, 24, .94);
  border-radius: 18px;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.about__badge-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.about__badge-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.value {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .3s ease, background .3s ease;
}
.value:hover {
  border-color: rgba(61, 125, 246, .4);
  background: var(--card-alt);
}
.value__num {
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: .12em;
}
.value__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.value__text {
  margin: 0;
  color: var(--text-mute);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ============ REALIZACJE ============ */

.section--works { padding-left: 0; padding-right: 0; }

.works__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 54px;
}

.works {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.works__row { overflow: hidden; }

.works__track {
  display: flex;
  width: max-content;
  animation: df-marquee var(--speed, 84s) linear infinite;
}
.works__track--reverse { animation-direction: reverse; }

.work {
  flex: none;
  height: 200px;
  margin-right: 20px;
  padding: 0;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: var(--card-alt);
  transition: box-shadow .45s ease;
}
.work:hover { box-shadow: 0 18px 44px rgba(0, 0, 0, .55); }
.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.works__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(140px, 10vw);
  pointer-events: none;
  z-index: 2;
}
.works__fade--left {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.works__fade--right {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

/* ============ JAK PRACUJEMY ============ */

.process {
  list-style: none;
  position: relative;
  margin: 60px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
}

/* Cała sekcja jest sterowana JEDNĄ wartością postępu przewijania:
   --p (0…1) na liście kroków i --t (0…1) na każdym kroku.
   Żadnych klas .is-on, żadnych keyframes — dlatego animacja płynnie cofa się
   przy przewijaniu w górę i nigdy nie „przeskakuje" ani nie miga. */

.process__line {
  position: absolute;
  left: 28px;
  right: calc(20% - 50px);
  top: 27px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  z-index: 0;   /* linia zawsze POD kółkami z numerami */
}

.process__line--bg {
  background: rgba(255, 255, 255, .08);
  transform: scaleX(1);
}

/* --t: 0 = nieaktywny, 1 = aktywny — z tej jednej liczby wynika cały wygląd kroku.
   UWAGA: wygaszenia NIE dajemy na .step. Przezroczystość rodzica dotyczy też tła
   kółka z numerem, więc niebieska linia prześwitywała PRZEZ cyfrę (na telefonie
   wyglądało to, jakby linia nachodziła na numer). Dlatego opacity siedzi na tekście,
   a kółko zostaje w pełni kryjące. */
.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(calc((1 - var(--t, 0)) * 14px));
  position: relative;
  z-index: 1;                     /* krok zawsze nad linią */
}

.step__title,
.step__text {
  opacity: calc(.35 + .65 * var(--t, 0));
}

.step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid;
  border-color: color-mix(in srgb, var(--line-strong), var(--blue) calc(var(--t, 0) * 100%));
  color: color-mix(in srgb, #6E7681, var(--blue) calc(var(--t, 0) * 100%));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  position: relative;
  z-index: 1;
  transform: scale(calc(.88 + .12 * var(--t, 0)));
  box-shadow: 0 0 0 calc(var(--t, 0) * 6px) rgba(61, 125, 246, calc(var(--t, 0) * .10));
}

.step__title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
  color: color-mix(in srgb, var(--text-mute), var(--text) calc(var(--t, 0) * 100%));
}
.step__text {
  margin: 0;
  color: var(--text-mute);
  font-size: 14px;
  line-height: 1.6;
}

/* przeglądarki bez color-mix: kroki po prostu stoją w stanie aktywnym */
@supports not (color: color-mix(in srgb, red, blue 50%)) {
  .step { opacity: 1; transform: none; }
  .step__num { border-color: var(--blue); color: var(--blue); transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .step { opacity: 1; transform: none; }
  .step__num { transform: none; box-shadow: none; }
  .process__line { transform: scaleX(1); }
}

/* ============ CTA ============ */

.section--cta {
  background: var(--bg-alt);
  padding: 130px 0;
}

.cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .22;
  transform: scale(1.18);
}

.cta__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(61, 125, 246, .14), transparent 60%);
}

.cta {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.cta__title {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
  text-wrap: balance;
}

.cta__text {
  margin: 0;
  max-width: 520px;
  color: rgba(255, 255, 255, .75);
  font-size: 18px;
  line-height: 1.6;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ============ OPINIE ============ */

.section--reviews { padding: 110px 0 120px; }

.reviews__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  max-width: 640px;
}
.reviews__head .section__intro { max-width: 520px; }
.reviews__head .btn { margin-top: 8px; }

.phones {
  display: flex;
  align-items: center;
  justify-content: safe center;
  overflow-x: auto;
  padding: 56px 48px 24px;
  scrollbar-width: none;
}
.phones::-webkit-scrollbar { display: none; }

.phone {
  flex: none;
  width: 250px;
  height: 512px;
  border-radius: 40px;
  background: #1B1E23;
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 9px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
  animation: df-float-a 7s ease-in-out infinite;
  font: inherit;
  cursor: zoom-in;
  transition: border-color .25s ease;
}
.phone:hover { border-color: rgba(61, 125, 246, .55); }
/* Gdy klon leci do galerii: ramka telefonu ZOSTAJE widoczna (inaczej mruga),
   znika tylko zrzut w środku — jego rolę przejmuje lecący klon.
   Karta zamarza, żeby nie unosiła się dalej i klon wylądował dokładnie na niej. */
.phone.is-source { animation-play-state: paused; }
.phone.is-source .phone__screen img { opacity: 0; }
.phone + .phone { margin-left: -34px; }
.phone--b { animation: df-float-b 8s ease-in-out infinite; }
.phone:nth-child(2) { margin-top: 44px; }
.phone:nth-child(4) { margin-top: 36px; }
.phone:nth-child(1) { z-index: 4; position: relative; }
.phone:nth-child(2) { z-index: 3; position: relative; }
.phone:nth-child(3) { z-index: 2; position: relative; }
.phone:nth-child(4) { z-index: 1; position: relative; }

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--bg-alt);
}
.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone__notch {
  position: absolute;
  top: 8px;
  left: 50%;
  margin-left: -42px;
  width: 84px;
  height: 22px;
  border-radius: 12px;
  background: #1B1E23;
}

@keyframes df-float-a {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(-2deg); }
}
@keyframes df-float-b {
  0%, 100% { transform: translateY(-6px) rotate(1.5deg); }
  50% { transform: translateY(6px) rotate(1.5deg); }
}

/* ============ FAQ ============ */

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

.faq__item {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  overflow: hidden;
}

.faq__heading { margin: 0; }

.faq__button {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.faq__chip {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  transition: transform .35s ease, background .35s ease, color .35s ease;
}
.faq__item.is-open .faq__chip {
  background: var(--blue);
  color: #fff;
  transform: rotate(45deg);
}

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.faq__item.is-open .faq__panel { grid-template-rows: 1fr; }

.faq__panel > p {
  overflow: hidden;
  margin: 0;
  padding: 0 26px;
  color: var(--text-mute);
  font-size: 15.5px;
  line-height: 1.7;
}
.faq__item.is-open .faq__panel > p { padding-bottom: 24px; }

/* ============ KONTAKT ============ */

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 44px;
  align-items: stretch;
  margin-top: 54px;
}

.contact__side {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contact__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.contact__card {
  background: var(--bg-alt);
  border-radius: 18px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text);
  transition: background .2s ease;
}
a.contact__card:hover { background: var(--card-alt); color: var(--text); }

.contact__card-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.contact__card-value {
  font-size: 17px;
  font-weight: 800;
}
.contact__card-value--email {
  overflow-wrap: anywhere;
}

.contact__map {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  flex: 1;
  min-height: 280px;
}
.contact__map {
  position: relative;
}

.contact__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  display: block;
  opacity: 0;
  transition: opacity .5s var(--ease);
}
/* mapa pokazuje się dopiero, gdy naprawdę się wczytała — inaczej zostaje plansza pod spodem */
.contact__map.is-loaded iframe { opacity: 1; }

/* plansza zastępcza: widoczna do czasu wczytania mapy i gdy mapa nie zadziała */
.map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 24px;
  background:
    linear-gradient(rgba(61, 125, 246, .05), rgba(61, 125, 246, .05)),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(255, 255, 255, .045) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, rgba(255, 255, 255, .045) 27px 28px),
    var(--bg-alt);
}

.map-fallback__pin {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(61, 125, 246, .16);
  border: 1px solid rgba(61, 125, 246, .4);
  color: var(--blue);
  margin-bottom: 6px;
}
.map-fallback__pin svg { width: 22px; height: 22px; }

.map-fallback__title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.map-fallback__addr {
  color: var(--text-mute);
  font-size: 14px;
}
.map-fallback__link {
  margin-top: 4px;
  display: flex;
  align-items: center;
  min-height: 44px;   /* cel dotykowy */
  font-size: 13.5px;
  font-weight: 700;
}

.contact__form-wrap {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.form__title {
  margin: 0 0 20px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field { display: flex; min-width: 0; }

.form input,
.form select,
.form textarea {
  width: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  padding: 15px 18px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.form textarea { resize: vertical; }
.form select { appearance: none; }
.form option { color: var(--text); background: var(--bg-alt); }

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(61, 125, 246, .16);
  background: rgba(61, 125, 246, .07);
}
.form input:user-invalid,
.form textarea:user-invalid {
  border-color: #E2564D;
}

.form__note {
  margin: 0;
  color: rgba(255, 255, 255, .45);
  font-size: 12.5px;
  line-height: 1.6;
}
.form__note.is-error { color: #F09A94; }

.form-success {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  padding: 24px 0;
}
.form-success__mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(61, 125, 246, .18);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
}
.form-success__title {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.form-success__text {
  margin: 0;
  color: rgba(255, 255, 255, .7);
  font-size: 15.5px;
  line-height: 1.7;
}
.form-success__text a { font-weight: 700; }

/* ============ STOPKA ============ */

.footer {
  background: var(--footer-bg);
  padding: 70px 0 36px;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 44px;
  margin-bottom: 48px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 320px;
}
.footer__brand img { width: 230px; height: auto; }

.footer__about {
  margin: 0;
  color: rgba(255, 255, 255, .55);
  font-size: 14.5px;
  line-height: 1.7;
}

.footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col a,
.footer__addr {
  color: rgba(255, 255, 255, .6);
  font-size: 14.5px;
  font-weight: 600;
}
/* linki w stopce miały 22px wysokości — za mało jak na cel dotykowy (min. 44px) */
.footer__col a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.footer__col { gap: 0; }
.footer__col-title { margin-bottom: 6px; }
.footer__col a:hover { color: var(--blue); }

/* ikony zamiast tekstowych linków do social mediów */
.socials {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.social {
  width: 44px;
  height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: rgba(255, 255, 255, .7);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.social:hover {
  color: #fff;
  border-color: rgba(61, 125, 246, .6);
  background: rgba(61, 125, 246, .16);
}
.social svg { width: 20px; height: 20px; }

.footer__col-title {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.footer__wordmark {
  overflow: hidden;
  margin-bottom: -6px;
}
.footer__wordmark span {
  display: block;
  font-size: clamp(64px, 11.5vw, 164px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .82;
  color: rgba(255, 255, 255, .05);
  white-space: nowrap;
  user-select: none;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 48px;
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, .4);
  font-size: 13px;
  font-weight: 600;
}
.footer__bottom span:first-child {
  letter-spacing: .08em;
  text-transform: uppercase;
}
