@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f3f5f7;
  --text: #1c2633;
  --muted: #3e4c5e;
  --line: #d5dbe3;
  --accent: #1e4d7b;
  --accent-ink: #ffffff;
  --accent-press: #183f64;
  --scrim: rgb(18 20 24 / 0.92);
  color-scheme: light;
  background: var(--bg);
  color: var(--text);
}

[data-theme="dark"] {
  --bg: #121418;
  --text: #e8edf2;
  --muted: #c5ced8;
  --line: #2c333c;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121418;
    --text: #e8edf2;
    --muted: #c5ced8;
    --line: #2c333c;
    color-scheme: dark;
  }
}

[data-theme="light"] {
  --bg: #f3f5f7;
  --text: #1c2633;
  --muted: #3e4c5e;
  --line: #d5dbe3;
  color-scheme: light;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { background: var(--bg); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5rem 0.75rem;
}

.skip:focus { top: 0.5rem; }

.icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
  flex: none;
  display: block;
}

.icon-lg { width: 1.5rem; height: 1.5rem; }

.icon-sun { display: none; }

[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-moon { display: none; }
  :root:not([data-theme="light"]) .icon-sun { display: block; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1400px, calc(100% - 2rem));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .wrap { width: min(1400px, calc(100% - 3rem)); }
}

header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 4rem;
}

.logo {
  margin-right: auto;
  color: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}

@media (min-width: 768px) {
  .logo { font-size: 1.125rem; }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-desktop a {
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.nav-desktop a:hover { color: var(--text); }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-btn { display: grid; }

@media (min-width: 768px) {
  .menu-btn { display: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 0.85rem;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 560;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

@media (min-width: 640px) {
  .btn { padding: 0 1.15rem; }
}

.btn:hover { background: var(--accent-press); }

.btn:active { transform: scale(0.98); }

@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
}

#menu-mobilne {
  border-top: 1px solid var(--line);
  padding: 0.35rem 1rem 0.75rem;
}

#menu-mobilne a {
  display: block;
  padding: 0.75rem 0;
  color: inherit;
  text-decoration: none;
}

@media (min-width: 768px) {
  #menu-mobilne { display: none; }
}

.hero {
  display: grid;
  min-height: 100dvh;
}

@media (min-width: 768px) {
  .hero { grid-template-columns: 1fr 1fr; }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 5.5rem 1rem 2rem;
}

@media (min-width: 768px) {
  .hero-copy {
    justify-content: flex-end;
    padding: 6rem 2.5rem 4rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-copy {
    padding-left: max(1.5rem, calc((100vw - 1400px) / 2 + 1.5rem));
    padding-right: 3rem;
  }
}

.hero-copy h1 {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 36ch;
  margin: 1rem 0 0;
  color: var(--muted);
}

.hero-copy .btn { margin-top: 1.5rem; align-self: flex-start; }

.hero-photo {
  position: relative;
  min-height: 46dvh;
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .hero-photo { min-height: 100dvh; }
}

.section {
  border-top: 1px solid var(--line);
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section { padding: 6rem 0; }
}

#galeria, #kontakt { scroll-margin-top: 5rem; }

h2 {
  margin: 0;
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 36ch;
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.gallery {
  display: grid;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 170px;
    gap: 0.75rem;
    margin-top: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .gallery { grid-auto-rows: 210px; }
}

.shot {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--line);
  cursor: pointer;
  aspect-ratio: 16 / 10;
}

.shot.portrait { aspect-ratio: 3 / 4; }

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .shot,
  .shot.portrait {
    aspect-ratio: auto;
    height: 100%;
  }

  .shot img {
    position: absolute;
    inset: 0;
  }

  .span-a { grid-column: 1 / span 4; grid-row: 1 / span 2; }
  .span-b { grid-column: 5 / span 2; grid-row: 1; }
  .span-c { grid-column: 5 / span 2; grid-row: 2; }
  .span-d { grid-column: 1 / span 2; grid-row: 3 / span 2; }
  .span-e { grid-column: 3 / span 4; grid-row: 3; }
  .span-f { grid-column: 3 / span 2; grid-row: 4; }
  .span-g { grid-column: 5 / span 2; grid-row: 4; }
  .span-h { grid-column: 1 / span 4; grid-row: 5; }
  .span-i { grid-column: 5 / span 2; grid-row: 5; }
  .span-j { grid-column: 1 / span 6; grid-row: 6; }
}

@media (prefers-reduced-motion: no-preference) {
  .shot img { transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
  .shot:hover img,
  .shot:focus-visible img { transform: scale(1.03); }
}

.shot-error {
  display: grid;
  place-items: center;
  min-height: 10rem;
  padding: 1rem;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 0.875rem;
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
  }
}

address {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
  font-style: normal;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1.35;
  text-decoration: none;
}

a.contact-line { min-height: 3rem; align-items: center; }
a.contact-line:hover { text-decoration: underline; }

.email-line {
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .email-line { font-size: 1.25rem; }
}

.map-link {
  display: inline-flex;
  margin-top: 2rem;
  color: var(--text);
  text-underline-offset: 4px;
}

.map-frame {
  width: 100%;
  height: 18rem;
  border: 1px solid var(--line);
}

@media (min-width: 768px) {
  .map-frame { height: 100%; min-height: 26rem; }
}

footer {
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-row a {
  color: inherit;
  overflow-wrap: anywhere;
}

.footer-row a:hover { color: var(--text); }

.footer-name { margin: 0; color: var(--text); }

@media (min-width: 768px) {
  .footer-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-links { text-align: right; }
}

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--scrim);
}

#lightbox[hidden] { display: none; }

.lb-photo {
  max-width: min(64rem, 100%);
  max-height: 82dvh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  background: #1c2633;
  color: #fff;
  cursor: pointer;
}

.lb-prev { left: 0.75rem; }
.lb-next { right: 0.75rem; }

.lb-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  background: #1c2633;
  color: #fff;
  cursor: pointer;
}

.lb-status {
  margin: 0;
  padding: 4rem 1.5rem;
  color: #fff;
  text-align: center;
}

@media (min-width: 768px) {
  .lb-prev { left: 1.5rem; }
  .lb-next { right: 1.5rem; }
}
