/* Vilara Moments — style strony
   Kolory, typografia, siatka i komponenty. Widok telefonu zaczyna się poniżej 760 px szerokości okna. */

html { scroll-behavior: smooth; }
body { margin: 0; background: #F3EFE8; }
#kontakt { scroll-margin-top: 72px; }

.vm {
  --pad: clamp(20px, 8vw, 128px);
  isolation: isolate;
  position: relative;
  overflow-x: clip;
  background: #F3EFE8;
  color: #2B2926;
  font-family: 'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
.vm *, .vm *::before, .vm *::after { box-sizing: border-box; }
.vm img { display: block; max-width: 100%; }
.vm a { color: inherit; }
.vm :where(h1, h2, h3, p) { margin: 0; }
.vm :focus-visible { outline: 2px solid #2B2926; outline-offset: 3px; }
.vm .dk :focus-visible { outline-color: #F3EFE8; }

/* ---------- typografia ---------- */
.t-xl, .t-l, .t-m {
  font-family: 'Tenor Sans', 'Optima', 'Candara', sans-serif;
  font-weight: 400;
  text-wrap: balance;
}
.t-xl { font-size: clamp(38px, 5.5vw, 82px); line-height: 1; letter-spacing: -.015em; }
.t-l  { font-size: clamp(30px, 3.7vw, 56px); line-height: 1.08; letter-spacing: -.01em; }
.t-m  { font-size: clamp(21px, 1.9vw, 28px); line-height: 1.3; }
.p    { max-width: 30em; text-wrap: pretty; }
.sm   { font-size: 14px; line-height: 1.5; color: #5F5850; }
.dk .sm { color: #C9C1B5; }
.pull { margin-left: -3vw; }
.stack { display: flex; flex-direction: column; gap: clamp(16px, 1.8vw, 26px); align-items: flex-start; }

.lnk {
  display: inline-block;
  padding: 12px 0 4px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  font-weight: 400;
  transition: opacity .35s ease, padding-left .35s ease;
}
.lnk:hover { opacity: .6; padding-left: 6px; }

/* ---------- siatka i warstwy ---------- */
.g {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(12px, 1.7vw, 24px);
  padding-inline: var(--pad);
  align-items: start;
}
.i {
  position: relative;
  grid-column: var(--c, 1 / -1);
  grid-row: var(--r, auto);
  margin-top: var(--t, 0);
  z-index: var(--z, 1);
}
.bl { margin-left: calc(-1 * var(--pad)); }
.br { margin-right: calc(-1 * var(--pad)); }
.fb { width: 100%; }

.s { position: relative; padding-block: clamp(72px, 9vw, 132px); }
.s.flush { padding-top: 0; }
.sand { background: #E8E1D6; }
.dk { background: #2B2926; color: #F1ECE3; }
.under { z-index: -1; }

/* ---------- fotografia ---------- */
.ph {
  display: block;
  aspect-ratio: var(--ar, 4 / 5);
  overflow: hidden;
  background: #DCD4C7;
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--op, 50% 50%);
  transition: transform 1.4s cubic-bezier(.2, .6, .2, 1);
}
.ph:hover img { transform: scale(1.035); }
.par { will-change: transform; }

/* miejsce na zdjęcie, którego jeszcze nie ma */
.todo {
  display: flex;
  align-items: flex-end;
  padding: clamp(12px, 1.4vw, 20px);
  font-size: 13px;
  line-height: 1.4;
  color: #5F5850;
  background: #DCD4C7;
  text-decoration: none;
}
.dk .todo { background: #3B3834; color: #CFC8BC; }

/* delikatne wejście tekstu — tylko dla bloków poniżej pierwszego ekranu */
.rv { transition: opacity .9s ease, transform .9s ease; }
.rv-pre { opacity: 0; transform: translateY(16px); }

/* ---------- nagłówek strony ---------- */
.hd {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--pad);
  background: #F3EFE8;
}
.hd-logo { display: flex; align-items: center; min-height: 44px; }
.hd-logo img { height: 21px; width: auto; }
.nav { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav a, .mm-p a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .02em;
  padding: 12px 0;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1px no-repeat;
  transition: background-size .4s ease;
}
.nav a:hover, .nav a.on { background-size: 100% 1px; }
.mm { display: none; }
.mm summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .02em;
}
.mm summary::-webkit-details-marker { display: none; }
.mm-p {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px var(--pad) 44px;
  background: #F3EFE8;
  border-bottom: 1px solid #D5CCBE;
}
.mm-p a {
  font-family: 'Tenor Sans', 'Optima', sans-serif;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -.01em;
  padding: 8px 0;
  background: none;
}

/* ---------- hero: napis przechodzi przez krawędź zdjęcia ---------- */
.wm img { width: 100%; height: auto; }
.wm { mix-blend-mode: difference; pointer-events: none; }

/* ---------- pasy i sekwencje ---------- */
.strip {
  display: flex;
  align-items: flex-end;
  gap: clamp(12px, 1.7vw, 24px);
  padding-inline: var(--pad);
  overflow-x: auto;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip .ph { flex: 0 0 auto; width: var(--w, 30vw); min-width: var(--mw, 220px); }
.strip.top { align-items: flex-start; }

/* ---------- wideo ---------- */
.vm a.reel { position: relative; color: #F6F2EB; }
.play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: transform .5s ease, background .5s ease;
}
.reel:hover .play { transform: scale(1.12); background: rgba(43, 41, 38, .35); }
.vm a.reel.todo { color: #5F5850; }

/* ---------- kontakt ---------- */
.f { display: flex; flex-direction: column; gap: 22px; }
.f label { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: #5F5850; }
.f input, .f textarea, .f select {
  width: 100%;
  min-height: 46px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #B4AB9E;
  border-radius: 0;
  background: transparent;
  color: #2B2926;
  font: inherit;
  font-size: 17px;
}
.f textarea { min-height: 120px; resize: vertical; }
.btn {
  align-self: flex-start;
  min-height: 50px;
  padding: 12px 30px;
  border: 1px solid #2B2926;
  background: transparent;
  color: #2B2926;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
  transition: background .4s ease, color .4s ease;
}
.btn:hover { background: #2B2926; color: #F3EFE8; }
.contacts { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }

/* ---------- stopka ---------- */
.ft {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  padding: 36px var(--pad) 44px;
  font-size: 14px;
}
.ft img { height: 19px; width: auto; }
.ft-l { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; }
.ft a { text-decoration: none; padding: 12px 0; }
.ft a:hover { opacity: .6; }

/* ---------- strona główna: rolki, mini-galeria, focus, ikona ---------- */
.reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.7vw, 24px); }
.reels .ph { aspect-ratio: 9 / 16; }
.feed { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(6px, 1.2vw, 16px); }
.feed .ph { aspect-ratio: 1 / 1; }
.f label { transition: color .3s ease; }
.f input, .f textarea, .f select { transition: border-color .3s ease; }
.f input:focus-visible, .f textarea:focus-visible, .f select:focus-visible { outline: none; border-bottom-color: #2B2926; }
.f label:focus-within { color: #2B2926; }
.hero-ph { aspect-ratio: auto; height: min(38vw, calc(100vh - 180px)); min-height: 280px; }
.f .fl { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: #5F5850; transition: color .3s ease; }
.f .fl:focus-within { color: #2B2926; }
.dd { position: relative; }
.dd-b {
  width: 100%;
  min-height: 46px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  border-bottom: 1px solid #B4AB9E;
  border-radius: 0;
  background: transparent;
  color: #2B2926;
  font: inherit;
  font-size: 17px;
  text-align: left;
  cursor: pointer;
  transition: border-color .3s ease;
}
.dd-b:focus-visible { outline: none; border-bottom-color: #2B2926; }
.dd-l {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #FBF8F3;
  border: 1px solid #D9D1C4;
}
.dd-o {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  background: transparent;
  color: #2B2926;
  font: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  transition: background-color .25s ease;
}
.dd-o:hover, .dd-o:focus-visible { background: #EFE8DC; outline: none; }
.dd-o.on { font-weight: 500; }
.ft-by a { border-bottom: 1px solid currentColor; padding: 0 0 2px; }
.ic { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -12px; transition: opacity .3s ease; }
.ft .ic { padding: 0; }
.ic:hover { opacity: .55; }

.stack > .lnk { margin-top: 10px; }
.ul { position: relative; display: inline-block; white-space: nowrap; }
.ul svg { position: absolute; left: -6%; bottom: -.24em; width: 112%; height: .3em; overflow: visible; pointer-events: none; }
.evrow { display: flex; gap: clamp(12px, 1.7vw, 24px); }
.evrow .ph { flex: var(--f, 1) 1 0; min-width: 0; }
.tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.7vw, 24px); align-items: start; }
.col { display: flex; flex-direction: column; gap: clamp(12px, 1.7vw, 24px); }

/* ---------- powiększenie, slider, karuzele, hamburger ---------- */
.vm button.ph { width: 100%; padding: 0; border: 0; border-radius: 0; font: inherit; color: inherit; cursor: zoom-in; }
.lb {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(31, 29, 27, .94);
  cursor: zoom-out;
  animation: lbIn .35s ease;
}
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(243, 239, 232, .55);
  border-radius: 50%;
  background: transparent;
  color: #F3EFE8;
  cursor: pointer;
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.hero-ph { position: relative; }
.hero-ph img { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity 1.3s ease; }
.hero-ph img.on { opacity: 1; z-index: 2; }
.hero-ph img.prev { opacity: 1; z-index: 1; transition: none; }
.hero-ph img.hm { display: none; }
.car-a:disabled { opacity: .3; cursor: default; }
.car-a:disabled:hover { border-color: #B4AB9E; }
.hero-ph:hover img { transform: none; }
.ctr { text-align: center; }
.car-nav { display: none; }
.car-a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #B4AB9E;
  border-radius: 50%;
  background: transparent;
  color: #2B2926;
  cursor: pointer;
  transition: border-color .3s ease;
}
.car-a:hover { border-color: #2B2926; }
.hb { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; }
.hb-x { display: none; }
.mm[open] .hb-o { display: none; }
.mm[open] .hb-x { display: block; }
.mm-h { font-size: 13px; letter-spacing: .06em; color: #5F5850; margin-bottom: 10px; }
.mm-g { display: flex; flex-direction: column; gap: 2px; padding-left: 18px; margin-bottom: 26px; border-left: 1px solid #CFC6B8; }
.mm-s { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 40px; font-size: 15px; color: #5F5850; }
.mm-p .mm-s a { font-family: inherit; font-size: 15px; line-height: 1.5; letter-spacing: 0; padding: 6px 0; }
.mm[open] .mm-p { animation: mmIn .38s cubic-bezier(.2, .7, .2, 1) both; }
.mm[open] .mm-p > * { animation: mmItem .5s ease both; }
.mm[open] .mm-p > :nth-child(2) { animation-delay: .06s; }
.mm[open] .mm-p > :nth-child(3) { animation-delay: .12s; }
.mm[open] .mm-p > :nth-child(4) { animation-delay: .18s; }
@keyframes mmIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes mmItem { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mm[open] .mm-p, .mm[open] .mm-p > * { animation: none; } }
@keyframes reelFocus {
  0% { transform: scale(.86); opacity: .7; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(.86); opacity: .7; }
}

.wip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vw, 88px);
  min-height: min(72vh, 640px);
  padding: clamp(56px, 8vw, 110px) var(--pad);
}
.wip-t { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(14px, 1.6vw, 22px); max-width: 620px; }
.wip-t .t-l { text-transform: uppercase; letter-spacing: .02em; }
.wip-s { text-transform: uppercase; letter-spacing: .14em; font-size: 15px; font-weight: 400; color: #5F5850; }
.wip svg { width: clamp(150px, 20vw, 250px); height: auto; flex: 0 0 auto; }

/* ---------- telefon ---------- */
@media (max-width: 760px) {
  .vm { font-size: 16px; }
  .g { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .i {
    grid-column: var(--mc, 1 / -1);
    grid-row: var(--mr, auto);
    margin-top: var(--mt, 28px);
  }
  .ph { aspect-ratio: var(--mar, var(--ar, 4 / 5)); }
  .pull { margin-left: 0; }
  .col { flex-direction: row; }
  .hero-ph img.hd { display: none; }
  .hero-ph img.hm { display: block; }
  .ctr { text-align: left; }
  .one { white-space: nowrap; }
  .mm-p { min-height: min(calc(100vh - 72px), 600px); }
  .car {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--pad));
    padding-inline: 19vw;
    align-items: center;
  }
  .car::-webkit-scrollbar { display: none; }
  .car > * {
    flex: 0 0 62vw;
    margin-top: 0 !important;
    scroll-snap-align: center;
    animation: reelFocus linear both;
    animation-timeline: view(inline);
  }
  .car > :nth-child(2) { scroll-initial-target: nearest; }
  .car-nav { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
  .evrow { flex-wrap: wrap; }
  .evrow .ph:first-child { flex-basis: 100%; }
  .col > .ph { flex: 1 1 0; }
  .feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feed > :nth-child(n+7) { display: none; }
  .hero-ph { height: min(112vw, calc(100vh - 170px)); }
  .nav { display: none; }
  .mm { display: block; }
  .s { padding-block: 76px; }
  .s.flush { padding-top: 0; }
  .strip .ph { width: var(--mw, 220px); }
  .ft { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 6px 14px; }
  .ft-l { display: contents; }
  .ft .ic { margin: 0; }
  .ft span { flex-basis: 100%; }
}

/* ---------- wersja na serwer ---------- */
html { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100%; touch-action: pan-x pan-y; }
.vm { padding-top: 72px; }
.hd { position: fixed; top: 0; left: 0; right: 0; }
.lb { position: fixed; inset: 0; }
.lb[hidden], .dd-l[hidden] { display: none; }
@media (max-width: 760px) {
  .hero-ph { height: min(112vw, calc(100svh - 170px)); }
  .mm-p { min-height: min(calc(100svh - 72px), 600px); }
}
