:root {
  --red: #d71920;
  --red-dark: #9f1016;
  --ink: #101115;
  --graphite: #25272e;
  --muted: #666b76;
  --line: #e3e4e8;
  --paper: #ffffff;
  --soft: #f6f7f8;
  --warm: #f1eee9;
  --max: 1180px;
  --shadow: 0 24px 70px rgba(16, 17, 21, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

sup a {
  color: var(--red);
  font-weight: 800;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--ink);
  color: white;
  padding: 8px 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 48px);
  color: white;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0));
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  width: 18px;
  height: 18px;
  background: var(--red);
  transform: skew(-14deg);
}

.nav-links {
  gap: clamp(12px, 3vw, 28px);
  font-size: 0.93rem;
  font-weight: 750;
}

.nav-links a {
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 420px);
  align-items: end;
  gap: clamp(24px, 5vw, 64px);
  padding: 130px clamp(20px, 5vw, 72px) 54px;
  color: white;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0) 42%);
}

.hero-bg {
  position: absolute;
  inset: -6vh 0;
  background-image: url("https://halacracovii.pl/wp-content/uploads/2025/05/Hala-Cracovia-scaled.jpg");
  background-size: cover;
  background-position: center;
  transform: translateY(var(--parallax, 0));
}

.hero-content,
.hero-facts {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ff4d52;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 26px;
  font-size: clamp(3.2rem, 8.4vw, 8.9rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  max-width: 1000px;
  margin-bottom: 22px;
  font-size: clamp(2.1rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.lead {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 1.8vw, 1.34rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 34px;
}

.primary-link,
.text-link {
  font-weight: 900;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  color: white;
  background: var(--red);
  border: 2px solid var(--red);
  text-decoration: none;
}

.primary-link:hover {
  background: #f12b31;
  border-color: #f12b31;
}

.text-link {
  color: white;
}

.hero-facts {
  display: grid;
  gap: 10px;
  align-self: center;
}

.hero-facts article {
  padding: 18px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px);
}

.hero-facts strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-facts span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-facts a {
  display: inline-block;
  margin-top: 10px;
  color: #ffb7b9;
  font-size: 0.82rem;
  font-weight: 800;
}

.section {
  padding: clamp(74px, 10vw, 130px) clamp(20px, 5vw, 72px);
}

.section-head,
.split,
.comparison,
.purpose-grid,
.chart-wrap,
.document-grid,
.event-grid,
.sources-grid,
.question-panel,
.limitations {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-head p {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.06rem;
}

.intro-band {
  background: linear-gradient(180deg, var(--paper), var(--soft));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.prose {
  font-size: clamp(1.04rem, 1.7vw, 1.22rem);
}

.prose p {
  margin-bottom: 22px;
}

.stance,
.callout,
.limitations {
  padding: clamp(22px, 4vw, 36px);
  color: var(--ink);
  background: var(--warm);
  border-left: 8px solid var(--red);
  font-weight: 750;
}

.media-card,
.document-card,
.compare-card,
.purpose-card,
.event-card,
.source-group {
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(16, 17, 21, 0.08);
}

.media-card {
  overflow: hidden;
}

figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.timeline-section {
  color: white;
  background: var(--ink);
}

.timeline-section .section-head p {
  color: rgba(255, 255, 255, 0.68);
}

.timeline {
  max-width: var(--max);
  margin: 34px auto 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0 28px 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 31px;
  width: 14px;
  height: 14px;
  background: var(--red);
}

.timeline time {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 950;
  line-height: 1;
}

.timeline span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.contract-section {
  background: white;
}

.equation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  margin-bottom: 34px;
}

.equation div {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 3vw, 32px);
  color: white;
  background: var(--ink);
}

.equation div:nth-of-type(2) {
  background: var(--red);
}

.equation strong {
  font-size: clamp(2.4rem, 5.3vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.equation span:not(.arrow) {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 800;
}

.arrow {
  display: grid;
  place-items: center;
  color: var(--red);
  font-size: 2.2rem;
  font-weight: 950;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.document-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.document-card {
  overflow: hidden;
}

.document-card img {
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
  background: #f0f0f0;
}

.document-card.wide {
  grid-column: 1 / -1;
}

.document-card.wide img {
  aspect-ratio: 2 / 1;
}

.who-section {
  background: var(--soft);
}

.comparison,
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.compare-card,
.purpose-card {
  padding: clamp(24px, 4vw, 42px);
}

.compare-card.red {
  color: white;
  background: var(--red);
  border-color: var(--red);
}

.compare-card ul,
.purpose-card ul,
.question-panel ul {
  margin: 0;
  padding-left: 1.2em;
}

.compare-card li,
.purpose-card li,
.question-panel li {
  margin-bottom: 12px;
}

.compare-card.red li {
  color: rgba(255, 255, 255, 0.9);
}

.callout {
  max-width: var(--max);
  margin: 28px auto 0;
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
}

.revenue-section {
  color: white;
  background: var(--graphite);
}

.revenue-section .section-head p {
  color: rgba(255, 255, 255, 0.7);
}

.chart-wrap {
  padding: clamp(18px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.chart {
  min-height: 430px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(8px, 1.5vw, 18px);
  align-items: end;
}

.bar {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  height: 380px;
}

.bar span {
  position: relative;
  display: block;
  min-height: 16px;
  height: var(--h);
  background: linear-gradient(180deg, #ff474d, var(--red));
}

.bar.estimated span {
  background: repeating-linear-gradient(
    -45deg,
    #ff474d 0,
    #ff474d 10px,
    #711014 10px,
    #711014 18px
  );
}

.bar::before {
  content: attr(data-value);
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--h) + 46px);
  color: white;
  font-size: clamp(0.72rem, 1vw, 0.96rem);
  font-weight: 900;
  text-align: center;
}

.bar b {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  text-align: center;
}

.chart-note {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
}

.commercial-section {
  background: white;
}

.family-section {
  background: var(--ink);
}

.family-section .section-head {
  padding: clamp(30px, 5vw, 58px);
  color: white;
  background: linear-gradient(135deg, rgba(215, 25, 32, 0.2), rgba(255, 255, 255, 0.07));
  border-left: 8px solid var(--red);
}

.family-section .section-head p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.event-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-top: 7px solid var(--red);
}

.event-card span {
  margin-bottom: 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.event-card p {
  color: var(--muted);
}

.event-card a {
  margin-top: auto;
  color: var(--ink);
  font-weight: 900;
}

.purpose-section {
  background: var(--soft);
}

.purpose-card {
  background: white;
}

.purpose-card.dark {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.purpose-card.dark li {
  color: rgba(255, 255, 255, 0.86);
}

.questions-section {
  color: white;
  background:
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.76)),
    url("https://halacracovii.pl/wp-content/uploads/2018/10/Cracovia-_0065_ofertaBG.jpg")
      center / cover fixed;
}

.question-panel {
  padding: clamp(30px, 6vw, 70px);
  background: rgba(0, 0, 0, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.question-panel h2 {
  color: white;
}

.question-panel li {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.04rem, 1.8vw, 1.32rem);
}

.sources-section {
  background: white;
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.source-group {
  padding: 24px;
}

.source-group ol {
  margin: 0;
  padding-left: 1.2em;
}

.source-group li {
  margin-bottom: 12px;
  color: var(--muted);
}

.source-group a {
  color: var(--ink);
  font-weight: 800;
}

.limitations {
  margin-top: 24px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.footer p {
  margin: 0;
}

.footer a {
  color: white;
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  .hero-bg {
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: end;
    min-height: auto;
    padding-top: 120px;
  }

  .hero-facts,
  .event-grid,
  .document-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .comparison,
  .purpose-grid,
  .sources-grid {
    grid-template-columns: 1fr;
  }

  .equation {
    grid-template-columns: 1fr;
  }

  .arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 680px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 96px 18px 34px;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .section {
    padding: 62px 18px;
  }

  .hero-facts,
  .event-grid,
  .document-grid,
  .document-grid.three {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .chart {
    min-height: 350px;
    gap: 7px;
  }

  .bar {
    height: 300px;
  }

  .bar::before {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    bottom: calc(var(--h) + 44px);
    font-size: 0.72rem;
  }

  .document-card.wide img,
  .document-card img {
    aspect-ratio: 1.25 / 1;
  }

  .footer {
    display: block;
  }

  .footer a {
    display: inline-block;
    margin-top: 14px;
  }
}
