:root {
  --ink: #1c2430;
  --ink-soft: #2c3644;
  --navy: #243044;
  --paper: #f6f1e8;
  --paper-2: #efe8dc;
  --cream: #fbf8f3;
  --bronze: #9a7b4f;
  --bronze-dark: #7d623d;
  --text: #2a3038;
  --muted: #5c6570;
  --line: rgba(28, 36, 48, 0.12);
  --white: #ffffff;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 18px 40px rgba(28, 36, 48, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--bronze-dark);
}

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--cream);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(246, 241, 232, 0.72);
  transition: background 400ms var(--ease), border-color 400ms var(--ease),
    backdrop-filter 400ms var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(246, 241, 232, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.05;
}

.wordmark-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.wordmark-role {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

#nawigacja > a.btn.btn-header {
  color: white;
}

.nav a:hover {
  color: var(--bronze-dark);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 1px;
  margin: 6px auto;
  background: var(--ink);
  transition: transform 300ms var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 250ms var(--ease), color 250ms var(--ease),
    border-color 250ms var(--ease);
}

.btn-header,
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}

.btn-header:hover,
.btn-primary:hover {
  background: var(--bronze-dark);
  color: var(--cream);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--bronze);
  color: var(--bronze-dark);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(92vh - var(--header-h));
  overflow: hidden;
  padding: 4rem 1.5rem 5rem;
  background:
    linear-gradient(165deg, var(--cream) 0%, var(--paper) 48%, var(--paper-2) 100%);
}

.hero.has-bg {
  background:
    linear-gradient(165deg, rgba(251, 248, 243, 0.82) 0%, rgba(246, 241, 232, 0.72) 50%, rgba(239, 232, 220, 0.78) 100%),
    var(--hero-image) center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 20% 30%, black 0%, transparent 70%);
  opacity: 0.55;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 1.25rem;
  border-left: 1px solid var(--bronze);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--bronze);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.04em;
}

.hero-name {
  margin: 0 0 1.75rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-style: italic;
  font-weight: 500;
  color: var(--ink-soft);
}

.hero-meta {
  max-width: 36rem;
  margin-bottom: 2rem;
  color: var(--muted);
}

.hero-meta p {
  margin: 0.15rem 0;
}

.hero-note {
  margin-top: 0.85rem !important;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-ornament {
  position: absolute;
  right: -8%;
  bottom: -18%;
  width: min(48vw, 34rem);
  height: min(48vw, 34rem);
  border: 1px solid rgba(154, 123, 79, 0.28);
  border-radius: 50%;
  pointer-events: none;
}

.hero-ornament::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(154, 123, 79, 0.18);
  border-radius: 50%;
}

.stats {
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: var(--cream);
}

.stats ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  list-style: none;
}

.stats li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stats strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bronze);
}

.stats span {
  color: rgba(251, 248, 243, 0.78);
  font-size: 0.92rem;
  line-height: 1.45;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 3rem;
}

.section h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
}

.lede {
  margin: 1rem 0 0;
  color: var(--muted);
}

.about-copy {
  display: grid;
  gap: 1.1rem;
  max-width: 46rem;
}

.about-copy p {
  margin: 0;
}

.subhead {
  margin: 0 0 1.25rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.card,
.panel,
.office {
  padding: 1.6rem 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  box-shadow: var(--shadow);
  transition: transform 400ms var(--ease), border-color 400ms var(--ease);
}

.card:hover,
.office:hover {
  transform: translateY(-3px);
  border-color: rgba(154, 123, 79, 0.35);
}

.card-index {
  margin: 0 0 0.6rem;
  color: var(--bronze);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.card h4,
.panel h3,
.office h3 {
  margin: 0 0 0.85rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.card li + li {
  margin-top: 0.28rem;
}

.panel {
  margin-bottom: 3rem;
  background: var(--navy);
  color: var(--cream);
  border-color: transparent;
}

.panel .eyebrow {
  color: #c4a574;
}

.panel h3 {
  color: var(--cream);
}

.panel p {
  margin: 0;
  max-width: 42rem;
  color: rgba(251, 248, 243, 0.82);
}

.ways {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ways li {
  padding: 1.15rem 1.2rem;
  border-left: 1px solid var(--bronze);
  background: rgba(255, 255, 255, 0.35);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.office p:last-child {
  margin: 0;
  color: var(--muted);
}

.details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2rem;
  margin: 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
}

.details div {
  margin: 0;
}

.details dt {
  margin-bottom: 0.2rem;
  color: var(--bronze);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.details dd {
  margin: 0;
}

.details a {
  text-decoration: none;
}

.details-wide {
  grid-column: 1 / -1;
}

.social {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--cream);
  text-decoration: none;
  transition: background 250ms var(--ease), color 250ms var(--ease),
    border-color 250ms var(--ease);
}

.social-link svg {
  width: 1.15rem;
  height: 1.15rem;
}

.social-link:hover {
  border-color: var(--bronze);
  background: var(--ink);
  color: var(--cream);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.footer-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.social-footer .social-link {
  width: 2.25rem;
  height: 2.25rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .btn-header {
    margin-top: 0.75rem;
    width: fit-content;
    border-bottom: 0 !important;
  }

  .stats ul,
  .card-grid,
  .ways,
  .contact-grid,
  .details {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
