:root {
  --bg: #020b17;
  --bg-2: #03172c;
  --panel: rgba(3, 20, 42, .78);
  --panel-strong: rgba(4, 27, 58, .92);
  --line: rgba(98, 233, 255, .82);
  --line-soft: rgba(100, 255, 223, .46);
  --cyan: #19b9ff;
  --cyan-2: #65ecff;
  --green: #00e28a;
  --green-soft: rgba(0, 226, 138, .22);
  --text: #f5fbff;
  --muted: #9eb6ce;
  --muted-2: #6f88a5;
  --border: rgba(92, 198, 255, .22);
  --border-strong: rgba(82, 224, 255, .52);
  --shadow: 0 28px 90px rgba(0, 0, 0, .45);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --header-h: 80px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: Montserrat, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 7%, rgba(36, 184, 255, .17), transparent 28%),
    radial-gradient(circle at 71% 35%, rgba(0, 226, 138, .16), transparent 24%),
    radial-gradient(circle at 84% 88%, rgba(116, 80, 255, .14), transparent 34%),
    linear-gradient(135deg, #020812 0%, #03142b 52%, #020913 100%);
}

button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { border: 0; }
svg { display: block; }

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.23) 1px, transparent 1.5px),
    linear-gradient(rgba(83, 180, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 180, 255, .08) 1px, transparent 1px);
  background-size: 28px 28px, 112px 112px, 112px 112px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 84%);
}

.orb {
  position: fixed;
  z-index: 0;
  width: 36vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: .28;
}
.orb--cyan { left: -16vw; top: 12vh; background: #0aa7ff; }
.orb--green { right: -12vw; bottom: -15vh; background: #00e28a; }

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) auto;
  align-items: center;
  min-height: var(--header-h);
  padding: 0 28px;
  border-bottom: 1px solid rgba(92, 198, 255, .14);
  background: rgba(3, 14, 29, .82);
  backdrop-filter: blur(22px);
  box-shadow: 0 10px 40px rgba(0,0,0,.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 204px;
  min-width: 0;
}
.brand img { width: 100%; height: auto; display: block; }

.header-page-title {
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  padding: 0 18px;
  color: rgba(235, 246, 255, .92);
  text-align: center;
}
.header-page-title span {
  color: #fff;
  font-size: clamp(18px, 1.65vw, 26px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.header-page-title small {
  color: rgba(142, 223, 255, .78);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}
.cabinet-button {
  color: #f2fbff;
  background: transparent;
  cursor: pointer;
}
.cabinet-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(25, 185, 255, .66);
  border-radius: 10px;
  color: #e7f7ff;
  background: rgba(25, 185, 255, .08);
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 0 22px rgba(25,185,255,.08);
  font-weight: 850;
}

.hero {
  width: min(1920px, 100%);
  margin: 0 auto;
  padding: 26px 30px 32px;
}

.hero-map-card {
  position: relative;
  min-height: calc(100vh - var(--header-h) - 58px);
  border: 1px solid rgba(71, 176, 255, .18);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(3, 24, 52, .92), rgba(2, 12, 28, .78)),
    radial-gradient(circle at 73% 43%, rgba(0, 226, 138, .18), transparent 24%),
    radial-gradient(circle at 33% 30%, rgba(25, 185, 255, .17), transparent 35%);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.08);
  isolation: isolate;
}
.hero-map-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 54% 50%, #000 0%, transparent 78%);
}

.hero-copy {
  position: absolute;
  left: clamp(24px, 2.4vw, 46px);
  top: clamp(22px, 2.1vw, 40px);
  z-index: 12;
  width: min(520px, 36vw);
  pointer-events: none;
}
.section-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border: 1px solid rgba(25, 185, 255, .22);
  border-radius: 999px;
  color: #67d9ff;
  background: rgba(25, 185, 255, .10);
  font-size: 13px;
  font-weight: 850;
}
h1 {
  margin: 15px 0 14px;
  max-width: 790px;
  font-size: clamp(32px, 3vw, 58px);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 950;
  text-wrap: balance;
}
.hero-copy p {
  margin: 0;
  max-width: 560px;
  color: rgba(221, 239, 252, .78);
  font-size: clamp(14px, .95vw, 17px);
  line-height: 1.55;
}

.map-wrap {
  position: absolute;
  inset: 28px 24px 102px 24px;
  z-index: 2;
  border-radius: 28px;
  overflow: hidden;
}
.map-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 68.25% 27.6%, rgba(0,226,138,.20), transparent 12%),
    linear-gradient(90deg, rgba(2, 9, 22, .34) 0%, transparent 22%, transparent 76%, rgba(2, 9, 22, .20) 100%);
}
.world-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: .92;
  filter: drop-shadow(0 24px 42px rgba(0,0,0,.22)) saturate(1.08);
  pointer-events: none;
}
.world-map-svg {
  pointer-events: auto;
}
.world-map-svg .country {
  pointer-events: none;
  transition: fill .2s ease, stroke .2s ease, stroke-width .2s ease, filter .2s ease, opacity .2s ease;
}
.world-map-svg .country-partner {
  pointer-events: auto;
  cursor: pointer;
}
.world-map-svg .country-hit-area {
  fill: none !important;
  stroke: rgba(255, 255, 255, .001) !important;
  stroke-width: 18;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  pointer-events: stroke;
  cursor: pointer;
  filter: none !important;
}
.world-map-svg .country-partner:hover,
.world-map-svg .country-partner.is-region-hover,
.world-map-svg .country-partner.is-region-active,
.world-map-svg .country-partner:focus-visible {
  stroke: var(--hover-color, #65ecff) !important;
  stroke-width: 3.6 !important;
  opacity: 1;
  filter:
    drop-shadow(0 0 5px var(--hover-color, #65ecff))
    drop-shadow(0 0 15px var(--hover-color, #65ecff))
    drop-shadow(0 0 30px var(--hover-color-soft, rgba(101,236,255,.36))) !important;
}
.world-map-svg .country-partner.is-region-active {
  animation: regionGlow 1.6s ease-in-out infinite alternate;
}
.flow-svg {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.flow-path {
  fill: none;
  stroke: var(--line);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 4 10;
  opacity: .68;
  filter: drop-shadow(0 0 6px rgba(102, 236, 255, .70));
  animation: dashMove 1.35s linear infinite;
  transition: opacity .2s ease, stroke-width .2s ease, filter .2s ease;
}
.flow-path.is-active {
  opacity: 1;
  stroke-width: 3.3;
  filter: drop-shadow(0 0 9px rgba(102, 236, 255, .95)) drop-shadow(0 0 18px rgba(0, 226, 138, .58));
}
.flow-dot {
  fill: #eaffff;
  opacity: .9;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.95)) drop-shadow(0 0 14px rgba(101,236,255,.86));
}
.flow-dot.is-active { fill: #a7ffe3; }

.uz-node,
.region-hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
}
.uz-node {
  z-index: 14;
  width: 34px;
  height: 34px;
  pointer-events: none;
}
.uz-pulse {
  position: absolute;
  inset: -30px;
  border: 1.5px solid rgba(0, 226, 138, .58);
  border-radius: 50%;
  animation: hubPulse 2.2s ease-out infinite;
}
.uz-core {
  position: absolute;
  inset: -8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #00261e;
  background: radial-gradient(circle at 35% 28%, #effff9, #00e28a 64%, #08a56a);
  box-shadow: 0 0 0 8px rgba(0,226,138,.13), 0 0 38px rgba(0,226,138,.92);
  font-weight: 950;
  font-size: 12px;
}
.uz-label {
  position: absolute;
  left: 42px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(0, 226, 138, .34);
  border-radius: 999px;
  white-space: nowrap;
  color: #eafff8;
  background: rgba(0, 40, 34, .78);
  box-shadow: 0 10px 28px rgba(0,0,0,.24), 0 0 28px rgba(0,226,138,.20);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 950;
}

.hotspot-layer {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
}
.region-hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: var(--w);
  height: var(--h);
  border-radius: var(--r, 999px);
  background: transparent;
  border: 0;
  pointer-events: auto;
  cursor: pointer;
  outline: none;
}
.region-hotspot::before,
.region-hotspot::after {
  content: none;
}
.region-hotspot:focus-visible {
  box-shadow: none;
}

.region-hover-name {
  position: absolute;
  z-index: 17;
  left: var(--label-x);
  top: var(--label-y);
  transform: translate(-50%, -50%) translateY(4px);
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 58%, transparent);
  border-radius: 999px;
  color: #effcff;
  background: rgba(4, 22, 44, .74);
  box-shadow: 0 14px 34px rgba(0,0,0,.22), 0 0 24px var(--accent-soft);
  opacity: 0;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(14px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.region-hover-name.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

.association-panel {
  position: absolute;
  left: 30px;
  top: 178px;
  z-index: 20;
  width: min(384px, 31vw);
  max-height: calc(100% - 318px);
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid rgba(25, 185, 255, .42);
  border-radius: 22px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(4, 28, 62, .89), rgba(2, 14, 30, .86));
  box-shadow: 0 22px 70px rgba(0,0,0,.38), 0 0 38px rgba(25,185,255,.12), inset 0 1px rgba(255,255,255,.10);
  backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-18px) scale(.985);
  transition: opacity .22s ease, visibility .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.association-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}
.panel-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(101,236,255,.18);
  border-radius: 50%;
  color: rgba(235, 247, 255, .88);
  background: rgba(255,255,255,.055);
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.panel-close:hover {
  transform: rotate(90deg);
  border-color: rgba(101,236,255,.48);
  background: rgba(25,185,255,.12);
}

.association-panel.is-open.is-changing { transform: translateY(-2px); border-color: rgba(101,236,255,.72); box-shadow: 0 28px 90px rgba(0,0,0,.46), 0 0 46px rgba(25,185,255,.20); }
.panel-region {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #67d9ff;
  background: rgba(25, 185, 255, .11);
  font-size: 12px;
  font-weight: 900;
}
.panel-head {
  display: grid;
  grid-template-columns: 88px minmax(0,1fr);
  gap: 15px;
  align-items: center;
}
.panel-logo-wrap {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 8px rgba(25,185,255,.10), 0 16px 36px rgba(0,0,0,.25);
}
.panel-logo-wrap img { width: 69px; height: 69px; object-fit: contain; }
.panel-code {
  margin-bottom: 6px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.03em;
}
.association-panel h2 {
  margin: 0;
  color: rgba(246, 251, 255, .91);
  font-size: 17px;
  line-height: 1.36;
  font-weight: 780;
}
.panel-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0 4px;
}
.panel-switcher:empty { display: none; }
.panel-switcher button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(101,236,255,.18);
  border-radius: 999px;
  color: #dff7ff;
  background: rgba(255,255,255,.06);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}
.panel-switcher button.is-active {
  color: #001725;
  border-color: transparent;
  background: linear-gradient(135deg, #e8fcff, #65ecff);
}
.panel-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin: 16px 0 13px;
}
.panel-facts div {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}
.panel-facts dt {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: #8edfff;
  font-size: 12px;
  font-weight: 850;
}
.panel-facts svg,
.system-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.panel-facts dd {
  margin: 0;
  color: #f7fdff;
  font-size: 14px;
  font-weight: 880;
}
.panel-function {
  padding: 13px;
  border: 1px solid rgba(101,236,255,.16);
  border-radius: 18px;
  background: rgba(25,185,255,.055);
}
.panel-function span {
  display: block;
  margin-bottom: 6px;
  color: #8edfff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
}
.panel-function p {
  margin: 0;
  color: rgba(233,247,255,.86);
  font-size: 13px;
  line-height: 1.48;
}
.system-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  margin-top: 13px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #0787ff, #0bb7ff);
  box-shadow: 0 16px 35px rgba(7,135,255,.22);
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease;
}
.system-link:hover { transform: translateY(-2px); box-shadow: 0 20px 42px rgba(7,135,255,.32); }
.content-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 4px;
  margin-top: 15px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.content-tabs button {
  position: relative;
  min-height: 34px;
  color: rgba(220,239,250,.72);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.content-tabs button::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: var(--cyan);
  opacity: 0;
  transform: scaleX(.5);
  transition: opacity .2s ease, transform .2s ease;
}
.content-tabs button.is-active { color: var(--cyan-2); }
.content-tabs button.is-active::after { opacity: 1; transform: scaleX(1); }
.news-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  overflow: auto;
  padding-right: 3px;
}
.news-list::-webkit-scrollbar { width: 5px; }
.news-list::-webkit-scrollbar-thumb { background: rgba(101,236,255,.25); border-radius: 999px; }
.news-item {
  display: grid;
  grid-template-columns: 54px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  background: rgba(255,255,255,.035);
}
.news-thumb {
  width: 54px;
  height: 46px;
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(101,236,255,.25), rgba(0,226,138,.12)),
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.50), transparent 18%),
    linear-gradient(135deg, #164467, #071928);
  box-shadow: inset 0 1px rgba(255,255,255,.13);
}
.news-item strong {
  display: block;
  color: rgba(247,253,255,.92);
  font-size: 12px;
  line-height: 1.32;
}
.news-item small {
  display: block;
  margin-top: 5px;
  color: rgba(158,182,206,.82);
  font-size: 11px;
  font-weight: 700;
}


.stats-bar {
  position: absolute;
  left: 50%;
  bottom: 25px;
  z-index: 24;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  width: min(1188px, calc(100% - 120px));
  min-height: 88px;
  border: 1px solid rgba(101,236,255,.18);
  border-radius: 22px;
  background: rgba(3, 20, 42, .66);
  box-shadow: 0 20px 54px rgba(0,0,0,.27), inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
  overflow: hidden;
}
.stats-bar div {
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 12px 24px;
  border-right: 1px solid rgba(255,255,255,.09);
}
.stats-bar div:last-child { border-right: 0; }
.stats-bar span {
  color: #4fcaff;
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.02em;
  text-shadow: 0 0 20px rgba(79,202,255,.24);
}
.stats-bar small {
  color: rgba(224,239,249,.78);
  font-size: 13px;
  line-height: 1.28;
  font-weight: 720;
}


@keyframes regionGlow {
  0% {
    filter:
      drop-shadow(0 0 4px var(--hover-color, #65ecff))
      drop-shadow(0 0 14px var(--hover-color, #65ecff))
      drop-shadow(0 0 24px var(--hover-color-soft, rgba(101,236,255,.36))) !important;
  }
  100% {
    filter:
      drop-shadow(0 0 8px var(--hover-color, #65ecff))
      drop-shadow(0 0 22px var(--hover-color, #65ecff))
      drop-shadow(0 0 40px var(--hover-color-soft, rgba(101,236,255,.50))) !important;
  }
}

@keyframes dashMove { to { stroke-dashoffset: -56; } }
@keyframes hubPulse {
  0% { transform: scale(.52); opacity: .95; }
  100% { transform: scale(1.35); opacity: 0; }
}

@media (max-width: 1280px) {
  .site-header { grid-template-columns: 205px 1fr auto; padding: 0 18px; }
  .hero-copy { width: min(470px, 40vw); }
  .association-panel { width: min(360px, 34vw); }
  .stats-bar { width: min(1000px, calc(100% - 120px)); grid-template-columns: repeat(5, minmax(110px, 1fr)); }
}

@media (max-width: 1040px) {
  :root { --header-h: 72px; }
  .site-header { grid-template-columns: 170px 1fr auto; }
  .hero { padding: 16px; }
  .hero-map-card { min-height: 980px; }
  .hero-copy { position: relative; left: auto; top: auto; width: auto; padding: 22px 20px 0; }
  .map-wrap { inset: 250px 16px 300px 16px; }
  .association-panel { left: 20px; right: 20px; top: auto; bottom: 122px; width: auto; max-height: 360px; }
  .stats-bar { left: 20px; right: 20px; bottom: 18px; transform: none; width: auto; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats-bar div:nth-child(n+5) { display: none; }
}

@media (max-width: 640px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-page-title { display: none; }
  .brand { width: 166px; }
  .hero-map-card { min-height: 1040px; border-radius: 22px; }
  h1 { font-size: 34px; }
  .map-wrap { inset: 300px 10px 420px 10px; }
  .association-panel { bottom: 152px; padding: 14px; }
  .panel-head { grid-template-columns: 72px 1fr; }
  .panel-logo-wrap { width: 72px; height: 72px; }
  .panel-logo-wrap img { width: 56px; height: 56px; }
  .panel-code { font-size: 23px; }
  .panel-facts { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; max-height: 120px; overflow: auto; }
}
