/* Fonty lokalne: Manrope (nagłówki i tekst), EB Garamond Italic (znak wodny w stopce) */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(assets/fonts/manrope-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(assets/fonts/manrope-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(assets/fonts/ebg-Regular.woff2) format("woff2")
}

@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(assets/fonts/ebg-Italic.woff2) format("woff2")
}

:root {
  --navy: #1E2761;
  --navy-2: #151B49;
  --navy-cal: #0B1F4D;
  --night: #0C0F2E;
  --blue: #1D4ED8;
  --blue-side: #112D81;
  --blue-grey: #8FA3D0;
  --gold: #1E2761;
  --gold-cal: #112D81;
  --gold-lt: #8FA3D0;
  --brown: #112D81;
  --ink: #2B2F3E;
  --muted: #5B6275;
  --line: #C7CFE8;
  --line-soft: #c6c8d0;
  --on-dark: #FBFAF7;
  --on-dark-2: rgba(251, 250, 247, .88);
  --card: #F2F5FC;
  --day: #E8EEFC;
  --cream: #EEF3FC;
  --white: #fff;
  --foot-grey: #9AA0B2;
  --head: "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --serif: "EB Garamond", Georgia, serif;
  --wrap: min(82vw, 1340px);
  --gut: clamp(16px, 2.5vw, 32px);
  --bar-h: 88px;
  --ease: cubic-bezier(.23, 1, .32, 1);

  --k1: rgba(255, 255, 255, .12);
  --k2: rgba(255, 255, 255, .55);
  --k3: rgba(255, 255, 255, .22);
  --k4: rgba(212, 169, 76, .24);
  --k5: rgba(233, 205, 138, .22);
  --k6: rgba(12, 15, 46, .35);
  --k7: rgba(12, 15, 46, .72);
  --k8: #8FA3D0;
  --k9: #B9BECB;
  --k10: #9A7A2E;
  --k11: rgba(212, 169, 76, .18);
  --k12: rgba(255, 255, 255, .18);
  --k13: rgba(255, 255, 255, .14);
  --k14: rgba(212, 169, 76, .16);
  --k15: rgba(255, 255, 255, .16);
  --k16: rgba(255, 255, 255, .4);
  --k17: rgba(212, 169, 76, .2);
  --k18: rgba(255, 255, 255, .08);
  --k19: rgba(255, 255, 255, .25);
  --k20: rgba(212, 169, 76, .25);
  --k21: rgba(12, 15, 46, .9);
  --k22: rgba(255, 255, 255, .75);
  --k23: rgba(12, 15, 46, .55);
  --h-gold: rgba(212, 169, 76, .30);
  --h-n1: rgba(12, 15, 46, .94);
  --h-n2: rgba(21, 27, 73, .84);
  --h-n3: rgba(30, 39, 97, .50);
  --h-n4: rgba(12, 15, 46, .9);
}

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

html {
  font-size: 15px;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }
}

body {
  overflow-x: clip;
  margin: 0;
  font: 400 16px/1.6 var(--body);
  color: var(--ink);
  background: var(--white);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent
}

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

a {
  color: inherit
}

h1,
h2,
h3,
h4 {
  font-family: var(--head);
  color: var(--navy);
  margin: 0;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.1;
  text-wrap: balance
}

h2 {
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.1rem);
  letter-spacing: -.025em
}

h3 {
  font-size: 1.5rem
}

p {
  margin: 0 0 1em;
  text-wrap: pretty
}

strong {
  font-weight: 600;
  color: var(--navy)
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut)
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--navy);
  color: var(--on-dark);
  padding: 10px 16px;
  border-radius: 4px
}

.skip:focus {
  top: 12px
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px
}

/* Przyciski */
.btn {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 6px;
  font: 600 16px/1 var(--body);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .16s var(--ease)
}

.btn:active {
  transform: scale(.97)
}

.btn--navy {
  background: var(--navy);
  color: var(--on-dark)
}

.btn--gold {
  background: var(--gold-cal);
  color: var(--white)
}

.btn--white {
  background: var(--white);
  color: var(--navy)
}

.btn--line {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--navy)
}

.btn--ghost {
  background: var(--k1);
  color: var(--on-dark);
  box-shadow: inset 0 0 0 1.5px var(--k2)
}

@media (hover:hover) and (pointer:fine) {
  .btn--navy:hover {
    background: var(--blue-side)
  }

  .btn--gold:hover {
    background: var(--navy)
  }

  .btn--white:hover {
    background: var(--cream)
  }

  .btn--line:hover {
    background: var(--navy);
    color: var(--on-dark)
  }

  .btn--ghost:hover {
    background: var(--k3)
  }
}

/* Pasek nawigacji: subtelny efekt glass o wysokiej przezroczystości, linia edytorialna rozszerzająca się przy scrollu */
.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  transition: background-color .28s var(--ease)
}

.bar.is-scrolled {
  background: rgba(255, 255, 255, .94)
}

.bar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: max(var(--gut), calc(50% - var(--wrap) / 2 + var(--gut)));
  right: max(var(--gut), calc(50% - var(--wrap) / 2 + var(--gut)));
  height: 1px;
  background: var(--navy);
  transition: left .28s var(--ease), right .28s var(--ease)
}

.bar.is-scrolled::after {
  left: 0;
  right: 0
}

.bar__in {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--bar-h)
}

.bar__contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: 24px;
  padding: 6px 0;
  font: 500 15px/1.2 var(--body);
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--navy);
  transition: color .2s var(--ease), border-color .2s var(--ease)
}

@media (hover:hover) and (pointer:fine) {
  .bar__contact:hover {
    color: var(--blue-side);
    border-color: var(--blue-side)
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none
}

.brand__full {
  height: 70px;
  width: auto
}

.brand__sig,
.brand__txt {
  display: none
}

.nav {
  margin-left: auto
}

.nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0
}

.nav a {
  display: block;
  padding: 10px 12px;
  font: 500 16px/1.2 var(--body);
  color: var(--ink);
  text-decoration: none;
  border-radius: 4px;
  position: relative
}

.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--gold-cal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease)
}

.nav a[aria-current="true"] {
  color: var(--navy);
  font-weight: 600
}

.nav a[aria-current="true"]::after {
  transform: scaleX(1)
}

@media (hover:hover) and (pointer:fine) {
  .nav a:hover {
    color: var(--navy);
    background: var(--card)
  }
}

.menu-btn {
  display: none
}

/* Menu mobilne */
.menu {
  margin: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  border: 0;
  padding: 20px var(--gut) calc(24px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--navy) 0%, var(--night) 100%);
  color: var(--on-dark)
}

.menu[open] {
  display: flex;
  flex-direction: column
}

.menu::backdrop {
  background: var(--night)
}

.menu__head {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.menu__head img {
  height: 56px;
  width: auto
}

.menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  background: none;
  border: 0;
  color: var(--on-dark);
  padding: 0;
  width: 44px;
  min-height: 44px;
  cursor: pointer
}

.menu__list {
  list-style: none;
  margin: 32px 0 auto;
  padding: 0
}

.menu__list a {
  display: block;
  padding: 14px 0;
  font: 700 clamp(1.8rem, 8vw, 2.4rem)/1.15 var(--head);
  color: var(--on-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--k1)
}

.menu__social {
  margin-top: 24px
}

/* LANDING PAGE: edytorialny układ */
.opening {
  padding-top: clamp(32px, 4vw, 52px);
  padding-bottom: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px)
}

.opening h1 {
  grid-column: 1 / 10;
  color: var(--navy);
  font-size: clamp(2.5rem, 1rem + 4.6vw, 5rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.04em
}

.opening__year {
  grid-column: 10 / 13;
  justify-self: end;
  align-self: start;
  margin: 0;
  padding-top: 6px;
  font-size: clamp(1.35rem, .95rem + 1.1vw, 1.9rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--navy) 68%, transparent);
  text-align: right
}

.opening__year strong {
  display: inline-block;
  font-size: clamp(2.5rem, 1.6rem + 2.6vw, 3.8rem);
  font-weight: 800;
  line-height: .96;
  color: var(--navy)
}

.opening__bottom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  align-items: stretch
}

.opening__side {
  grid-column: 1 / 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 24px
}

.opening__uni {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--navy)
}

.opening__desc {
  margin: 0;
  max-width: 28ch;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--navy)
}

.opening__cta {
  border-radius: 3px;
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px
}

.opening__fig {
  grid-column: 5 / 13;
  margin: 0
}

.opening__fig img {
  width: 100%;
  height: clamp(260px, 28vw, 390px);
  object-fit: cover;
  object-position: 50% 43%
}

.opening__fig figcaption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted)
}

/* Nagłówek sekcji */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px
}

.sec-head__aside {
  margin: 0;
  color: var(--muted);
  font-size: 1rem
}

/* Partnerzy roczni + Kolorowa ściana partnerów z 02 */
.annual {
  padding: 96px 0 88px
}

.tiers {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.3fr);
  border-top: 2px solid var(--navy)
}

.tier {
  padding: 28px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-right: 1px solid var(--line-soft);
  min-height: 260px
}

.tier:first-child {
  padding-left: 0
}

.tier:last-child {
  border-right: 0;
  padding-right: 0
}

.tier h3 {
  font: 600 1rem/1.3 var(--body);
  color: var(--muted);
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 10px
}

.tier h3::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--c, var(--gold))
}

.tier--diamond {
  --c: var(--k8)
}

.tier--diamond h3 {
  color: var(--navy)
}

.tier--gold {
  --c: var(--gold-cal)
}

.tier--silver {
  --c: var(--k9)
}

.tier__link {
  display: inline-flex;
  align-items: center;
  margin-block: auto;
  width: fit-content;
  text-decoration: none;
  transition: transform .2s var(--ease), opacity .2s var(--ease)
}

@media (hover:hover) and (pointer:fine) {

  .tier__link:hover,
  .partner-wall a:hover {
    transform: translateY(-2px);
    opacity: .8
  }
}

.tier img {
  object-fit: contain
}

.tier--diamond img {
  width: 100%;
  max-width: 440px;
  margin-block: auto
}

.tier--gold img {
  width: 132px;
  margin-block: auto
}

.tier__logos {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-block: auto
}

.tier--silver img {
  height: 64px;
  width: auto
}

.wall-heading {
  font-size: 1.25rem;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
  color: var(--navy)
}

.partner-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 30px 40px;
  align-items: center;
  padding-top: 24px
}

.partner-wall a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform .2s var(--ease), opacity .2s var(--ease)
}

.partner-wall img {
  width: 100%;
  height: 60px;
  object-fit: contain;
  max-width: 150px;
  margin: auto
}

/* O nas */
.about {
  background: var(--cream);
  padding: 96px 0
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center
}

.about h2 {
  margin-bottom: 28px
}

.about__lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--navy)
}

.about p {
  max-width: 60ch
}

.figures {
  display: flex;
  gap: 56px;
  margin: 36px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line)
}

.figures div {
  display: flex;
  flex-direction: column-reverse
}

.figures dt {
  color: var(--muted);
  font-size: .95rem;
  font-variant-numeric: tabular-nums
}

.figures dd {
  margin: 0;
  font: 800 3rem/1 var(--head);
  color: var(--navy);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums
}

.about__photo {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3
}

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

/* Projekty: rejestr dwóch kolumn */
.projects {
  padding: 136px 0 40px
}

.projects .sec-head {
  padding-bottom: 20px;
  border-bottom: 2px solid var(--navy)
}

.projects h2 {
  font-size: clamp(2.35rem, 1.55rem + 2.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.03em
}

.projects--cont {
  padding: 96px 0 72px
}

.ledger-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 56px;
  padding: 0 0 12px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--navy);
  font: 600 .95rem/1 var(--body);
  color: var(--navy)
}

.ledger-head span:last-child {
  padding-left: 32px
}

.proj {
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--line)
}

.projects--cont .proj:first-child {
  padding-top: 0
}

.projects--cont .proj:last-child {
  border-bottom: 0
}

.proj__photos {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 28px
}

.proj__photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px
}

.proj__photos--3 {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  height: 440px
}

.proj__photos--2w {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  height: 420px
}

.proj__photos--csa {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  height: 440px
}

.proj--flip .proj__photos--2w {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr)
}

.proj--flip .proj__photos--2w img:first-child {
  order: 2
}

.proj__body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 56px
}

.proj__logo {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  margin-bottom: 14px
}

.proj__term {
  font: 600 1rem/1.3 var(--body);
  color: var(--blue-side);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums
}

.proj h3 {
  font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem);
  letter-spacing: -.025em
}

.proj__motto {
  font: 500 1.15rem/1.4 var(--head);
  color: var(--k10);
  margin: 8px 0 18px
}

.proj__students p:last-child {
  max-width: 62ch
}

.proj__firms {
  padding: 0 0 0 32px;
  align-self: start
}

.proj__firms h4 {
  font: 600 1rem/1.3 var(--body);
  color: var(--navy);
  margin: 0 0 12px
}

.proj__firms h4:not(:first-child) {
  margin-top: 28px
}

.dash {
  list-style: none;
  margin: 0;
  padding: 0
}

.dash li {
  padding: 6px 0 6px 20px;
  position: relative
}

.dash li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 10px;
  height: 2px;
  background: var(--gold-cal)
}

/* Partnerzy edycji w białych prostokątach (styl z 06) */
.logos-sm {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

.logos-sm li {
  display: grid;
  place-items: center;
  height: 64px;
  padding: 12px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 120px
}

.logos-sm img {
  max-height: 40px;
  max-width: 130px;
  width: auto;
  object-fit: contain
}

.logos-sm--buyf li {
  border-color: var(--line-soft);
  min-width: 136px
}

/* Build Up Your Future: granatowy -> biały gradient po przekątnej i układ jak w wariancie 23 */
.buyf {
  padding: 28px 0 44px;
  background: transparent
}

.buyf__box {
  background: var(--white);
  color: var(--ink);
  padding: clamp(28px, 4.2vw, 56px);
  border-radius: 4px;
  border: 1px solid var(--line-soft)
}

.buyf__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch
}

.buyf h2 {
  color: var(--navy);
  font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.3rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.035em;
  margin-bottom: 14px
}

.buyf strong {
  color: var(--navy)
}

.buyf .proj__term {
  color: var(--blue-side);
  font-size: 1rem
}

.buyf .proj__motto {
  color: var(--brown)
}

.buyf__text p {
  max-width: 58ch
}

.buyf__text .btn {
  margin-top: 12px
}

.buyf__photos {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 14px;
  min-height: 460px
}

.buyf__photos img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  border-radius: 2px
}

.buyf__main {
  grid-column: 1;
  grid-row: 1
}

.buyf__side {
  grid-column: 2;
  grid-row: 1;
  margin-top: 0
}

.buyf__partners {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line)
}

.buyf__partners h3 {
  font: 600 .95rem/1.3 var(--body);
  color: var(--navy);
  margin-bottom: 16px
}

.logos {
  list-style: none;
  margin: 0;
  padding: 0
}

.logos--plate {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1px;
  background: var(--k13);
  border-radius: 6px;
  overflow: hidden
}

.logos--plate li {
  background: var(--white);
  display: grid;
  place-items: center;
  height: 104px;
  padding: 18px
}

.logos--plate img {
  height: auto;
  max-height: 52px;
  max-width: 100%;
  object-fit: contain
}

/* Pas zdjęć */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr) minmax(0, 1.6fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 6px;
  height: min(42vw, 440px);
  padding: 0 6px;
  overflow: hidden
}

.strip img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover
}

/* Dla firm: jasny układ z 06 */
.firms {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  padding: 96px 0;
  background: var(--card)
}

.firms__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center
}

.firms h2 {
  margin-bottom: 18px
}

.firms__lead {
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink);
  max-width: 54ch
}

.firm-points {
  list-style: none;
  margin: 28px 0 32px;
  padding: 0
}

.firm-points li {
  padding: 14px 0;
  border-top: 1px solid var(--line)
}

.firm-points li:last-child {
  border-bottom: 1px solid var(--line)
}

.firms__photo {
  margin: 0
}

.firms__photo img {
  border-radius: 8px;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%
}

/* Terminy projektów (Google Calendar) */
.terms {
  scroll-margin-top: 96px
}

.terms h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--navy)
}

.term-list {
  list-style: none;
  margin: 0;
  padding: 0
}

.term-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line)
}

.term-list li:last-child {
  border-bottom: 1px solid var(--line)
}

.term-list b {
  font: 700 1.08rem/1.3 var(--head);
  color: var(--ink)
}

.term-list li>span {
  grid-column: 1;
  color: var(--muted);
  font-size: .95rem
}

.term-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  grid-row: 1/3;
  grid-column: 2;
  align-self: center;
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  white-space: nowrap
}

@media (hover:hover) and (pointer:fine) {
  .term-list a:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy)
  }
}

/* Zarząd */
.board {
  padding: 36px 0 104px
}

.board__fig {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border-radius: 8px;
  overflow: hidden;
  min-height: 560px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--night) 100%)
}

.board__fig img {
  width: 100%;
  height: 100%;
  max-height: 680px;
  object-fit: cover;
  object-position: 50% 30%
}

.board__fig figcaption {
  position: relative;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: radial-gradient(60% 70% at 20% 20%, var(--k17), transparent 65%)
}

.board__fig h2 {
  color: var(--on-dark)
}

.board__fig p {
  color: var(--gold-lt);
  margin: 12px 0 0;
  font-size: 1.15rem
}

/* Co robimy? / Social */
.news {
  padding: 72px 0 80px;
  background: var(--white);
  border-top: 1px solid var(--line-soft)
}

.news__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start
}

.news__carousel {
  min-width: 0
}

.wa-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center
}

.wa-carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none
}

.wa-carousel__track::-webkit-scrollbar {
  display: none
}

.wa-carousel__track .feed {
  flex: 0 0 100%;
  scroll-snap-align: center;
  min-width: 0
}

.wa-carousel__nav {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s var(--ease), background-color .2s var(--ease)
}

@media (hover:hover) and (pointer:fine) {
  .wa-carousel__nav:hover {
    color: var(--navy);
    background: var(--card)
  }
}

.wa-carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px
}

.wa-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease)
}

.wa-carousel__dot.is-active {
  background: var(--blue);
  transform: scale(1.15)
}

.feed__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line)
}

.feed__head h3 {
  font-size: 1.25rem
}

.feed__head a {
  color: var(--muted);
  font-size: .9rem;
  text-underline-offset: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.feed__frame-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--white)
}

.feed__frame {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
  background: var(--white)
}

.social-links {
  display: flex;
  gap: 8px
}

.social-links a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  color: var(--navy);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .2s var(--ease), color .2s var(--ease)
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor
}

@media (hover:hover) and (pointer:fine) {
  .social-links a:hover {
    background: var(--navy);
    color: var(--on-dark)
  }
}

.social-links--light a,
.menu .social-links a {
  background: var(--k18);
  color: var(--on-dark);
  box-shadow: inset 0 0 0 1px var(--k19)
}

@media (hover:hover) and (pointer:fine) {
  .social-links--light a:hover {
    background: var(--white);
    color: var(--navy)
  }
}

/* Rekrutacja (zamknięta, zaproszenie na wydarzenia) */
.recruit {
  padding: 72px 0;
  background: var(--white);
  border-top: 1px solid var(--line-soft)
}

.recruit__box {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 32px;
  align-items: center;
  padding: 36px 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px
}

.recruit__badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 4px;
  background: var(--navy);
  color: var(--gold-lt);
  font: 600 .85rem/1.2 var(--body);
  margin-bottom: 14px
}

.recruit__copy h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  margin-bottom: 10px
}

.recruit__copy p {
  margin: 0;
  max-width: 62ch;
  color: var(--ink)
}

.recruit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px
}

/* CTA */
.cta {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  padding: 40px 0;
  background: var(--card);
  border-top: 1px solid var(--line-soft)
}

.cta__in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap
}

.cta h2 {
  color: var(--navy);
  font-size: clamp(1.85rem, 1.2rem + 2.2vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.04
}

.cta__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px
}

.cta__q {
  margin: 0;
  font: 600 1.15rem/1.3 var(--head);
  color: var(--muted)
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end
}

.cta__social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
  font: 600 15px/1 var(--body);
  text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease)
}

@media (hover:hover) and (pointer:fine) {
  .cta__social:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy)
  }
}

/* Stopka: jasna + znak wodny KNSG UW */
.foot {
  background: var(--white);
  color: var(--ink);
  padding: 56px 0 0;
  border-top: 1px solid var(--line-soft);
  overflow: hidden
}

.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px
}

.foot__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px
}

.foot__logo {
  height: 76px;
  width: auto
}

.foot__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px
}

.foot__nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--navy);
  display: inline-block;
  padding: 8px 0
}

@media (hover:hover) and (pointer:fine) {
  .foot__nav a:hover {
    color: var(--blue-side)
  }
}

.foot__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--muted)
}

.foot__base p {
  margin: 0
}

.foot__mark {
  margin: 28px 0 0;
  padding-inline: 2vw;
  width: 100%;
  text-align: center;
  font-family: "BBH Bartle", var(--head);
  font-style: italic;
  font-weight: 400;
  font-size: 12vw;
  line-height: .94;
  letter-spacing: -.02em;
  background: linear-gradient(180deg, rgba(30, 39, 97, .22) 0%, rgba(30, 39, 97, .06) 65%, rgba(30, 39, 97, 0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  white-space: nowrap
}

/* Podstrona Zarządu */
.board__fig figcaption .btn {
  align-self: flex-start;
  margin-top: 24px
}

.page-head {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--night) 100%);
  color: var(--on-dark);
  padding: 72px 0 64px
}

.page-head h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.6rem);
  margin: 12px 0 16px
}

.page-head p {
  max-width: 58ch;
  color: var(--on-dark-2);
  margin: 0
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-lt);
  text-decoration: none;
  font: 600 15px/1 var(--head)
}

.page-back:hover {
  text-decoration: underline;
  text-underline-offset: 4px
}

.board-hero {
  padding: 64px 0;
  background: var(--cream)
}

.board-hero__img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 8px
}

.board-members {
  padding: 80px 0 96px
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px
}

.member-card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.member-card__role {
  font: 600 .85rem/1.2 var(--body);
  color: var(--blue-side);
  text-transform: uppercase;
  letter-spacing: .04em
}

.member-card h3 {
  font-size: 1.35rem
}

.member-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .98rem
}

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

/* Wejście sekcji */
@media (prefers-reduced-motion:no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s var(--ease), transform .6s var(--ease)
  }

  .js .reveal.in {
    opacity: 1;
    transform: none
  }
}

/* ---------- Responsywność ---------- */
@media (max-width:1120px) {

  .nav,
  .bar__cta,
  .bar__contact {
    display: none
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--navy);
    cursor: pointer
  }

  .menu-btn__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap
  }

  .menu-btn__lines {
    width: 22px;
    height: 15px;
    background: linear-gradient(currentColor 0 0) top/100% 2px no-repeat, linear-gradient(currentColor 0 0) center/100% 2px no-repeat, linear-gradient(currentColor 0 0) bottom/100% 2px no-repeat
  }

  .partner-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr))
  }

  .logos--plate {
    grid-template-columns: repeat(4, 1fr)
  }
}

@media (max-width:900px) {
  :root {
    --bar-h: 68px;
    --wrap: 100%;
    --gut: 6vw
  }

  .brand__full {
    display: none
  }

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

  .brand__txt {
    display: block;
    font: 700 1.2rem/1 var(--head);
    color: var(--navy);
    letter-spacing: -.01em
  }

  .opening h1 {
    grid-column: 1 / 9;
    font-size: clamp(2.1rem, 1rem + 5vw, 3.8rem)
  }

  .opening__year {
    grid-column: 9 / 13;
    font-size: clamp(1.1rem, .85rem + 1vw, 1.5rem)
  }

  .opening__year strong {
    font-size: clamp(1.85rem, 1.2rem + 2.4vw, 2.6rem)
  }

  .opening__side {
    grid-column: 1 / -1;
    padding-bottom: 0
  }

  .opening__desc {
    max-width: 48ch
  }

  .opening__fig {
    grid-column: 1 / -1
  }

  .about__grid,
  .buyf__grid,
  .proj__body,
  .firms__grid,
  .news__grid,
  .board__fig,
  .recruit__box {
    grid-template-columns: minmax(0, 1fr)
  }

  .tiers {
    grid-template-columns: minmax(0, 1fr)
  }

  .tier,
  .tier:first-child,
  .tier:last-child {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    min-height: 0;
    gap: 20px
  }

  .tier--diamond img {
    max-width: 320px
  }

  .tier--gold img {
    width: 100px
  }

  .tier--silver img {
    height: 52px
  }

  .partner-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 20px
  }

  .partner-wall img {
    height: 48px
  }

  .ledger-head {
    display: none
  }

  .proj__body {
    gap: 32px
  }

  .proj__firms {
    padding: 24px 0 0;
    border-top: 1px solid var(--line)
  }

  .proj__photos--3,
  .proj__photos--2w,
  .proj__photos--csa {
    height: auto;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr)
  }

  .proj__photos img {
    aspect-ratio: 4/5
  }

  .proj__photos img:first-child {
    grid-column: 1/-1;
    aspect-ratio: 3/2
  }

  .proj--flip .proj__photos--2w img:first-child {
    order: 0
  }

  .proj__photos--2w img,
  .proj__photos--csa img {
    grid-column: 1/-1;
    aspect-ratio: 3/2
  }

  .buyf__photos {
    min-height: 0;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr)
  }

  .buyf__main {
    aspect-ratio: 3/4
  }

  .buyf__side {
    margin-top: 0;
    aspect-ratio: 3/4
  }

  .strip {
    grid-template-columns: repeat(5, 72vw);
    height: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0
  }

  .strip img {
    aspect-ratio: 3/4;
    scroll-snap-align: start
  }

  .board__fig img {
    max-height: 520px
  }

  .board__fig figcaption {
    padding: 32px 24px
  }

  .wa-carousel {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px
  }

  .wa-carousel__nav {
    width: 36px;
    height: 36px
  }

  .cta__right {
    align-items: flex-start
  }

  .cta__actions {
    justify-content: flex-start
  }

  .foot__in,
  .foot__right {
    flex-direction: column;
    align-items: flex-start
  }
}

@media (max-width:640px) {
  body {
    font-size: 16px
  }

  .annual,
  .about,
  .projects,
  .buyf,
  .firms,
  .news {
    padding-block: 72px
  }

  .projects--cont {
    padding-top: 56px
  }

  .logos--plate {
    grid-template-columns: repeat(2, 1fr)
  }

  .logos--plate li {
    height: 88px
  }

  .term-list li {
    grid-template-columns: 1fr
  }

  .term-list a {
    grid-row: auto;
    grid-column: 1;
    justify-self: start;
    margin-top: 6px
  }

  .feed__frame {
    height: 520px
  }

  .recruit__box {
    padding: 28px 20px
  }

  .cta {
    padding: 32px 0
  }
}

/* Kadry */
#investlab .proj__photos img:nth-child(2) {
  object-position: 20% 50%
}

.strip img:nth-child(3) {
  object-position: 15% 50%
}

/* Odnośnik do archiwum pod projektami */
.projects__archive {
  margin-top: 24px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px
}

.projects__archive-kicker {
  margin: 0 0 6px;
  font: 600 .88rem/1.2 var(--body);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue-side)
}

.projects__archive-copy h3 {
  font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem);
  margin: 0 0 6px
}

.projects__archive-copy p:last-child {
  margin: 0;
  color: var(--muted);
  max-width: 58ch
}

/* Podstrona archiwum projektów */
.arch-main {
  padding: clamp(40px, 5vw, 64px) 0 88px
}

.arch-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px
}

.arch-filter {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  border-radius: 6px;
  padding: 10px 18px;
  font: 600 .95rem/1 var(--body);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease)
}

.arch-filter.is-active,
.arch-filter:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy)
}

.arch-year {
  margin-bottom: 56px
}

.arch-year:last-child {
  margin-bottom: 0
}

.arch-year[hidden] {
  display: none
}

.arch-year__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--navy)
}

.arch-year__head h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem)
}

.arch-year__count {
  font: 600 .9rem/1 var(--body);
  color: var(--muted)
}

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

.arch-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease)
}

@media (hover:hover) and (pointer:fine) {
  .arch-card:hover {
    transform: translateY(-3px);
    border-color: var(--navy);
    box-shadow: 0 12px 28px rgba(30, 39, 97, .08)
  }
}

.arch-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--card)
}

.arch-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px
}

.arch-card__meta {
  font: 600 .85rem/1.3 var(--body);
  color: var(--blue-side);
  margin-bottom: 6px
}

.arch-card__title {
  font-family: var(--head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px
}

.arch-card__motto {
  font: 500 .95rem/1.4 var(--head);
  color: var(--k10);
  margin: 0 0 10px
}

.arch-card__desc {
  margin: 0 0 16px;
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.5
}

.arch-card__more {
  margin-top: auto;
  font: 600 .92rem/1 var(--body);
  color: var(--navy)
}

/* Widok szczegółowy projektu archiwalnego */
.arch-detail[hidden] {
  display: none
}

.arch-detail__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px
}

.arch-back {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  font: 600 .95rem/1 var(--body);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease)
}

.arch-back:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy)
}

.arch-detail__edition {
  font: 600 .95rem/1 var(--body);
  color: var(--blue-side)
}

.arch-detail .proj {
  padding-top: 0;
  border-bottom: 0
}

.arch-gallery {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line)
}

.arch-gallery__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px
}

.arch-gallery__head h3 {
  font-size: clamp(1.4rem, 1.15rem + .8vw, 1.85rem)
}

.arch-gallery__count {
  font: 600 .9rem/1 var(--body);
  color: var(--muted)
}

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

.arch-gallery__item {
  appearance: none;
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--card);
  cursor: zoom-in;
  aspect-ratio: 4 / 3
}

.arch-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s var(--ease)
}

.arch-gallery__item:hover img {
  transform: scale(1.03)
}

.arch-lightbox {
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--night);
  color: var(--white);
  overflow: hidden
}

.arch-lightbox::backdrop {
  background: rgba(12, 15, 46, .82)
}

.arch-lightbox__in {
  position: relative;
  display: flex;
  flex-direction: column
}

.arch-lightbox__img {
  max-width: min(92vw, 1100px);
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto
}

.arch-lightbox__cap {
  padding: 14px 20px;
  margin: 0;
  font-size: .95rem;
  color: var(--on-dark-2)
}

.arch-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(12, 15, 46, .75);
  color: var(--white);
  border-radius: 4px;
  padding: 8px 12px;
  font: 600 .85rem/1 var(--body);
  cursor: pointer
}

@media (max-width: 960px) {

  .arch-grid,
  .arch-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media (max-width: 640px) {

  .arch-grid,
  .arch-gallery__grid {
    grid-template-columns: minmax(0, 1fr)
  }
}