:root {
  --cyan: #00a0d0;
  --cyan-ink: #086888;
  --navy: #0c3344;
  --ink: #142830;
  --muted: #4d6270;
  --paper: #f4f7f8;
  --white: #ffffff;
  --line: #d5e2e8;
  --gold: #e4b400;
  --gold-ink: #6d5600;
  --green: #067a43;
  --orange: #e36a00;
  --red: #c42822;
  --serif: "Source Serif 4", "Times New Roman", serif;
  --sans: "Noto Sans", "Segoe UI", sans-serif;
  --max: 1120px;
  --shadow: 0 18px 40px rgba(12, 51, 68, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(0, 160, 208, 0.16), transparent 60%),
    radial-gradient(700px 380px at -10% 30%, rgba(228, 180, 0, 0.14), transparent 55%),
    var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 620; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.6rem; }
h1 { font-size: clamp(2.3rem, 4.6vw, 4.05rem); }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.35rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 0.85rem; }
.wrap { width: min(var(--max), calc(100% - 2.4rem)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 2.4rem)); }
.doc-column { max-width: 820px; }
.doc-column > h2 { margin-top: 1.6rem; }
.skip {
  position: absolute; left: 1rem; top: -4rem; background: var(--navy); color: white;
  padding: 0.5rem 0.8rem; z-index: 20;
}
.skip:focus { top: 0.6rem; color: white; }

.topbar { background: var(--navy); color: #d5e7ee; font-size: 0.86rem; }
.topbar a { color: white; text-decoration: none; }
.topbar-inner, .header-inner, .footer-base, .band-inner, .section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.topbar-inner { min-height: 2.5rem; }
.topbar-links { display: flex; align-items: center; gap: 1rem; }
.lang { display: inline-flex; border: 1px solid rgba(255,255,255,0.28); }
.lang a { padding: 0.15rem 0.45rem; color: #d5e7ee; }
.lang a[aria-current="true"] { background: white; color: var(--navy); }

.site-header {
  position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px); transition: transform .35s ease, box-shadow .35s ease;
}
.site-header.is-stuck { box-shadow: 0 12px 30px rgba(12, 51, 68, 0.1); }
@media (min-width: 981px) {
  /* Шапка из трёх строк закрывает много места: при чтении вниз она уезжает, при прокрутке вверх возвращается. */
  .site-header.is-hidden { transform: translateY(-105%); }
}
.site-header::after {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--cyan) 0 48%, var(--gold) 48% 74%, var(--green) 74% 100%);
}
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand . tools" "nav nav nav";
  align-items: center;
  column-gap: 1.25rem;
  row-gap: 0.35rem;
  min-height: 5rem;
  position: relative;
  padding: 0.55rem 0 0;
}
.brand { grid-area: brand; display: flex; align-items: center; gap: 0.75rem; color: var(--ink); text-decoration: none; min-width: max-content; }
.brand img { width: 64px; height: 64px; border-radius: 50%; background: white; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 650; letter-spacing: -0.03em; }
.brand small { color: var(--muted); font-size: 0.78rem; }
.nav { grid-area: nav; display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 0.3rem 0.15rem; width: 100%; padding: 0.5rem 0 0.7rem; border-top: 1px solid var(--line); margin-top: 0.25rem; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: 0.88rem; font-weight: 650; padding: 0.3rem 0.7rem;
  border-radius: 999px; transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav a:hover { background: #e5f6fb; color: var(--navy); transform: translateY(-1px); }
.nav-drop { position: relative; display: flex; align-items: center; gap: 0.1rem; }
.nav-drop-toggle {
  width: 1.7rem; height: 1.7rem; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.nav-drop-toggle span {
  width: 0.42rem; height: 0.42rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}
.nav-drop-panel {
  display: none; position: absolute; top: 100%; right: 0; z-index: 30; padding-top: 0.55rem;
  width: min(28rem, 72vw); max-height: min(70vh, 32rem); overflow: auto;
  padding: 0.4rem; border-radius: 16px; background: white;
  box-shadow: 0 18px 40px rgba(12, 51, 68, 0.16);
}
.nav-drop-panel a {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.4rem; align-items: start;
  padding: 0.55rem 0.65rem; border-radius: 10px; color: var(--ink); font-size: 0.92rem; font-weight: 650;
}
.nav-drop-panel a b { color: var(--cyan); font-family: var(--serif); font-weight: 650; }
.nav-drop-panel a:hover { background: #e5f6fb; color: var(--navy); }
.nav-drop.is-open .nav-drop-panel,
.nav-drop:hover .nav-drop-panel,
.nav-drop:focus-within .nav-drop-panel { display: grid; }
.nav a[aria-current="page"] { background: var(--navy); color: white; box-shadow: none; }
.nav a[aria-current="page"]:hover { background: var(--navy); color: white; }
.nav-toggle {
  display: none; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--line);
  border-radius: 14px; background: white; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle-lines { width: 1.05rem; height: 2px; background: var(--navy); box-shadow: 0 -5px 0 var(--navy), 0 5px 0 var(--navy); }
.header-tools { grid-area: tools; display: flex; align-items: center; justify-content: flex-end; gap: 0.55rem; }
.header-socials, .footer-socials { display: flex; align-items: center; gap: 0.4rem; }
.header-socials a {
  width: 2.55rem; height: 2.55rem; border-radius: 12px; display: grid; place-items: center; color: white;
}
.header-socials svg, .footer-socials svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.social.wa { background: #128c7e; }
.social.ig { background: #c13584; }
.footer-socials { flex-wrap: wrap; margin-top: 0.35rem; }
.footer-socials a {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.6rem;
  padding: 0.35rem 0.9rem; border-radius: 999px; color: white; text-decoration: none; font-weight: 700;
}

.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 3rem; align-items: center; }
.kicker {
  margin: 0 0 0.8rem; color: var(--gold); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.page-hero .kicker, .section .kicker { color: var(--green); }
.hero h1 { color: white; max-width: none; }
.lead, .deck { color: #d7e6ec; font-size: 1.12rem; }
.page-hero .deck, .section .deck { color: var(--muted); }
.hero .prose p { color: #d7e6ec; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.hero-media { display: grid; place-items: center; }
.seal {
  width: min(100%, 320px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, white 0 58%, transparent 59%);
  box-shadow: 0 0 0 10px rgba(228, 180, 0, 0.28), 0 0 0 18px rgba(0, 160, 208, 0.18);
  display: grid; place-items: center;
}
.seal img { width: 86%; height: auto; }
.hero-photo { margin: 0; width: 100%; }
.hero-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 8px solid rgba(255,255,255,0.14); }

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(72vh, 640px); display: flex; align-items: center;
  background:
    radial-gradient(640px 320px at 88% 18%, rgba(228, 180, 0, 0.28), transparent 62%),
    radial-gradient(520px 340px at 8% 90%, rgba(0, 160, 208, 0.45), transparent 60%),
    linear-gradient(155deg, #071c28 0%, #0c3344 46%, #0a6d90 100%);
  color: white; padding: 4.6rem 0 4.8rem;
}
.hero-bg-img, .hero-shade { position: absolute; }
.hero-bg-img { inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* Рамка с фото: пропорция подбирается под снимок, поэтому он почти не обрезается. */
.hero-frame { display: none; position: relative; margin: 0; width: min(100%, var(--fw, 440px)); justify-self: end; }
.hero-frame.r-169 { --fw: 500px; aspect-ratio: 16 / 9; }
.hero-frame.r-32  { --fw: 480px; aspect-ratio: 3 / 2; }
.hero-frame.r-43  { --fw: 440px; aspect-ratio: 4 / 3; }
.hero-frame.r-11  { --fw: 370px; aspect-ratio: 1 / 1; }
.hero-frame.r-34  { --fw: 320px; aspect-ratio: 3 / 4; }
.hero-frame::before {
  content: ""; position: absolute; inset: 16px -16px -16px 16px; z-index: -1;
  border: 2px solid rgba(228, 180, 0, 0.75); border-radius: 32px;
}
.hero-frame-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 28px; border: 6px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.36);
}
.hero-seal {
  position: absolute; left: -28px; bottom: -28px; z-index: 2; width: 88px; height: 88px;
  padding: 5px; border-radius: 50%; background: white; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38);
  animation: float-y 5.5s ease-in-out infinite;
}
.hero-seal img { width: 100%; height: 100%; border-radius: 50%; }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (min-width: 981px) {
  /* На широком экране то же фото не растягивается на весь экран, а размывается в фон. */
  .hero.has-photo .hero-bg-img { filter: blur(32px) saturate(1.2); transform: scale(1.2); opacity: 0.6; }
  .hero.has-photo .hero-shade {
    background: linear-gradient(90deg, rgba(6, 22, 32, 0.82) 0%, rgba(6, 22, 32, 0.5) 55%, rgba(6, 22, 32, 0.3) 100%);
  }
  .hero-layout.has-frame { grid-template-columns: minmax(0, 36rem) minmax(0, 1fr); gap: 3rem; }
  .hero-frame { display: block; animation: float-y 8s ease-in-out infinite; }
}
.hero-shade {
  inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(6, 22, 32, 0.88) 0%, rgba(6, 22, 32, 0.55) 48%, rgba(6, 22, 32, 0.18) 100%);
}
.hero:not(.has-photo) .hero-shade {
  background:
    radial-gradient(420px 220px at 80% 30%, rgba(255, 255, 255, 0.08), transparent 70%);
}
.hero-layout {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 38rem) 210px;
  justify-content: start; gap: 2.5rem; align-items: center;
}
.hero-mark {
  position: relative; z-index: 2; width: 210px; height: auto; justify-self: start;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.22));
}
.hero-layout .hero-copy { max-width: 40rem; }
.hero-brand {
  display: inline-flex; margin: 0 0 0.9rem; padding: 0.28rem 0.75rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.24);
  letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.74rem; font-weight: 700;
}
.home-bridge {
  position: relative; z-index: 3; margin-top: -2.2rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem;
}
.home-bridge .shortcuts,
.home-bridge .stats { display: contents; }
.shortcuts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin: 0;
}
.shortcut {
  display: flex; align-items: center; gap: 0.75rem; min-height: 4.4rem; padding: 0.8rem 1rem;
  border-radius: 18px; background: white; color: var(--ink); text-decoration: none; font-weight: 700;
  border: 1px solid rgba(213, 226, 232, 0.9); box-shadow: 0 16px 36px rgba(12, 51, 68, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.shortcut:hover { transform: translateY(-3px); color: var(--navy); box-shadow: 0 18px 34px rgba(12, 51, 68, 0.14); }
.shortcut-icon {
  width: 2.45rem; height: 2.45rem; border-radius: 12px; display: grid; place-items: center;
  background: #e5f6fb; color: var(--cyan-ink); flex: none;
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.02em;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem;
  padding: 0.55rem 1.2rem; border: 1px solid transparent; border-radius: 999px; text-decoration: none;
  font-weight: 700; cursor: pointer; background: var(--navy); color: white;
}
.btn:hover { background: var(--cyan-ink); color: white; }
.btn-light { background: white; color: var(--navy); }
.btn-light:hover { background: var(--gold); color: var(--navy); }
.btn-ghost { background: transparent; color: white; border-color: rgba(255,255,255,0.45); }
.btn-ghost:hover { background: white; color: var(--navy); }
.btn-line { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-line:hover { background: var(--navy); color: white; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: white; color: var(--navy); }
.btn-solid { background: var(--navy); color: white; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; background: white;
  border-bottom: 1px solid var(--line);
}
.stats.is-float {
  width: min(var(--max), calc(100% - 2.4rem)); margin: 1.15rem auto 0; position: relative; z-index: 2;
  border: 0; border-radius: 22px; box-shadow: 0 18px 40px rgba(12, 51, 68, 0.12); overflow: hidden;
}
.home-bridge .stats.is-float { width: auto; margin: 0; box-shadow: none; background: transparent; border-radius: 0; overflow: visible; }
.home-bridge .stat,
.home-bridge .stat + .stat {
  background: white; border-radius: 18px; border: 1px solid rgba(213, 226, 232, 0.9); border-top: 3px solid var(--gold);
  box-shadow: 0 16px 36px rgba(12, 51, 68, 0.1);
}
.stat { padding: 1.35rem 1.4rem 1.2rem; border-top: 3px solid var(--gold); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat dt { margin: 0; color: var(--muted); font-size: 0.86rem; }
.stat dd {
  margin: 0.25rem 0 0; font-family: var(--serif); font-size: 2.4rem; font-weight: 650;
  color: var(--navy); letter-spacing: -0.03em; line-height: 1;
}

.section { padding: 4.5rem 0; }
.section-tight { padding-top: 1rem; }
.section-head { align-items: flex-end; margin-bottom: 1.5rem; }
.section-head .deck { margin: 0.3rem 0 0; max-width: 46rem; }
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: start; }
.prose p:last-child { margin-bottom: 0; }
.more { font-weight: 700; white-space: nowrap; }
.pull { margin: 1.6rem 0 1rem; padding: 0; border: 0; }
.pull p { font-family: var(--serif); font-size: 1.45rem; line-height: 1.35; color: var(--navy); }
.stars { display: flex; gap: 0.28rem; margin-bottom: 0.55rem; }
.stars svg { width: 14px; height: 14px; fill: var(--green); }
.mark-panel, .media-stack figure {
  background: white; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.mark-panel { padding: 2rem 1.4rem; text-align: center; }
.mark-panel img { margin: 0 auto 0.8rem; width: 160px; }
.mark-panel p { color: var(--cyan-ink); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }
.media-stack { display: grid; gap: 1rem; }
.media-stack img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
#school .split { align-items: center; }
/* Мозаика фото рядом с «Мектеп туралы»: ничего не налезает друг на друга. */
.about-mosaic {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; padding: 0.7rem 0 0.7rem 0.7rem;
}
.about-mosaic::before {
  content: ""; position: absolute; z-index: 0; top: -6px; right: -12px; width: 64%; height: 56%;
  border-radius: 32px; background: linear-gradient(135deg, rgba(0, 160, 208, 0.22), rgba(228, 180, 0, 0.24));
}
.about-mosaic::after {
  content: ""; position: absolute; z-index: 0; left: -10px; bottom: -6px; width: 48%; height: 34%;
  border-radius: 28px; border: 2px dashed rgba(6, 122, 67, 0.4);
}
.about-shot {
  position: relative; z-index: 1; margin: 0; overflow: hidden; border-radius: 26px; background: white;
  box-shadow: 0 18px 40px rgba(12, 51, 68, 0.18);
  animation: rise .7s ease both;
}
.about-shot-1 { animation-delay: .1s; }
.about-shot-2 { animation-delay: .2s; }
.about-shot .shot { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; }
.about-shot img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; display: block; transition: transform .7s ease; }
.about-shot:hover img { transform: scale(1.06); }
.about-shot-0 { grid-column: 1 / -1; aspect-ratio: 16 / 10; border-radius: 30px; }
.about-shot-1, .about-shot-2 { aspect-ratio: 4 / 3; }
.about-mosaic.count-1 .about-shot-0 { aspect-ratio: 4 / 3; }
.about-mosaic.count-2 .about-shot-1 { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.about-badge {
  position: absolute; z-index: 3; top: -4px; left: -6px; margin: 0; padding: 0.5rem 0.95rem 0.55rem;
  border-radius: 16px; background: var(--navy); color: white; font-size: 0.8rem; font-weight: 700; line-height: 1.2;
  box-shadow: 0 14px 30px rgba(12, 51, 68, 0.34); animation: float-y 6s ease-in-out infinite;
}
.about-badge b { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--gold); line-height: 1; }

.grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.grade { background: white; border: 1px solid var(--line); padding: 1.15rem 1.1rem 1.25rem; min-height: 100%; }
.grade-num { margin: 0 0 0.55rem; font-family: var(--serif); font-size: 1.7rem; color: var(--cyan); font-weight: 650; }
.grade p:last-child { margin: 0; color: var(--muted); }
.grades-full { margin-top: 1.6rem; }

.langmix { background: white; border: 1px solid var(--line); padding: 1.1rem 1.15rem 1.2rem; margin-bottom: 1.2rem; }
.langmix > p { margin: 0 0 0.7rem; font-weight: 700; }
.langmix-bar { display: flex; gap: 0.3rem; min-height: 0.7rem; }
.langmix-bar i, .langmix li i { display: block; flex: 1; height: 0.55rem; }
.langmix i.kk, .langmix li i.kk { background: var(--cyan); }
.langmix i.ru, .langmix li i.ru { background: var(--gold); }
.langmix ul { list-style: none; display: flex; gap: 1.2rem; padding: 0.7rem 0 0; margin: 0; color: var(--muted); font-size: 0.92rem; }
.langmix li { display: flex; align-items: center; gap: 0.45rem; }
.langmix li i { width: 0.7rem; height: 0.7rem; flex: none; }

.clubs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.club {
  display: flex; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: 18px;
  padding: 1.15rem 1.15rem 1.25rem; min-width: 0; color: inherit; text-decoration: none; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.club:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.club .more { margin-top: auto; padding-top: 0.7rem; color: var(--cyan-ink); transition: letter-spacing .2s ease, color .2s ease; }
.club .more::after { content: " →"; display: inline-block; transition: transform .2s ease; }
.club:hover .more { color: var(--navy); }
.club:hover .more::after { transform: translateX(5px); }
.club-photo { margin: 0 0 1.4rem; }
.club-photo img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 24px; }
.club-index { margin: 0; color: var(--gold-ink); font-family: var(--serif); font-weight: 650; }
.club p { margin: 0; color: var(--muted); }
.club h2 { color: var(--ink); }
.club figure { margin: -1.1rem -1.15rem 0.9rem; }
.club img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.clubs-compact .club p:last-child { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.portrait {
  display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 1.6rem 2rem;
  align-items: center; padding: 1.4rem; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(420px 220px at 12% 0%, rgba(228, 180, 0, 0.35), transparent 60%),
    linear-gradient(145deg, #0c3344 0%, #0b6e94 62%, #0790b8 100%);
  color: white; box-shadow: 0 22px 50px rgba(12, 51, 68, 0.18);
}
.portrait-frame { display: grid; place-items: center; }
.portrait-arch {
  width: min(100%, 260px); aspect-ratio: 3 / 3.7; border-radius: 140px 140px 24px 24px;
  overflow: hidden; background: #f6f1e4; border: 5px solid #e4b400;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.14); display: grid; place-items: center;
}
.portrait-arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.portrait-initials { font-family: var(--serif); font-size: 3rem; color: var(--navy); }
.portrait-copy { min-width: 0; }
.portrait .role, .staff-card .role { margin: 0 0 0.35rem; color: var(--gold); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.portrait h3 { color: white; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 0.55rem; }
.portrait .prose p { color: #e7f4f8; }
.staff-rest { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-top: 0.9rem; }
.staff-card {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 1rem; align-items: center;
  background: white; border-radius: 22px; padding: 0.9rem; border: 1px solid var(--line); min-width: 0;
}
.portrait-arch-sm { width: 132px; border-width: 3px; box-shadow: none; }
.staff-card h3 { margin-bottom: 0.3rem; }
.staff-card .prose p { color: var(--muted); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.news-card { background: white; border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.news-card > div { padding: 1rem 1rem 1.15rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.news-card h3 { font-size: 1.2rem; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--cyan-ink); }
.news-card p { color: var(--muted); margin: 0; }
.news-photo img, .article-photo img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.meta { color: var(--muted); font-size: 0.86rem; margin: 0 0 0.4rem; }
.tag { color: var(--cyan-ink); font-weight: 700; }
.block-title { margin: 2rem 0 0.9rem; }
.empty { background: white; border: 1px dashed var(--line); padding: 1.1rem 1.2rem; color: var(--muted); }

.band { background: var(--navy); color: white; padding: 3.2rem 0; }
.band h2, .band p { color: white; }
.band .kicker { color: var(--gold); }
.band p { max-width: 40rem; color: #d7e6ec; }

.page-hero { padding: 3.2rem 0 0.4rem; }
.page-hero h1 { max-width: 16ch; }
.page-hero.is-compact h1 { max-width: 18em; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.page-hero .deck { max-width: 44rem; margin-top: 0.8rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.gallery figure { margin: 0; background: white; border: 1px solid var(--line); }
.shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shot img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery figcaption { padding: 0.55rem 0.7rem 0.7rem; color: var(--muted); font-size: 0.88rem; }
.gallery-after { margin-top: 1.8rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.steps li { background: white; border-radius: 18px; border-top: 3px solid var(--cyan); padding: 1rem 1rem 1.15rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.steps span { font-family: var(--serif); color: var(--gold-ink); font-size: 1.3rem; }
.steps p { margin: 0; color: var(--muted); }

.apply, .contact-card {
  background: white; border: 0; border-radius: 28px; padding: 1.45rem 1.35rem 1.4rem;
  box-shadow: 0 22px 48px rgba(12, 51, 68, 0.12);
}
.apply {
  background:
    linear-gradient(90deg, var(--cyan) 0 48%, var(--gold) 48% 74%, var(--green) 74% 100%) 0 0 / 100% 7px no-repeat,
    white;
  padding-top: 1.7rem;
}
.apply-lead { color: var(--muted); margin: -0.2rem 0 1rem; }
.apply input, .apply textarea, .apply select { border-radius: 14px; background: #f4fafb; min-height: 3rem; }
.apply textarea { min-height: 7rem; }
.apply .btn { width: 100%; margin-top: 0.3rem; }
.grade-picks { border: 0; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.grade-picks legend { flex: 1 0 100%; font-size: 0.82rem; font-weight: 700; padding: 0; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span {
  display: inline-flex; align-items: center; min-height: 2.7rem; padding: 0.3rem 0.95rem;
  border-radius: 999px; border: 1px solid var(--line); background: #f4fafb; font-weight: 700; cursor: pointer;
}
.pick input:checked + span { background: var(--navy); color: white; border-color: var(--navy); }
.pick input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.contact-card .btn { border-radius: 999px; }
.anchor { scroll-margin-top: 5.5rem; }
.leader-block { margin-top: 2.6rem; }
.deck-block { max-width: 46rem; margin-bottom: 1rem; }
.apply label, .contact-card dt { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 0.3rem; }
.apply label { margin-bottom: 0.85rem; }
.apply input, .apply textarea, .apply select {
  width: 100%; margin-top: 0.3rem; border: 1px solid var(--line); background: var(--paper); padding: 0.65rem 0.7rem;
}
.apply input:focus, .apply textarea:focus, .apply select:focus { outline: 2px solid var(--cyan); border-color: transparent; background: white; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.form-note { color: var(--muted); font-size: 0.9rem; min-height: 1.4em; }
.form-note.is-ok { color: var(--green); }
.form-note.is-err { color: var(--red); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.contact-card dl { margin: 0 0 1rem; }
.contact-card div { margin-bottom: 0.7rem; }
.contact-card dd { margin: 0; }
.align-start { align-items: start; }

.article h1 { max-width: 18ch; margin-top: 0.4rem; }
.article-photo { margin: 1.2rem 0; }

.site-footer { background: var(--navy); color: #d5e7ee; padding-top: 2.8rem; }
.site-footer a { color: white; text-decoration: none; }
.site-footer h2 { color: white; font-size: 1.05rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 2rem; padding-bottom: 2rem; }
.brand-on-dark { color: white; }
.brand-on-dark small { color: #b7cdd6; }
.footer-motto { max-width: 28rem; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav a { display: inline-block; padding: 0.15rem 0; }
.footer-base { border-top: 1px solid rgba(255,255,255,0.14); min-height: 3.4rem; font-size: 0.88rem; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1000px, 94vw); overflow: visible; }
.lightbox[open] { animation: lb-in .3s ease both; }
@keyframes lb-in { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: none; } }
.lightbox::backdrop { background: rgba(8, 24, 32, 0.88); backdrop-filter: blur(6px); }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; background: transparent; border-radius: 18px; }
.lightbox p { color: white; margin: 0.7rem 0 0; text-align: center; min-height: 1.4em; }
.lightbox-close {
  position: absolute; right: 0; top: -2.8rem; padding: 0.35rem 0.9rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); color: white; border: 0; cursor: pointer; font-weight: 700;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox-nav {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-60%); width: 3rem; height: 3rem;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--navy);
  font-size: 1.9rem; line-height: 1; cursor: pointer; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  transition: transform .2s ease, background .2s ease;
}
.lightbox-nav:hover { background: var(--gold); transform: translateY(-60%) scale(1.08); }
.lightbox-prev { left: -1.5rem; }
.lightbox-next { right: -1.5rem; }
.lightbox-nav[hidden] { display: none; }
@media (max-width: 680px) {
  .lightbox-prev { left: 0.4rem; }
  .lightbox-next { right: 0.4rem; }
}

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

@media (max-width: 980px) {
  .hero-grid, .split, .grades, .steps, .news-grid, .footer-grid, .gallery { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .nav-toggle { display: inline-flex; }
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand tools";
    position: relative;
    min-height: 4.4rem;
    padding-bottom: 0.45rem;
  }
  .brand { min-width: 0; }
  .brand strong { font-size: 1.2rem; }
  .nav {
    display: none; position: absolute; top: 100%; right: 0; left: 0; z-index: 20; background: white;
    border-bottom: 1px solid var(--line); box-shadow: 0 16px 28px rgba(12, 51, 68, 0.08);
    padding: 0.4rem 1.2rem 0.9rem; flex-direction: column; align-items: flex-start;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.55rem 0.7rem; border-radius: 12px; width: 100%; }
  .nav a[aria-current="page"] { background: #e5f6fb; color: var(--navy); }
  .nav a[aria-current="page"]:hover { background: #d3eef7; color: var(--navy); }
  .nav-drop { width: 100%; flex-wrap: wrap; }
  .nav-drop-panel {
    position: static; width: 100%; max-height: none; box-shadow: none; padding: 0 0 0.2rem 0.15rem;
  }
  .nav-drop:hover .nav-drop-panel,
  .nav-drop:focus-within .nav-drop-panel { display: none; }
  .nav-drop.is-open .nav-drop-panel { display: grid; }
  .brand img { width: 52px; height: 52px; }
  .home-bridge, .shortcuts { grid-template-columns: 1fr 1fr; }
  .doc-index { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding: 3.2rem 0 3.6rem; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .hero h1, .page-hero h1 { max-width: none; }
}
@media (max-width: 680px) {
  .hero-grid, .split, .grades, .steps, .clubs, .news-grid, .footer-grid, .gallery, .form-row, .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .topbar-inner { flex-direction: column; align-items: flex-start; padding: 0.45rem 0; }
  .mail { display: none; }
  .section { padding: 3rem 0; }
  .portrait, .staff-card, .staff-rest { grid-template-columns: 1fr; }
  .about-mosaic { padding: 0.6rem 0.2rem 0.4rem; }
  .portrait-arch, .portrait-arch-sm { width: min(100%, 240px); margin-inline: auto; }
  .band-inner, .section-head, .footer-base { flex-direction: column; align-items: flex-start; }
}
.grade-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.grade-chip {
  display: flex; flex-direction: column; gap: 0.25rem; min-height: 7.2rem; padding: 1rem 1.05rem;
  border-radius: 18px; background: white; color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s ease;
}
.grade-chip span { font-family: var(--serif); font-size: 1.7rem; color: var(--cyan); font-weight: 650; }
.grade-chip:hover { transform: translateY(-4px); color: var(--navy); }
.chapters { display: grid; gap: 1rem; margin-top: 1.4rem; }
.chapter {
  display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; align-items: center;
  border-radius: 24px; padding: 1.3rem 1.4rem; min-width: 0;
}
.chapter-num { margin: 0; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 650; line-height: 1; }
.chapter h2 { margin-bottom: 0.35rem; }
.chapter p { margin: 0; }
.tone-cyan { background: #e5f6fb; }
.tone-cyan .chapter-num { color: #0878a4; }
.tone-gold { background: #fff4cc; }
.tone-gold .chapter-num { color: #8a6a00; }
.tone-green { background: #e5f6ec; }
.tone-green .chapter-num { color: #067a43; }
.tone-navy { background: #0c3344; color: white; }
.tone-navy h2, .tone-navy h3, .tone-navy p { color: white; }
.chapter h3 { margin-bottom: 0.35rem; }
.tone-navy .chapter-num { color: #e4b400; }
.doc-groups { display: grid; gap: 1.8rem; }
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.doc-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; min-height: 190px;
  padding: 1.15rem; border-radius: 20px; background: white; color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; transition: transform .2s ease;
}
.doc-card:hover { transform: translateY(-4px); color: var(--ink); }
.doc-card strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 650; }
.doc-card small { color: var(--muted); }
.doc-ext {
  display: grid; place-items: center; min-width: 3.1rem; height: 3.1rem; padding: 0 0.45rem;
  border-radius: 12px; background: var(--cyan); color: white; font-size: 0.72rem; font-weight: 800;
}
.ext-pdf { background: #c42822; }
.ext-doc, .ext-docx { background: #0b6e94; }
.doc-open { margin-top: auto; font-weight: 700; color: var(--cyan-ink); }
.slider-tools { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; justify-content: flex-end; }
.slider-nav { display: flex; gap: 0.4rem; }
.slider-btn {
  width: 2.7rem; height: 2.7rem; border: 0; border-radius: 50%;
  background: var(--navy); color: white; font-size: 1.7rem; line-height: 1; cursor: pointer;
}
.slider-btn:hover { background: var(--cyan-ink); }
.slider-btn:disabled { opacity: 0.35; cursor: default; }
.slider-track {
  display: flex; gap: 0.9rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; padding: 0.15rem 0.1rem 0.5rem;
}
.slider-track::-webkit-scrollbar { display: none; }
.club-slide {
  flex: 0 0 min(300px, 78vw); scroll-snap-align: start; display: flex; flex-direction: column;
}
.club-slide figure { margin: -1.15rem -1.15rem 0.85rem; height: 180px; overflow: hidden; }
.club-slide img { width: 100%; height: 180px; object-fit: cover; aspect-ratio: auto; }
.slider-track-wide .slide {
  flex: 0 0 100%; scroll-snap-align: start; margin: 0;
  background: white; border: 0; border-radius: 22px; overflow: hidden;
  box-shadow: 0 16px 36px rgba(12, 51, 68, 0.1);
}
.life-card .shot { position: relative; display: block; overflow: hidden; }
.life-card img { width: 100%; height: min(440px, 56vw); aspect-ratio: auto; object-fit: cover; transition: transform .7s ease; }
.life-card:hover img { transform: scale(1.07); }
.life-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 2.4rem 0.95rem 0.8rem; text-align: left;
  background: linear-gradient(180deg, transparent, rgba(8, 24, 32, 0.82));
  color: white; font-weight: 700; font-size: 0.95rem;
}
.life-card { animation: rise .7s ease both; }
.life-card:nth-child(2) { animation-delay: .08s; }
.life-card:nth-child(3) { animation-delay: .16s; }
.life-card:nth-child(4) { animation-delay: .24s; }
.life-card:nth-child(5) { animation-delay: .32s; }
.life-card:nth-child(6) { animation-delay: .4s; }
.life-card:nth-child(7) { animation-delay: .48s; }
.life-card:nth-child(8) { animation-delay: .56s; }
.life-card:nth-child(9) { animation-delay: .64s; }
.doc-list { list-style: none; margin: 0.7rem 0 0; padding: 0; background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.doc-list li + li { border-top: 1px solid var(--line); }
.doc-list a {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.85rem; align-items: center;
  padding: 0.9rem 1rem; color: var(--ink); text-decoration: none;
}
.doc-list a:hover { background: #f3fafc; }
.doc-list-title { font-weight: 700; }
.doc-list small { color: var(--muted); white-space: nowrap; }
.doc-list .doc-ext { width: auto; min-width: 3.2rem; height: 2.1rem; border-radius: 8px; }
.doc-index { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.doc-section-link {
  display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 0.75rem; align-items: start;
  min-height: 9rem; padding: 1.05rem 1.1rem; border-radius: 20px; background: white; color: var(--ink);
  text-decoration: none; border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.doc-section-link:hover { transform: translateY(-3px); color: var(--ink); }
.doc-section-link .num { font-family: var(--serif); font-size: 1.7rem; font-weight: 650; color: var(--cyan); line-height: 1; }
.doc-section-link strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 650; }
.doc-section-link p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.92rem; }
.doc-section-link small { display: block; margin-top: 0.55rem; color: var(--cyan-ink); font-weight: 700; }
.doc-back { font-weight: 700; }
.drive + p { margin-top: 1rem; }
@media (min-width: 681px) {
  .slider-nav { display: none; }
  .slider-track, .slider-track-wide {
    display: grid; overflow: visible; scroll-snap-type: none; gap: 0.9rem; align-items: start;
  }
  .slider-track { grid-template-columns: 1fr 1fr; }
  .slider-track-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .club-slide, .slider-track-wide .slide { flex: none; width: auto; min-width: 0; }
  .club-slide figure, .club-slide img { height: auto; }
  .club-slide img { aspect-ratio: 16 / 9; }
  /* Галерея на компьютере: колонки, фото в своих пропорциях, без обрезки. */
  .slider-track-wide { display: block; column-count: 3; column-gap: 0.9rem; }
  .slider-track-wide .life-card { display: block; width: 100%; break-inside: avoid; margin: 0 0 0.9rem; }
  .slider-track-wide .shot img,
  .life-card img { height: auto; aspect-ratio: auto; }
}
@media (min-width: 681px) and (max-width: 980px) {
  .slider-track-wide { column-count: 2; }
}
.club:nth-child(4n + 1) { border-top: 4px solid var(--cyan); }
.club:nth-child(4n + 2) { border-top: 4px solid var(--gold); }
.club:nth-child(4n + 3) { border-top: 4px solid var(--green); }
.club:nth-child(4n) { border-top: 4px solid var(--orange); }
.prose, .portrait-copy, .chapter, .doc-card, .club, .news-card, .grade, .staff-card { min-width: 0; overflow-wrap: anywhere; }
.reveal { animation: rise .7s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 980px) {
  .grade-rail, .doc-grid, .staff-rest { grid-template-columns: 1fr 1fr; }
  .home-bridge { margin-top: 1rem; }
}
@media (max-width: 680px) {
  .grade-rail, .doc-grid, .chapter, .staff-rest { grid-template-columns: 1fr; }
  .hero { padding-bottom: 2.4rem; }
  .hero-copy { max-width: none; }
  .home-bridge, .shortcuts { grid-template-columns: 1fr; }
  .slider .section-head { align-items: flex-start; }
  .doc-list a { grid-template-columns: auto minmax(0, 1fr); }
  .doc-list small { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .club, .grade-chip, .doc-card, .life-card, .about-shot, .about-shot img, .about-badge,
  .hero-frame, .hero-seal, .site-header { animation: none; transition: none; }
}

/* ——— Аттестация: разделы, папки и файлы ——— */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nav-drop > a[aria-current="page"] + .nav-drop-toggle { color: var(--navy); }
.nav-drop-panel { left: 0; right: auto; width: min(30rem, 86vw); }
.nav-drop-panel a span { min-width: 0; }

.attest-search { display: flex; gap: 0.6rem; margin: 0 0 1.4rem; max-width: 40rem; }
.attest-search input, .drive-filter input {
  flex: 1; min-width: 0; padding: 0.7rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  background: white; box-shadow: 0 6px 18px rgba(12, 51, 68, 0.05);
}
.attest-search input:focus, .drive-filter input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }

.attest-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem;
}
.attest-card {
  height: 100%; display: grid; grid-template-columns: 3.1rem minmax(0, 1fr); gap: 0.8rem; align-items: start;
  padding: 1.15rem 1.15rem 1rem; border-radius: 20px; background: white; color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease;
}
.attest-card:hover { transform: translateY(-4px); border-color: var(--cyan); color: var(--ink); }
.attest-num {
  display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 14px;
  background: var(--navy); color: var(--gold); font-family: var(--serif); font-size: 1.35rem; font-weight: 650;
}
.attest-grid li:nth-child(3n + 2) .attest-num { background: var(--cyan-ink); color: white; }
.attest-grid li:nth-child(3n) .attest-num { background: var(--gold); color: var(--navy); }
.attest-body { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; height: 100%; }
.attest-body strong { font-family: var(--serif); font-size: 1.18rem; font-weight: 650; line-height: 1.25; }
.attest-lead { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.attest-meta {
  margin-top: auto; padding-top: 0.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem;
  color: var(--muted); font-size: 0.82rem; font-weight: 650;
}
.attest-folder { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--cyan-ink); }
.attest-folder svg { width: 1.05rem; height: 1.05rem; fill: #f2b81a; }

.crumbs-wrap { padding-top: 1.4rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.4rem; font-size: 0.88rem; }
.crumbs li { display: inline-flex; align-items: center; gap: 0.4rem; min-width: 0; }
.crumbs li + li::before { content: "›"; color: var(--muted); }
.crumbs a { font-weight: 650; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--muted); }
.crumbs-wrap + .page-hero { padding-top: 1.2rem; }

.drive { background: white; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.drive-filter { display: flex; padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--line); background: #f7fbfc; }
.drive-head, .drive-row a {
  display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) 9.5rem 6rem; gap: 0.85rem; align-items: center;
}
.drive-head {
  padding: 0.65rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.drive-head span:first-child { grid-column: 1 / 3; }
.drive-list { list-style: none; margin: 0; padding: 0; }
.drive-row + .drive-row { border-top: 1px solid var(--line); }
.drive-row[hidden] { display: none; }
.drive-row a { padding: 0.75rem 1rem; color: var(--ink); text-decoration: none; transition: background .15s ease; }
.drive-row a:hover { background: #f1f9fc; color: var(--ink); }
.drive-icon { display: grid; place-items: center; width: 2.6rem; height: 2.3rem; }
.drive-icon svg { width: 1.75rem; height: 1.75rem; fill: #f2b81a; filter: drop-shadow(0 2px 2px rgba(109, 86, 0, 0.18)); }
.drive-row .doc-ext { width: 2.6rem; min-width: 0; height: 2.1rem; padding: 0; border-radius: 8px; font-size: 0.66rem; }
.drive-name { display: flex; flex-direction: column; min-width: 0; }
.drive-name strong { font-weight: 650; line-height: 1.35; }
.is-folder .drive-name strong { font-weight: 700; }
.drive-name small { color: var(--muted); font-size: 0.8rem; }
.drive-date, .drive-size { color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
.drive-size { text-align: right; }
.drive-none { margin: 0; padding: 1rem; color: var(--muted); }
.drive-none[hidden] { display: none; }
.ext-xls, .ext-xlsx { background: #107c41; }
.ext-ppt, .ext-pptx { background: #c43e1c; }
.ext-jpg, .ext-png { background: #6b4fbb; }

.section-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-top: 1.6rem; }
.section-pager a {
  display: flex; flex-direction: column; gap: 0.15rem; padding: 0.9rem 1.1rem; border-radius: 16px;
  background: white; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s ease;
}
.section-pager a:hover { border-color: var(--cyan); color: var(--ink); }
.section-pager small { color: var(--cyan-ink); font-weight: 700; }
.section-pager span { font-family: var(--serif); font-weight: 650; }
.pager-next { text-align: right; grid-column: 2; }

.attest-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.attest-links a {
  display: grid; grid-template-columns: 2.3rem minmax(0, 1fr); gap: 0.6rem; align-items: center; height: 100%;
  padding: 0.7rem 0.85rem; border-radius: 14px; background: rgba(255, 255, 255, 0.08); color: white;
  text-decoration: none; font-weight: 650; font-size: 0.94rem; line-height: 1.3; transition: background .2s ease, transform .2s ease;
}
.attest-links a:hover { background: rgba(255, 255, 255, 0.16); color: white; transform: translateY(-2px); }
.attest-links b { color: var(--gold); font-family: var(--serif); font-size: 1.15rem; }

@media (max-width: 980px) {
  .attest-grid, .attest-links { grid-template-columns: 1fr 1fr; }
  .nav { max-height: calc(100vh - 7.5rem); overflow-y: auto; overscroll-behavior: contain; }
  .nav-drop > a { flex: 1; width: auto; }
  .nav-drop-toggle { width: 2.6rem; height: 2.6rem; border: 1px solid var(--line); border-radius: 12px; }
  .nav-drop-panel a { width: 100%; }
}
@media (max-width: 680px) {
  .attest-grid, .attest-links, .section-pager { grid-template-columns: 1fr; }
  .pager-next { grid-column: 1; }
  .attest-search { flex-direction: column; }
  .drive-head { display: none; }
  .page-attestation .page-hero.is-compact h1 { font-size: 1.6rem; }
  .page-attestation .page-hero { padding-bottom: 0; }
  .drive-row a { grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: 0.7rem; padding: 0.75rem 0.85rem; }
  .drive-date { display: none; }
  .drive-size { font-size: 0.8rem; }
}
.attest-panel { padding: 2rem 2rem 2.1rem; border-radius: 26px; box-shadow: 0 24px 50px rgba(12, 51, 68, 0.22); }
.attest-panel .kicker { color: var(--gold); }
@media (max-width: 680px) { .attest-panel { padding: 1.4rem 1.1rem; border-radius: 20px; } }
