:root {
  --bg-deep: #060606;
  --bg-panel: #0f0f0f;
  --bg-elevated: #161616;
  --gold: #d4af37;
  --gold-bright: #e8c547;
  --gold-dim: #9a7b2c;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --text: #e8e6e3;
  --text-muted: #8a8680;
  --line: rgba(212, 175, 55, 0.22);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.glow-orb {
  position: fixed;
  width: 70vmin;
  height: 70vmin;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  top: -20vmin;
  right: -15vmin;
  pointer-events: none;
  z-index: 0;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 6, 6, 0.85);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  height: 44px;
  width: auto;
  display: block;
}

.brand span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover { color: var(--gold); }

nav a.active {
  color: var(--gold-bright);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: linear-gradient(145deg, var(--gold-bright), var(--gold-dim));
  color: var(--bg-deep);
  border: none;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 0 24px var(--gold-glow);
  color: #000;
}

.btn-primary.active {
  box-shadow: 0 0 0 2px var(--gold-bright), 0 0 20px var(--gold-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
}

main { position: relative; z-index: 1; }

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.hero {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding-top: 4rem;
    padding-bottom: 6rem;
  }
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--gold-bright);
}

.hero-copy p.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 36ch;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -8%;
  border: 1px solid var(--line);
  border-radius: 4px;
  pointer-events: none;
}

.hero-visual img {
  max-width: min(100%, 380px);
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.6));
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  max-width: 1120px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 600;
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 52ch;
  margin-bottom: 2.75rem;
  font-weight: 300;
}

.section-sub.tight { margin-bottom: 1rem; }

.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  color: var(--gold);
  opacity: 0.95;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 300;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
}

.card-link:hover { text-decoration: underline; }

.about {
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .about-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.about p {
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 1rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.25rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold-bright);
  margin-bottom: 0.25rem;
}

.stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.cta-box {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-deep) 100%);
  border-radius: 2px;
}

.cta-box h1,
.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  color: var(--text);
  margin-bottom: 0.75rem;
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.page-intro {
  max-width: 52ch;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 2rem;
}

.link-row {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* --- Nasze projekty / partnerzy --- */
.project-showcase {
  max-width: 44rem;
}

.project-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

@media (min-width: 540px) {
  .project-row {
    flex-direction: row;
    align-items: center;
  }
}

.project-thumb {
  width: 88px;
  height: 88px;
  object-fit: contain;
  flex-shrink: 0;
}

.project-copy h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
}

.project-copy p {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.partners-section .section-sub {
  margin-bottom: 2rem;
}

.partner-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 680px) {
  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.partner-card {
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.25rem;
  margin: 0;
}

.partner-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: var(--bg-deep);
  padding: 10px;
  border: 1px solid var(--line);
}

.partner-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.partner-role {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
  margin: 0;
}

.partner-disclaimer {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.85;
  text-align: center;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.error-page {
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.error-page .error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 6.5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
  opacity: 0.95;
}

.error-page .section-title {
  margin-bottom: 1rem;
}

.error-page .error-lead {
  color: var(--text-muted);
  font-weight: 300;
  max-width: 36ch;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.error-page .error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer .gold { color: var(--gold-dim); }

@media (max-width: 720px) {
  .nav-inner { flex-wrap: wrap; }
  nav ul {
    width: 100%;
    justify-content: flex-start;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line);
    gap: 1rem;
  }
}
