:root {
  --sky-deep: #0b1f33;
  --sky: #16324a;
  --sky-mid: #2a4d68;
  --mist: #e7eef3;
  --cloud: #f5f8fa;
  --paper: #fbfcfd;
  --ink: #12202c;
  --muted: #5c6f7f;
  --wing: #b8925a;
  --wing-soft: #d4b483;
  --line: rgba(18, 32, 44, 0.1);
  --shadow: 0 18px 50px rgba(11, 31, 51, 0.12);
  --radius: 1.25rem;
  --font-display: "Figtree", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(184, 146, 90, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(42, 77, 104, 0.08), transparent 50%),
    var(--cloud);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--sky-deep);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-family: var(--font-display);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(245, 248, 250, 0.82);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(251, 252, 253, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(11, 31, 51, 0.06);
}

/* Start: gołąb edge-to-edge, napis na zdjęciu, nagłówek przezroczysty */
.page-home .site-header--over-hero:not(.is-scrolled) {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
  color: #fff;
}

.page-home .site-header--over-hero:not(.is-scrolled) .brand-name,
.page-home .site-header--over-hero:not(.is-scrolled) .brand-sub,
.page-home .site-header--over-hero:not(.is-scrolled) .nav-link {
  color: #fff;
}

.page-home .site-header--over-hero:not(.is-scrolled) .brand-sub {
  color: rgba(255, 255, 255, 0.72);
}

.page-home .site-header--over-hero:not(.is-scrolled) .nav-link.is-active,
.page-home .site-header--over-hero:not(.is-scrolled) .nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.page-home .site-header--over-hero:not(.is-scrolled) .nav-link-accent {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: transparent;
}

.page-home .site-header--over-hero:not(.is-scrolled) .nav-toggle-bars,
.page-home .site-header--over-hero:not(.is-scrolled) .nav-toggle-bars::before,
.page-home .site-header--over-hero:not(.is-scrolled) .nav-toggle-bars::after {
  background: #fff;
}

.page-home .hero {
  min-height: 100svh;
  margin-top: 0;
}

.header-inner {
  height: 100%;
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(184, 146, 90, 0.45);
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 42%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.brand-sub {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.brand-sub em {
  font-style: normal;
  color: var(--wing);
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
}

.nav-item {
  flex: 0 0 auto;
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.45rem;
  padding: 0 0.85rem;
  border: 0;
  background: transparent;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-item.is-current > .nav-link,
.nav-item.is-open > .nav-link {
  color: var(--ink);
  background: rgba(18, 32, 44, 0.05);
}

.nav-link-accent {
  color: #fff !important;
  background: var(--sky-deep) !important;
}

.nav-link-accent:hover,
.nav-link-accent.is-active {
  background: #16324a !important;
}

.nav-caret {
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.nav-item.is-open .nav-caret {
  transform: rotate(225deg) translateY(-1px);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 15.5rem;
  padding: 0.45rem;
  border-radius: 0.95rem;
  background: rgba(251, 252, 253, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(11, 31, 51, 0.14);
  z-index: 60;
}

.nav-dropdown[hidden] {
  display: none !important;
}

.nav-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.nav-dropdown-link {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 0.7rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.nav-dropdown-link:hover,
.nav-dropdown-link.is-active {
  background: rgba(184, 146, 90, 0.14);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.25s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

body.nav-open .nav-toggle-bars { background: transparent; }
body.nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: visible;
  width: 100%;
}

.page-home .hero {
  min-height: 100svh;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: #16324a;
  overflow: hidden;
  z-index: 0;
}

.hero-media-fg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: 58% 32%;
  transform: none;
  animation: none;
  z-index: 1;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      180deg,
      rgba(8, 18, 30, 0.35) 0%,
      rgba(8, 18, 30, 0.12) 34%,
      rgba(8, 18, 30, 0.45) 68%,
      rgba(8, 18, 30, 0.88) 100%
    ),
    linear-gradient(
      90deg,
      rgba(8, 18, 30, 0.62) 0%,
      rgba(8, 18, 30, 0.28) 38%,
      transparent 70%
    );
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 5rem 0 3.5rem;
  max-width: 38rem;
}

.page-home .hero-content {
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: 3.25rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 0.9rem;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.6rem, 8vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-wrap: balance;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.hero-lead {
  max-width: 22rem;
  margin: 1.15rem 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.hero-actions .btn-primary {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.hero-actions .btn-ghost {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.page-hero {
  padding: 4.5rem 0 2rem;
  background:
    linear-gradient(180deg, rgba(22, 50, 74, 0.06), transparent 70%);
}

.page-hero h1 {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--wing);
  color: #1a140c;
}

.btn-primary:hover {
  background: var(--wing-soft);
}

.btn-secondary {
  background: var(--sky-deep);
  color: #fff;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost.dark {
  border-color: rgba(18, 32, 44, 0.18);
  color: var(--ink);
  background: transparent;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-tight {
  padding-top: 4rem;
}

.section-alt {
  background: linear-gradient(180deg, #eef3f7 0%, #f5f8fa 100%);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head.left {
  margin-inline: 0;
}

.section-head h2,
.split-copy h2,
.notice h2,
.contact-main h2,
.contact-aside h2 {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--wing);
}

.section-lead {
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
}

.section-more {
  margin: 2.5rem 0 0;
}

.pill,
.cat {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pill {
  background: rgba(184, 146, 90, 0.16);
  color: #7a5a2e;
}

.cat {
  background: rgba(22, 50, 74, 0.1);
  color: var(--sky);
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-item,
.news-card,
.result-card,
.board-card,
.notice,
.contact-aside {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.news-item h3,
.news-card h2,
.result-card h2,
.board-card h2 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.news-item h3 {
  margin: 0.85rem 0 0.6rem;
  font-size: 1.35rem;
}

.news-meta,
.news-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.95rem;
}

.news-item p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.text-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--sky);
}

.text-link:hover {
  color: var(--wing);
}

.news-list {
  display: grid;
  gap: 1.25rem;
  max-width: 820px;
}

.news-card h2 {
  margin: 0.9rem 0 0.8rem;
  font-size: 1.8rem;
}

.prose {
  color: var(--muted);
  white-space: pre-line;
}

/* Split / timeline */
.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: center;
}

.flight-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.flight-timeline li {
  display: grid;
  grid-template-columns: 9.5rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.ft-date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
}

.ft-place {
  font-size: 1.15rem;
}

.ft-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Results */
.results-row,
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.result-tile {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 10rem;
  padding: 1.25rem;
  text-decoration: none;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(22, 50, 74, 0.92), rgba(11, 31, 51, 0.96)),
    url("/assets/img/pigeons-sky.jpg") center/cover;
  background-blend-mode: multiply;
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.result-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.result-place {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.2rem;
  line-height: 1.2;
}

.result-date {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.result-cta {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--wing-soft);
}

.results-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 2rem;
}

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

.notice {
  padding: 2rem;
}

/* Portrait */
.section-portrait {
  padding-bottom: 5.5rem;
}

.portrait-frame {
  margin: 0;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 42% 48%;
  display: block;
  background: #d8dde3;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.data-table th,
.data-table td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.data-table th {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(22, 50, 74, 0.04);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tr.is-past {
  opacity: 0.55;
}

.data-table tr.is-today {
  background: rgba(184, 146, 90, 0.12);
}

.flight-group-head {
  margin-bottom: 1.5rem;
}

.flight-group-head h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.flight-table .flight-place {
  font-weight: 600;
}

.flight-country {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}

.flight-flag {
  width: 22px;
  height: 14px;
  object-fit: cover;
  border: 1px solid rgba(18, 32, 44, 0.25);
  border-radius: 2px;
  flex-shrink: 0;
}

.flight-table-wrap {
  min-width: 0;
}

.flight-table {
  min-width: 820px;
}

@media (max-width: 760px) {
  .flight-table {
    min-width: 0;
  }

  .flight-table thead {
    display: none;
  }

  .flight-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--line);
  }

  .flight-table td {
    border: 0;
    padding: 0;
  }

  .flight-table td[data-label="Miejscowość"],
  .flight-table td[data-label="Kraj"] {
    grid-column: 1 / -1;
  }

  .flight-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.15rem;
  }
}

/* Board / contact */
.board-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.board-role {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--wing);
}

.board-card h2 {
  margin: 0;
  font-size: 1.8rem;
}

/* Breeders catalog table */
.breeders-table-wrap {
  min-width: 0;
}

.breeders-table {
  min-width: 520px;
}

.breeders-table tbody tr:nth-child(even) {
  background: rgba(22, 50, 74, 0.03);
}

.breeders-table tbody tr:hover {
  background: rgba(184, 146, 90, 0.1);
}

.breeders-lp {
  width: 3.5rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.breeders-table .breeders-last {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.breeders-link {
  font-weight: 700;
  color: var(--wing);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.breeders-link:hover {
  color: var(--ink);
}

.breeders-none {
  color: var(--muted);
}

@media (max-width: 640px) {
  .breeders-table {
    min-width: 0;
  }

  .breeders-table thead {
    display: none;
  }

  .breeders-table tr {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 0.25rem 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
  }

  .breeders-table td {
    border: 0;
    padding: 0;
  }

  .breeders-table td[data-label="Lp"] {
    grid-row: 1 / span 3;
    align-self: center;
    font-size: 1.05rem;
  }

  .breeders-table td[data-label="Nazwisko"] {
    font-size: 1.1rem;
  }

  .breeders-table td[data-label="Imię"],
  .breeders-table td[data-label="Strona"] {
    color: var(--muted);
  }

  .breeders-table td[data-label="Imię"]::before,
  .breeders-table td[data-label="Strona"]::before {
    content: attr(data-label) ": ";
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
}

.contact-main,
.contact-aside {
  padding: 2rem;
}

.contact-main p,
.contact-aside p {
  color: var(--muted);
}

.link-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.link-list a {
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
}

.link-list a:hover {
  color: var(--wing);
}

/* Footer */
.site-footer {
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  background: var(--sky-deep);
  overflow: hidden;
  margin-top: 2rem;
}

.footer-sky {
  position: absolute;
  inset: 0;
  opacity: 0.28;
}

.footer-sky img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-inner,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  padding: 4rem 0 2.5rem;
}

.footer-kicker {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--wing-soft);
}

.footer-title {
  margin: 0.5rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

.footer-copy {
  margin: 0;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.footer-cols h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.footer-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-cols a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
}

.footer-cols a:hover {
  color: var(--wing-soft);
}

.footer-bottom {
  padding: 1.25rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
}

.footer-bottom p {
  margin: 0;
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 146, 90, 0.45);
}

.footer-credit a:hover {
  color: #fff;
  border-bottom-color: var(--wing);
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }

@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.05) translate3d(-0.5%, -0.25%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .hero-media-fg,
  .btn,
  .result-tile {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(251, 252, 253, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 1.1rem 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 40;
    display: block;
    flex: none;
    justify-content: stretch;
  }

  body.nav-open .site-nav {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.2rem;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    min-height: 3rem;
    padding: 0 0.9rem;
    font-size: 1rem;
    border-radius: 0.8rem;
  }

  .nav-link-accent {
    justify-content: center;
  }

  .nav-dropdown {
    position: static;
    top: auto;
    right: auto;
    min-width: 0;
    margin: 0.2rem 0 0.45rem;
    box-shadow: none;
    background: rgba(22, 50, 74, 0.04);
  }

  .nav-dropdown-link {
    white-space: normal;
  }

  .news-grid,
  .results-row {
    grid-template-columns: 1fr 1fr;
  }

  .split,
  .footer-inner,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .flight-timeline li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 1.5rem, 1120px);
    --header-h: 4rem;
  }

  .hero {
    min-height: 100svh;
    display: grid;
    align-items: end;
    background: #08121e;
  }

  .hero-media {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    aspect-ratio: auto;
    min-height: 0;
    background: #16324a;
    display: block;
    overflow: hidden;
  }

  .hero-media-fg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    padding: 0;
    box-sizing: border-box;
    object-fit: cover;
    object-position: 60% 30%;
    transform: none;
    animation: none !important;
    filter: none;
    z-index: 1;
  }

  .hero-veil {
    display: block;
    background:
      linear-gradient(
        180deg,
        rgba(8, 18, 30, 0.42) 0%,
        rgba(8, 18, 30, 0.12) 32%,
        rgba(8, 18, 30, 0.55) 68%,
        rgba(8, 18, 30, 0.9) 100%
      );
  }

  .hero-content {
    position: relative;
    z-index: 1;
    margin-top: 0;
    max-width: none;
    padding: 4.5rem 0 2.4rem;
    background: transparent;
  }

  .page-home .hero-content {
    padding-top: calc(var(--header-h) + 2.4rem);
  }

  .hero-brand {
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    margin-bottom: 0.85rem;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 18vw, 5.4rem);
  }

  .hero-lead {
    max-width: 18rem;
    margin-top: 1.1rem;
    font-size: 1.02rem;
  }

  .portrait-frame img {
    object-fit: contain;
    object-position: center center;
    background: #d8dde3;
  }

  .news-grid,
  .results-row,
  .results-grid,
  .board-grid,
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }

  .brand-sub {
    font-size: 0.7rem;
  }

  .list-autocomplete {
    flex: 1 1 100%;
  }

  .hero-actions,
  .inline-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .inline-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* PDF lightbox */
body.pdf-open,
body.gallery-open {
  overflow: hidden;
}

.pdf-lightbox[hidden] {
  display: none !important;
}

.pdf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.pdf-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 51, 0.72);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.pdf-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  height: min(92vh, 980px);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.pdf-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.85rem 0.75rem 1.15rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.pdf-lightbox-bar h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pdf-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.pdf-lightbox-close {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pdf-lightbox-close:hover,
.pdf-lightbox-close:focus-visible {
  background: rgba(18, 32, 44, 0.06);
  border-color: rgba(18, 32, 44, 0.25);
  outline: none;
}

.pdf-lightbox-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #525659;
}

@media (max-width: 760px) {
  .pdf-lightbox {
    padding: 0;
  }

  .pdf-lightbox-panel {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .pdf-lightbox-bar {
    flex-wrap: wrap;
  }

  .pdf-lightbox-bar h2 {
    width: 100%;
    order: -1;
  }
}

/* Documents / regulaminy */
.docs-list {
  display: grid;
  gap: 0.85rem;
}

.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.35rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.doc-row h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.doc-row .inline-actions {
  margin-top: 0;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .doc-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Search */
.search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.list-autocomplete {
  position: relative;
  flex: 1 1 280px;
  min-width: 0;
}

.search-panel input[type="search"] {
  width: 100%;
  min-height: 3rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
}

.search-panel input[type="search"]:focus {
  outline: 2px solid rgba(184, 146, 90, 0.45);
  border-color: var(--wing);
}

.list-suggest {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  max-height: 280px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(11, 31, 51, 0.14);
}

.list-suggest[hidden] {
  display: none;
}

.list-suggest-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

.list-suggest-item:hover,
.list-suggest-item.is-active {
  background: rgba(184, 146, 90, 0.16);
}

.list-suggest-empty {
  padding: 0.75rem 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.search-summary {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.search-groups {
  display: grid;
  gap: 1.5rem;
}

.search-group {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.search-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.search-group-head h2 {
  margin: 0.2rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.search-group-head p {
  margin: 0;
  color: var(--muted);
}

.search-table {
  min-width: 720px;
}

.search-table th {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .table-wrap:has(.search-table) {
    overflow: visible;
    border: 0;
    background: transparent;
    border-radius: 0;
  }

  .search-table {
    min-width: 0;
    width: 100%;
  }

  .search-table thead {
    display: none;
  }

  .search-table tbody {
    display: grid;
    gap: 0.75rem;
  }

  .search-table tr {
    display: grid;
    grid-template-columns: 3.25rem 1fr 1fr;
    gap: 0.35rem 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
  }

  .search-table td {
    border: 0;
    padding: 0;
    min-width: 0;
  }

  .search-table td[data-label="Poz."] {
    grid-row: 1 / span 4;
    align-self: center;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ink);
  }

  .search-table td[data-label="Hodowca"] {
    grid-column: 2 / -1;
    font-weight: 700;
    font-size: 1.02rem;
  }

  .search-table td[data-label="Obrączka"],
  .search-table td[data-label="Czas"] {
    grid-column: auto;
  }

  .search-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.1rem;
  }

  .search-table td[data-label="Poz."]::before,
  .search-table td[data-label="Hodowca"]::before {
    display: none;
  }

  .search-table tr.is-search-hit {
    box-shadow: inset 3px 0 0 var(--wing);
    background: rgba(184, 146, 90, 0.12);
  }

  .mobile-sort {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0 0 0.85rem;
  }

  .mobile-sort label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
  }

  .mobile-sort select {
    flex: 1;
    min-height: 2.6rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.45rem 0.7rem;
    background: #fff;
    font: inherit;
  }
}

@media (min-width: 761px) {
  .mobile-sort {
    display: none;
  }
}

.sort-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sort-btn::after {
  content: "↕";
  font-size: 0.75em;
  opacity: 0.35;
}

.sort-btn.is-active[data-dir="asc"]::after {
  content: "↑";
  opacity: 0.9;
  color: var(--wing);
}

.sort-btn.is-active[data-dir="desc"]::after {
  content: "↓";
  opacity: 0.9;
  color: var(--wing);
}

.sort-btn:hover {
  color: var(--ink);
}

.search-table tr.is-search-hit {
  background: rgba(184, 146, 90, 0.18);
}

.search-table tr.is-search-hit td:first-child {
  box-shadow: inset 3px 0 0 var(--wing);
}

.search-group-head .inline-actions {
  margin-top: 0;
}

/* Loft map */
.section-map {
  padding-top: 1.5rem;
}

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.4rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.map-legend-item.is-active {
  color: var(--ink);
  border-color: rgba(22, 50, 74, 0.28);
  background: #fff;
}

.map-legend-item .map-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--sky);
}

.map-legend-item[data-color-index="1"] .map-dot { background: #b8925a; }
.map-legend-item[data-color-index="2"] .map-dot { background: #2a7a6a; }
.map-legend-item[data-color-index="3"] .map-dot { background: #3b6ea5; }
.map-legend-item[data-color-index="4"] .map-dot { background: #8b4d6b; }
.map-legend-item[data-color-index="5"] .map-dot { background: #c45c26; }

.loft-map {
  width: 100%;
  height: min(72vh, 720px);
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #d9e3ea;
  z-index: 1;
}

.map-credit {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.map-credit a {
  color: var(--sky);
  text-decoration: none;
}

.loft-marker {
  background: transparent;
  border: 0;
}

.loft-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--pin, #16324a);
  color: #fff;
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(11, 31, 51, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.leaflet-popup-content {
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0.65rem 0.85rem;
}

.flight-map-toolbar {
  align-items: center;
}

.flight-select-wrap select {
  min-height: 2.6rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  max-width: min(100%, 420px);
}

.home-pin {
  --pin: #0b1f33;
  min-width: 2.8rem;
}

.flight-pin {
  min-width: 2.8rem;
  font-size: 0.68rem;
}

.flight-popup .flight-flag {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.35rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Photo gallery */
.gallery-section {
  padding-top: 0.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  grid-auto-flow: dense;
}

.gallery-item {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  position: relative;
  overflow: hidden;
  border-radius: 0.85rem;
  background: rgba(11, 31, 51, 0.08);
  cursor: zoom-in;
  text-align: left;
  color: inherit;
  aspect-ratio: 3 / 4;
  box-shadow: 0 10px 28px rgba(11, 31, 51, 0.08);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.gallery-item.is-landscape {
  aspect-ratio: 4 / 3;
  grid-column: span 1;
}

.gallery-item:focus-visible {
  outline: 2px solid var(--wing);
  outline-offset: 3px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}

.gallery-item-meta {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 2.4rem 0.95rem 0.85rem;
  background: linear-gradient(transparent, rgba(11, 31, 51, 0.78));
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  font-family: var(--font-display);
}

.gallery-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.gallery-item-zoom {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wing-soft);
  white-space: nowrap;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(11, 31, 51, 0.16);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.05);
}

.gallery-item:hover .gallery-item-meta,
.gallery-item:focus-visible .gallery-item-meta {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item-meta {
    opacity: 1;
    transform: none;
    padding-top: 2rem;
  }
}

/* Gallery lightbox */
.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 0;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 26, 0.88);
  backdrop-filter: blur(8px);
  cursor: pointer;
  animation: galleryFadeIn 0.28s ease;
}

.gallery-lightbox-stage {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.85rem;
  animation: galleryRise 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
  font-family: var(--font-display);
}

.gallery-lightbox-bar h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.gallery-lightbox-count {
  margin: 0.15rem 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  font-weight: 600;
}

.gallery-lightbox-close {
  appearance: none;
  border: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  transform: scale(1.05);
}

.gallery-lightbox-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 40vh;
}

.gallery-lightbox-frame img {
  max-width: 100%;
  max-height: min(78vh, 920px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.65rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  background: rgba(255, 255, 255, 0.04);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  border: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.gallery-nav:hover,
.gallery-nav:focus-visible {
  background: rgba(184, 146, 90, 0.85);
  outline: none;
  transform: translateY(-50%) scale(1.05);
}

.gallery-nav-prev {
  left: 0.35rem;
}

.gallery-nav-next {
  right: 0.35rem;
}

.gallery-lightbox-hint {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

@keyframes galleryFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes galleryRise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .gallery-lightbox-stage {
    width: calc(100% - 1rem);
    max-height: calc(100vh - 1rem);
  }

  .gallery-nav {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.4rem;
  }

  .gallery-lightbox-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item,
  .gallery-item img,
  .gallery-item-meta,
  .gallery-lightbox-backdrop,
  .gallery-lightbox-stage {
    transition: none !important;
    animation: none !important;
  }
}

/* Films — cinema */
.films-section {
  padding-top: 0.35rem;
}

.films-cinema {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.7fr);
  gap: 1.35rem;
  align-items: start;
}

.films-stage {
  display: grid;
  gap: 1.1rem;
}

.films-stage-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.15rem;
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(184, 146, 90, 0.28), transparent 55%),
    linear-gradient(160deg, #0b1f33, #16324a 55%, #0b1f33);
  box-shadow:
    0 28px 70px rgba(11, 31, 51, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  aspect-ratio: 16 / 9;
}

.films-stage-frame.is-short-1 {
  aspect-ratio: 16 / 10;
  max-width: 100%;
}

.films-poster,
.films-player,
.films-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.films-poster {
  appearance: none;
  padding: 0;
  margin: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
  color: inherit;
}

.films-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(0.92) contrast(1.05);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}

.films-poster-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 16, 26, 0.15), rgba(8, 16, 26, 0.55) 70%, rgba(8, 16, 26, 0.78)),
    radial-gradient(circle at 50% 45%, transparent 0 18%, rgba(8, 16, 26, 0.28) 55%);
}

.films-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 5.1rem;
  height: 5.1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.films-play-icon {
  width: 0;
  height: 0;
  margin-left: 0.25rem;
  border-style: solid;
  border-width: 0.7rem 0 0.7rem 1.2rem;
  border-color: transparent transparent transparent #fff;
}

.films-card:nth-child(1) .films-card-thumb img,
.films-poster img {
  filter: saturate(0.95) contrast(1.05) hue-rotate(-6deg);
}

.films-card:nth-child(2) .films-card-thumb img {
  filter: saturate(1.05) contrast(1.08) hue-rotate(8deg) brightness(0.96);
}

.films-card:nth-child(3) .films-card-thumb img {
  filter: saturate(0.88) contrast(1.1) hue-rotate(-14deg) brightness(0.94);
}

.films-poster:hover img,
.films-poster:focus-visible img {
  transform: scale(1.1);
  filter: saturate(1.08) contrast(1.1);
}

.films-poster:hover .films-play,
.films-poster:focus-visible .films-play {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(184, 146, 90, 0.88);
  box-shadow: 0 18px 44px rgba(184, 146, 90, 0.35);
}

.films-poster:focus-visible {
  outline: none;
}

.films-poster:focus-visible .films-play {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.films-stage-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.films-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wing);
}

.films-stage-meta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.films-date {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.films-stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.films-rail {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(11, 31, 51, 0.08);
  backdrop-filter: blur(8px);
}

.films-rail-label {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.films-rail-list {
  display: grid;
  gap: 0.75rem;
}

.films-card {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.45rem;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.films-card:hover,
.films-card:focus-visible {
  background: rgba(22, 50, 74, 0.05);
  border-color: rgba(22, 50, 74, 0.08);
  outline: none;
  transform: translateX(2px);
}

.films-card.is-active {
  background: rgba(184, 146, 90, 0.12);
  border-color: rgba(184, 146, 90, 0.35);
}

.films-card-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0.6rem;
  aspect-ratio: 16 / 10;
  background: #16324a;
}

.films-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.films-card-play {
  position: absolute;
  inset: auto 0.35rem 0.35rem auto;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(11, 31, 51, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.films-card-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.28rem 0 0.28rem 0.45rem;
  border-color: transparent transparent transparent #fff;
}

.films-badge {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  padding: 0.18rem 0.4rem;
  border-radius: 999px;
  background: rgba(184, 146, 90, 0.92);
  color: #12202c;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.films-card-body {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.films-card-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.films-card-date {
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .films-cinema {
    grid-template-columns: 1fr;
  }

  .films-rail {
    position: static;
  }

  .films-rail-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .films-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .films-rail-list {
    grid-template-columns: 1fr;
  }

  .films-card {
    grid-template-columns: 7.2rem 1fr;
  }

  .films-play {
    width: 4.2rem;
    height: 4.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .films-poster img,
  .films-play,
  .films-card {
    transition: none !important;
  }
}

/* Auth / account */
.auth-shell {
  max-width: 520px;
}

.auth-card {
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(11, 31, 51, 0.08);
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.auth-field {
  display: grid;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}

.auth-field input,
.auth-field select {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 500;
}

.auth-field input:focus,
.auth-field select:focus {
  outline: 2px solid rgba(184, 146, 90, 0.55);
  outline-offset: 1px;
  border-color: rgba(184, 146, 90, 0.65);
}

.auth-hint {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
}

.auth-alert {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: rgba(160, 50, 40, 0.08);
  border: 1px solid rgba(160, 50, 40, 0.2);
  color: #7a2a22;
}

.auth-alert p {
  margin: 0.15rem 0;
}

.auth-switch {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.auth-switch a {
  color: var(--wing);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.auth-card .btn {
  justify-self: start;
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }
}
