/* =========================================================
   NASTROJE NATURY — Piotr Woźniak
   Wspólny arkusz stylów (landing + panoramy 360°)
   ========================================================= */

:root {
  --bg:            #06080A;
  --bg-2:          #0A0D10;
  --bg-3:          #0E1216;
  --gold:          #C9A55A;
  --gold-text:     #DCBE7E;   /* jaśniejsze złoto do drobnych napisów */
  --gold-soft:     rgba(201, 165, 90, 0.20);
  --gold-line:     rgba(201, 165, 90, 0.34);
  --cream:         #EDE8DF;
  --cream-muted:   rgba(237, 232, 223, 0.78);
  --cream-dim:     rgba(237, 232, 223, 0.90);
  --cream-faint:   rgba(237, 232, 223, 0.62);
  --white:         #ffffff;
  --spring:        cubic-bezier(0.32, 0.72, 0, 1);
  --maxw:          1400px;
  --nav-h:         74px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }

/* Kotwice (#kontakt, #portfolio…) mają zatrzymywać się pod paskiem menu. */
section[id],
header[id] { scroll-margin-top: calc(var(--nav-h) + 14px); }

a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--bg); }

/* ── SCROLLBAR ───────────────────────────────────────── */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(201,165,90,0.28); }
::-webkit-scrollbar-thumb:hover { background: rgba(201,165,90,0.5); }

/* ── TYPOGRAFIA ──────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--white);
}

em { font-style: italic; color: var(--gold); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 400;
  opacity: 1;
  margin-bottom: 8px;
}

.eyebrow-line {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold-text);
  opacity: 0.75;
}

.section-title {
  font-size: clamp(32px, 5vw, 62px);
  margin-top: 4px;
}

.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--cream-dim);
  max-width: 62ch;
}

/* ── UKŁAD ───────────────────────────────────────────── */
.section { padding: 110px 6vw; }
.section--tight { padding: 80px 6vw; }
.inner { max-width: var(--maxw); margin: 0 auto; }

.divider {
  height: 1px;
  margin: 0 6vw;
  background: linear-gradient(to right, transparent, var(--gold-soft), transparent);
}

/* ── PRZYCISKI ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--gold-line);
  color: var(--cream);
  background: transparent;
  cursor: pointer;
  transition: background 0.5s var(--spring), border-color 0.5s var(--spring),
              color 0.5s var(--spring), transform 0.5s var(--spring);
}

.btn:hover {
  border-color: var(--gold);
  background: rgba(201, 165, 90, 0.1);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn--solid {
  background: var(--gold);
  border-color: var(--gold);
  color: #0A0704;
}

.btn--solid:hover {
  background: #d8b877;
  border-color: #d8b877;
  color: #0A0704;
}

.btn .arrow { transition: transform 0.5s var(--spring); }
.btn:hover .arrow { transform: translateX(4px); }

/* ── NAWIGACJA ───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  z-index: 900;
  transition: background 0.6s var(--spring), border-color 0.6s var(--spring),
              backdrop-filter 0.6s;
  border-bottom: 1px solid transparent;
}

.nav.is-stuck {
  background: rgba(6, 8, 10, 0.92);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--gold-soft);
}

.nav-brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}

.nav-brand-text span { color: var(--gold-text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.4s var(--spring);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.5s var(--spring);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.is-active::after { width: 100%; }
.nav-links a.is-active { color: var(--gold-text); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--gold-line);
  color: var(--cream);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 16px; height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--spring), opacity 0.3s;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-3px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  filter: saturate(1.02) contrast(1.03) brightness(0.98);
  transform: scale(1.06);
  animation: heroDrift 22s ease-out forwards;
}

@keyframes heroDrift {
  from { transform: scale(1.10); }
  to   { transform: scale(1.00); }
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Przyciemnienie tylko tam, gdzie leży tekst — reszta kadru zostaje jasna. */
  background:
    linear-gradient(to right,
      rgba(6,8,10,0.86) 0%,
      rgba(6,8,10,0.62) 26%,
      rgba(6,8,10,0.26) 52%,
      rgba(6,8,10,0.04) 78%,
      rgba(6,8,10,0.10) 100%),
    linear-gradient(to top,
      rgba(6,8,10,0.88) 0%,
      rgba(6,8,10,0.42) 24%,
      rgba(6,8,10,0.05) 48%,
      rgba(6,8,10,0) 62%),
    linear-gradient(to bottom, rgba(6,8,10,0.62) 0%, rgba(6,8,10,0.12) 12%, rgba(6,8,10,0) 22%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 6vw 12vh;
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(44px, 8.4vw, 122px);
  line-height: 0.98;
  margin: 10px 0 26px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.9), 0 0 60px rgba(0,0,0,0.55);
}

.hero-sub {
  font-size: clamp(16px, 1.75vw, 21px);
  color: #F2EEE7;
  max-width: 54ch;
  margin-bottom: 40px;
  text-shadow: 0 1px 18px rgba(0,0,0,0.85), 0 0 42px rgba(0,0,0,0.6);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-dim);
  font-family: 'Montserrat', sans-serif;
  text-shadow: 0 1px 12px rgba(0,0,0,0.9);
}

.hero-scroll i {
  display: block;
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.4s var(--spring) infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}

/* ── O AUTORZE ───────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.about-portrait {
  position: relative;
  overflow: hidden;
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.95) brightness(0.97);
  transition: transform 1.2s var(--spring), filter 0.8s var(--spring);
}

.about-portrait:hover img { transform: scale(1.04); filter: saturate(1.05) brightness(1.05); }

.about-portrait::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201,165,90,0.22);
  pointer-events: none;
}

.about-text p + p { margin-top: 20px; }

.about-quote {
  margin-top: 30px;
  padding-left: 22px;
  border-left: 1px solid var(--gold-line);
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.5;
  color: var(--cream);
}

.specialties {
  list-style: none;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-soft);
}

.specialties li {
  background: var(--bg);
  padding: 22px 20px;
  transition: background 0.5s var(--spring);
}

.specialties li:hover { background: var(--bg-3); }

.specialties b {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 6px;
}

.specialties small {
  font-size: 14px;
  color: var(--cream-muted);
  line-height: 1.65;
}

/* ── GALERIA (masonry) ───────────────────────────────── */
.gallery {
  columns: 3;
  column-gap: 6px;
  margin-top: 66px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 6px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--bg-2);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.92) brightness(0.96);
  transition: transform 0.9s var(--spring), filter 0.6s var(--spring);
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: saturate(1.05) brightness(1.06);
}

.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 20px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: linear-gradient(to top, rgba(6,8,10,0.94), rgba(6,8,10,0.55) 55%, transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--spring), transform 0.5s var(--spring);
}

.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }

/* ── LIGHTBOX ────────────────────────────────────────── */
.lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 5, 6, 0.97);
  align-items: center;
  justify-content: center;
}

.lb.is-open { display: flex; }

.lb-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.lb-img {
  max-width: 90vw;
  max-height: 86vh;
  width: auto; height: auto;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.22s ease;
}

.lb-img.is-fading { opacity: 0; }

.lb-close, .lb-prev, .lb-next {
  position: fixed;
  border-radius: 50%;
  background: rgba(6,8,10,0.7);
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  z-index: 2;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
  border: 1px solid var(--gold-line);
}

.lb-close { top: 20px; right: 24px; width: 44px; height: 44px; font-size: 22px; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 22px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  border-color: var(--gold);
  background: rgba(201,165,90,0.12);
  color: var(--gold);
}

.lb-caption {
  position: fixed;
  bottom: 54px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  color: #F2EEE7;
  text-align: center;
  max-width: 80vw;
  z-index: 2;
}

.lb-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cream-dim);
  z-index: 2;
}

.lb-counter span { color: var(--gold-text); }

/* ── BANER 360 ───────────────────────────────────────── */
.pano-teaser {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.pano-teaser-bg {
  position: absolute; inset: 0; z-index: 0;
}

.pano-teaser-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1) contrast(1.02) brightness(0.95);
  transition: transform 1.6s var(--spring);
}

.pano-teaser:hover .pano-teaser-bg img { transform: scale(1.05); }

.pano-teaser-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(6,8,10,0.90) 0%,
      rgba(6,8,10,0.72) 24%,
      rgba(6,8,10,0.34) 52%,
      rgba(6,8,10,0.10) 80%,
      rgba(6,8,10,0.20) 100%),
    linear-gradient(to bottom, rgba(6,8,10,0.35), rgba(6,8,10,0) 22%, rgba(6,8,10,0) 78%, rgba(6,8,10,0.35));
}

.pano-teaser-content {
  position: relative;
  z-index: 1;
  padding: 90px 6vw;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}

.pano-teaser h2 {
  font-size: clamp(30px, 4.6vw, 56px);
  margin-bottom: 18px;
  text-shadow: 0 2px 22px rgba(0,0,0,0.85);
}

.pano-teaser .lead,
.pano-teaser .eyebrow { text-shadow: 0 1px 16px rgba(0,0,0,0.9); }

.pano-teaser .lead { color: #F2EEE7; }

/* ── WYDRUKI ─────────────────────────────────────────── */
.prints-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-soft);
  margin-top: 60px;
}

.print-card {
  background: var(--bg);
  padding: 46px 34px;
  transition: background 0.6s var(--spring);
}

.print-card:hover { background: var(--bg-3); }

.print-card .num {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--gold-text);
  opacity: 1;
}

.print-card h3 {
  font-size: 22px;
  margin: 14px 0 12px;
}

.print-card p { color: var(--cream-muted); font-size: 15.5px; line-height: 1.7; }

/* ── KONTAKT ─────────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 90px);
  margin-top: 56px;
}

.contact-aside p { color: var(--cream-dim); }

.contact-meta { margin-top: 34px; display: grid; gap: 20px; }

.contact-meta div span {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-text);
  opacity: 1;
  margin-bottom: 5px;
}

.contact-meta a:hover { color: var(--gold); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.field input,
.field textarea,
.field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(237,232,223,0.32);
  color: var(--cream);
  font-family: inherit;
  font-size: 16px;
  font-weight: 300;
  padding: 10px 2px;
  transition: border-color 0.4s var(--spring);
  border-radius: 0;
}

.field select { cursor: pointer; }
.field select option { background: var(--bg-2); color: var(--cream); }

.field textarea { resize: vertical; min-height: 130px; line-height: 1.7; }

.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; border-bottom-color: var(--gold); }

.field input::placeholder,
.field textarea::placeholder { color: rgba(237,232,223,0.48); }

.field.has-error input,
.field.has-error textarea { border-bottom-color: #c96a5a; }

.field .err {
  font-size: 13px;
  color: #d98878;
  min-height: 0;
}

.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--cream-muted);
  line-height: 1.65;
}

.consent input { accent-color: var(--gold); margin-top: 4px; width: 16px; height: 16px; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none;
}

.form-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.form-status {
  font-size: 15px;
  color: var(--cream-dim);
}

.form-status.is-ok    { color: var(--gold-text); }
.form-status.is-error { color: #d98878; }

button[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ── STOPKA ──────────────────────────────────────────── */
.footer {
  padding: 56px 6vw 40px;
  border-top: 1px solid var(--gold-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--cream-muted);
}

.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--gold-text); }

/* ── REVEAL ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(3px);
  transition: opacity 0.9s var(--spring), transform 0.9s var(--spring), filter 0.9s var(--spring);
}

.reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-media img { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── RESPONSYWNOŚĆ ───────────────────────────────────── */
@media (max-width: 1080px) {
  .about { grid-template-columns: 1fr; }
  .about-portrait img { aspect-ratio: 16 / 10; }
  .contact { grid-template-columns: 1fr; }
  .prints-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(6,8,10,0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--gold-soft);
    padding: 8px 6vw 26px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--spring), transform 0.4s var(--spring);
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links li { width: 100%; border-bottom: 1px solid rgba(201,165,90,0.08); }
  .nav-links a { display: block; padding: 16px 0; font-size: 12px; }
  .nav-links a::after { display: none; }

  .section { padding: 76px 5vw; }
  .gallery { columns: 2; margin-top: 46px; }
  .specialties { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .footer { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .gallery { columns: 1; }
  .lb-prev, .lb-next { width: 40px; height: 40px; font-size: 18px; }
  .hero-content { padding-bottom: 16vh; }
  .btn { padding: 13px 22px; font-size: 10px; }
}

/* =========================================================
   LOGOTYPY
   ========================================================= */

/* ── SYGNET W MENU ───────────────────────────────────── */
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.nav-logo {
  height: 46px;
  width: auto;
  flex: 0 0 auto;
  transition: transform 0.6s var(--spring), opacity 0.4s var(--spring);
}

.nav-brand:hover .nav-logo { transform: scale(1.05); }

.nav-brand-text { display: inline-block; line-height: 1.15; }

/* ── BLOK Z PEŁNYM LOGO NAD STOPKĄ ───────────────────── */
.brandmark {
  padding: 84px 6vw 72px;
  border-top: 1px solid var(--gold-soft);
  text-align: center;
}

.brandmark-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brandmark img {
  width: clamp(190px, 24vw, 280px);
  height: auto;
  opacity: 0.96;
  transition: transform 0.9s var(--spring), opacity 0.6s var(--spring);
}

.brandmark a:hover img { transform: translateY(-3px); opacity: 1; }

.brandmark p {
  margin-top: 30px;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.75;
  color: var(--cream-muted);
  max-width: 56ch;
}

.brandmark .rule {
  width: 46px;
  height: 1px;
  background: var(--gold-line);
  margin: 26px auto 0;
}

@media (max-width: 860px) {
  .nav-logo { height: 38px; }
  .brandmark { padding: 62px 6vw 54px; }
  .brandmark p { margin-top: 24px; }
}

@media (max-width: 420px) {
  .nav-brand { gap: 10px; }
  .nav-logo { height: 34px; }
  .nav-brand-text { font-size: 11px; }
}

/* =========================================================
   STRONY BŁĘDÓW (404 / 403 / 500)
   ========================================================= */

.errpage {
  min-height: 100svh;
  display: flex;
  flex-direction: column;   /* aby stopka na telefonie trafiła POD treść, a nie obok */
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 6vw 96px;
}

.errpage-media { position: absolute; inset: 0; z-index: 0; }

.errpage-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: saturate(0.95) brightness(0.9);
  transform: scale(1.04);
  animation: errDrift 26s ease-out forwards;
}

@keyframes errDrift {
  from { transform: scale(1.08); }
  to   { transform: scale(1.00); }
}

.errpage-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(85% 70% at 50% 50%, rgba(6,8,10,0.82) 0%, rgba(6,8,10,0.62) 45%, rgba(6,8,10,0.30) 75%, rgba(6,8,10,0.42) 100%),
    linear-gradient(to bottom, rgba(6,8,10,0.55) 0%, rgba(6,8,10,0) 22%, rgba(6,8,10,0) 74%, rgba(6,8,10,0.7) 100%);
}

.errpage-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.errpage-logo {
  width: clamp(120px, 15vw, 168px);
  height: auto;
  margin-bottom: 34px;
  opacity: 0.95;
  transition: transform 0.8s var(--spring), opacity 0.5s var(--spring);
}

.errpage a:hover .errpage-logo { transform: translateY(-3px); opacity: 1; }

.errpage-code {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: clamp(64px, 13vw, 132px);
  line-height: 1;
  color: var(--gold-text);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 40px rgba(0,0,0,0.7);
}

.errpage-rule {
  width: 54px;
  height: 1px;
  background: var(--gold-line);
  margin: 26px 0 24px;
}

.errpage h1 {
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.12;
  text-shadow: 0 2px 24px rgba(0,0,0,0.85);
}

.errpage p {
  margin-top: 20px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.75;
  color: #F2EEE7;
  text-shadow: 0 1px 18px rgba(0,0,0,0.9);
  max-width: 52ch;
}

.errpage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
}

.errpage .errpage-foot {
  position: absolute;
  bottom: 26px;
  left: 6vw;
  right: 6vw;
  z-index: 1;
  text-align: center;
  font-size: 13px;
  color: var(--cream-muted);
  text-shadow: 0 1px 14px rgba(0,0,0,0.9);
  /* nadpisujemy .errpage p — stopka ma być pełnej szerokości i bez odstępu */
  max-width: none;
  margin: 0;
}

.errpage .errpage-foot a { color: var(--cream-dim); }
.errpage .errpage-foot a:hover { color: var(--gold-text); }

@media (max-width: 620px) {
  .errpage { padding-top: 80px; }
  .errpage-logo { margin-bottom: 26px; }
  .errpage-rule { margin: 20px 0 18px; }
  .errpage .errpage-foot { position: static; margin-top: 44px; left: auto; right: auto; }
}
