/* ================================================================
   MUSEUM.CSS — Ленинградский мясокомбинат им. С.М. Кирова
   Warm grey theme matching макет 2026
   ================================================================ */

/* ── FONTS ─────────────────────────────────────────────────────── */
@font-face { font-family:'TT Hoves'; src:url('../fonts/TTHoves-Hairline.woff2') format('woff2'); font-weight:100; font-style:normal; font-display:swap; }
@font-face { font-family:'TT Hoves'; src:url('../fonts/TTHoves-HairlineItalic.woff2') format('woff2'); font-weight:100; font-style:italic; font-display:swap; }
@font-face { font-family:'TT Hoves'; src:url('../fonts/TTHoves-Thin.woff2') format('woff2'); font-weight:100; font-style:normal; font-display:swap; }
@font-face { font-family:'TT Hoves'; src:url('../fonts/TTHoves-ThinItalic.woff2') format('woff2'); font-weight:100; font-style:italic; font-display:swap; }
@font-face { font-family:'TT Hoves'; src:url('../fonts/TTHoves-ExtraLight.woff2') format('woff2'); font-weight:200; font-style:normal; font-display:swap; }
@font-face { font-family:'TT Hoves'; src:url('../fonts/TTHoves-ExtraLightItalic.woff2') format('woff2'); font-weight:200; font-style:italic; font-display:swap; }
@font-face { font-family:'TT Hoves'; src:url('../fonts/TTHoves-Light.woff2') format('woff2'); font-weight:300; font-style:normal; font-display:swap; }
@font-face { font-family:'TT Hoves'; src:url('../fonts/TTHoves-LightItalic.woff2') format('woff2'); font-weight:300; font-style:italic; font-display:swap; }
@font-face { font-family:'TT Hoves'; src:url('../fonts/TTHoves-Regular.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'TT Hoves'; src:url('../fonts/TTHoves-Italic.woff2') format('woff2'); font-weight:400; font-style:italic; font-display:swap; }
@font-face { font-family:'TT Hoves'; src:url('../fonts/TTHoves-Medium.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'TT Hoves'; src:url('../fonts/TTHoves-MediumItalic.woff2') format('woff2'); font-weight:500; font-style:italic; font-display:swap; }
@font-face { font-family:'TT Hoves'; src:url('../fonts/TTHoves-DemiBold.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'TT Hoves'; src:url('../fonts/TTHoves-DemiBoldItalic.woff2') format('woff2'); font-weight:600; font-style:italic; font-display:swap; }
@font-face { font-family:'TT Hoves'; src:url('../fonts/TTHoves-Bold.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'TT Hoves'; src:url('../fonts/TTHoves-BoldItalic.woff2') format('woff2'); font-weight:700; font-style:italic; font-display:swap; }
@font-face { font-family:'TT Hoves'; src:url('../fonts/TTHoves-ExtraBold.woff2') format('woff2'); font-weight:800; font-style:normal; font-display:swap; }
@font-face { font-family:'TT Hoves'; src:url('../fonts/TTHoves-ExtraBoldItalic.woff2') format('woff2'); font-weight:800; font-style:italic; font-display:swap; }
@font-face { font-family:'TT Hoves'; src:url('../fonts/TTHoves-Black.woff2') format('woff2'); font-weight:900; font-style:normal; font-display:swap; }
@font-face { font-family:'TT Hoves'; src:url('../fonts/TTHoves-BlackItalic.woff2') format('woff2'); font-weight:900; font-style:italic; font-display:swap; }

/* ── TOKENS ────────────────────────────────────────────────────── */
:root {
  --bg:      #C8C4BB;
  --bg2:     #B8B4AB;
  --bg3:     #CECABF;
  --surface: #D4D0C7;
  --red:     #CC3333;
  --red-dark:#9b2318;
  --text:    #1A1A18;
  --text2:   #3A3832;
  --text3:   #6A6660;
  --border:  rgba(26,26,24,0.18);
  --font:    'TT Hoves', sans-serif;
}

/* ── RESET ─────────────────────────────────────────────────────── */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  background:var(--bg); color:var(--text);
  font-family:var(--font); font-weight:400; font-size:15px; line-height:1.6;
  min-height:100vh; display:flex; flex-direction:column;
}
*::-webkit-scrollbar { display: none; }
* { -ms-overflow-style: none; scrollbar-width: none; }

main { flex:1; }
a { color:inherit; text-decoration:none; }
img { display:block; max-width:100%; }

/* ── HEADER ────────────────────────────────────────────────────── */
#header { position:relative; z-index:500; width:100%; padding-top: 40px; background: transparent; border: none; }
.main-nav { 
  display:flex; 
  flex-direction: row;
  align-items:center; 
  justify-content:center; 
  padding:10px 40px;
  background: transparent;
  border: none;
}

.header-nav-row {
  display:flex;
  align-items:center;
  justify-content:center;
}

.main-nav a { 
  font-family:var(--font); 
  font-size:20px !important; 
  font-weight:800; 
  text-transform:lowercase; 
  color:#fff; 
  padding:0 25px !important; 
  transition:color .15s;
  text-align: center;
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.main-nav a:hover, .main-nav a.active { color:#e69291 !important; }

.header-search-row {
  display:flex;
  justify-content: space-between;
  align-items: center;
  padding:15px 100px;
  gap: 20px;
}
.header-section-name { font-size:14px; color:#fff; opacity: 0.6; text-transform: lowercase; }
.header-search input { 
  background:none; 
  border:none; 
  border-bottom: 1px solid rgba(255,255,255,0.2);
  outline:none; 
  font-family: var(--font);
  font-size:16px; 
  font-style:italic; 
  color:#fff; 
  width:240px; 
  padding: 5px 0;
}
.header-search input::placeholder { color:#fff; opacity: 0.4; }

/* ── LAYOUT ────────────────────────────────────────────────────── */
.page-margins-1-1 { max-width: 1700px; margin: 0 auto; padding: 0 100px; }
.main-title-1-1 { font-size: 80px; font-weight: 800; text-transform: lowercase; letter-spacing: -0.02em; margin: 60px 0; line-height: 0.9; color: #fff; }

/* ── UNIFIED PLATE (PLASHKA) ───────────────────────────────────── */
.unified-plate {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
    height: 100%;
}
.unified-plate:hover {
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.unified-plate-img-frame { width: 100%; height: 380px; overflow: hidden; background: rgba(0,0,0,0.2); position: relative; }
.unified-plate-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.unified-plate:hover .unified-plate-img { transform: none; }

/* 404 mockup */
html:has(body.page-404) {
  height: 100vh;
  overflow: hidden;
}

html body.page-404 {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(68,68,63,.44) 0%, rgba(86,86,82,.22) 25%, rgba(28,29,29,.18) 100%),
    url('../img/404BG.webp?v=1') center center / cover no-repeat !important;
  color: #fff;
}

html body.page-404 #main-content {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: block;
  pointer-events: none;
}

.not-found-page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-family: var(--font);
  text-align: center;
}

.not-found-page h1 {
  position: absolute;
  top: 52vh;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: lowercase;
  text-shadow: 0 2px 8px rgba(0,0,0,.38);
  white-space: nowrap;
}

.not-found-home {
  position: absolute;
  top: 83.5vh;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.9);
  font-size: 20px;
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  text-transform: lowercase;
  text-shadow: 0 2px 8px rgba(0,0,0,.32);
  pointer-events: auto;
}

.not-found-home:hover {
  color: #fff;
}

@media (max-width: 1000px) {
  html body.page-404 {
    overflow-y: auto;
  }

  .not-found-page h1 {
    width: calc(100vw - 48px);
    font-size: 24px;
    white-space: normal;
  }

  .not-found-home {
    font-size: 17px;
  }
}

.unified-plate-content { padding: 35px; display: flex; justify-content: space-between; align-items: flex-start; flex: 1; }
.unified-plate-title { font-size: 22px; font-weight: 800; line-height: 1.1; text-transform: lowercase; color: #fff; margin: 0; }
.unified-plate-sub { font-size: 14px; opacity: 0.3; font-weight: 300; margin-top: 10px; color: #fff; }
.unified-plate-arrow { font-size: 24px; opacity: 0.1; transition: 0.3s; color: #fff; }
.unified-plate:hover .unified-plate-arrow { opacity: .45; transform: none; }

/* ── GRIDS ─────────────────────────────────────────────────────── */
.unified-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 60px; }
.catalog-grid-1-1 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 60px; }

/* ── MOBILE 2-COLUMN LOGIC ─────────────────────────────────────── */
@media (max-width: 1000px) {
    .page-margins-1-1 { padding: 0 30px; }
    .unified-grid-4, .catalog-grid-1-1 { grid-template-columns: repeat(2, 1fr) !important; gap: 20px; }
    .unified-plate-img-frame { height: 200px; }
    .unified-plate-title { font-size: 18px; white-space: normal; }
    .unified-plate-content { padding: 20px; }
    .main-title-1-1 { font-size: 44px; }
    
    .main-nav { 
        padding: 0 !important; 
        flex-direction: column !important;
        border-bottom: none;
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }
    .header-nav-row {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between;
        padding: 0 !important;
        border: none;
    }
    .header-nav-row:last-of-type {
        border: none;
    }
    .main-nav a {
        flex: 0 0 25% !important;
        width: 25% !important;
        max-width: 25%;
        min-width: 0;
        font-size: 10px !important;
        padding: 12px 2px !important;
        min-height: 50px;
        border-right: 1px solid rgba(255,255,255,0.05);
        overflow: hidden;
        overflow-wrap: break-word;
    }
    .main-nav a:last-child {
        border-right: none;
    }
    .header-search-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 10px;
        min-width: 0;
        padding: 15px 30px;
    }
    .header-section-name {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .header-search {
        min-width: 0;
    }
    .header-search input {
        width: clamp(92px, 28vw, 160px);
    }
}

/* ── DARK THEME ────────────────────────────────────────────────── */
body.page-fond-dark {
    background: #000 url('../fond/fondBG.webp?v=2') no-repeat center top !important;
    background-size: cover !important;
    background-attachment: scroll !important;
    color: #ffffff !important;
}
body.page-fond-dark::before { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: -1; }

body.page-fond-dark #header {
  background: transparent !important;
  border: 0 !important;
}

body.page-fond-dark #header .optic-line {
  width: calc(100% - 176px) !important;
  margin: 0 88px;
  background: rgba(255,255,255,0.58) !important;
}

body.page-fond-dark .header-section-name {
  color: rgba(255,255,255,0.86);
  font-size: 16px;
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  opacity: 1;
}

body.page-fond-dark .header-search {
  display: flex;
  justify-content: flex-end;
}

body.page-fond-dark .header-search input {
  width: 145px;
  border: 0;
  color: rgba(255,255,255,0.94);
  font-size: 16px;
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  text-align: left;
}

body.page-fond-dark .header-search input::placeholder {
  color: rgba(255,255,255,0.94);
  opacity: 1;
}

.archive-index-page,
.fond-index-page {
  --archive-plate-height: 105px;
  --archive-plate-gap: 10px;
  position: relative;
  z-index: 2;
  width: min(1400px, calc(88.5vw - 104px));
  margin: 68px auto 0;
  padding-bottom: 112px;
  color: #fff;
  font-family: var(--font);
}

.fond-mode-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 34px;
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.fond-mode-title a,
.fond-mode-title span {
  color: inherit;
  text-decoration: none;
}

.fond-mode-title .active {
  color: #e69291;
}

.gallery-mode-title,
.gallery-mode-title a,
.gallery-mode-title span,
.gallery-mode-title .active,
.gallery-mode-title a:hover,
.gallery-mode-title span:hover {
  color: #fff !important;
}

body.page-gallery-list .archive-index-page {
  --archive-plate-height: 105px;
  --archive-plate-gap: 10px;
}

body.page-gallery-list .gallery-mode-title {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
}

body.page-gallery-list .archive-plate {
  grid-template-columns: 100px minmax(0, 1fr) minmax(120px, 160px);
  column-gap: 20px;
  padding: 8px 12px;
}

body.page-gallery-list .archive-plate__left,
body.page-gallery-list .archive-plate__body,
body.page-gallery-list .archive-plate__stats {
  justify-content: space-between;
  padding: 0;
}

body.page-gallery-list .archive-plate__body {
  overflow: hidden;
}

body.page-gallery-list .archive-plate__code {
  padding-bottom: 4px;
  border-bottom-width: 4px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
}

body.page-gallery-list .archive-plate__years {
  font-size: 12px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
}

body.page-gallery-list .archive-plate__title {
  display: -webkit-box;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.page-gallery-list .archive-plate__desc {
  margin: 0;
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-gallery-list .archive-plate__stats {
  align-items: flex-end;
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  text-align: right;
}

body.page-gallery-list .archive-plate__stats span + span {
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
}

.fond-mode-title .divider {
  color: #fff;
}

.fond-archive-scroll {
  height: min(
    calc(100vh - 382px),
    calc((var(--archive-plate-height) * 4) + (var(--archive-plate-gap) * 3) + 28px)
  );
  min-height: calc((var(--archive-plate-height) * 4) + (var(--archive-plate-gap) * 3) + 18px);
  overflow-y: auto;
  padding: 0 0 70px;
  scrollbar-width: none;
}

.fond-archive-scroll::-webkit-scrollbar {
  display: none;
}

.archive-flow-list {
  padding-bottom: 90px;
}

.archive-flow-list + .fond-period-nav {
  position: static;
  width: min(89vw, 1424px);
  margin: 36px auto 38px;
}

.archive-plate {
  display: grid;
  grid-template-columns: 104px minmax(280px, 1fr) minmax(150px, 190px);
  align-items: stretch;
  column-gap: 40px;
  height: var(--archive-plate-height);
  min-height: var(--archive-plate-height);
  padding: 25px 30px;
  position: relative;
  color: inherit;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
  backdrop-filter: none;
  overflow: hidden;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease;
  transform: translateZ(0);
  contain: layout paint;
}

.archive-plate + .archive-plate {
  margin-top: var(--archive-plate-gap);
}

.archive-plate[href]:hover,
a.archive-plate:hover {
  background: rgba(255,255,255,0.065);
  border-color: rgba(255,255,255,0.16);
}

.archive-plate__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 0;
}

.archive-plate__code {
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  padding-bottom: 6px;
  border-bottom: 5px solid rgba(255,255,255,0.94);
  color: #fff;
  font-size: 2.15rem;
  font-weight: 900;
  line-height: .95;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-plate__years {
  color: rgba(255,255,255,0.95);
  font-size: .9rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.15;
  white-space: nowrap;
}

.archive-plate__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding: 1px 0 0;
  overflow: hidden;
}

.archive-plate__title {
  margin: 0;
  color: #fff;
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: .01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-plate__desc {
  margin: 14px 0 0;
  color: rgba(255,255,255,0.82);
  font-size: 1.38rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.14;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-plate__stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  min-width: 0;
  padding: 0;
  color: rgba(255,255,255,.94);
  font-size: 1.22rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.archive-plate__stats span + span {
  color: rgba(255,255,255,.72);
  font-size: .9rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.15;
}

body.page-fond-index .archive-plate {
  grid-template-columns: 120px minmax(0, 1fr) minmax(120px, 168px);
  column-gap: 18px;
  padding: 9px 12px;
}

body.page-fond-index .archive-plate__left,
body.page-fond-index .archive-plate__body,
body.page-fond-index .archive-plate__stats {
  justify-content: space-between;
  padding: 0;
}

body.page-fond-index .archive-plate__body {
  overflow: hidden;
}

body.page-fond-index .archive-plate__code {
  padding-bottom: 4px;
  border-bottom-width: 4px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
}

body.page-fond-index .archive-plate__years {
  font-size: 12px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
}

body.page-fond-index .archive-plate__title {
  display: -webkit-box;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.page-fond-index .archive-plate__desc {
  margin: 0;
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-fond-index .archive-plate__stats {
  align-items: flex-end;
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  text-align: right;
}

body.page-fond-index .archive-plate__stats span + span {
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
}

body.page-fond-catalog .archive-plate {
  grid-template-columns: 110px minmax(0, 1fr) minmax(96px, 128px);
  column-gap: 20px;
  padding: 8px 12px;
}

body.page-fond-catalog .archive-plate__code {
  padding-bottom: 4px;
  border-bottom-width: 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}

body.page-fond-catalog .archive-plate__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
}

body.page-fond-catalog .archive-plate__years,
body.page-fond-catalog .archive-plate__desc,
body.page-fond-catalog .archive-plate__stats span + span {
  font-size: 12px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
}

body.page-fond-catalog .archive-plate__stats {
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
}

body.page-fond-catalog .archive-plate__stats span:nth-child(n+3) {
  display: none;
}

.archive-empty-state {
  min-height: var(--archive-plate-height);
  padding: 34px 24px;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12);
  font-size: 16px;
  font-style: italic;
}

.fond-period-nav {
  position: fixed;
  left: 88px;
  right: 88px;
  bottom: 45px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 6px 10px;
  border-bottom: 0;
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
  overflow-x: auto;
}

.fond-period-nav a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease, opacity .15s ease;
}

.fond-period-nav a:hover,
.fond-period-nav a.active {
  color: #e69291;
  opacity: 1;
}

.fond-period-nav .period-separator {
  color: rgba(255,255,255,0.86);
}

.fond-detail-page {
  position: relative;
  z-index: 2;
  width: min(83vw, 1340px);
  margin: 56px auto 96px;
  color: #fff;
  font-family: var(--font);
}

.fond-detail-title {
  margin: 0 0 38px;
  color: #fff;
  font-size: 44px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.fond-detail-layout {
  display: grid;
  grid-template-columns: minmax(420px, .95fr) minmax(420px, 1fr);
  gap: 64px;
  align-items: start;
}

.fond-media-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fond-postcard-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 22px;
  align-items: start;
}

.fond-main-image,
.fond-back-image,
.fond-thumb {
  background: rgba(255,255,255,0.95);
  cursor: zoom-in;
  box-shadow: 0 18px 42px rgba(0,0,0,0.34);
}

.fond-main-image {
  padding: 13px;
}

.fond-main-image img,
.fond-back-image img,
.fond-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fond-main-image img {
  max-height: 58vh;
}

.fond-back-image {
  padding: 9px;
}

.fond-back-caption {
  margin-top: 8px;
  color: rgba(0,0,0,0.55);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.fond-album-strip {
  display: flex;
  gap: 12px;
  max-width: 100%;
  overflow-x: auto;
  padding: 5px 0 8px;
}

.fond-thumb {
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  padding: 5px;
  opacity: .72;
  transition: opacity .15s ease, border-color .15s ease;
}

.fond-thumb:hover {
  opacity: 1;
}

.fond-item-type {
  margin-bottom: 13px;
  color: rgba(255,255,255,0.48);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .28em;
  line-height: 1;
  text-transform: uppercase;
}

.fond-item-description {
  margin: 21px 0 0;
  color: rgba(255,255,255,0.74);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
}

.fond-meta-table {
  width: 100%;
  margin-top: 42px;
  border-collapse: collapse;
}

.fond-meta-table th,
.fond-meta-table td {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 15px 0;
  vertical-align: top;
}

.fond-meta-table th {
  width: 220px;
  padding-right: 26px;
  color: rgba(255,255,255,0.42);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .22em;
  line-height: 1.25;
  text-align: left;
  text-transform: uppercase;
}

.fond-meta-table td {
  color: rgba(255,255,255,0.94);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
}

.fond-related-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
}

.fond-section-kicker {
  margin: 0 0 18px;
  color: rgba(255,255,255,0.46);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.media-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,10,0.96);
}

.media-lightbox-modal.open {
  display: flex;
}

.media-lightbox-stage-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  gap: 22px;
  padding: 88px 5vw 0;
}

.media-lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(78vw, 1400px);
  height: 67vh;
}

.media-lightbox-stage img,
.media-lightbox-stage iframe {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.media-lightbox-nav {
  width: 72px;
  min-width: 72px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.72);
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 76px;
  font-weight: 100;
  line-height: 1;
  transition: color .15s ease, transform .15s ease;
}

.media-lightbox-nav:hover {
  color: #fff;
  transform: scale(1.06);
}

.media-lightbox-info {
  width: min(1000px, 86vw);
  padding: 22px 20px 56px;
  text-align: center;
}

.media-lightbox-caption {
  color: rgba(255,255,255,0.92);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
  white-space: pre-line;
}

.media-lightbox-meta {
  margin-top: 7px;
  color: rgba(255,255,255,0.66);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
}

.media-lightbox-fond-link {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 20px;
  border: 1px solid rgba(255,255,255,0.24);
  color: rgba(255,255,255,0.66);
  font-size: 12px;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.media-lightbox-fond-link:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.8);
}

body.page-self-fond {
  min-height: 100vh;
  overflow-x: hidden;
}

body.page-self-fond::before {
  background: rgba(0,0,0,0.52);
}

body.page-self-fond #header .optic-line {
  width: calc(100% - 188px) !important;
  margin: 0 94px;
  background: rgba(255,255,255,0.62) !important;
}

body.page-self-fond .header-section-name {
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap;
}

.self-fond-page {
  position: relative;
  z-index: 2;
  width: min(1400px, calc(88.5vw - 104px));
  margin: 48px auto 0;
  color: #fff;
  font-family: var(--font);
}

.self-fond-title {
  margin: 0 0 18px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}

.self-fond-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.self-fond-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) minmax(96px, 128px);
  column-gap: 20px;
  height: 94px;
  min-height: 94px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, opacity .16s ease;
  transform: translateZ(0);
  contain: layout paint;
  overflow: hidden;
}

.self-fond-row:hover {
  background: rgba(255,255,255,0.065);
  border-color: rgba(255,255,255,0.16);
}

.self-fond-row__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 0;
}

.self-fond-row__code {
  width: fit-content;
  max-width: 100%;
  padding-bottom: 4px;
  border-bottom: 4px solid rgba(255,255,255,.95);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.self-fond-row__year {
  color: rgba(255,255,255,.95);
  font-size: 12px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
  white-space: nowrap;
}

.self-fond-row__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.self-fond-row__body h2 {
  display: -webkit-box;
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.self-fond-row__body p {
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.self-fond-row__meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  min-width: 0;
  padding: 0;
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.self-fond-row__meta span + span {
  color: rgba(255,255,255,.72);
  font-style: italic;
  font-weight: 300;
}

.self-fond-empty {
  min-height: 94px;
  padding: 30px 22px;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 16px;
  font-style: italic;
}

.self-fond-rule {
  height: 1px;
  margin-top: 28px;
  background: rgba(255,255,255,.66);
}

body.page-fond-item-detail {
  min-height: 100vh;
  overflow-x: hidden;
}

body.page-fond-item-detail::before {
  background: rgba(0,0,0,0.54);
}

body.page-fond-item-detail #header .optic-line {
  width: calc(100% - 184px) !important;
  margin: 0 92px;
  background: rgba(255,255,255,0.62) !important;
}

body.page-fond-item-detail .header-section-name {
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap;
}

.fond-item-show {
  position: relative;
  z-index: 2;
  width: calc(100vw - 310px);
  margin: 8px 0 0 155px;
  box-sizing: border-box;
  color: #fff;
  font-family: var(--font);
}

.fond-item-register-line {
  margin: 0 0 17px;
  color: rgba(255,255,255,.95);
  font-size: 20px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
}

.fond-item-show-title {
  width: min(760px, 58vw);
  margin: 0 0 30px;
  color: #fff;
  font-size: 31px;
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 0;
}

.fond-item-show-grid {
  display: grid;
  grid-template-columns: minmax(430px, .72fr) minmax(380px, .9fr);
  gap: clamp(42px, 7vw, 115px);
  align-items: start;
}

.fond-item-show-grid.has-multiple {
  grid-template-columns: minmax(560px, .96fr) minmax(380px, .72fr);
  gap: clamp(28px, 2.4vw, 38px);
}

.fond-item-media-wrap {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
}

.fond-item-main-photo {
  --fond-item-photo-w: clamp(420px, 31.3vw, 506px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--fond-item-photo-w);
  min-width: var(--fond-item-photo-w);
  height: clamp(320px, calc(100vh - 408px), 424px);
  min-height: 0;
  padding: 0;
  border: 0;
  background: #fff;
  box-shadow: 0 18px 38px rgba(0,0,0,.24);
  cursor: zoom-in;
}

.fond-item-main-photo img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

.fond-item-main-photo span {
  color: rgba(0,0,0,.16);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 0;
}

.fond-item-side-media {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 195px;
}

.fond-item-next-mark {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.95);
  cursor: pointer;
  font-family: var(--font);
  font-size: 43px;
  font-weight: 300;
  line-height: 1;
  text-align: left;
}

.fond-item-side-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 126px;
  height: 110px;
  margin-top: 78px;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: zoom-in;
}

.fond-item-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fond-item-show-meta {
  max-width: 620px;
  padding-top: 2px;
  color: rgba(255,255,255,.92);
  font-size: 20px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.78;
}

.fond-item-show-meta p {
  margin: 0 0 2px;
}

.fond-item-show-meta strong {
  color: #fff;
  font-style: normal;
  font-weight: 900;
}

.fond-item-annotation {
  margin-top: 6px !important;
}

.fond-item-show-rule {
  height: 1px;
  width: 100%;
  margin: 74px 0 0;
  background: rgba(255,255,255,.62);
}

body.page-fond-item-detail footer#site-footer {
  display: none !important;
}

@media (min-width: 1001px) {
  body.page-fond-item-detail {
    height: 100vh;
    overflow: hidden;
  }

  body.page-fond-item-detail #main-content {
    min-height: 0;
  }

  .fond-item-show {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 158px);
    min-height: 0;
    padding-bottom: 34px;
  }

  .fond-item-show-grid {
    flex: 0 1 auto;
    min-height: 0;
  }

  .fond-item-show-rule {
    flex: 0 0 auto;
    margin-top: auto;
  }
}

@media (min-width: 1001px) and (max-height: 820px) {
  .fond-item-show {
    margin-top: 4px;
    height: calc(100vh - 153px);
    padding-bottom: 30px;
  }

  .fond-item-register-line {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.15;
  }

  .fond-item-show-title {
    margin-bottom: 18px;
    font-size: 28px;
    line-height: 1.14;
  }

  .fond-item-side-media {
    padding-top: clamp(130px, 22vh, 168px);
  }

  .fond-item-side-thumb {
    width: 112px;
    height: 96px;
    margin-top: 44px;
  }

  .fond-item-show-meta {
    max-width: 560px;
    font-size: 17px;
    line-height: 1.48;
  }

  .fond-item-show-meta p {
    margin-bottom: 0;
  }
}

@media (max-width: 1000px) {
  body.page-fond-dark #header .optic-line {
    width: calc(100% - 60px) !important;
    margin: 0 30px;
  }

  .archive-index-page,
  .fond-index-page,
  .fond-detail-page {
    width: calc(100vw - 40px);
    margin-top: 42px;
  }

  .fond-mode-title {
    font-size: 30px;
  }

  .fond-archive-scroll {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-bottom: 28px;
  }

  .archive-plate {
    grid-template-columns: 88px minmax(0, 1fr);
    height: auto;
    min-height: 118px;
  }

  .archive-plate__stats {
    grid-column: 2;
    padding: 0 18px 14px 10px;
    text-align: left;
    gap: 8px;
  }

  .archive-plate__title {
    font-size: 20px;
  }

  .archive-plate__desc {
    white-space: normal;
  }

  .fond-period-nav {
    position: static;
    justify-content: flex-start;
    width: calc(100vw - 40px);
    margin: 26px auto 38px;
    font-size: 13px;
  }

  .fond-detail-layout,
  .fond-postcard-media {
    grid-template-columns: 1fr;
  }

  .fond-detail-title {
    font-size: 34px;
  }

  .fond-meta-table th {
    width: 145px;
  }

  .media-lightbox-stage-wrap {
    gap: 4px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .media-lightbox-nav {
    width: 42px;
    min-width: 42px;
    font-size: 48px;
  }

  body.page-self-fond #header .optic-line {
    width: calc(100% - 60px) !important;
    margin: 0 30px;
  }

  .self-fond-page {
    width: calc(100vw - 40px);
    margin-top: 42px;
  }

  .self-fond-title {
    margin-left: 0;
    font-size: 30px;
  }

  .self-fond-row {
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: 124px;
  }

  .self-fond-row__meta {
    grid-column: 2;
    padding: 0 18px 14px 10px;
    text-align: left;
    gap: 7px;
  }

  .self-fond-row__body h2 {
    font-size: 18px;
  }

  body.page-fond-item-detail #header .optic-line {
    width: calc(100% - 60px) !important;
    margin: 0 30px;
  }

  .fond-item-show {
    width: calc(100vw - 40px);
    margin: 34px auto 0;
  }

  .fond-item-show-title {
    width: 100%;
    font-size: 30px;
  }

  .fond-item-show-grid,
  .fond-item-show-grid.has-multiple {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .fond-item-media-wrap {
    flex-direction: column;
  }

  .fond-item-main-photo {
    width: 100%;
    min-width: 0;
    min-height: 260px;
  }

  .fond-item-side-media {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding-top: 0;
  }

  .fond-item-side-thumb {
    margin-top: 0;
  }

  .fond-item-show-meta {
    max-width: none;
    font-size: 17px;
  }
}

/* ── ABOUT & LIBRARY DARK PAGES ────────────────────────────────── */
.page-dark-bg { position:fixed; inset:0; background-size:cover; background-position:center; z-index: -1; }
.page-dark-bg__overlay { position:absolute; inset:0; background:rgba(0,0,0,0.6); }

.about-page, .lib-page { position:relative; z-index:2; padding: 120px 0; }
.about-text-block p { font-size: 18px; font-weight: 600; line-height: 1.75; text-align: center; color: rgba(255,255,255,0.9); }
.about-contacts-block { margin-top: 100px; text-align: center; color: #ffffff !important; }
.about-contacts-block h2 { font-size: 28px; font-weight: 800; margin-bottom: 40px; text-transform: lowercase; color: #ffffff !important; }
.about-contacts-block p { font-size: 20px; margin-bottom: 10px; opacity: 1 !important; color: #ffffff !important; }
.about-contacts-block a { color: #ffffff !important; text-decoration: none; }

.lib-grid-4 { display:grid; grid-template-columns: 1fr 1fr; gap: 100px 100px; width: 100%; margin: 0 auto; }
.lib-quadrant { display: flex; flex-direction: column; width: 100%; }
.lib-q-left { text-align: left; align-items: flex-start; }
.lib-q-right { text-align: right; align-items: flex-end; }

.lib-quadrant h2 { font-size: 28px; font-weight: 800; text-transform: lowercase; margin-bottom: 25px; }
.lib-q-items p { font-size: 13px; font-style: italic; opacity: 0.7; margin-bottom: 8px; }

/* ── LIGHTBOX ──────────────────────────────────────────────────── */
.lightbox-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 3000; align-items: center; justify-content: center; }
.lightbox-overlay.open { display: flex; }

/* ── SECTION LABELS ────────────────────────────────────────────── */
.section-label-1-1 {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.4em; opacity: 0.3;
    border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 25px;
    margin-bottom: 60px; font-weight: 900; display: block;
}

/* ── HERO AREA ────────────────────────────────────────────── */
.hero-area {
  position:relative;
  background-image:url('../img/hero_bg.webp?v=2');
  background-size:cover;
  background-position:center center;
  min-height:85vh;
  display:flex;
  flex-direction:column;
}

.home-hero-inner {
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  gap:60px;
  max-width:1400px;
  margin:auto auto;
  padding:40px 48px;
  justify-content:center;
  transform:translateY(-100px);
}

.hero-title {
  font-family:var(--font);
  font-size:54px;
  font-weight:500;
  text-transform:uppercase;
  color:var(--red);
  line-height:1.0;
  letter-spacing:.02em;
  text-align:right;
  filter:drop-shadow(0 2px 10px rgba(0,0,0,0.2));
}

.hero-right {
  display:flex;
  align-items:center;
  gap:20px;
  flex-shrink:0;
}

.hero-icon img {
  width: 240px;
  height: auto;
}

.hero-subtitle {
  font-family:var(--font);
  text-transform:uppercase;
  color:var(--red);
}

.hs-big {
  font-size:42px;
  font-weight:400;
  line-height:1.0;
  letter-spacing:.04em;
}

.hs-sm {
  font-size:26px;
  font-weight:400;
  line-height:1.1;
  letter-spacing:.06em;
}

@media (max-width: 1000px) {
    .home-hero-inner { flex-direction: column; gap: 30px; transform: translateY(0); }
    .hero-title { font-size: 32px; text-align: center; }
    .hero-right { flex-direction: row; }
    .hero-icon img { width: 140px; }
    .hs-big { font-size: 28px; }
    .hs-sm { font-size: 18px; }
}

.home-recent-strip {
  background:var(--bg2);
  border-top:1px solid rgba(255,255,255,0.3);
  border-bottom:1px solid rgba(255,255,255,0.3)
}

.home-recent-header {
  display:flex;
  align-items:center;
  position:relative;
  padding:20px 28px;
  border-bottom:1px solid rgba(255,255,255,0.3);
  min-height:70px
}

.home-recent-header {
  padding:12px 15px
}

.recent-label {
  font-family:var(--font);
  font-size:20px;
  font-weight:600;
  font-style:italic;
  color:#ffffff;
  letter-spacing:.02em;
  text-transform:uppercase;
  position:relative;
  z-index:2
}

.recent-label {
  font-size:13px
}

.recent-to-catalog {
  font-size:22px;
  font-weight:400;
  color:#ffffff;
  display:flex;
  align-items:center;
  gap:12px;
  transition:color .2s;
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  z-index:1
}

.recent-to-catalog-arrow {
  font-size:55px;
  line-height:0;
  margin-top:-4px
}

.recent-to-catalog-arrow {
  color:#ffffff
}

.recent-cards-wrap {
  position:relative
}

.recent-cards-row {
  display:flex;
  overflow-x:auto;
  scrollbar-width:none;
  scroll-behavior:smooth
}

.recent-card {
  flex-shrink:0;
  width:220px;
  border-right:1px solid var(--border);
  display:block;
  text-decoration:none;
  transition:background .15s;
  background:var(--bg2)
}

.recent-card {
  width:160px
}

.rc-img-frame {
  margin:12px 12px 0;
  border:3px solid rgba(255,255,255,.75);
  background:var(--bg3);
  height:150px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center
}

.rc-img-frame {
  height:110px;
  margin:8px 8px 0
}

.rc-img-empty {
  font-size:9px;
  color:var(--text3);
  text-transform:uppercase;
  letter-spacing:.08em
}

.rc-title {
  padding:10px 12px 0;
  font-family:var(--font);
  font-size:12px;
  font-weight:400;
  color:#ffffff;
  line-height:1.35
}

.rc-title {
  font-size:11px;
  padding:8px 8px 0
}

.rc-year {
  padding:6px 12px 14px;
  font-family:var(--font);
  font-size:12px;
  font-weight:300;
  color:rgba(255,255,255,0.8);
  text-align:right;
  letter-spacing:.03em
}

.rc-year {
  padding:4px 8px 10px;
  font-size:10px
}

.recent-arrow {
  position:absolute;
  right:0;
  top:0;
  bottom:0;
  width:56px;
  background:linear-gradient(to right,rgba(184,180,171,0) 0%,var(--bg2) 40%);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:3;
  cursor:pointer;
  transition:background .2s
}

.recent-arrow-icon {
  font-size:100px;
  color:#ffffff;
  font-weight:300;
  line-height:1;
  transition:all .2s;
  display:inline-block;
  transform:scaleY(2.0) scaleX(1.4);
  opacity:0.9
}

.recent-arrow-icon {
  color:#ffffff
}

/* Staff list mockup */
body.page-staff-list {
  --staff-card-height: 108px;
  --staff-row-gap: 10px;
  min-height: 100vh;
  background: #171717 url('../img/staffBG.webp?v=2') center top / cover no-repeat !important;
  color: #fff;
}

body.page-staff-list::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.20), rgba(0,0,0,0.08) 36%, rgba(0,0,0,0.28)),
    rgba(0,0,0,0.08);
  pointer-events: none;
}

body.page-staff-list #header {
  background: transparent !important;
  border: 0 !important;
}

body.page-staff-list #main-content {
  width: min(88.5vw, 1810px);
  margin: 20px auto 72px;
}

body.page-staff-list .staff-alpha {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 1.65vw, 34px);
  min-height: 48px;
  padding: 0 84px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

body.page-staff-list .alpha-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  color: rgba(255,255,255,0.95);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  text-transform: lowercase;
  opacity: 0.94;
  transition: color .15s ease, opacity .15s ease;
}

body.page-staff-list .alpha-btn:not(.has-entries) {
  opacity: 0.86;
}

body.page-staff-list .alpha-btn:hover,
body.page-staff-list .alpha-btn.active {
  color: #e69291;
  opacity: 1;
}

body.page-staff-list .empty-state {
  padding: 48px;
  color: #fff;
  background: rgba(76,76,76,0.62);
  text-align: center;
}

body.page-staff-list .staff-table {
  display: flex;
  flex-direction: column;
  gap: var(--staff-row-gap);
  width: min(1400px, calc(100% - 104px));
  margin: 28px auto 0;
  border-bottom: 0;
}

body.page-staff-list .staff-row {
  display: grid;
  grid-template-columns: 90px minmax(220px, 1.25fr) minmax(125px, .58fr) minmax(0, 3fr);
  align-items: stretch;
  column-gap: 20px;
  row-gap: 0;
  height: var(--staff-card-height);
  min-height: var(--staff-card-height);
  padding: 8px 12px;
  gap: 20px;
  position: relative;
  color: inherit;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  backdrop-filter: none;
  overflow: hidden;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease;
}

body.page-staff-list .staff-row:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

body.page-staff-list .sr-id,
body.page-staff-list .sr-name,
body.page-staff-list .sr-years-cell,
body.page-staff-list .sr-position {
  min-width: 0;
}

body.page-staff-list .sr-id {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}

body.page-staff-list .sr-id span {
  display: inline-block;
  width: fit-content;
  padding-bottom: 4px;
  border-bottom: 4px solid rgba(255,255,255,.94);
  text-align: left;
}

body.page-staff-list .sr-name {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1px 0 0;
}

body.page-staff-list .sr-last {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

body.page-staff-list .sr-first {
  margin-top: 6px;
  color: rgba(255,255,255,.82);
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.15;
}

body.page-staff-list .sr-years-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.94);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

body.page-staff-list .sr-positions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
  min-width: 0;
}

body.page-staff-list .sr-position {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 4px;
  text-align: center;
}

body.page-staff-list .sr-position-title {
  color: rgba(255,255,255,.96);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

body.page-staff-list .sr-position-dept {
  margin-top: 2px;
  color: rgba(255,255,255,.88);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

body.page-staff-list .sr-position-years {
  margin-top: auto;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
}

@media (max-width: 1100px) {
  body.page-staff-list #main-content {
    width: calc(100vw - 28px);
    margin-top: 18px;
  }

  body.page-staff-list .staff-alpha {
    padding-left: 14px;
    padding-right: 14px;
    gap: 13px;
    overflow-x: auto;
    justify-content: flex-start;
  }

  body.page-staff-list .staff-table {
    width: 100%;
    margin-top: 28px;
  }

  body.page-staff-list .staff-row {
    grid-template-columns: 76px minmax(220px, 1.4fr) minmax(120px, .7fr) minmax(180px, 1fr);
  }

  body.page-staff-list .sr-positions {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 720px) {
  body.page-staff-list {
    background-attachment: scroll !important;
  }

  body.page-staff-list .staff-row {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    padding: 16px 14px;
    row-gap: 16px;
  }

  body.page-staff-list .sr-id,
  body.page-staff-list .sr-years-cell,
  body.page-staff-list .sr-position {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }

  body.page-staff-list .sr-positions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.page-staff-list .sr-id {
    font-size: 1.7rem;
  }

  body.page-staff-list .sr-last {
    font-size: 1.45rem;
  }

  body.page-staff-list .sr-first {
    margin-top: 8px;
    font-size: 1.15rem;
  }

  body.page-staff-list .sr-years-cell {
    font-size: 1rem;
  }

  body.page-staff-list .sr-position {
    display: flex;
    padding: 12px 0 0;
    border-top: 1px solid rgba(255,255,255,.1);
  }

  body.page-staff-list .sr-position-years {
    margin-top: 8px;
  }
}

/* Responsive card-page frame: page stays still, cards scroll behind the bottom rule. */
html:has(body.page-card-scroll-page) {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  overscroll-behavior: none;
}

body.page-card-scroll-page {
  --card-viewport-height: 100vh;
  --card-header-height: 149px;
  --card-footer-line-side: clamp(20px, 6.7vw, 92px);
  --card-footer-line-bottom: clamp(18px, 4.7vh, 36px);
  --card-scroll-bottom: calc(var(--card-footer-line-bottom) + 10px);
  --card-fade-height: clamp(54px, 10vh, 88px);
  --card-section-top: clamp(14px, 2.6vh, 34px);
  --card-title-block: 0px;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

@supports (height: 100svh) {
  html:has(body.page-card-scroll-page),
  body.page-card-scroll-page {
    height: 100svh;
    min-height: 100svh;
  }

  body.page-card-scroll-page {
    --card-viewport-height: 100svh;
    --card-footer-line-bottom: clamp(18px, 4.7svh, 36px);
    --card-fade-height: clamp(54px, 10svh, 88px);
    --card-section-top: clamp(14px, 2.6svh, 34px);
  }
}

body.page-card-scroll-page::after {
  content: "";
  position: fixed;
  left: var(--card-footer-line-side);
  right: var(--card-footer-line-side);
  bottom: var(--card-footer-line-bottom);
  z-index: 220;
  height: 1px;
  background: rgba(255,255,255,.64);
  pointer-events: none;
}

body.page-card-scroll-page #main-content {
  flex: 0 1 auto;
  min-height: 0;
  overflow: visible;
}

body.page-fond-index {
  --card-section-top: clamp(14px, 2.6vh, 20px);
  --card-title-block: 66px;
  --card-scroll-bottom: clamp(54px, 9.2vh, 70px);
}

body.page-gallery-list {
  --card-section-top: clamp(18px, 4.4vh, 34px);
  --card-title-block: 46px;
  --card-scroll-bottom: calc(var(--card-footer-line-bottom) + 10px);
}

@supports (height: 100svh) {
  body.page-fond-index {
    --card-section-top: clamp(14px, 2.6svh, 20px);
    --card-scroll-bottom: clamp(54px, 9.2svh, 70px);
  }

  body.page-gallery-list {
    --card-section-top: clamp(18px, 4.4svh, 34px);
  }
}

body.page-card-scroll-page .archive-index-page,
body.page-card-scroll-page .fond-index-page {
  margin-top: var(--card-section-top);
  padding-bottom: 0;
}

body.page-card-scroll-page .archive-flow-list {
  height: max(
    220px,
    calc(var(--card-viewport-height) - var(--card-header-height) - var(--card-section-top) - var(--card-title-block) - var(--card-scroll-bottom))
  );
  min-height: 0;
  padding-bottom: var(--card-fade-height);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0,
    #000 calc(100% - var(--card-fade-height)),
    rgba(0,0,0,.58) calc(100% - 30px),
    rgba(0,0,0,.12) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0,
    #000 calc(100% - var(--card-fade-height)),
    rgba(0,0,0,.58) calc(100% - 30px),
    rgba(0,0,0,.12) 100%
  );
  transform: translateZ(0);
  will-change: scroll-position;
}

body.page-card-scroll-page .archive-flow-list > .archive-plate {
  flex: 0 0 auto;
}

body.page-fond-index .archive-flow-list {
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0,
    #000 calc(100% - clamp(52px, var(--card-fade-height), 64px)),
    rgba(0,0,0,.46) calc(100% - 18px),
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0,
    #000 calc(100% - clamp(52px, var(--card-fade-height), 64px)),
    rgba(0,0,0,.46) calc(100% - 18px),
    rgba(0,0,0,0) 100%
  );
}

body.page-card-scroll-page .archive-flow-list::-webkit-scrollbar,
body.page-card-scroll-page .self-fond-list::-webkit-scrollbar,
body.page-staff-list.page-card-scroll-page .staff-table::-webkit-scrollbar {
  display: none;
}

body.page-fond-index .archive-flow-list + .fond-period-nav {
  position: fixed;
  left: var(--card-footer-line-side);
  right: var(--card-footer-line-side);
  bottom: calc(var(--card-footer-line-bottom) + clamp(10px, 1.8vh, 14px));
  z-index: 230;
  width: auto;
  margin: 0;
  padding: 0 6px;
  border-bottom: 0;
}

body.page-self-fond {
  --self-fond-section-top: clamp(18px, 6.2vh, 48px);
  --self-fond-title-block: 46px;
  --card-scroll-bottom: calc(var(--card-footer-line-bottom) + 10px);
}

@supports (height: 100svh) {
  body.page-self-fond {
    --self-fond-section-top: clamp(18px, 6.2svh, 48px);
  }
}

body.page-self-fond .self-fond-page {
  margin-top: var(--self-fond-section-top);
  padding-bottom: 0;
}

body.page-self-fond .self-fond-list {
  height: max(
    210px,
    calc(var(--card-viewport-height) - var(--card-header-height) - var(--self-fond-section-top) - var(--self-fond-title-block) - var(--card-scroll-bottom))
  );
  min-height: 0;
  padding-bottom: var(--card-fade-height);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0,
    #000 calc(100% - var(--card-fade-height)),
    rgba(0,0,0,.58) calc(100% - 30px),
    rgba(0,0,0,.12) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0,
    #000 calc(100% - var(--card-fade-height)),
    rgba(0,0,0,.58) calc(100% - 30px),
    rgba(0,0,0,.12) 100%
  );
  transform: translateZ(0);
  will-change: scroll-position;
}

body.page-self-fond .self-fond-row {
  flex: 0 0 auto;
}

body.page-self-fond .self-fond-rule {
  display: none;
}

body.page-staff-list.page-card-scroll-page {
  --staff-main-top: clamp(14px, 2.6vh, 20px);
  --staff-alpha-height: 48px;
  --staff-table-top: clamp(16px, 3.6vh, 28px);
  --staff-scroll-bottom: calc(var(--card-footer-line-bottom) + 10px);
}

@supports (height: 100svh) {
  body.page-staff-list.page-card-scroll-page {
    --staff-main-top: clamp(14px, 2.6svh, 20px);
    --staff-table-top: clamp(16px, 3.6svh, 28px);
  }
}

body.page-staff-list.page-card-scroll-page #main-content {
  margin-bottom: 0;
}

body.page-staff-list.page-card-scroll-page .staff-table {
  height: max(
    230px,
    calc(var(--card-viewport-height) - var(--card-header-height) - var(--staff-main-top) - var(--staff-alpha-height) - var(--staff-table-top) - var(--staff-scroll-bottom))
  );
  min-height: 0;
  padding-bottom: var(--card-fade-height);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0,
    #000 calc(100% - var(--card-fade-height)),
    rgba(0,0,0,.58) calc(100% - 30px),
    rgba(0,0,0,.12) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0,
    #000 calc(100% - var(--card-fade-height)),
    rgba(0,0,0,.58) calc(100% - 30px),
    rgba(0,0,0,.12) 100%
  );
  transform: translateZ(0);
  will-change: scroll-position;
}

body.page-staff-list.page-card-scroll-page .staff-row {
  flex: 0 0 auto;
}

@media (max-width: 1000px) {
  body.page-card-scroll-page {
    --card-header-height: 196px;
    --card-footer-line-side: clamp(20px, 5vw, 40px);
    --card-footer-line-bottom: clamp(18px, 4vh, 28px);
    --card-fade-height: clamp(48px, 8vh, 70px);
  }

  body.page-card-scroll-page .header-nav-row,
  body.page-card-scroll-page .header-search-row,
  body.page-card-scroll-page .header-section-name,
  body.page-card-scroll-page .header-search {
    min-width: 0;
  }

  body.page-card-scroll-page .main-nav {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  body.page-card-scroll-page .header-nav-row {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  body.page-card-scroll-page .main-nav a {
    flex: 0 0 25% !important;
    width: 25% !important;
    max-width: 25%;
    min-width: 0;
    overflow: hidden;
    overflow-wrap: break-word;
  }

  body.page-card-scroll-page .header-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
  }

  body.page-card-scroll-page .header-section-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.page-card-scroll-page .header-search {
    flex: 0 0 auto;
  }

  body.page-card-scroll-page .header-search input {
    width: clamp(92px, 28vw, 128px);
  }

  @supports (height: 100svh) {
    body.page-card-scroll-page {
      --card-footer-line-bottom: clamp(18px, 4svh, 28px);
      --card-fade-height: clamp(48px, 8svh, 70px);
    }
  }

  body.page-fond-index {
    --card-title-block: 64px;
    --card-scroll-bottom: clamp(62px, 10vh, 74px);
  }

  body.page-gallery-list {
    --card-title-block: 54px;
  }

  body.page-self-fond {
    --self-fond-title-block: 42px;
  }

  @supports (height: 100svh) {
    body.page-fond-index {
      --card-scroll-bottom: clamp(62px, 10svh, 74px);
    }
  }

  body.page-fond-index .archive-flow-list + .fond-period-nav {
    justify-content: flex-start;
    gap: 7px;
    font-size: 13px;
    overflow-x: auto;
  }
}

@media (max-width: 720px) {
  body.page-card-scroll-page {
    --card-header-height: 196px;
    --card-footer-line-side: 20px;
    --card-footer-line-bottom: 18px;
    --card-fade-height: 52px;
  }

  body.page-fond-index {
    --card-section-top: 14px;
    --card-title-block: 60px;
    --card-scroll-bottom: 66px;
  }

  body.page-gallery-list {
    --card-section-top: 14px;
    --card-title-block: 48px;
  }

  body.page-staff-list.page-card-scroll-page {
    --staff-main-top: 14px;
    --staff-alpha-height: 48px;
    --staff-table-top: 18px;
  }

  body.page-fond-index .archive-flow-list + .fond-period-nav {
    bottom: calc(var(--card-footer-line-bottom) + 10px);
    padding: 0;
    font-size: 12px;
  }
}
