/* Согласованная многостраничная структура. Бренд и галактика остаются общими для сайта. */
:root {
  --display: 'Manrope', Arial, sans-serif;
  --body: 'Manrope', Arial, sans-serif;
  --pad: clamp(22px, 5vw, 80px);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --header-height: 88px;
}
html { scroll-padding-top: calc(var(--header-height) + 24px); scrollbar-color: #655a78 #111014; }
body { font-family: var(--body); font-size: 17px; line-height: 1.65; }
h1, h2, h3 { hyphens: none; text-wrap: balance; }
h1 { font-weight: 600; font-size: clamp(36px, 4.6vw, 66px); letter-spacing: -.03em; line-height: 1.09; background: none; -webkit-text-fill-color: currentColor; }
h2 { font-weight: 600; font-size: clamp(30px, 3.3vw, 46px); letter-spacing: -.025em; line-height: 1.16; }
h2::after { width: 48px; height: 2px; background: var(--nebula); box-shadow: none; }
h3 { font-weight: 600; line-height: 1.4; }
p { text-wrap: pretty; }
a { text-underline-offset: .2em; }
::selection { background: #9c80f7; color: #000; }
:focus-visible { outline: 2px solid var(--star); outline-offset: 5px; }
input, select, textarea { caret-color: var(--star); }
.lead { font-size: 18px; line-height: 1.75; max-width: 65ch; }
.col { max-width: 760px; }
.col.wide { max-width: 1060px; }
section:not(.hero) { padding-block: 88px; }
.hero { min-height: 580px; padding-top: 65px; padding-bottom: 70px; }
.hero .col { max-width: 860px; }
.hero-logo { height: 94px; filter: none; animation: none; }
.state { font-family: var(--body); font-weight: 600; letter-spacing: .015em; }
.rule-list li { font-weight: 600; transition: color 160ms ease; }
.rule-list li:hover { padding-left: 0; }
.stat b, .kind { background: none; -webkit-text-fill-color: currentColor; }
.stat b { font-weight: 600; font-variant-numeric: tabular-nums; }
.kind { color: var(--mint); }
.btn, .btn:not(.ghost), .btn.ghost {
  font-family: var(--body); font-weight: 700; font-size: 15px; min-height: 48px;
  transition: transform 160ms var(--ease-out), opacity 160ms ease;
  backdrop-filter: none;
}
.btn:not(.ghost) { background: var(--star); color: var(--space); box-shadow: none; }
.btn:hover, .btn:not(.ghost):hover { transform: none; box-shadow: none; }
.btn.ghost:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 2px rgba(156,128,247,.8); }
.btn:active { transform: scale(.98); }
.btn:disabled { transform: none; opacity: .55; }

/* Общее меню: нативные details работают и без JavaScript. */
.structure-bar {
  position: sticky; top: 0; z-index: 50; height: var(--header-height); gap: 26px;
  background: #08080b; border: 0; backdrop-filter: none;
}
.structure-bar .logo-img { width: 164px; height: auto; }
.structure-bar .bar-end { gap: 12px; }
.structure-bar .bar-phone { display: none; }
.structure-menu { display: flex; align-items: center; gap: clamp(16px, 1.9vw, 30px); margin: 0 auto; font: 600 15px/1.4 var(--body); }
.structure-menu > a, .nav-group summary {
  display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 6px 0;
  color: #d8d5e1; white-space: nowrap; cursor: pointer; border: 0;
  text-decoration: none; font: inherit; list-style: none;
}
.nav-group { position: relative; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::marker { content: ''; }
.nav-group summary svg { stroke-width: 1.5; transition: transform 180ms var(--ease-out); }
.nav-group[open] summary svg { transform: rotate(180deg); }
.structure-menu [aria-current=page], .structure-menu a.on, .nav-group[data-active] > summary { color: var(--star); border: 0; }
.nav-submenu { position: absolute; top: 100%; left: -20px; min-width: 245px; display: grid; gap: 3px; padding: 14px; background: #1a171f; border-radius: 10px; box-shadow: 0 20px 50px #0008; }
.structure-menu .nav-submenu a { color: #fff; padding: 11px 12px; line-height: 1.4; border: 0; font-size: 15px; white-space: normal; }
.nav-submenu a[aria-current=page], .nav-submenu a:hover { background: #30243e; }
.structure-crumbs { position: relative; z-index: 2; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 26px var(--pad) 0; max-width: 1440px; margin: auto; font-size: 14px; color: var(--muted); }
.structure-crumbs a { text-decoration: none; color: var(--moon); }
.structure-crumbs > span:last-child { max-width: 70ch; }
.page-outline { position: relative; z-index: 2; margin: 0 auto 32px; padding: 24px var(--pad); max-width: 1440px; background: #121016; color: var(--moon); font-size: 14px; }
.page-outline details { width: 100%; }
.page-outline summary { font-weight: 600; color: var(--muted); cursor: pointer; padding: 6px 0; }
.page-outline details > div { display: flex; flex-wrap: wrap; gap: 0 25px; margin-top: 10px; }
.page-outline a { display: inline-block; padding-block: 8px; text-decoration: none; max-width: 60ch; }
.page-outline a:hover { color: var(--star); }
.structure-sitemap { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 64px; padding: 56px var(--pad); background: #111014; }
.structure-sitemap > div { display: grid; gap: 12px; align-content: start; min-width: 0; }
.structure-sitemap h2 { font-size: 17px; line-height: 1.4; margin: 0 0 8px; padding: 0; letter-spacing: 0; }
.structure-sitemap h2::after { display: none; }
.structure-sitemap a { font-size: 15px; color: var(--muted); text-decoration: none; }
.structure-sitemap a:hover { color: var(--star); }
.foot-nav { gap: 12px 24px; }
.structure-foot { padding: 0; background: #111014; }
.structure-foot .foot-top { padding: 40px var(--pad) 0; margin-bottom: 0; }
.structure-foot .structure-sitemap { padding-top: 32px; }
.structure-foot .foot-bottom { padding: 24px var(--pad) 28px; border-top: 1px solid var(--line); }

/* Спокойные поверхности и читаемая типографика плотных страниц. */
.card, .service, .award, .dir, .partner, .person, .city, .news-item, .quote, .age, .sched-item { backdrop-filter: none; background: #141018; }
.card, .service, .award, .dir, .partner, .person, .city { transition: none; }
.card::before, .service::before, .award::before, .dir::before { display: none; }
.card:hover, .service:hover, .award:hover, .dir:hover { transform: none; box-shadow: none; border-color: rgba(255,255,255,.1); }
.card h3, .dir h3, .person h3 { font-family: var(--body); }
.dir h3 { font-size: 19px; }
.dir p, .service p, .card-body p, .news-body p { font-size: 16px; line-height: 1.7; }
.filters label { text-transform: none; letter-spacing: 0; font-size: 14px; }
.filters label, .filters input, .filters select { font-family: var(--body); }
.actor h3 { font-size: 18px; }
.actor-photo { transition: transform 220ms var(--ease-out); }
.actor-photo img, .zoom img { transition: transform 240ms var(--ease-out); }
a.actor:hover .actor-photo, a.actor:focus-visible .actor-photo { transform: none; border-color: rgba(156,128,247,.8); box-shadow: none; }
a.actor:hover .actor-photo img { transform: none; }
.pblock h3 { letter-spacing: .035em; }
.form h2 { font-size: 26px; line-height: 1.2; }
.form input, .form select, .form textarea { min-width: 0; max-width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--nebula); }
.doc .structure-crumbs { padding-bottom: 24px; }
.doc-body { padding-top: 28px; }
.doc-body h1 { font-size: clamp(30px, 4vw, 48px); }
.glow { animation: none; }
.marquee { transform: none; margin: 0 0 24px; max-width: 100%; backdrop-filter: none; }
.marquee-track { font-family: var(--body); font-weight: 600; }
.marquee-track span { color: var(--moon); background: none; -webkit-text-fill-color: currentColor; }
.ticker { backdrop-filter: none; }
.ticker, .marquee { position: relative; }
.motion-toggle { position: absolute; z-index: 2; right: var(--pad); top: 50%; transform: translateY(-50%); min-height: 36px; padding: 6px 12px; font: 600 13px/1.4 var(--body); background: #211a2b; border: 1px solid #655a78; border-radius: 6px; color: var(--moon); cursor: pointer; }
.motion-paused .ticker-track, .motion-paused .marquee-track, .motion-paused .pin i, .hub-stage.motion-paused .orb-body { animation-play-state: paused; }

/* Главная с исходной галактикой. Координаты планет берутся из DOM. */
.hub { overflow-x: clip; overflow-y: visible; }
.hub-main { min-height: 0; }
.hub-stage { height: 760px; --cy: 43%; --ry: 250px; }
.hub .core::before { box-shadow: none; animation: none; border-color: rgba(156,128,247,.3); }
.hub .core-logo { filter: none; transition: transform 240ms var(--ease-out); }
.hub .core:hover .core-logo { transform: none; }
.hub .orb-label { font-family: var(--body); font-weight: 600; font-size: 15px; line-height: 1.4; text-shadow: none; max-width: 195px; }
.hub .orb { transition: transform 640ms var(--ease-out), opacity 260ms ease, visibility 0ms; }
.hub .armed:not(.open) .orb { transition: transform 320ms var(--ease-out), opacity 180ms ease, visibility 0ms 320ms; }
.hub .orb-body { animation: none; }
.hub .orb-ball { transition: transform 220ms var(--ease-out); }
.hub .orb:hover .orb-ball, .hub .orb:focus-visible .orb-ball { transform: none; }
.hub .orb:focus-visible { outline: 2px solid var(--star); outline-offset: 8px; border-radius: 8px; }
.hub .hub-foot { position: relative; inset: auto; padding: 20px var(--pad) 35px; background: #08080b; font-size: 14px; }
.hub .credits span, .hub .credits.small { font-size: 13px; letter-spacing: 0; text-transform: none; }
.hub .hub-foot .credits { line-height: 1.7; }
.hub .glow { opacity: .5; }
.hub #gl { opacity: .55; }

@media (hover: hover) and (pointer: fine) {
  .structure-menu > a:hover, .nav-group summary:hover { color: var(--star); }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: scale(.98); }
  a.actor:hover .actor-photo, .zoom:hover img { transform: scale(1.025); }
  .hub .core:hover .core-logo { transform: scale(1.025); }
  .hub .orb:hover .orb-ball { transform: scale(1.06); }
}
@media (max-width: 1150px) {
  .structure-menu { gap: 16px; font-size: 14px; }
  .structure-bar { gap: 20px; }
  .structure-bar .logo-img { width: 142px; }
  .structure-bar .bar-end > .btn { font-size: 14px; padding-inline: 16px; }
  .hero { min-height: 540px; }
}
@media (max-width: 1080px) {
  :root { --header-height: 78px; }
  .structure-bar { justify-content: space-between; }
  .structure-bar .burger { display: flex; }
  .structure-menu { display: none; position: absolute; inset: var(--header-height) 0 auto; background: #141018; padding: 18px var(--pad) 28px; margin: 0; max-height: calc(100svh - 100px); overflow-y: auto; align-items: stretch; gap: 4px; }
  .structure-menu.open { display: flex; flex-direction: column; }
  .structure-menu > a, .nav-group summary { font-size: 17px; min-height: 48px; justify-content: space-between; }
  .structure-menu .nav-submenu { position: static; box-shadow: none; margin-bottom: 10px; padding: 8px 16px; border-radius: 0; background: #211a2b; }
  .structure-menu .nav-submenu a { font-size: 16px; }
  .nav-group { width: 100%; }
  .structure-bar .bar-end { margin-left: 0; }
  .page-outline a { max-width: 100%; }
  .structure-sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-stage { --rx: clamp(120px, 34vw, 310px); }
  .hub .orb-label { font-size: 14px; max-width: 165px; }
}
@media (max-width: 600px) {
  .structure-crumbs { padding-top: 22px; font-size: 13px; gap: 8px; }
  .structure-crumbs > span:last-child { max-width: 100%; }
  .structure-bar .bar-end > .btn { display: inline-flex; min-height: 42px; font-size: 13px; padding: 10px 16px; }
  .structure-bar .logo-img { width: 136px; }
  .structure-bar { gap: 12px; }
  .hero { min-height: 0; padding-top: 48px; padding-bottom: 60px; }
  .hero-logo { height: 70px; }
  .hero .col { width: 100%; }
  h1 { font-size: 36px; line-height: 1.12; letter-spacing: -.025em; }
  h2 { font-size: 30px; }
  .lead { font-size: 16px; line-height: 1.75; }
  .page-outline { padding-block: 20px; margin-bottom: 0; }
  .page-outline details > div { display: grid; gap: 0; }
  .page-outline a { font-size: 14px; padding-block: 9px; }
  .page-outline summary { font-size: 14px; min-height: 32px; }
  section:not(.hero) { padding-block: 58px; }
  .structure-sitemap { gap: 32px 22px; padding-block: 40px; }
  .structure-sitemap a { font-size: 14px; }
  .structure-sitemap h2 { font-size: 16px; }
  .hub-stage { height: 740px; --rx: 125px; --ry: 228px; --cy: 43%; --s: 78px; }
  .hub .orb-label { font-size: 13px; max-width: 115px; line-height: 1.35; }
  .hub .core-logo { width: 175px; }
  .hub .core { padding: 16px; }
  .hub .credits { display: flex; gap: 6px 15px; }
  .hub .hub-foot { padding-block: 18px 26px; }
  .news-item { padding: 22px; }
  .actor h3 { font-size: 16px; }
  .profile { gap: 24px; }
}
@media (max-width: 360px) {
  .structure-bar .bar-end > .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover, .btn:active, .hub .core:hover .core-logo, .hub .orb:hover .orb-ball, a.actor:hover .actor-photo, .zoom:hover img { transform: none; }
  .motion-toggle { display: none; }
}
