:root {
  --test-accent: #D4B84A;
  --test-ink: #091E28;
}

#cursor,
#cursorRing,
.cursor,
.cursor-ring {
  left: 0 !important;
  top: 0 !important;
  will-change: transform, opacity;
  transform: translate3d(-120px, -120px, 0);
  contain: layout style paint;
}

#cursor {
  transition: opacity 0.18s ease !important;
}

#cursorRing {
  transition: opacity 0.18s ease, border-color 0.18s ease !important;
}

.test-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--test-accent), #EEF5F8);
  z-index: 10000;
  box-shadow: 0 0 18px rgba(212, 184, 74, 0.65);
}

.top-button {
  overflow: visible !important;
  isolation: isolate;
  right: 28px !important;
  bottom: 104px !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24), 0 0 18px rgba(212, 184, 74, 0.2) !important;
  transform-origin: center;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, bottom 0.32s cubic-bezier(0.2, 1, 0.3, 1) !important;
}

.top-button.near-footer {
  bottom: 168px !important;
}

.top-button::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  border: 1px solid rgba(212, 184, 74, 0.45);
  opacity: 0;
  transform: scale(0.72);
  z-index: -1;
}

.top-button::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background:
    linear-gradient(135deg, transparent 8%, rgba(255,255,255,0.44) 42%, transparent 72%),
    radial-gradient(circle, rgba(255,255,255,0.28), transparent 64%);
  opacity: 0.32;
  transform: translate(-10px, 10px) scale(0.72) rotate(18deg);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.top-button.visible {
  animation: topButtonFloat 2.35s ease-in-out infinite, topButtonGlow 3.2s ease-in-out infinite;
}

.top-button.visible::before {
  animation: topButtonRing 1.55s ease-out infinite;
}

.top-button.visible::after {
  animation: topButtonShine 2.35s ease-in-out infinite;
}

.top-button:hover {
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.3), 0 0 30px rgba(212, 184, 74, 0.42) !important;
}

.top-button:hover::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.test-nav {
  gap: 18px;
  animation: headerReveal 0.85s cubic-bezier(0.2, 1, 0.3, 1) both;
  transform-origin: top center;
}

.test-nav.scrolled {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.test-nav .nav-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 0 18px rgba(212, 184, 74, 0.2);
  text-decoration: none;
  transition: transform 0.32s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.32s ease, filter 0.32s ease;
}

.test-nav .nav-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  filter: drop-shadow(0 0 8px rgba(212, 184, 74, 0.18));
}

.test-nav .nav-logo:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24), 0 0 30px rgba(212, 184, 74, 0.32);
}

.test-nav .nav-links {
  min-width: 0;
}

.test-nav .nav-links a {
  position: relative;
}

.test-nav .nav-sector-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: inherit;
}

.test-nav .nav-sector-menu summary {
  display: inline-flex;
  align-items: center;
  list-style: none;
  position: relative;
  cursor: pointer;
  user-select: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.25s ease;
}

.test-nav .nav-sector-menu summary::-webkit-details-marker {
  display: none;
}

.test-nav .nav-sector-menu summary::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s ease;
}

.test-nav .nav-sector-menu[open] summary,
.test-nav .nav-sector-menu summary:hover {
  color: var(--test-accent);
}

.test-nav .nav-sector-menu[open] summary::after {
  transform: translateY(1px) rotate(225deg);
}

.test-nav .nav-sector-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  width: 210px;
  padding: 10px;
  display: grid;
  gap: 6px;
  background: rgba(9, 30, 40, 0.96);
  border: 1px solid rgba(212, 184, 74, 0.22);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 2400;
}

.test-nav .nav-sector-menu[open] .nav-sector-panel,
.test-nav .nav-sector-menu:hover .nav-sector-panel,
.test-nav .nav-sector-menu:focus-within .nav-sector-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.test-nav .nav-sector-panel a {
  display: block;
  padding: 11px 12px;
  border: 1px solid rgba(212, 184, 74, 0.1);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.62rem !important;
  letter-spacing: 0.12em !important;
  line-height: 1.2;
}

.test-nav .nav-sector-panel a:hover {
  border-color: rgba(212, 184, 74, 0.34);
  background: rgba(212, 184, 74, 0.08);
}

.test-nav .nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--test-accent), transparent);
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.test-nav .nav-links a:hover::after,
.test-nav .nav-links a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.test-nav .nav-cta {
  display: none !important;
}

.test-header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: 18px;
}

.test-options-wrap {
  position: relative;
}

.test-options-toggle {
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(212, 184, 74, 0.28);
  background: rgba(9, 30, 40, 0.78);
  color: #E8D070;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  font: 700 0.62rem 'DM Sans', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.test-options-toggle::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.22) 45%, transparent 72%);
  transform: translateX(-120%);
  transition: transform 0.42s ease;
}

.test-options-toggle:hover,
.test-options-toggle[aria-expanded="true"] {
  background: var(--test-accent);
  color: var(--test-ink);
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 18px rgba(212, 184, 74, 0.25);
}

.test-options-toggle:hover::after,
.test-options-toggle[aria-expanded="true"]::after {
  transform: translateX(120%);
}

.test-options-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  padding: 12px;
  display: grid;
  gap: 8px;
  background: rgba(9, 30, 40, 0.96);
  border: 1px solid rgba(212, 184, 74, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.test-options-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.test-options-panel.open .test-switch-row {
  animation: panelItemIn 0.34s cubic-bezier(0.2, 1, 0.3, 1) both;
}

.test-options-panel.open .test-switch-row:nth-child(1) { animation-delay: 0.02s; }
.test-options-panel.open .test-switch-row:nth-child(2) { animation-delay: 0.06s; }
.test-options-panel.open .test-switch-row:nth-child(3) { animation-delay: 0.1s; }
.test-options-panel.open .test-switch-row:nth-child(4) { animation-delay: 0.14s; }
.test-options-panel.open .test-panel-actions { animation: panelItemIn 0.34s 0.18s cubic-bezier(0.2, 1, 0.3, 1) both; }

.test-switch-row {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 10px;
  border: 1px solid rgba(212, 184, 74, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: #C8D8E0;
  font: 600 0.68rem 'DM Sans', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}

.test-switch-row:hover {
  border-color: rgba(212, 184, 74, 0.34);
  color: #EEF5F8;
}

.test-switch {
  position: relative;
  width: 66px;
  height: 30px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(90, 122, 138, 0.38), rgba(9, 30, 40, 0.78)),
    radial-gradient(circle at 18px 50%, rgba(255,255,255,0.14), transparent 38%);
  border: 1px solid rgba(212, 184, 74, 0.2);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.24);
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.test-switch::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.2) 45%, transparent 72%);
  transform: translateX(-120%);
  transition: transform 0.42s ease;
}

.test-switch-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #FFFFFF 0%, #DCE7EB 34%, #9FB4BE 100%);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.34);
  transform: translateX(0);
  transition: transform 0.32s cubic-bezier(0.2, 1.45, 0.36, 1), background 0.28s ease, box-shadow 0.28s ease;
  z-index: 2;
}

.test-switch-glow {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(212, 184, 74, 0.45);
  filter: blur(10px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.45);
  transition: opacity 0.3s ease, transform 0.32s ease, left 0.32s ease;
}

.test-switch-state {
  position: absolute;
  top: 50%;
  z-index: 1;
  font-size: 0.47rem;
  line-height: 1;
  letter-spacing: 0.08em;
  transform: translateY(-50%);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.test-switch-off {
  right: 9px;
  color: rgba(200, 216, 224, 0.62);
  opacity: 1;
}

.test-switch-on {
  left: 10px;
  color: #091E28;
  opacity: 0;
  transform: translateY(-50%) translateX(-6px);
}

.test-switch-row.active .test-switch {
  background:
    linear-gradient(135deg, #D4B84A, #E8D070),
    radial-gradient(circle at 75% 50%, rgba(255,255,255,0.48), transparent 40%);
  border-color: rgba(232, 208, 112, 0.82);
  box-shadow: inset 0 0 10px rgba(255,255,255,0.24), 0 0 18px rgba(212, 184, 74, 0.28);
  animation: switchPulse 1.4s ease-in-out infinite;
}

.test-switch-row.active .test-switch::after {
  transform: translateX(120%);
}

.test-switch-row.active .test-switch-knob {
  background:
    radial-gradient(circle at 35% 28%, #163245 0%, #091E28 72%);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.34), 0 0 14px rgba(9, 30, 40, 0.28);
  transform: translateX(36px);
}

.test-switch-row.active .test-switch-glow {
  left: 48px;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.25);
}

.test-switch-row.active .test-switch-off {
  opacity: 0;
  transform: translateY(-50%) translateX(6px);
}

.test-switch-row.active .test-switch-on {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.test-panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 4px;
}

.test-panel-actions button {
  height: 34px;
  border: 1px solid rgba(212, 184, 74, 0.18);
  background: rgba(212, 184, 74, 0.08);
  color: #E8D070;
  font: 700 0.58rem 'DM Sans', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.test-panel-actions button:hover {
  background: var(--test-accent);
  color: var(--test-ink);
}

.test-profile-wrap {
  position: relative;
}

.test-header-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(212, 184, 74, 0.08);
  border: 1px solid rgba(212, 184, 74, 0.24);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18), 0 0 18px rgba(212, 184, 74, 0.16);
  transition: transform 0.32s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.32s ease;
  cursor: pointer;
  padding: 0;
}

.test-header-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  filter: drop-shadow(0 0 8px rgba(212, 184, 74, 0.24));
}

.test-header-logo:hover {
  transform: translateY(-2px) rotate(1deg) scale(1.04);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.24), 0 0 32px rgba(212, 184, 74, 0.32);
}

.test-member-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 270px;
  padding: 10px;
  display: grid;
  gap: 8px;
  background: rgba(9, 30, 40, 0.96);
  border: 1px solid rgba(212, 184, 74, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.test-member-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.test-member-panel a {
  display: grid;
  gap: 3px;
  padding: 12px;
  color: #EEF5F8;
  text-decoration: none;
  border: 1px solid rgba(212, 184, 74, 0.12);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.test-member-panel a:hover {
  border-color: rgba(212, 184, 74, 0.36);
  background: rgba(212, 184, 74, 0.08);
  transform: translateX(3px);
}

.test-member-panel strong {
  font: 600 0.72rem 'DM Sans', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.test-member-panel span {
  color: #8EA7B3;
  font-size: 0.78rem;
  line-height: 1.35;
}

.test-toast {
  position: fixed;
  left: 22px;
  bottom: 78px;
  z-index: 10001;
  max-width: min(360px, calc(100vw - 44px));
  padding: 14px 16px;
  color: #EEF5F8;
  background: rgba(13, 37, 53, 0.96);
  border: 1px solid rgba(212, 184, 74, 0.28);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
  font: 0.82rem/1.45 'DM Sans', sans-serif;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.test-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.test-interactive .sector-card,
.test-interactive .contact-block,
.test-interactive .presence-region,
.test-interactive .about-visual {
  transform-style: preserve-3d;
}

.test-interactive .sector-card,
.test-interactive .contact-block,
.test-interactive .presence-region {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.test-interactive .sector-card:hover,
.test-interactive .contact-block:hover,
.test-interactive .presence-region:hover {
  border-color: rgba(212, 184, 74, 0.38);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24), 0 0 34px rgba(212, 184, 74, 0.08);
}

.test-spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  background: radial-gradient(360px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(212, 184, 74, 0.08), transparent 58%);
  transition: opacity 0.2s ease;
}

.test-interactive .test-spotlight {
  opacity: 1;
}

.institutional-main {
  padding: 148px 60px 96px;
  background:
    radial-gradient(circle at 18% 8%, rgba(212,184,74,0.12), transparent 32%),
    linear-gradient(180deg, rgba(13,37,53,0.72), rgba(9,30,40,0.96));
}

.institutional-wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.institutional-kicker {
  font: 700 0.68rem 'Syncopate', sans-serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.institutional-title {
  max-width: 820px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.92;
  color: var(--white);
  font-weight: 300;
}

.institutional-title em {
  color: var(--gold);
  font-style: italic;
}

.institutional-lead {
  max-width: 760px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.9;
}

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

.institutional-card,
.proof-row {
  background: rgba(17, 43, 58, 0.78);
  border: 1px solid rgba(212, 184, 74, 0.16);
  padding: 24px;
}

.institutional-card strong,
.proof-row strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-light);
  font: 700 0.72rem 'Syncopate', sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.institutional-card p,
.proof-row p {
  color: var(--text);
  line-height: 1.7;
  font-size: 0.95rem;
}

.institutional-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.institutional-list li {
  color: var(--text);
  line-height: 1.7;
  padding-left: 18px;
  position: relative;
}

.institutional-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
  position: absolute;
  left: 0;
  top: 0.7em;
}

.proof-stack {
  display: grid;
  gap: 14px;
}

.proof-status {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(212, 184, 74, 0.28);
  color: var(--gold-light);
  font: 700 0.58rem 'DM Sans', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.institutional-section {
  display: grid;
  gap: 16px;
}

.institutional-section h2,
.institutional-section h3 {
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.05;
}

.institutional-section h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.institutional-section h3 {
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  margin-top: 8px;
}

.institutional-section p {
  color: var(--text);
  line-height: 1.85;
}

.institutional-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(212, 184, 74, 0.16);
}

.institutional-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.institutional-table th,
.institutional-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(212, 184, 74, 0.12);
  color: var(--text);
  line-height: 1.5;
}

.institutional-table th {
  color: var(--gold-light);
  font: 700 0.68rem 'Syncopate', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.institutional-table tr:last-child td {
  border-bottom: none;
}

.test-light {
  --black: #F5F8FA;
  --dark: #EAF1F4;
  --surface: #FFFFFF;
  --surface2: #EEF5F7;
  --teal: #D4E5EA;
  --text: #0B2431;
  --text-dim: #274B5A;
  --white: #071A23;
  background: #F5F8FA !important;
  color: #0B2431 !important;
}

.test-light nav,
.test-light nav.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom-color: rgba(9, 30, 40, 0.16) !important;
  box-shadow: 0 16px 38px rgba(9, 30, 40, 0.1);
}

.test-light p,
.test-light li,
.test-light span,
.test-light label,
.test-light .profile-card p,
.test-light .profile-points div,
.test-light .about-text p,
.test-light .sector-description,
.test-light .contact-detail,
.test-light .form-label,
.test-light .footer-copy {
  color: #274B5A !important;
  text-shadow: none !important;
}

.test-light .nav-links a,
.test-light .footer-links a,
.test-light .contact-block a,
.test-light .section-body,
.test-light .hero-sub,
.test-light .hero-scroll span,
.test-light .contact-block p,
.test-light .footer-copy {
  color: #274B5A !important;
}

.test-light .test-nav .nav-sector-menu summary {
  color: #274B5A;
}

.test-light .test-nav .nav-sector-menu[open] summary,
.test-light .test-nav .nav-sector-menu summary:hover {
  color: #6F5A14;
}

.test-light .test-nav .nav-sector-panel {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(9, 30, 40, 0.18);
  box-shadow: 0 20px 46px rgba(9, 30, 40, 0.14);
}

.test-light .test-nav .nav-sector-panel a {
  color: #061923 !important;
  background: rgba(9, 30, 40, 0.045);
  border-color: rgba(9, 30, 40, 0.14);
}

.test-light .test-nav .nav-sector-panel a:hover {
  background: #F7F1D8;
  border-color: rgba(111, 90, 20, 0.28);
}

.test-light .test-nav .nav-sector-panel a::after {
  display: none;
}

.test-light .section-title,
.test-light .hero-title,
.test-light .sector-name,
.test-light .profile-card h1,
.test-light .profile-points strong,
.test-light .footer-logo,
.test-light .nav-logo a {
  color: #061923 !important;
  text-shadow: none !important;
}

.test-light .hero-tagline,
.test-light .section-tag,
.test-light .sector-tag,
.test-light .region-name,
.test-light .profile-kicker,
.test-light .contact-block-title {
  color: #6F5A14 !important;
  text-shadow: none !important;
}

.test-light .btn-primary {
  background: #D4B84A !important;
  color: #071A23 !important;
  border-color: #B7992F !important;
  text-shadow: none !important;
}

.test-light .btn-ghost {
  color: #234756 !important;
  border-color: rgba(35, 71, 86, 0.28) !important;
  background: rgba(255, 255, 255, 0.36) !important;
}

.test-light .btn-ghost:hover {
  background: #071A23 !important;
  color: #FFFFFF !important;
}

.test-light .hero-bg {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(212,184,74,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 45% 45% at 80% 75%, rgba(26,61,82,0.08) 0%, transparent 66%),
    linear-gradient(180deg, #F9FBFC 0%, #EAF1F4 100%) !important;
}

.test-light .about-graphic,
.test-light .sector-card,
.test-light .contact-section,
.test-light .contact-block,
.test-light .presence-region,
.test-light .profile-card,
.test-light .profile-mark,
.test-light .profile-points div,
.test-light footer {
  background-color: #FFFFFF !important;
  border-color: rgba(9, 30, 40, 0.18) !important;
}

.test-light .sector-card,
.test-light .contact-block,
.test-light .presence-region,
.test-light .about-graphic,
.test-light .profile-card,
.test-light .profile-mark {
  box-shadow: 0 20px 46px rgba(9, 30, 40, 0.1);
}

.test-light .sector-card:hover,
.test-light .contact-block:hover,
.test-light .presence-region:hover {
  border-color: rgba(111, 90, 20, 0.42) !important;
  box-shadow: 0 24px 52px rgba(9, 30, 40, 0.13);
}

.test-light .form-input {
  background: #FFFFFF !important;
  color: #061923 !important;
  border-color: rgba(9, 30, 40, 0.28) !important;
}

.test-light .form-input::placeholder {
  color: #5C7884 !important;
  opacity: 1 !important;
}

.test-light .top-button {
  color: #071A23 !important;
}

.test-light .cursor {
  background: #8A7428 !important;
}

.test-light .cursor-ring {
  border-color: rgba(138, 116, 40, 0.45) !important;
}

.test-light .test-options-toggle {
  background: rgba(255, 255, 255, 0.98);
  color: #102F3D;
  border-color: rgba(9, 30, 40, 0.22);
}

.test-light .test-options-toggle:hover,
.test-light .test-options-toggle[aria-expanded="true"] {
  background: #D4B84A;
  color: #091E28;
}

.test-light .test-options-panel {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(9, 30, 40, 0.2);
  box-shadow: 0 24px 62px rgba(9, 30, 40, 0.16);
}

.test-light .test-switch-row {
  color: #102F3D;
  background: rgba(9, 30, 40, 0.055);
  border-color: rgba(9, 30, 40, 0.18);
}

.test-light .test-switch-row:hover {
  color: #071A23;
  border-color: rgba(138, 116, 40, 0.34);
}

.test-light .test-switch {
  background: rgba(52, 86, 100, 0.18);
}

.test-light .test-panel-actions button {
  color: #102F3D;
  background: rgba(9, 30, 40, 0.055);
  border-color: rgba(9, 30, 40, 0.18);
}

.test-light .test-panel-actions button:hover {
  background: #D4B84A;
  color: #091E28;
}

.test-light .test-header-logo {
  background: #FFFFFF;
  border-color: rgba(9, 30, 40, 0.14);
  box-shadow: 0 16px 36px rgba(9, 30, 40, 0.1), 0 0 22px rgba(212, 184, 74, 0.22);
}

.test-light .test-member-panel {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(9, 30, 40, 0.2);
  box-shadow: 0 24px 62px rgba(9, 30, 40, 0.16);
}

.test-light .test-member-panel a {
  color: #061923;
  background: rgba(9, 30, 40, 0.055);
  border-color: rgba(9, 30, 40, 0.18);
}

.test-light .test-member-panel span {
  color: #274B5A;
}

.test-light .institutional-main {
  background:
    radial-gradient(circle at 18% 8%, rgba(212,184,74,0.11), transparent 30%),
    linear-gradient(180deg, #F9FBFC 0%, #EAF1F4 100%) !important;
}

.test-light .institutional-title {
  color: #061923 !important;
}

.test-light .institutional-section h2,
.test-light .institutional-section h3 {
  color: #061923 !important;
}

.test-light .institutional-lead,
.test-light .institutional-card p,
.test-light .proof-row p,
.test-light .institutional-list li,
.test-light .institutional-table td {
  color: #274B5A !important;
}

.test-light .institutional-card,
.test-light .proof-row {
  background: #FFFFFF !important;
  border-color: rgba(9, 30, 40, 0.18) !important;
  box-shadow: 0 20px 46px rgba(9, 30, 40, 0.1);
}

.test-light .institutional-card strong,
.test-light .proof-row strong,
.test-light .proof-status,
.test-light .institutional-table th {
  color: #6F5A14 !important;
}

.test-light .institutional-table-wrap {
  border-color: rgba(9, 30, 40, 0.18);
}

.test-light .institutional-table th,
.test-light .institutional-table td {
  border-bottom-color: rgba(9, 30, 40, 0.12);
}

.test-light .proof-status {
  border-color: rgba(111, 90, 20, 0.28);
  background: #F7F1D8;
}

.test-light img {
  filter: contrast(1.04) saturate(1.02);
}

.test-motion-off *,
.test-motion-off *::before,
.test-motion-off *::after {
  animation: none !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

.test-cursor-off,
.test-cursor-off * {
  cursor: auto !important;
}

.test-cursor-off a,
.test-cursor-off button,
.test-cursor-off select,
.test-cursor-off label,
.test-cursor-off [role="button"] {
  cursor: pointer !important;
}

.test-cursor-off input,
.test-cursor-off textarea {
  cursor: text !important;
}

.test-cursor-off .cursor,
.test-cursor-off .cursor-ring {
  display: none !important;
}

@keyframes switchPulse {
  0%, 100% { box-shadow: inset 0 0 10px rgba(255,255,255,0.24), 0 0 14px rgba(212, 184, 74, 0.22); }
  50% { box-shadow: inset 0 0 14px rgba(255,255,255,0.32), 0 0 26px rgba(212, 184, 74, 0.38); }
}

@keyframes headerReveal {
  from {
    opacity: 0;
    transform: translateY(-18px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes panelItemIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes topButtonFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-9px) scale(1.03); }
  70% { transform: translateY(-3px) scale(0.99); }
}

@keyframes topButtonGlow {
  0%, 100% { box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24), 0 0 16px rgba(212, 184, 74, 0.18); }
  50% { box-shadow: 0 24px 46px rgba(0, 0, 0, 0.3), 0 0 32px rgba(212, 184, 74, 0.42); }
}

@keyframes topButtonRing {
  0% { opacity: 0.68; transform: scale(0.72); }
  72%, 100% { opacity: 0; transform: scale(1.48); }
}

@keyframes topButtonShine {
  0%, 100% { opacity: 0.22; transform: translate(-12px, 12px) scale(0.72) rotate(18deg); }
  42% { opacity: 0.8; transform: translate(8px, -8px) scale(1.06) rotate(18deg); }
  68% { opacity: 0.36; transform: translate(3px, -3px) scale(0.9) rotate(18deg); }
}

.test-motion-off .test-switch-row.active .test-switch {
  animation: none !important;
}

.test-motion-off .test-nav,
.test-motion-off .test-options-panel.open .test-switch-row,
.test-motion-off .test-options-panel.open .test-panel-actions,
.test-motion-off .top-button.visible,
.test-motion-off .top-button.visible::before {
  animation: none !important;
}

@media (max-width: 1024px) {
  nav,
  .test-nav {
    padding: 18px 28px !important;
    gap: 14px;
  }

  .test-nav .nav-logo {
    width: 46px;
    height: 46px;
    border-radius: 10px;
  }

  .test-nav .nav-logo img {
    border-radius: 10px;
  }

  .test-nav .nav-links {
    gap: 18px !important;
    flex-wrap: wrap;
    justify-content: center;
  }

  .test-nav .nav-links a {
    font-size: 0.66rem !important;
    white-space: nowrap;
  }

  .test-nav .nav-sector-menu summary {
    font-size: 0.66rem;
    white-space: nowrap;
  }

  .test-header-tools {
    gap: 10px;
    margin-left: 8px;
  }

  .test-options-panel,
  .test-member-panel {
    max-width: calc(100vw - 40px);
  }

  .hero,
  .profile-hero {
    padding-inline: 28px !important;
  }

  .institutional-main {
    padding: 132px 28px 72px;
  }

  .institutional-grid {
    grid-template-columns: 1fr 1fr;
  }

  .profile-hero {
    min-height: auto !important;
    padding-top: 128px !important;
    padding-bottom: 72px !important;
  }

  .profile-card {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 34px !important;
  }

  .profile-mark {
    min-height: 180px !important;
  }

  footer {
    padding-inline: 28px !important;
  }
}

@media (max-width: 760px) {
  .test-nav {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between !important;
    padding: 14px 16px !important;
    gap: 10px;
    max-height: calc(100vh - 12px);
    overflow: visible;
  }

  .test-nav .nav-logo {
    width: 42px;
    height: 42px;
  }

  .test-nav .nav-links {
    width: calc(100vw - 32px) !important;
    max-width: 100%;
    min-width: 0;
    order: 4;
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 8px 2px 2px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    contain: paint;
    scrollbar-width: none;
  }

  .test-nav .nav-links::-webkit-scrollbar {
    display: none;
  }

  .test-nav .nav-links a {
    flex: 0 0 auto;
    padding: 8px 10px;
    border: 1px solid rgba(212, 184, 74, 0.14);
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.58rem !important;
  }

  .test-nav .nav-sector-menu {
    flex: 0 0 auto;
  }

  .test-nav .nav-sector-menu summary {
    padding: 8px 10px;
    border: 1px solid rgba(212, 184, 74, 0.14);
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.58rem;
  }

  .test-nav .nav-sector-panel {
    position: fixed;
    top: 104px;
    left: 16px;
    right: 16px;
    width: auto;
    transform: translateY(-8px);
  }

  .test-nav .nav-sector-menu[open] .nav-sector-panel,
  .test-nav .nav-sector-menu:hover .nav-sector-panel,
  .test-nav .nav-sector-menu:focus-within .nav-sector-panel {
    transform: translateY(0);
  }

  .test-nav .nav-sector-panel a {
    padding: 12px;
  }

  .test-light .test-nav .nav-links a {
    color: #061923 !important;
    background: #EEF4F6;
    border-color: rgba(9, 30, 40, 0.18);
  }

  .test-light .test-nav .nav-sector-menu summary {
    color: #061923 !important;
    background: #EEF4F6;
    border-color: rgba(9, 30, 40, 0.18);
  }

  .test-header-tools {
    width: auto;
    margin-left: 0;
    margin-top: 0;
    justify-content: flex-end;
    order: 2;
    flex: 0 0 auto;
  }

  .test-options-wrap {
    position: static;
    flex: 0 0 auto;
  }

  .test-options-toggle {
    width: auto;
    min-width: 96px;
    height: 38px;
    padding: 0 12px;
    font-size: 0.56rem;
    letter-spacing: 0.11em;
  }

  .test-profile-wrap {
    position: static;
  }

  .test-header-logo {
    width: 42px;
    height: 42px;
    padding: 5px;
    border-radius: 10px;
  }

  .test-options-panel,
  .test-member-panel {
    position: fixed;
    top: 104px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 128px);
    overflow-y: auto;
    border-radius: 8px;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    z-index: 2500;
  }

  .test-options-panel.open,
  .test-member-panel.open {
    transform: translateY(0) scale(1);
  }

  .test-member-panel a {
    padding: 13px;
  }

  .hero,
  .profile-hero {
    padding-inline: 18px !important;
  }

  .institutional-main {
    padding: 136px 18px 56px;
  }

  .institutional-grid {
    grid-template-columns: 1fr;
  }

  .institutional-card,
  .proof-row {
    padding: 20px;
  }

  .hero-content {
    padding-top: 118px;
  }

  .hero-title,
  .profile-card h1 {
    overflow-wrap: anywhere;
  }

  .profile-hero {
    padding-top: 138px !important;
    padding-bottom: 48px !important;
  }

  .profile-card {
    padding: 24px !important;
    border-radius: 8px !important;
  }

  .profile-points {
    grid-template-columns: 1fr !important;
  }

  .sector-card {
    overflow: hidden;
  }

  .stats-bar {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden;
  }

  .about-badge {
    max-width: min(128px, calc(100vw - 48px));
  }

  .top-button {
    right: 16px !important;
    bottom: 94px !important;
    width: 44px !important;
    height: 44px !important;
  }

  .top-button.near-footer {
    bottom: 156px !important;
  }

  .test-toast {
    left: 12px;
    right: 12px;
    bottom: 70px;
    max-width: calc(100vw - 24px);
  }
}

@media (max-width: 420px) {
  nav,
  .test-nav {
    padding: 12px !important;
  }

  .test-options-toggle {
    min-width: 82px;
    padding: 0 10px;
  }

  .test-header-tools {
    gap: 8px;
  }

  .test-header-logo,
  .test-nav .nav-logo {
    width: 38px;
    height: 38px;
  }

  .test-options-panel,
  .test-member-panel {
    top: 98px;
    left: 12px;
    right: 12px;
    max-height: calc(100vh - 116px);
    padding: 10px;
  }

  .test-nav .nav-links {
    width: calc(100vw - 24px) !important;
  }

  .stats-bar {
    grid-template-columns: 1fr !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .stat-item {
    width: 100% !important;
    border-right: none !important;
  }

  .about-badge {
    right: 12px !important;
    transform: none !important;
  }

  .sector-glow {
    display: none !important;
  }

  .test-switch-row {
    min-height: 40px;
    padding: 8px 10px;
    gap: 10px;
  }

  .test-switch-row > span:first-child {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .test-panel-actions {
    grid-template-columns: 1fr;
  }

  .profile-card {
    padding: 20px !important;
  }

  .profile-mark {
    min-height: 150px !important;
  }
}
