/* ============================================================
   VISSLA INVEST — to, co dochodzi do kitu: hero „coming soon",
   sidebar z formularzem, galeria z podglądem.
   ============================================================ */

/* ---------- nawigacja: logo + kontakt, także na telefonie ---------- */
.nav__cta { font-family: var(--font-body); cursor: pointer; }
.nav__logo img { height: 26px; }
.nav__logo { transition: opacity 0.4s ease; }
/* w hero logo stoi w kadrze, więc w nawigacji pojawia się, gdy tamto zniknie */
body:not(.hero-past) .nav__logo { opacity: 0; pointer-events: none; }
/* nad filmem przycisk ma lekki welon, bo w końcówce trafia na jasne liście */
.nav--hero:not(.scrolled) .nav__cta {
  background: rgba(10, 10, 10, 0.24);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
@media (max-width: 900px) {
  .nav__cta { display: inline-block; }
}

/* ---------- hero ---------- */
.scrub { height: 300vh; }
.scrub__shade {
  background:
    radial-gradient(80% 62% at 50% 50%, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0) 100%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.42) 0%, rgba(10, 10, 10, 0) 34%);
}

/* napis i logo dokładnie na środku ekranu */
.sw--intro {
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-sub {
  margin-top: clamp(12px, 1.8vh, 22px);
  font-size: clamp(20px, 2.4vw, 36px);
  font-weight: 500;
  line-height: 1.25;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}
.hero-logo {
  display: block;
  width: clamp(170px, 19vw, 300px);
  height: auto;
  margin: clamp(24px, 4vh, 44px) auto 0;
  filter: brightness(0) invert(1) drop-shadow(0 2px 18px rgba(0, 0, 0, 0.35));
}

/* ---------- galeria ---------- */
.work {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: zoom-in;
}
.work:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* wizualizacje są 16:9, więc pokazujemy je w całości, po dwie w rzędzie */
.works--two .work figure { aspect-ratio: 16 / 9; }
@media (min-width: 901px) {
  .works--two { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- kontakt na filmie: pełny ekran, żeby dom wszedł w całości ---------- */
.prefooter { min-height: 100vh; min-height: 100svh; }
.prefooter::after {
  background:
    linear-gradient(0deg, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0) 46%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0) 20%);
}
.prefooter .btn { cursor: pointer; font-family: var(--font-body); }

/* ---------- stopka: logo i mail ---------- */
.footer__solo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3.4vh, 30px);
  padding: clamp(44px, 7vh, 80px) var(--pad);
}
.footer__solo img { height: clamp(64px, 7vw, 92px); width: auto; }
.footer__mail {
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}

/* ---------- sidebar ---------- */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(520px, 100vw);
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  transform: translateX(100%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.drawer.is-open { transform: none; }
.drawer::backdrop {
  background: rgba(10, 10, 10, 0.5);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.drawer.is-open::backdrop { opacity: 1; }

.drawer__inner {
  position: relative;
  min-height: 100%;
  padding: clamp(28px, 5vh, 56px) clamp(24px, 3.6vw, 52px);
}
.drawer__close {
  position: absolute;
  top: clamp(16px, 3vh, 30px);
  right: clamp(14px, 2.4vw, 34px);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  transition: opacity 0.25s;
}
.drawer__close:hover { opacity: 0.55; }
.drawer__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.drawer__lead { margin-top: 14px; }

.form { margin-top: clamp(26px, 4.4vh, 44px); }
.field { display: block; margin-bottom: clamp(16px, 2.6vh, 24px); }
.field span {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 9px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  resize: vertical;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}
.check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  cursor: pointer;
}
.check input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--ink);
  cursor: pointer;
}
/* błędy pokazujemy dopiero po próbie wysłania */
.form.tried :is(input, textarea):invalid { border-color: #b3261e; }
.form.tried .check input:invalid { outline: 1px solid #b3261e; outline-offset: 1px; }

.form__send {
  width: 100%;
  margin-top: clamp(20px, 3.4vh, 30px);
  padding: 16px 26px;
  font-family: var(--font-body);
  cursor: pointer;
}
.form__send:hover { background: #333; color: #fff; border-color: #333; }
.form__send:disabled { opacity: 0.5; cursor: progress; }
.form__status { margin-top: 12px; min-height: 1.5em; font-size: 13px; color: #b3261e; }
.form__status a { text-decoration: underline; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__done { margin-top: clamp(26px, 4.4vh, 44px); }
.form__done .lead { margin: 10px 0 26px; }
.form__done .btn { cursor: pointer; font-family: var(--font-body); }

@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer::backdrop { transition-duration: 0.01ms; }
}

/* ---------- podgląd wizualizacji ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  padding: 0;
  border: 0;
  background: rgba(10, 10, 10, 0.94);
  color: #fff;
  overflow: hidden;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox__img {
  max-width: min(100vw - 136px, 1680px);
  max-height: calc(100dvh - 104px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox__btn {
  position: absolute;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.25s;
}
.lightbox__btn:hover { opacity: 0.55; }
.lightbox__btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 700px) {
  .lightbox__img { max-width: 100vw; }
  .lightbox__prev { top: auto; bottom: 2px; left: 6px; transform: none; }
  .lightbox__next { top: auto; bottom: 2px; right: 6px; transform: none; }
}
