/* ==========================================================================
   Хаб ЛЭТО-2026
   --------------------------------------------------------------------------
   Пять независимых тем: классика, лето, зима, POLIS и его тёмная версия.
   Темы квиза живут в themes.css и применяются через data-theme; здесь всё
   завязано на data-hub-theme, поэтому оверлей не перекрашивается с хабом.
   ========================================================================== */

html[data-hub-theme] {
  --hub-header-h: 78px;
  --hub-shell: 1240px;
  --hub-gutter: clamp(20px, 4vw, 48px);
  --hub-radius: 4px;
  --hub-display: "Forum", Georgia, serif;
  --hub-body: "Manrope", "Inter", system-ui, sans-serif;
  --hub-bg: #0a0a0a;
  --hub-bg-soft: #0d0d0d;
  --hub-surface: #111111;
  --hub-surface-2: #151515;
  --hub-text: #f3f3f3;
  --hub-muted: #999999;
  --hub-accent: #00e5e5;
  --hub-accent-2: #2ee8a8;
  --hub-accent-ink: #041111;
  --hub-gold: #c8a84e;
  --hub-border: rgba(255, 255, 255, 0.13);
  --hub-border-strong: rgba(255, 255, 255, 0.28);
  --hub-header-bg: #0a0a0a;
  --hub-footer-bg: #070707;
  --hub-footer-text: #f3f3f3;
  --hub-footer-muted: #9a9a9a;
  --hub-footer-border: rgba(255, 255, 255, 0.12);
  --hub-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --hub-focus: #00e5e5;
}





html[data-hub-theme="hub-polis"] {
  --hub-header-h: 78px;
  --hub-radius: 0px;
  --hub-display: "Forum", Georgia, serif;
  --hub-bg: #f4fffb;
  --hub-bg-soft: #e8fff7;
  --hub-surface: #ffffff;
  --hub-surface-2: #ddfff2;
  --hub-text: #1e1e1e;
  --hub-muted: #5b6b64;
  --hub-accent: #21f0a8;
  --hub-accent-2: #00c97b;
  --hub-accent-ink: #102019;
  --hub-gold: #21f0a8;
  --hub-border: rgba(30, 30, 30, 0.18);
  --hub-border-strong: rgba(30, 30, 30, 0.55);
  --hub-header-bg: #f4fffb;
  --hub-footer-bg: #1e1e1e;
  --hub-footer-text: #f4fffb;
  --hub-footer-muted: #a9bdb4;
  --hub-footer-border: rgba(244, 255, 251, 0.16);
  --hub-shadow: 0 20px 50px rgba(30, 30, 30, 0.12);
  --hub-focus: #008b56;
}

/* [class] добавлен намеренно: themes.css задаёт фон body селектором
   html[data-theme]:not(...) body, и для независимости хаба нужен больший вес. */
html[data-hub-theme] body.hub-page[class] {
  margin: 0;
  background: var(--hub-bg);
  background-image: none;
  color: var(--hub-text);
  font-family: var(--hub-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip, а не hidden: hidden делает body скролл-контейнером и ломает sticky */
  overflow-x: clip;
}

html[data-hub-theme] body.hub-page::before {
  display: none !important;
  content: none !important;
}

#hub-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--hub-bg);
  color: var(--hub-text);
  font-family: var(--hub-body);
  isolation: isolate;
}

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

html[data-hub-theme] #hub-page :where(h1, h2, h3, h4) {
  margin: 0;
  color: var(--hub-text);
  font-family: var(--hub-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

html[data-hub-theme] #hub-page a {
  color: inherit;
  text-decoration: none;
}

#hub-page img,
#hub-page svg {
  display: block;
  max-width: 100%;
}

#hub-page button,
#hub-page input,
#hub-page textarea,
#hub-page select {
  font: inherit;
}

#hub-page :focus-visible {
  outline: 2px solid var(--hub-focus);
  outline-offset: 3px;
}

.hub-shell {
  width: min(var(--hub-shell), calc(100% - (var(--hub-gutter) * 2)));
  margin-inline: auto;
}

.hub-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--hub-surface);
  color: var(--hub-text);
  border: 1px solid var(--hub-border-strong);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

.hub-eyebrow {
  margin: 0 0 14px;
  color: var(--hub-accent);
  font-family: var(--hub-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hub-note {
  margin: 0;
  color: var(--hub-muted);
  font-size: 13px;
  line-height: 1.5;
}

.hub-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  color: var(--hub-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s ease, gap 0.2s ease;
}

.hub-text-link:hover {
  gap: 13px;
  color: var(--hub-accent);
}

.hub-empty {
  margin: 0;
  padding: 34px 0;
  color: var(--hub-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Шапка и меню
   -------------------------------------------------------------------------- */

.hub-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--hub-header-h);
  background: var(--hub-header-bg);
  border-bottom: 1px solid var(--hub-border);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hub-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.hub-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.hub-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.hub-header .hub-brand {
  position: relative;
  z-index: 2;
}

.hub-brand__mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.hub-brand:hover .hub-brand__mark {
  transform: rotate(-4deg) scale(1.04);
}


html[data-hub-theme="hub-polis"] .hub-brand__mark {
  width: 58px;
  height: 58px;
  padding: 5px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(33, 240, 168, 0.34), transparent 46%),
    radial-gradient(circle at 72% 78%, #1a5a49, #0a2922 58%, #061713 100%);
  box-shadow:
    0 0 0 1px rgba(33, 240, 168, 0.52),
    0 0 0 4px rgba(33, 240, 168, 0.09),
    0 8px 18px rgba(4, 20, 16, 0.18);
}

.hub-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
}

.hub-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--hub-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hub-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 1px;
  background: var(--hub-accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.25s ease;
}

.hub-nav a:hover::after,
.hub-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.hub-nav a[aria-current="page"] {
  color: var(--hub-accent);
}

.hub-nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hub-text);
  cursor: pointer;
}

.hub-nav-toggle__box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 27px;
  height: 27px;
}

.hub-nav-toggle__box span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.hub-nav-toggle[aria-expanded="true"] .hub-nav-toggle__box span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hub-nav-toggle[aria-expanded="true"] .hub-nav-toggle__box span:nth-child(2) {
  opacity: 0;
}

.hub-nav-toggle[aria-expanded="true"] .hub-nav-toggle__box span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.hub-nav-toggle__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Первый экран
   -------------------------------------------------------------------------- */

.hub-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--hub-header-h));
  min-height: calc(100svh - var(--hub-header-h));
  padding: clamp(52px, 8vw, 110px) 0 clamp(72px, 9vw, 122px);
  overflow: hidden;
  border-bottom: 1px solid var(--hub-border);
}

.hub-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(0, 229, 229, 0.16), transparent 45%),
    radial-gradient(ellipse at 80% 85%, rgba(46, 232, 168, 0.08), transparent 42%),
    #0a0a0a;
}

.hub-hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
}

.hub-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 10, 0.8) 100%);
}

.hub-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}

.hub-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.hub-hero__copy > * {
  animation: hub-hero-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hub-hero__copy > *:nth-child(1) { animation-delay: 0.02s; }
.hub-hero__copy > *:nth-child(2) { animation-delay: 0.1s; }
.hub-hero__copy > *:nth-child(3) { animation-delay: 0.18s; }
.hub-hero__copy > *:nth-child(4) { animation-delay: 0.26s; }

.hub-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(18px, 3vw, 30px);
  color: var(--hub-accent);
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 700;
  letter-spacing: 0.34em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hub-hero__kicker::before,
.hub-hero__kicker::after {
  content: "";
  width: clamp(24px, 5vw, 56px);
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.hub-hero__title {
  margin: 0;
  color: var(--hub-title-color, #f7f7f7) !important;
  font-family: var(--hub-display);
  font-size: clamp(5.4rem, 18vw, 13rem);
  font-weight: 400;
  letter-spacing: 0.085em;
  line-height: 0.82;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(0, 229, 229, 0.25), 0 0 70px rgba(0, 229, 229, 0.12);
}

.hub-hero__subtitle {
  max-width: 30ch;
  margin: clamp(24px, 3.2vw, 38px) auto 0;
  color: #d9d9d9;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.6;
}

.hub-hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 24px;
  margin-top: clamp(26px, 4vw, 44px);
}

.hub-hero__note {
  margin: 0;
  color: var(--hub-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hub-hero__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #f3f3f3;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hub-hero__social svg {
  width: 18px;
  height: 18px;
}

.hub-hero__social:hover {
  border-color: var(--hub-accent);
  color: var(--hub-accent);
}

.hub-hero__aside {
  display: none;
}

/* Мобильная печать брендбука: тот же круглый знак, что и на десктопе.
   На телефоне он намеренно становится полукругом у нижней кромки героя. */
.hub-hero__mobile-seal {
  display: none;
}

.hub-hero__scroll {
  position: absolute;
  right: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--hub-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transform: translateX(50%);
}

.hub-hero__scroll svg {
  width: 16px;
  height: 22px;
  animation: hub-scroll 2.2s ease-in-out infinite;
}













































/* POLIS: светлая сцена, чёрный знак и меандр. */
html[data-hub-theme="hub-polis"] .hub-hero {
  padding: clamp(44px, 7vw, 92px) 0 clamp(54px, 7vw, 92px);
}

html[data-hub-theme="hub-polis"] .hub-hero__bg {
  background:
    radial-gradient(ellipse at 82% 16%, rgba(33, 240, 168, 0.3), transparent 34%),
    radial-gradient(ellipse at 10% 92%, rgba(33, 240, 168, 0.14), transparent 38%),
    #f4fffb;
}

html[data-hub-theme="hub-polis"] .hub-hero__bg::before {
  top: auto;
  bottom: clamp(14px, 2.5vw, 24px);
  height: 16px;
  background-image: url("/static/hub/brand/pd-meander-band-v3.png");
  background-position: center;
  background-repeat: repeat-x;
  background-size: auto 100%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  opacity: 0.42;
}

html[data-hub-theme="hub-polis"] .hub-hero__bg::after {
  background: linear-gradient(180deg, transparent 70%, rgba(244, 255, 251, 0.8) 100%);
}

html[data-hub-theme="hub-polis"] .hub-hero__inner {
  grid-template-columns: minmax(0, 1.12fr) minmax(220px, 0.64fr);
  align-items: center;
  justify-items: stretch;
  gap: clamp(24px, 5vw, 80px);
  text-align: left;
}

html[data-hub-theme="hub-polis"] .hub-hero__copy {
  align-items: flex-start;
}

html[data-hub-theme="hub-polis"] .hub-hero__title {
  color: #1e1e1e !important;
  font-size: clamp(5rem, 13vw, 10.5rem);
  letter-spacing: 0.06em;
  line-height: 0.84;
  text-shadow: none;
}

html[data-hub-theme="hub-polis"] .hub-hero__kicker {
  color: #1e1e1e;
}

html[data-hub-theme="hub-polis"] .hub-hero__kicker::before,
html[data-hub-theme="hub-polis"] .hub-hero__kicker::after {
  background: var(--hub-accent-2);
  opacity: 1;
}

html[data-hub-theme="hub-polis"] .hub-hero__subtitle {
  max-width: 34ch;
  margin-right: 0;
  margin-left: 0;
  color: #1e1e1e;
  font-family: "Forum", Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.45;
}

html[data-hub-theme="hub-polis"] .hub-hero__foot {
  justify-content: flex-start;
}

html[data-hub-theme="hub-polis"] .hub-hero__note {
  color: #4b5b54;
}

html[data-hub-theme="hub-polis"] .hub-hero__social {
  border-color: #1e1e1e;
  color: #1e1e1e;
}

html[data-hub-theme="hub-polis"] .hub-hero__social:hover {
  background: var(--hub-accent);
  color: #102019;
}

html[data-hub-theme="hub-polis"] .hub-hero__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

html[data-hub-theme="hub-polis"] .hub-hero__emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(210px, 25vw, 340px);
  aspect-ratio: 1 / 1;
  padding: clamp(2px, 0.4vw, 6px);
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, rgba(33, 240, 168, 0.36), transparent 44%),
    radial-gradient(circle at 72% 78%, #1a5a49, #0a2922 58%, #061713 100%);
  box-shadow:
    0 0 0 1px rgba(33, 240, 168, 0.55),
    0 0 0 13px rgba(33, 240, 168, 0.055),
    0 30px 70px rgba(5, 34, 27, 0.18);
}

html[data-hub-theme="hub-polis"] .hub-hero__emblem::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image: url("/static/hub/brand/pd-meander-sheet-v3.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: invert(1);
  opacity: 0.13;
  mix-blend-mode: screen;
}


html[data-hub-theme="hub-polis"] .hub-hero__line {
  display: block;
  width: clamp(54px, 8vw, 100px);
  height: 2px;
  background: #1e1e1e;
}

html[data-hub-theme="hub-polis"] .hub-hero__year {
  max-width: 22ch;
  color: #4b5b54;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

html[data-hub-theme="hub-polis"] .hub-hero__scroll {
  color: #4b5b54;
}

/* --------------------------------------------------------------------------
   О школе и цифры
   -------------------------------------------------------------------------- */

.hub-about {
  padding: clamp(64px, 8vw, 118px) 0;
  background: var(--hub-bg);
}

.hub-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

.hub-section__title {
  font-size: clamp(2.5rem, 5.4vw, 5rem);
  line-height: 0.95;
}

.hub-about__text {
  max-width: 62ch;
  margin: 26px 0 0;
  color: var(--hub-muted);
  font-size: clamp(1rem, 1.25vw, 1.13rem);
  line-height: 1.8;
}

.hub-about__text:first-of-type {
  color: var(--hub-text);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.7;
}

.hub-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--hub-border-strong);
  border-left: 1px solid var(--hub-border-strong);
}

.hub-stat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 148px;
  padding: 22px;
  border-right: 1px solid var(--hub-border-strong);
  border-bottom: 1px solid var(--hub-border-strong);
}

.hub-stat__value {
  color: var(--hub-accent);
  font-family: var(--hub-display);
  font-size: clamp(2.5rem, 4.6vw, 4.4rem);
  font-variant-numeric: tabular-nums;
  line-height: 0.9;
}

.hub-stat__label {
  margin-top: 14px;
  color: var(--hub-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.45;
  text-transform: uppercase;
}









html[data-hub-theme="hub-polis"] .hub-stats {
  gap: 0;
  border: 2px solid #1e1e1e;
}

html[data-hub-theme="hub-polis"] .hub-stat {
  min-height: 152px;
  border-color: #1e1e1e;
  background: transparent;
}

html[data-hub-theme="hub-polis"] .hub-stat:hover {
  background: var(--hub-accent);
}

html[data-hub-theme="hub-polis"] .hub-stat:hover .hub-stat__value,
html[data-hub-theme="hub-polis"] .hub-stat:hover .hub-stat__label {
  color: #102019;
}

/* --------------------------------------------------------------------------
   Общие секции
   -------------------------------------------------------------------------- */

.hub-section {
  position: relative;
  padding: clamp(64px, 8vw, 118px) 0;
}

.hub-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 64px);
  margin-bottom: clamp(32px, 5vw, 56px);
}

.hub-section__head > div {
  min-width: 0;
}

.hub-section__lead {
  max-width: 38ch;
  margin: 0;
  color: var(--hub-muted);
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  line-height: 1.65;
}



html[data-hub-theme="hub-polis"] .hub-section {
  border-top: 1px solid var(--hub-border);
}

html[data-hub-theme="hub-polis"] .hub-section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(330px, 48vw);
  height: 10px;
  background-image: url("/static/hub/brand/pd-meander-band-v3.png");
  background-repeat: repeat-x;
  background-size: auto 100%;
  opacity: 0.58;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Фотолента
   -------------------------------------------------------------------------- */

.hub-timeline {
  padding: clamp(56px, 7vw, 100px) 0;
  overflow: hidden;
  background: var(--hub-bg-soft);
  border-top: 1px solid var(--hub-border);
  border-bottom: 1px solid var(--hub-border);
}

.hub-timeline__head {
  margin-bottom: 30px;
}

.hub-timeline__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  text-align: right;
}

.hub-timeline__viewport {
  position: relative;
}

.hub-timeline__rail {
  display: flex;
  gap: clamp(16px, 2.4vw, 32px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 8px 2px 14px;
  cursor: grab;
}

.hub-timeline__rail::-webkit-scrollbar {
  display: none;
}

.hub-timeline__rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.hub-timeline__item {
  flex: 0 0 clamp(142px, 16vw, 205px);
  min-width: 0;
  scroll-snap-align: start;
}

.hub-timeline__photo {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--hub-border);
  border-radius: 12px;
  background: var(--hub-surface);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hub-timeline__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}

.hub-timeline__item:hover .hub-timeline__photo {
  border-color: var(--hub-accent);
  box-shadow: 0 0 30px color-mix(in srgb, var(--hub-accent) 28%, transparent);
  transform: translateY(-3px);
}

.hub-timeline__item:hover .hub-timeline__photo img {
  transform: scale(1.05);
  filter: saturate(1) contrast(1.02);
}

.hub-timeline__year {
  display: block;
  margin-top: 14px;
  color: var(--hub-accent);
  font-family: var(--hub-display);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  letter-spacing: 0.08em;
  text-align: center;
}

.hub-timeline__item--future .hub-timeline__photo {
  border: 1px dashed var(--hub-border-strong);
  background:
    radial-gradient(circle at center, color-mix(in srgb, var(--hub-accent) 12%, transparent), transparent 65%),
    var(--hub-surface);
}

.hub-timeline__question {
  color: var(--hub-accent);
  font-family: var(--hub-display);
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1;
  opacity: 0.7;
}

.hub-timeline__controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.hub-round-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hub-border-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--hub-text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hub-round-btn svg {
  width: 19px;
  height: 19px;
}

.hub-round-btn:hover:not(:disabled) {
  border-color: var(--hub-accent);
  background: var(--hub-accent);
  color: var(--hub-accent-ink);
}

.hub-round-btn:disabled {
  opacity: 0.35;
  cursor: default;
}



html[data-hub-theme="hub-polis"] .hub-timeline__photo {
  border: 2px solid #1e1e1e;
  border-radius: 0;
}

html[data-hub-theme="hub-polis"] .hub-timeline__item:hover .hub-timeline__photo {
  box-shadow: 8px 8px 0 var(--hub-accent);
  transform: translate(-3px, -3px);
}

/* --------------------------------------------------------------------------
   Программа
   -------------------------------------------------------------------------- */

.hub-program {
  background: var(--hub-bg);
}

.hub-program__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
}

.hub-program__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 22px);
  align-items: start;
}

.hub-day {
  overflow: hidden;
  border: 1px solid var(--hub-border);
  border-radius: 12px;
  background: var(--hub-surface);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hub-day[open] {
  border-color: color-mix(in srgb, var(--hub-accent) 55%, var(--hub-border));
}

.hub-day__summary {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(20px, 2.6vw, 30px);
  padding-right: 58px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.hub-day__summary::-webkit-details-marker {
  display: none;
}

.hub-day__summary::marker {
  content: "";
}

.hub-day__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.hub-day__label {
  color: var(--hub-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hub-day__date {
  color: var(--hub-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hub-day__title {
  color: var(--hub-text);
  font-family: var(--hub-display);
  font-size: clamp(1.35rem, 1.9vw, 1.75rem);
  line-height: 1.08;
  text-transform: uppercase;
}

.hub-day__mark {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 18px;
  height: 18px;
}

.hub-day__mark::before,
.hub-day__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--hub-accent);
  transition: transform 0.25s ease;
}

.hub-day__mark::after {
  transform: rotate(90deg);
}

.hub-day[open] .hub-day__mark::after {
  transform: rotate(0deg);
}

.hub-day__body {
  padding: 0 clamp(20px, 2.6vw, 30px) clamp(22px, 3vw, 32px);
}

.hub-day__section {
  padding-top: 20px;
  border-top: 1px solid var(--hub-border);
}

.hub-day__section + .hub-day__section {
  margin-top: 22px;
}

.hub-day__section-title {
  margin-bottom: 12px !important;
  color: var(--hub-muted) !important;
  font-family: var(--hub-body) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.13em !important;
  line-height: 1.5 !important;
  text-transform: uppercase;
}

.hub-day__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub-day__item {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid color-mix(in srgb, var(--hub-border) 65%, transparent);
}

.hub-day__item:first-child {
  border-top: 0;
}

.hub-day__time {
  color: var(--hub-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  white-space: nowrap;
}

.hub-day__text {
  color: var(--hub-text);
  font-size: 13.5px;
  line-height: 1.6;
  overflow-wrap: normal;
}







html[data-hub-theme="hub-polis"] .hub-day {
  border: 2px solid #1e1e1e;
  border-radius: 0;
}

html[data-hub-theme="hub-polis"] .hub-day[open] {
  box-shadow: 10px 10px 0 var(--hub-accent);
}

html[data-hub-theme="hub-polis"] .hub-day__title {
  font-size: clamp(1.5rem, 2.1vw, 1.95rem);
}

html[data-hub-theme="hub-polis"] .hub-day__mark::before,
html[data-hub-theme="hub-polis"] .hub-day__mark::after {
  background: #1e1e1e;
}

/* --------------------------------------------------------------------------
   Люди: эксперты и кураторы
   -------------------------------------------------------------------------- */

.hub-people {
  background: var(--hub-bg);
}

.hub-people--curators {
  background: var(--hub-bg-soft);
}

.hub-people__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(24px, 3.4vw, 46px) clamp(16px, 2.4vw, 30px);
}

.hub-people__grid .hub-person {
  flex: 0 1 232px;
  width: 232px;
  max-width: 100%;
}

/* На телефоне карточки людей идут по две: так блок не растягивается на
   несколько экранов, а последний ряд остаётся по центру. */
@media (max-width: 760px) {
  .hub-people__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(22px, 5vw, 30px) clamp(12px, 3.4vw, 18px);
  }

  .hub-people__grid .hub-person {
    width: 100%;
    max-width: none;
  }
}

.hub-person {
  min-width: 0;
  text-align: center;
}

.hub-person__photo {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 232px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--hub-accent) 34%, var(--hub-border));
  border-radius: 50%;
  background: var(--hub-surface);
  transition: border-color 0.25s ease, transform 0.3s ease;
}

.hub-person:hover .hub-person__photo {
  border-color: var(--hub-accent);
  transform: translateY(-3px) scale(1.015);
}

.hub-person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hub-person:hover .hub-person__photo img {
  transform: scale(1.04);
}

.hub-person__initials {
  color: var(--hub-accent);
  font-family: var(--hub-display);
  font-size: 4rem;
}

.hub-person__body {
  padding: 0 6px;
}

.hub-person__name {
  margin: 0 0 8px !important;
  font-family: var(--hub-display) !important;
  font-size: clamp(1.15rem, 1.5vw, 1.4rem) !important;
  line-height: 1.12 !important;
  overflow-wrap: normal;
}

.hub-person__role {
  margin: 0;
  color: var(--hub-muted);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: normal;
}







html[data-hub-theme="hub-polis"] .hub-person__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 2px solid #1e1e1e;
  border-radius: 0;
}

html[data-hub-theme="hub-polis"] .hub-person__body {
  padding-top: 14px;
  border-top: 1px solid #1e1e1e;
  text-align: left;
}

html[data-hub-theme="hub-polis"] .hub-person:hover .hub-person__photo {
  transform: none;
  box-shadow: 8px 8px 0 var(--hub-accent);
}

/* --------------------------------------------------------------------------
   Организаторы
   -------------------------------------------------------------------------- */

.hub-organizers {
  background: var(--hub-bg-soft);
  border-top: 1px solid var(--hub-border);
}

.hub-section__head--action {
  align-items: flex-start;
}

.hub-organizers__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  max-width: 42ch;
  text-align: right;
}

.hub-org-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--hub-border-strong);
  border-radius: 999px;
  color: var(--hub-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.hub-org-cta svg {
  width: 16px;
  height: 16px;
}

.hub-org-cta:hover {
  border-color: var(--hub-accent);
  background: color-mix(in srgb, var(--hub-accent) 10%, transparent);
  color: var(--hub-text);
}

.hub-org-cta--page {
  margin-top: 22px;
}

.hub-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hub-border);
}

.hub-tabs__tab {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--hub-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hub-tabs__tab:hover {
  color: var(--hub-text);
}

.hub-tabs__tab[aria-selected="true"] {
  border-color: var(--hub-accent);
  background: var(--hub-accent);
  color: var(--hub-accent-ink);
}

.hub-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 36px) clamp(14px, 2vw, 24px);
}

/* Число колонок организаторов задаётся в админке хаба. На узких экранах
   сетка сама переходит на две колонки, поэтому настройка действует от 761px. */
@media (min-width: 761px) {
  .hub-team-grid[data-org-columns="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-team-grid[data-org-columns="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hub-team-grid[data-org-columns="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hub-team-grid[data-org-columns="5"] {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .hub-team-grid[data-org-columns="auto"] {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
}

.hub-team-card {
  min-width: 0;
  text-align: center;
}

.hub-team-card__photo {
  display: grid;
  place-items: center;
  width: min(100%, 190px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--hub-accent) 32%, var(--hub-border));
  border-radius: 50%;
  background: var(--hub-surface);
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}

.hub-team-card:hover .hub-team-card__photo {
  border-color: var(--hub-accent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--hub-accent) 24%, transparent);
}

.hub-team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.4s ease;
}

.hub-team-card:hover .hub-team-card__photo img {
  transform: scale(1.04);
}

.hub-team-card__body h3 {
  margin: 0 0 6px !important;
  font-family: var(--hub-display) !important;
  font-size: clamp(1rem, 1.25vw, 1.2rem) !important;
  line-height: 1.15 !important;
  overflow-wrap: normal;
}

.hub-team-card__body p {
  margin: 0;
  color: var(--hub-muted);
  font-size: 11.5px;
  line-height: 1.5;
  overflow-wrap: normal;
}

.hub-organizers__note {
  margin-top: 26px;
  text-align: right;
}









html[data-hub-theme="hub-polis"] .hub-tabs__tab {
  border: 1px solid #1e1e1e;
  border-radius: 0;
  color: #1e1e1e;
}

html[data-hub-theme="hub-polis"] .hub-tabs__tab[aria-selected="true"] {
  background: #1e1e1e;
  color: var(--hub-accent);
}

html[data-hub-theme="hub-polis"] .hub-team-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 2px solid #1e1e1e;
  border-radius: 0;
}

html[data-hub-theme="hub-polis"] .hub-team-card {
  text-align: left;
}

/* --------------------------------------------------------------------------
   Партнёры
   -------------------------------------------------------------------------- */

.hub-partners-page {
  min-height: 40vh;
}

.hub-partners {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hub-partner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--hub-border);
  background: var(--hub-surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hub-partner:hover {
  border-color: var(--hub-accent);
  transform: translateY(-2px);
}

.hub-partner__logo {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 128px;
  overflow: hidden;
  padding: 20px 24px;
  border-bottom: 1px solid var(--hub-border);
  background: #ffffff;
}

.hub-partner--dark .hub-partner__logo {
  border-bottom-color: var(--hub-border);
  background: #111111;
}

.hub-partner__logo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.hub-partner:hover .hub-partner__logo img {
  transform: scale(1.04);
}

.hub-partner__name {
  color: #1e1e1e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.hub-partner__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 14px 16px 16px;
}

.hub-partner__body strong {
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: normal;
}

.hub-partner__body span {
  color: var(--hub-muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: normal;
}

.hub-partners--compact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hub-partners--compact .hub-partner {
  flex-direction: row;
  align-items: center;
  padding: 8px;
}

.hub-partners--compact .hub-partner__logo {
  flex: 0 0 88px;
  width: 88px;
  height: 54px;
  padding: 6px 8px;
  border: 0;
}

/* --------------------------------------------------------------------------
   Внутренние страницы
   -------------------------------------------------------------------------- */

.hub-pagehead {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px);
  overflow: hidden;
  border-bottom: 1px solid var(--hub-border);
  background:
    radial-gradient(ellipse at 85% 12%, rgba(0, 229, 229, 0.14), transparent 38%),
    var(--hub-bg);
}

.hub-pagehead h1 {
  max-width: 14ch;
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.hub-pagehead__lead {
  max-width: 52ch;
  margin: 22px 0 0;
  color: var(--hub-muted);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.7;
}

.hub-pagehead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 26px;
  color: var(--hub-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}







html[data-hub-theme="hub-polis"] .hub-pagehead {
  background:
    radial-gradient(ellipse at 88% 10%, rgba(33, 240, 168, 0.28), transparent 38%),
    var(--hub-bg);
}

html[data-hub-theme="hub-polis"] .hub-pagehead::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(360px, 50vw);
  height: 15px;
  background-image: url("/static/hub/brand/pd-wave-band-v3.png");
  background-position: right center;
  background-repeat: repeat-x;
  background-size: auto 100%;
  opacity: 0.3;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Фотоальбомы
   -------------------------------------------------------------------------- */

.hub-pagehead--photos {
  padding-bottom: clamp(26px, 4vw, 42px);
}

.hub-photos__index {
  position: sticky;
  top: var(--hub-header-h);
  z-index: 45;
  border-bottom: 1px solid var(--hub-border);
  background: var(--hub-header-bg);
}

.hub-photos__index-inner {
  display: flex;
  gap: 6px;
  padding-top: 10px;
  padding-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.hub-photos__index-inner::-webkit-scrollbar {
  display: none;
}

.hub-photos__index a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--hub-border);
  border-radius: 999px;
  color: var(--hub-muted);
  font-size: 12px;
  font-weight: 700;
  scroll-snap-align: start;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hub-photos__index a:hover {
  border-color: var(--hub-accent);
  background: var(--hub-accent);
  color: var(--hub-accent-ink);
}

.hub-albums {
  padding-top: clamp(32px, 5vw, 58px);
  padding-bottom: clamp(60px, 8vw, 100px);
}

.hub-album {
  padding: clamp(36px, 5vw, 64px) 0;
  border-top: 1px solid var(--hub-border);
  scroll-margin-top: calc(var(--hub-header-h) + 72px);
}

.hub-album:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.hub-album__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 130px;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  margin-bottom: clamp(24px, 3.5vw, 40px);
}

.hub-album__year {
  color: var(--hub-accent);
  font-family: var(--hub-display);
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 0.85;
  opacity: 0.9;
}

.hub-album__intro h2 {
  margin: 0 0 8px !important;
  font-size: clamp(1.65rem, 2.4vw, 2.4rem) !important;
  line-height: 1.05 !important;
}

.hub-album__intro p {
  max-width: 60ch;
  margin: 0;
  color: var(--hub-muted);
  font-size: 13px;
  line-height: 1.6;
}

.hub-album__cover {
  width: 130px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--hub-border);
  border-radius: 10px;
}

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

.hub-album__day + .hub-album__day {
  margin-top: 34px;
}

.hub-album__day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hub-border);
}

.hub-album__day-head h3 {
  margin: 0 !important;
  font-family: var(--hub-display) !important;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem) !important;
}

.hub-album__day-head span {
  color: var(--hub-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hub-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.hub-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--hub-border);
  border-radius: 8px;
  background: var(--hub-surface);
  color: var(--hub-text);
  text-align: left;
  cursor: zoom-in;
}

.hub-photo__media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--hub-surface-2);
}

.hub-photo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hub-photo:hover .hub-photo__media img {
  transform: scale(1.04);
}

.hub-photo__caption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
}

.hub-photo__caption strong {
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: normal;
}

.hub-photo__caption span {
  color: var(--hub-muted);
  font-size: 11px;
  line-height: 1.4;
}

.hub-photo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  grid-column: span 2;
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--hub-border-strong);
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--hub-accent) 18%, transparent), transparent 42%),
    var(--hub-surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hub-photo-link:hover {
  border-color: var(--hub-accent);
  transform: translateY(-2px);
}

.hub-photo-link__icon {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--hub-border-strong);
  border-radius: 50%;
  color: var(--hub-accent);
}

.hub-photo-link__icon svg {
  width: 20px;
  height: 20px;
}

.hub-photo-link__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.hub-photo-link__body strong {
  font-size: 15px;
  line-height: 1.3;
}

.hub-photo-link__body span {
  color: var(--hub-muted);
  font-size: 12px;
}

.hub-photo-link__arrow {
  color: var(--hub-accent);
  font-size: 20px;
}

.hub-album__empty {
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--hub-border-strong);
  color: var(--hub-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Лайтбокс
   -------------------------------------------------------------------------- */

.hub-lightbox {
  box-sizing: border-box;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  overflow: hidden;
  padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  border: 0;
  background: rgba(8, 8, 8, 0.97);
  color: #ffffff;
}

.hub-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

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

.hub-lightbox__bar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 44px;
}

.hub-lightbox__title {
  margin: 0;
  overflow: hidden;
  color: #f3f3f3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.hub-lightbox__close {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.hub-lightbox__stage {
  position: relative;
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 8px;
  min-height: 0;
  height: auto;
}

.hub-lightbox__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hub-lightbox__nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  cursor: pointer;
}

.hub-lightbox__nav svg {
  width: 22px;
  height: 22px;
}

.hub-lightbox__nav:disabled {
  opacity: 0.25;
  cursor: default;
}

.hub-lightbox__caption {
  flex: 0 0 auto;
  min-height: 20px;
  max-height: 54px;
  margin: 6px 0 0;
  overflow: auto;
  color: #bdbdbd;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

body.hub-lightbox-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Подвал
   -------------------------------------------------------------------------- */

.hub-footer {
  padding: clamp(48px, 7vw, 84px) 0 calc(24px + env(safe-area-inset-bottom));
  background: var(--hub-footer-bg);
  color: var(--hub-footer-text);
}

html[data-hub-theme] #hub-page .hub-footer a {
  color: var(--hub-footer-text);
}

.hub-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(150px, 0.55fr) minmax(190px, 0.75fr);
  gap: clamp(30px, 6vw, 90px);
  padding-bottom: clamp(30px, 4vw, 48px);
  border-bottom: 1px solid var(--hub-footer-border);
}

.hub-footer__brand {
  min-width: 0;
}

.hub-brand--footer {
  justify-content: flex-start;
  min-height: 56px;
}

.hub-brand--footer .hub-brand__mark {
  width: 64px;
  height: 64px;
}

html[data-hub-theme="hub-polis"] .hub-footer .hub-brand__mark {
  width: 80px;
  height: 80px;
  padding: 8px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(33, 240, 168, 0.32), transparent 46%),
    radial-gradient(circle at 72% 78%, #1a5a49, #0a2922 58%, #061713 100%);
  box-shadow:
    0 0 0 1px rgba(33, 240, 168, 0.6),
    0 0 0 7px rgba(33, 240, 168, 0.08);
}

.hub-footer__desc {
  max-width: 34ch;
  margin: 18px 0 0;
  color: var(--hub-footer-muted);
  font-size: 13px;
  line-height: 1.7;
}

.hub-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: var(--hub-footer-muted) !important;
  font-size: 12px;
  font-weight: 700;
}

.hub-footer__social svg {
  width: 18px;
  height: 18px;
}

.hub-footer__social:hover {
  color: var(--hub-accent) !important;
}

.hub-footer__heading {
  margin: 0 0 16px;
  color: var(--hub-footer-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hub-footer__nav,
.hub-footer__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.hub-footer__nav a,
.hub-footer__contacts a,
.hub-footer__contacts p {
  margin: 0;
  color: var(--hub-footer-text);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: normal;
}

.hub-footer__nav a:hover,
.hub-footer__contacts a:hover {
  color: var(--hub-accent) !important;
}

.hub-footer__contacts p {
  color: var(--hub-footer-muted);
}

.hub-footer__partners {
  padding: 26px 0;
  border-bottom: 1px solid var(--hub-footer-border);
}

.hub-footer__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
}

.hub-footer__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 56px;
  overflow: hidden;
  opacity: 0.62;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hub-footer__logo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  object-fit: contain;
}

.hub-footer__logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.hub-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  color: var(--hub-footer-muted);
  font-size: 11px;
  line-height: 1.5;
}

.hub-footer__bottom p {
  margin: 0;
}

.hub-footer__bottom a {
  color: var(--hub-footer-muted) !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hub-footer__bottom a:hover {
  color: var(--hub-accent) !important;
}

/* --------------------------------------------------------------------------
   Кнопка возврата наверх
   -------------------------------------------------------------------------- */

.hub-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 85;
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--hub-border-strong);
  border-radius: 50%;
  background: var(--hub-header-bg);
  color: var(--hub-text);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.hub-top svg {
  width: 20px;
  height: 20px;
}

.hub-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hub-top:hover {
  border-color: var(--hub-accent);
  color: var(--hub-accent);
}

body.hub-overlay-open .hub-top,
body.hub-lightbox-open .hub-top,
body.hub-menu-open .hub-top {
  opacity: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Анимации
   -------------------------------------------------------------------------- */

@keyframes hub-hero-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hub-scroll {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(7px); opacity: 1; }
}

html.hub-anim #hub-page .hub-reveal {
  opacity: 0;
  transform: translateY(18px);
}

html.hub-anim #hub-page .hub-reveal.is-revealed {
  animation: hub-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--hub-reveal-delay, 0ms);
}

@keyframes hub-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

#hub-page > main {
  animation: hub-page-in 0.45s ease-out both;
}

@keyframes hub-page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hub-seal-in {
  from { opacity: 0; transform: translate(-50%, 42%) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, 34%) scale(1); }
}

@media (max-width: 760px) {
  html.hub-soft-snap {
    scroll-snap-type: y proximity;
    scroll-padding-top: var(--hub-header-h);
  }

  html.hub-soft-snap #hub-page .hub-hero,
  html.hub-soft-snap #hub-page .hub-about {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }

  html.hub-soft-snap #hub-page #about {
    scroll-margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  #hub-page *,
  #hub-page *::before,
  #hub-page *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   Адаптивность
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .hub-partners {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  html[data-hub-theme] {
    --hub-header-h: 68px;
  }

  .hub-nav-toggle {
    display: inline-flex;
  }

  .hub-nav {
    position: fixed;
    top: var(--hub-header-h);
    right: 0;
    left: 0;
    z-index: 89;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: calc(100vh - var(--hub-header-h));
    height: calc(100dvh - var(--hub-header-h));
    padding: 20px var(--hub-gutter) calc(32px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-top: 1px solid var(--hub-border);
    background: var(--hub-bg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }

  .hub-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hub-nav a {
    min-height: 58px;
    border-bottom: 1px solid var(--hub-border);
    font-family: var(--hub-display);
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
  }

  .hub-nav a::after {
    display: none;
  }

  .hub-nav a[aria-current="page"] {
    color: var(--hub-accent);
  }

  body.hub-menu-open {
    overflow: hidden;
  }

  .hub-about__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-stats {
    max-width: 620px;
  }

  .hub-hero__inner {
    gap: 30px;
  }
  html[data-hub-theme="hub-polis"] .hub-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-hub-theme="hub-polis"] .hub-hero__aside {
    display: none;
  }

  .hub-footer__top {
    grid-template-columns: minmax(0, 1.2fr) minmax(140px, 0.6fr) minmax(180px, 0.8fr);
    gap: 30px;
  }
}

@media (max-width: 760px) {
  .hub-shell {
    width: calc(100% - 36px);
  }

  /* На телефоне первый экран занимает всю доступную высоту: при открытии
     и возврате наверх виден только он, следующий блок начинается ниже. */
  .hub-hero {
    min-height: calc(100vh - var(--hub-header-h));
    min-height: calc(100svh - var(--hub-header-h));
    min-height: calc(100dvh - var(--hub-header-h));
    padding-top: clamp(34px, 6vh, 58px);
    padding-bottom: clamp(64px, 9vh, 104px);
  }

  .hub-hero__title {
    font-size: clamp(4.6rem, 24vw, 8rem);
  }

  /* Печать POLIS: не угол, а крупная медаль по центру, которая поднимается
     из нижней кромки первого экрана. Логотип сидит в видимой части. */
  html[data-hub-theme="hub-polis"] .hub-hero__mobile-seal {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 0;
    z-index: 0;
    display: block;
    width: clamp(160px, min(62vw, 33vh), 270px);
    aspect-ratio: 1 / 1;
    padding: 0;
    overflow: hidden;
    border-radius: 50%;
    transform: translate(-50%, 34%);
    background:
      radial-gradient(circle at 34% 26%, rgba(33, 240, 168, 0.34), transparent 44%),
      radial-gradient(circle at 72% 78%, #1a5a49, #0a2922 58%, #061713 100%);
    box-shadow:
      0 0 0 1px rgba(33, 240, 168, 0.55),
      0 0 0 10px rgba(33, 240, 168, 0.055),
      0 26px 54px rgba(4, 20, 16, 0.28);
    pointer-events: none;
    animation: hub-seal-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
  }

  html[data-hub-theme="hub-polis"] .hub-hero__mobile-seal::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-image: url("/static/hub/brand/pd-meander-sheet-v3.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: invert(1);
    opacity: 0.16;
    mix-blend-mode: screen;
  }

  html[data-hub-theme="hub-polis"] .hub-hero__mobile-seal img {
    position: absolute;
    top: 7%;
    left: 50%;
    z-index: 1;
    display: block;
    width: 56%;
    height: auto;
    transform: translate(calc(-50% + 0.4%), 2.4%);
  }

  @media (max-height: 640px) {
    html[data-hub-theme="hub-polis"] .hub-hero__mobile-seal {
      width: min(62vw, 30vh);
    }
  }

  .hub-hero__subtitle {
    font-size: 1rem;
  }

  .hub-hero__scroll {
    display: none;
  }

  .hub-about__grid,
  .hub-section__head,
  .hub-section__head--action,
  .hub-timeline__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hub-about__grid > *,
  .hub-section__head > *,
  .hub-section__head--action > * {
    min-width: 0;
    max-width: 100%;
  }

  .hub-timeline__aside,
  .hub-program__meta,
  .hub-organizers__aside {
    align-items: flex-start;
    max-width: none;
    text-align: left;
  }

  .hub-program__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-person__photo {
    width: 100%;
  }

  .hub-team-card__photo {
    width: 100%;
  }

  .hub-org-cta {
    min-height: 44px;
  }

  /* Комитеты на телефоне: все вкладки видны сразу, без горизонтальной
     прокрутки и обрезанных названий. Длинные названия переносятся целиком. */
  .hub-tabs__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding-bottom: 12px;
  }

  html[data-hub-theme] #hub-page .hub-tabs__tab {
    width: 100%;
    min-height: 46px;
    padding: 9px 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.04em;
    text-align: center;
    white-space: normal;
  }

  .hub-tabs__tab:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .hub-partners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hub-photo-link {
    grid-column: span 2;
  }

  .hub-album__head {
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 14px;
  }

  .hub-album__year {
    grid-column: 1 / -1;
    font-size: 3rem;
  }

  .hub-album__cover {
    width: 86px;
  }

  .hub-footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hub-footer__brand {
    grid-column: 1 / -1;
  }

  .hub-footer__contacts {
    grid-column: 2;
  }

  .hub-footer__logos {
    gap: 12px 18px;
  }

  .hub-footer__logo {
    width: 76px;
    height: 44px;
  }

  .hub-pagehead h1 {
    font-size: clamp(2.8rem, 12vw, 4.8rem);
  }

  .hub-top {
    display: grid;
  }
}

@media (max-width: 520px) {
  .hub-shell {
    width: calc(100% - 28px);
  }

  .hub-partners {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-partner__logo {
    height: 112px;
  }

  html[data-hub-theme] {
    --hub-gutter: 14px;
    --hub-header-h: 62px;
  }

  .hub-brand__mark {
    width: 44px;
    height: 44px;
  }

  html[data-hub-theme="hub-polis"] .hub-brand__mark {
    width: 48px;
    height: 48px;
    padding: 5px;
  }

  html[data-hub-theme="hub-polis"] .hub-footer .hub-brand__mark {
    width: 64px;
    height: 64px;
    padding: 7px;
  }

  .hub-nav-toggle__label {
    display: none;
  }

  .hub-hero__kicker {
    letter-spacing: 0.2em;
  }

  .hub-hero__kicker::before,
  .hub-hero__kicker::after {
    width: 18px;
  }

  .hub-hero__title {
    font-size: clamp(4rem, 25vw, 6.4rem);
    letter-spacing: 0.05em;
  }

  .hub-hero__foot {
    gap: 12px;
  }

  .hub-hero__note {
    width: 100%;
    text-align: center;
  }
  html[data-hub-theme="hub-polis"] .hub-hero__note {
    text-align: left;
  }

  .hub-section__title {
    font-size: clamp(1.9rem, 9.2vw, 3.4rem);
  }

  .hub-about__text {
    margin-top: 18px;
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .hub-stats {
    width: 100%;
  }

  .hub-stat {
    min-height: 124px;
    padding: 16px;
  }

  .hub-stat__value {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  .hub-stat__label {
    font-size: 9.5px;
    letter-spacing: 0.07em;
  }

  .hub-people__grid {
    gap: 26px 12px;
  }

  .hub-person__name {
    font-size: 1rem !important;
  }

  .hub-person__role {
    font-size: 11px;
  }

  .hub-person__photo {
    margin-bottom: 12px;
  }

  .hub-team-grid {
    gap: 22px 12px;
  }

  .hub-team-card__body h3 {
    font-size: 0.98rem !important;
  }

  .hub-team-card__body p {
    font-size: 10.5px;
  }

  .hub-day__summary {
    padding: 18px;
    padding-right: 48px;
  }

  .hub-day__mark {
    top: 20px;
    right: 18px;
  }

  .hub-day__title {
    font-size: 1.25rem;
  }

  .hub-day__body {
    padding: 0 18px 20px;
  }

  .hub-day__item {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 10px;
  }

  .hub-day__time {
    font-size: 10px;
  }

  .hub-day__text {
    font-size: 12.5px;
  }

  .hub-timeline__item {
    flex-basis: 138px;
  }

  .hub-timeline__controls {
    display: none;
  }

  .hub-photo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-photo-link {
    grid-column: span 1;
  }

  .hub-album__head {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-album__cover {
    display: none;
  }

  .hub-photo-link {
    min-height: 100px;
    padding: 16px;
  }

  .hub-footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hub-footer__contacts {
    grid-column: auto;
  }

  .hub-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .hub-footer__logo {
    width: 66px;
    height: 40px;
  }

  .hub-pagehead {
    padding-top: 44px;
  }

  .hub-lightbox__stage {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 4px;
    height: auto;
  }

  .hub-lightbox__nav {
    width: 38px;
    height: 38px;
  }

  .hub-lightbox__nav svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 370px) {
  /* Даже на 320–370px организаторы остаются в две колонки: одна карточка
     в ряд растягивалась на весь экран и выглядела как ошибка. */
  .hub-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 10px;
  }

  .hub-person__photo {
    max-width: 230px;
    margin-inline: auto;
  }

  .hub-team-card__photo {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .hub-person__body,
  .hub-team-card {
    text-align: center;
  }

  html[data-hub-theme="hub-polis"] .hub-team-card {
    text-align: left;
  }

  html[data-hub-theme] #hub-page .hub-tabs__tab {
    padding: 8px;
    font-size: 10.5px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hub-hero {
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 46px;
  }

  .hub-hero__title {
    font-size: clamp(3.4rem, 13vh, 6rem);
  }

  .hub-hero__scroll {
    display: none;
  }
  html[data-hub-theme="hub-polis"] .hub-hero__aside {
    display: none;
  }

  html[data-hub-theme="hub-polis"] .hub-hero__mobile-seal {
    display: none;
  }

  .hub-nav {
    overflow-y: auto;
  }
}

/* Печать: без декоративных слоёв, чтобы страница оставалась читаемой. */
@media print {
  .hub-header,
  .hub-top,
  .hub-hero__scroll,
  .hub-hero__bg,
  .hub-footer__logos {
    display: none !important;
  }

  body.hub-page,
  #hub-page,
  .hub-hero,
  .hub-section,
  .hub-about,
  .hub-footer {
    background: #ffffff !important;
    color: #111111 !important;
  }

  .hub-hero {
    min-height: auto;
  }
}


/* --------------------------------------------------------------------------
   Типографика всех тем хаба: заголовки переносятся сбалансированно, мелкий
   текст — только целыми словами. URL и длинные технические строки не
   ломаются: для них ниже отдельное исключение.
   -------------------------------------------------------------------------- */

html[data-hub-theme] #hub-page * {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

html[data-hub-theme] #hub-page h1,
html[data-hub-theme] #hub-page h2,
html[data-hub-theme] #hub-page h3,
html[data-hub-theme] #hub-page h4,
html[data-hub-theme] #hub-page h5,
html[data-hub-theme] #hub-page h6,
html[data-hub-theme] #hub-page .hub-hero__title,
html[data-hub-theme] #hub-page .hub-hero__subtitle,
html[data-hub-theme] #hub-page .hub-hero__kicker,
html[data-hub-theme] #hub-page .hub-section__title,
html[data-hub-theme] #hub-page .hub-section__lead,
html[data-hub-theme] #hub-page .hub-page-head__title,
html[data-hub-theme] #hub-page .hub-page-head__lead,
html[data-hub-theme] #hub-page .hub-eyebrow {
  text-wrap: balance;
}

html[data-hub-theme] #hub-page p,
html[data-hub-theme] #hub-page li,
html[data-hub-theme] #hub-page figcaption,
html[data-hub-theme] #hub-page .hub-note {
  text-wrap: pretty;
}

/* Ссылки и технические подписи — единственные места, где допустим разрыв. */
html[data-hub-theme] #hub-page a[href^="http"],
html[data-hub-theme] #hub-page .hub-partner-card__url,
html[data-hub-theme] #hub-page .hub-lightbox__caption {
  overflow-wrap: anywhere;
}

/* Якоря на внутренних страницах не заезжают под закреплённую шапку. */
html[data-hub-theme] #hub-page [id] {
  scroll-margin-top: calc(var(--hub-header-h) + 18px);
}

/* На странице фото над альбомом закреплена ещё и полоса годов. */
html[data-hub-theme] #hub-page .hub-album {
  scroll-margin-top: calc(var(--hub-header-h) + 76px);
}

/* Градиентные годы в фотоальбомах: подписи не обрезаются сверху. */
.hub-album__year {
  padding-block: 0.18em 0.08em;
  margin-block: -0.18em -0.08em;
}

/* На очень узких экранах заголовки не должны вылезать за карточку. */
@media (max-width: 420px) {
  html[data-hub-theme] #hub-page h1,
  html[data-hub-theme] #hub-page h2,
  html[data-hub-theme] #hub-page h3,
  html[data-hub-theme] #hub-page .hub-hero__title {
    text-wrap: balance;
  }
}



/* --------------------------------------------------------------------------
   POLIS: орнаменты из последней страницы брендбука. Меняются только масштаб,
   пропорции, цвет (инверсия на тёмном) и прозрачность — сами формы не
   перерисовываются.
   -------------------------------------------------------------------------- */

html[data-hub-theme="hub-polis"] .hub-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 16px;
  background-image: url("/static/hub/brand/pd-meander-band-v3.png");
  background-repeat: repeat-x;
  background-size: auto 100%;
  opacity: 0.27;
  pointer-events: none;
}

html[data-hub-theme="hub-polis"] .hub-people::after,
html[data-hub-theme="hub-polis"] .hub-about::after,
html[data-hub-theme="hub-polis"] .hub-partners-page::after {
  content: "";
  position: absolute;
  width: clamp(62px, 8vw, 96px);
  height: clamp(62px, 8vw, 96px);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.09;
  pointer-events: none;
}

html[data-hub-theme="hub-polis"] .hub-people::after {
  top: clamp(40px, 5vw, 70px);
  right: var(--hub-gutter);
  background-image: url("/static/hub/brand/pd-corner-1.png");
}

html[data-hub-theme="hub-polis"] .hub-people--curators::after {
  background-image: url("/static/hub/brand/pd-corner-3.png");
  opacity: 0.07;
}

html[data-hub-theme="hub-polis"] .hub-about::after {
  top: 50%;
  right: calc(var(--hub-gutter) * 0.6);
  background-image: url("/static/hub/brand/pd-corner-2.png");
  opacity: 0.06;
  transform: translateY(-50%);
}

html[data-hub-theme="hub-polis"] .hub-partners-page::after {
  right: var(--hub-gutter);
  bottom: 34px;
  background-image: url("/static/hub/brand/pd-corner-4.png");
  opacity: 0.07;
}

html[data-hub-theme="hub-polis"] .hub-organizers::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 22px;
  width: min(300px, 46vw);
  height: 11px;
  background-image: url("/static/hub/brand/pd-chevron-band-v3.png");
  background-position: right center;
  background-repeat: repeat-x;
  background-size: auto 100%;
  opacity: 0.24;
  pointer-events: none;
}

html[data-hub-theme="hub-polis"] .hub-timeline {
  position: relative;
}

html[data-hub-theme="hub-polis"] .hub-timeline::after {
  content: "";
  position: absolute;
  top: 0;
  right: var(--hub-gutter);
  width: min(250px, 42vw);
  height: 12px;
  background-image: url("/static/hub/brand/pd-chevron-band-v3.png");
  background-position: right center;
  background-repeat: repeat-x;
  background-size: auto 100%;
  opacity: 0.18;
  pointer-events: none;
}

html[data-hub-theme="hub-polis"] .hub-footer {
  position: relative;
}

html[data-hub-theme="hub-polis"] .hub-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 13px;
  background-image: url("/static/hub/brand/pd-meander-band-v3.png");
  background-repeat: repeat-x;
  background-size: auto 100%;
  filter: invert(1);
  opacity: 0.13;
  pointer-events: none;
}

html[data-hub-theme="hub-polis"] .hub-footer::after {
  content: "";
  position: absolute;
  right: var(--hub-gutter);
  bottom: 22px;
  width: min(240px, 40vw);
  height: 10px;
  background-image: url("/static/hub/brand/pd-wave-band-v3.png");
  background-position: right center;
  background-repeat: repeat-x;
  background-size: auto 100%;
  filter: invert(1);
  opacity: 0.1;
  pointer-events: none;
}

@media (max-width: 760px) {
  html[data-hub-theme="hub-polis"] .hub-people::after,
  html[data-hub-theme="hub-polis"] .hub-about::after,
  html[data-hub-theme="hub-polis"] .hub-partners-page::after,
  html[data-hub-theme="hub-polis"] .hub-footer::after {
    display: none;
  }

  html[data-hub-theme="hub-polis"] .hub-header::after {
    height: 11px;
    opacity: 0.22;
  }
}


html[data-hub-theme="hub-polis"] .hub-about,
html[data-hub-theme="hub-polis"] .hub-partners-page {
  position: relative;
}

















































































/* --------------------------------------------------------------------------
   POLIS · ночь — тёмная версия брендбука.
   Геометрия, печать, меандр и типографика наследуются от светлого POLIS;
   здесь меняется только сцена и контраст. Широкие макеты не двигаются.
   -------------------------------------------------------------------------- */

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] {
  --hub-bg: #07110d;
  --hub-bg-soft: #0a1812;
  --hub-surface: #0d1c16;
  --hub-surface-2: #11271e;
  --hub-text: #f1fff8;
  --hub-muted: #9cb8aa;
  --hub-accent: #21f0a8;
  --hub-accent-2: #00d98a;
  --hub-accent-ink: #04150e;
  --hub-gold: #21f0a8;
  --hub-border: rgba(214, 255, 238, 0.14);
  --hub-border-strong: rgba(214, 255, 238, 0.42);
  --hub-header-bg: #07110d;
  --hub-footer-bg: #030a07;
  --hub-footer-text: #f1fff8;
  --hub-footer-muted: #9cb8aa;
  --hub-footer-border: rgba(241, 255, 248, 0.14);
  --hub-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  --hub-focus: #21f0a8;
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-header {
  background: linear-gradient(180deg, #08160f 0%, #06110c 100%);
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-header.is-scrolled {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.52);
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-brand__mark,
html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-footer .hub-brand__mark {
  background:
    radial-gradient(circle at 32% 24%, rgba(33, 240, 168, 0.32), transparent 46%),
    radial-gradient(circle at 72% 78%, #123b2f, #071d17 60%, #030d09 100%);
  box-shadow:
    0 0 0 1px rgba(33, 240, 168, 0.72),
    0 0 0 5px rgba(33, 240, 168, 0.07),
    0 0 26px rgba(33, 240, 168, 0.16);
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-hero {
  background: #07110d;
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-hero__bg {
  background:
    radial-gradient(ellipse at 82% 16%, rgba(33, 240, 168, 0.2), transparent 36%),
    radial-gradient(ellipse at 8% 92%, rgba(33, 240, 168, 0.1), transparent 40%),
    linear-gradient(155deg, #07130e 0%, #06100c 58%, #071812 100%);
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-hero__bg::before {
  filter: invert(1);
  opacity: 0.22;
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-hero__bg::after {
  background: linear-gradient(180deg, transparent 58%, rgba(4, 12, 8, 0.9) 100%);
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-hero__title {
  color: #f3fff9 !important;
  text-shadow:
    0 0 26px rgba(33, 240, 168, 0.14),
    0 0 80px rgba(33, 240, 168, 0.08);
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-hero__kicker {
  color: #21f0a8;
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-hero__subtitle {
  color: #d5ebe1;
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-hero__note,
html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-hero__year,
html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-hero__scroll {
  color: #9cb8aa;
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-hero__social {
  border-color: rgba(236, 255, 247, 0.4);
  color: #eafff5;
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-hero__social:hover {
  border-color: #21f0a8;
  background: #21f0a8;
  color: #04150e;
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-hero__line {
  background: #21f0a8;
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-hero__emblem,
html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-hero__mobile-seal {
  background:
    radial-gradient(circle at 34% 26%, rgba(33, 240, 168, 0.3), transparent 44%),
    radial-gradient(circle at 72% 78%, #123b2f, #071d17 60%, #030d09 100%);
  box-shadow:
    0 0 0 1px rgba(33, 240, 168, 0.68),
    0 0 0 14px rgba(33, 240, 168, 0.045),
    0 0 80px rgba(33, 240, 168, 0.14),
    0 30px 70px rgba(0, 0, 0, 0.34);
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-stats {
  border-color: rgba(214, 255, 238, 0.46);
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-stat {
  border-color: rgba(214, 255, 238, 0.24);
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-stat__value {
  color: #21f0a8;
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-stat__label {
  color: #a9c4b7;
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-about {
  background:
    radial-gradient(ellipse at 96% 18%, rgba(33, 240, 168, 0.07), transparent 36%),
    var(--hub-bg);
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-organizers {
  background:
    radial-gradient(ellipse at 94% 4%, rgba(33, 240, 168, 0.08), transparent 38%),
    linear-gradient(155deg, #0a1812 0%, #08130e 58%, #0b1c15 100%);
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-header::after,
html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-section::before,
html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-pagehead::after,
html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-organizers::after,
html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-timeline::after {
  filter: invert(1);
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-pagehead {
  background:
    radial-gradient(ellipse at 88% 10%, rgba(33, 240, 168, 0.16), transparent 40%),
    linear-gradient(160deg, #07130e 0%, #06100c 100%);
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-photos__index {
  background: rgba(7, 17, 13, 0.96);
  border-color: rgba(214, 255, 238, 0.13);
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-timeline {
  border-color: rgba(214, 255, 238, 0.13);
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-timeline__photo {
  border-color: rgba(214, 255, 238, 0.34);
  background: #0d1c16;
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-day {
  border-color: rgba(214, 255, 238, 0.32);
  background: #0b1913;
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-day[open] {
  box-shadow: 10px 10px 0 rgba(33, 240, 168, 0.55);
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-day__mark::before,
html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-day__mark::after {
  background: #eafff5;
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-tabs__tab {
  border-color: rgba(214, 255, 238, 0.28);
  color: #c7ded2;
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-tabs__tab:hover {
  border-color: rgba(33, 240, 168, 0.55);
  color: #f1fff8;
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-tabs__tab[aria-selected="true"] {
  border-color: #21f0a8;
  background: #21f0a8;
  color: #04150e;
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-person__photo,
html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-team-card__photo {
  border-color: rgba(214, 255, 238, 0.34);
  background: #0d1c16;
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-person__body {
  border-top-color: rgba(214, 255, 238, 0.28);
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-org-cta {
  border-color: rgba(33, 240, 168, 0.4);
  color: #d9f2e6;
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-org-cta:hover {
  border-color: #21f0a8;
  background: rgba(33, 240, 168, 0.1);
  color: #f1fff8;
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-partner {
  border-color: rgba(214, 255, 238, 0.16);
  background: #0b1913;
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-partner__logo {
  background: #f1fff8;
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-partner__name {
  color: #f1fff8;
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-people::after,
html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-about::after,
html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-partners-page::after {
  filter: invert(1);
  opacity: 0.12;
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-footer {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(33, 240, 168, 0.1), transparent 42%),
    linear-gradient(135deg, #030a07 0%, #06110c 58%, #020705 100%);
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-footer::before {
  opacity: 0.16;
}

html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-footer::after {
  opacity: 0.14;
}

/* Мобильная печать: на тёмной сцене ореол чуть заметнее, но текст не задет. */
@media (max-width: 760px) {
  html[data-hub-theme="hub-polis"][data-hub-variant="dark"] .hub-hero__mobile-seal {
    box-shadow:
      0 0 0 1px rgba(33, 240, 168, 0.7),
      0 0 0 10px rgba(33, 240, 168, 0.05),
      0 0 46px rgba(33, 240, 168, 0.14),
      0 26px 54px rgba(0, 0, 0, 0.4);
  }
}



