/* Wiktor */
:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #202124;
  background: #fff;
  color-scheme: light;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100dvh; display: flex; flex-direction: column; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: #000; }
a:focus-visible { outline: 2px solid #2563eb; outline-offset: 5px; }
img { max-width: 100%; }
h1, h2, p, figure { margin: 0; }
/* Maciek */
.container { width: min(960px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; left: 20px; top: -80px; background: white; padding: 10px 16px; border: 1px solid #d4d4d8; z-index: 2; }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid #e8e8eb; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; text-decoration: none; }
.brand img { flex: 0 0 auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: #757575; font-size: 14px; text-decoration: none; padding-block: 26px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #171717; }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px #202124; }
.site-main { flex: 1; padding-block: 64px 72px; }
h1 { font-size: 42px; font-weight: 600; letter-spacing: -1.5px; line-height: 1.2; }
.intro { margin-top: 14px; color: #737373; font-size: 16px; line-height: 1.7; }
.page-links { max-width: 600px; margin-top: 48px; border-top: 1px solid #e8e8eb; }
.page-links > a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; border-bottom: 1px solid #e8e8eb; text-decoration: none; }
.page-links strong { display: block; font-size: 16px; font-weight: 500; }
.page-links > a > span > span { display: block; margin-top: 7px; font-size: 14px; color: #737373; }
.page-links > a > span:last-child { color: #909090; }
.page-links > a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.image-frame { height: 340px; display: flex; justify-content: center; align-items: center; overflow: hidden; border: 1px solid #e8e8eb; border-radius: 8px; background: #f8f8f9; }
.image-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.logo-frame img { width: 96px; height: 96px; }
figcaption { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 15px; font-size: 13px; }
figcaption strong { font-weight: 500; font-size: 15px; }
figcaption a { color: #737373; }
.simple-section { margin-top: 42px; padding-top: 28px; border-top: 1px solid #e8e8eb; }
h2 { font-size: 19px; font-weight: 550; letter-spacing: -.3px; }
.simple-section p { margin-top: 12px; color: #737373; font-size: 14px; line-height: 1.7; }
.link-list { margin: 16px 0 0; padding: 0; list-style: none; }
.link-list li + li { margin-top: 12px; }
.link-list a, .external-link { font-size: 14px; }
.simple-section .caption { margin-top: 20px; font-size: 12px; }
.email-link { display: inline-block; margin-top: 20px; font-size: 19px; overflow-wrap: anywhere; }
.map { display: block; width: 100%; height: 280px; margin-top: 20px; border: 1px solid #e8e8eb; border-radius: 8px; background: #f8f8f9; }
.external-link { display: inline-block; margin-top: 16px; }
.site-footer { border-top: 1px solid #e8e8eb; }
.footer-inner { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px 24px; min-height: 72px; padding-block: 20px; color: #8a8a8a; font-size: 12px; }
.footer-inner a { text-decoration: none; overflow-wrap: anywhere; }
.footer-inner a:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .container { width: calc(100% - 36px); }
  .header-inner { min-height: 68px; gap: 16px; }
  .brand { gap: 7px; font-size: 15px; }
  .brand img { width: 22px; height: 22px; }
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 12px; padding-block: 24px; }
  .site-main { padding-block: 42px 56px; }
  h1 { font-size: 34px; letter-spacing: -1px; }
  .intro { font-size: 15px; }
  .page-links { margin-top: 34px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 32px; }
  .image-frame { height: 360px; }
  .simple-section { margin-top: 34px; }
  .map { height: 250px; }
  .email-link { font-size: 17px; }
}

#app { display: contents; }
html[data-view="intro"], html[data-view="popup"] { height: 100%; overflow: hidden; }
body.intro-page, body.popup-page { display: block; width: 100%; height: 100%; min-height: 0; min-width: 0; overflow: hidden; }
body.intro-page { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #18181b; }
button { font: inherit; cursor: pointer; }
.page { min-height: 100%; display: grid; place-items: center; }

/* Paweł */
.open-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 208px;
  min-height: 68px;
  max-width: calc(100vw - 40px);
  padding: 20px 38px;
  border: 1px solid #c8cbd0;
  border-radius: 20px;
  background: linear-gradient(165deg, #fff 0%, #f4f4f5 38%, #dedfe2 100%);
  color: #292b31;
  box-shadow: inset 0 2px 1px #fff, inset 0 -3px 2px #0000000c,
    0 4px 6px #252b3610, 0 14px 30px #252b3610;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.35px;
  text-shadow: 0 1px #fff;
  transition: transform 250ms cubic-bezier(.2,.8,.2,1), box-shadow 250ms, border-color 250ms;
  -webkit-tap-highlight-color: transparent;
}
.open-button span { position: relative; z-index: 2; }
.open-button::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .45;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 2px, #242b3820 2px 3px, #ffffffb0 3px 4px),
    repeating-linear-gradient(92deg, transparent 0 3px, #ffffff80 3px 4px);
  background-size: 100% 4px, 7px 100%;
  mix-blend-mode: soft-light;
}
.open-button::after {
  content: "";
  position: absolute;
  inset: -60% -100%;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 42%, #ffffff05 45%, #ffffffc9 50%, #ffffff05 55%, transparent 58%);
  transform: translateX(-40%);
  animation: button-shine 5s ease-in-out infinite;
}
@keyframes button-shine {
  0%, 25% { transform: translateX(-40%); }
  65%, 100% { transform: translateX(40%); }
}
@media (hover: hover) {
  .open-button:hover {
    transform: translateY(-4px);
    border-color: #aeb3bc;
    box-shadow: inset 0 2px 1px #fff, inset 0 -3px 2px #0000000c,
      0 6px 8px #252b3610, 0 20px 36px #252b361c;
  }
}
.open-button:active {
  transform: translateY(2px) scale(.97);
  box-shadow: inset 0 2px 5px #252b3618, 0 2px 4px #252b3610;
}
.open-button:disabled { pointer-events: none; }
.open-button[aria-busy="true"] { transition: none; }
.open-button[aria-busy="true"]::after { animation-play-state: paused; }
button:focus-visible { outline: 3px solid #2563eb; outline-offset: 4px; }

/* Wiktor */
.photo-button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #fff;
}
.photo-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.photo-button:focus-visible { outline-offset: -4px; }
/* Paweł */
.is-entering .photo-button { cursor: default; }
.is-entering .photo-button img { animation: enter-photo 650ms cubic-bezier(.16, 1, .3, 1) both; }
@keyframes enter-photo {
  from { transform: scale(1.04); }
  to { transform: scale(1); }
}
/* Wiktor */
.notice {
  position: fixed;
  bottom: 24px;
  left: 20px;
  right: 20px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  color: #52525b;
  font-size: 14px;
  line-height: 1.5;
}
/* Paweł */
@media (prefers-reduced-motion: reduce) {
  .open-button { transition: none; }
  .open-button::after { animation: none; display: none; }
  .open-button:hover, .open-button:active { transform: none; }
}
