:root {
  --bg: #020914;
  --ink: #f6f9ff;
  --muted: #b9c8df;
  --line: rgba(112, 180, 255, .24);
  --panel: rgba(3, 22, 52, .76);
  --panel2: rgba(5, 30, 68, .92);
  --blue: #0b74ff;
  --blue2: #0058ee;
  --radius: 8px;
  color-scheme: dark;
  font-family: Arial, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #020914;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.is-hidden { display: none !important; }
.muted { color: var(--muted); }

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: url("/references/main-desktop.png") center / cover no-repeat;
}
.login-card {
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(2, 14, 33, .9);
  box-shadow: 0 24px 90px rgba(0, 0, 0, .5);
}
.login-card h1 { margin: 24px 0 16px; font-size: 34px; line-height: 1.08; }
.login-card label { display: block; margin-bottom: 8px; color: var(--muted); }
.password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: rgba(2, 15, 36, .9);
  outline: none;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(72, 158, 255, .84); }
.error { min-height: 22px; color: #ff9b9b; }

button, .primary-btn {
  border: 0;
  border-radius: var(--radius);
  min-height: 44px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  background: linear-gradient(135deg, #1282ff, #0054ec);
  box-shadow: 0 12px 30px rgba(0, 92, 255, .26);
}
.ghost-btn, .icon-btn, .small-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  box-shadow: none;
}
.icon-btn {
  width: 44px;
  min-width: 44px;
  padding: 0;
  font-size: 23px;
}

.app-shell {
  width: 100vw;
  margin: 0 auto;
  padding: 0;
}
.reference-home {
  position: relative;
  width: 100vw;
  margin: 0 auto;
  overflow: hidden;
  background: #020b1d;
}
.section-page {
  position: relative;
  width: 100vw;
  margin: 0 auto;
  overflow: hidden;
  background: #020b1d;
}
.section-page picture,
.section-page img {
  display: block;
  width: 100vw;
  max-width: none;
  height: auto;
}
.reference-home picture,
.reference-home img {
  display: block;
  width: 100vw;
  max-width: none;
  height: auto;
}
.hotspot {
  position: absolute;
  z-index: 2;
  display: block;
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px;
  background: transparent !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  color: transparent !important;
}
.hotspot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .7);
  outline-offset: 2px;
}
.hs-home { left: 20.9%; top: 1.8%; width: 7.2%; height: 5.0%; }
.hs-learning { left: 29.4%; top: 2.0%; width: 8.1%; height: 4.8%; }
.hs-tests { left: 39.3%; top: 2.0%; width: 7.1%; height: 4.8%; }
.hs-cases { left: 48.4%; top: 2.0%; width: 7.1%; height: 4.8%; }
.hs-webinars { left: 57.1%; top: 2.0%; width: 8.5%; height: 4.8%; }
.hs-news { left: 67.2%; top: 2.0%; width: 12.4%; height: 4.8%; }
.hs-install { left: 82.8%; top: 2.4%; width: 3.1%; height: 3.6%; }
.hs-start { left: 4.8%; top: 33.6%; width: 13.3%; height: 4.2%; }
.hs-card-1 { left: 4.1%; top: 50.5%; width: 12.4%; height: 20.3%; }
.hs-card-2 { left: 17.2%; top: 50.5%; width: 12.9%; height: 20.3%; }
.hs-card-3 { left: 30.8%; top: 50.5%; width: 12.4%; height: 20.3%; }
.hs-card-4 { left: 43.7%; top: 50.5%; width: 9.1%; height: 20.3%; }
.hs-card-5 { left: 4.1%; top: 72.1%; width: 15.3%; height: 19.2%; }
.hs-card-6 { left: 20.1%; top: 72.1%; width: 14.0%; height: 19.2%; }
.hs-card-7 { left: 34.8%; top: 72.1%; width: 17.9%; height: 19.2%; }
.hs-request { left: 76.2%; top: 66.0%; width: 9.7%; height: 4.0%; }
.hs-neg-back { left: 2.0%; top: 2.0%; width: 8.0%; height: 5.0%; }
.hs-neg-courses { left: 1.6%; top: 9.2%; width: 8.8%; height: 4.4%; }
.material-hotspot-1 { left: 2.7%; top: 45.8%; width: 30.4%; height: 16.6%; }
.material-hotspot-2 { left: 34.0%; top: 45.8%; width: 30.4%; height: 16.6%; }
.material-hotspot-3 { left: 65.3%; top: 45.8%; width: 30.4%; height: 16.6%; }
.material-hotspot-4 { left: 2.7%; top: 63.8%; width: 30.4%; height: 14.0%; }
.material-hotspot-5 { left: 34.0%; top: 63.8%; width: 30.4%; height: 14.0%; }
.material-hotspot-6 { left: 65.3%; top: 63.8%; width: 30.4%; height: 14.0%; }
.material-hotspot-7 { left: 2.7%; top: 79.3%; width: 30.4%; height: 14.0%; }
.material-hotspot-8 { left: 34.0%; top: 79.3%; width: 30.4%; height: 14.0%; }
.material-hotspot-9 { left: 65.3%; top: 79.3%; width: 30.4%; height: 14.0%; }
.dynamic-panel-image {
  position: absolute;
  z-index: 1;
  display: none;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}
.dynamic-panel-image.is-visible { display: block; }
.dynamic-webinars { left: 54.95%; top: 44.53%; width: 19.53%; height: 26.95%; }
.dynamic-training { left: 75.20%; top: 44.53%; width: 21.75%; height: 26.95%; }
.topbar {
  min-height: 76px;
  display: grid;
  grid-template-columns: 318px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  position: relative;
  z-index: 4;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
}
.brand strong {
  font-size: 42px;
  line-height: .92;
  letter-spacing: 0;
}
.brand span {
  border-left: 1px solid rgba(255, 255, 255, .5);
  padding-left: 15px;
  text-transform: uppercase;
  font-size: 16px;
  line-height: 1.12;
}
.nav-tabs {
  min-width: 0;
  display: flex;
  justify-content: center;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-tabs a {
  min-width: 128px;
  min-height: 64px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  color: #edf5ff;
}
.nav-tabs a.active {
  border-color: rgba(73, 157, 255, .48);
  background: rgba(17, 90, 185, .34);
  box-shadow: inset 0 0 28px rgba(37, 137, 255, .22);
}
.nav-icon { font-size: 25px; line-height: 1; opacity: .9; }
.top-actions { display: flex; gap: 12px; align-items: center; }

.hero {
  min-height: 398px;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  margin-top: -6px;
  background:
    linear-gradient(90deg, rgba(2, 10, 24, .9) 0%, rgba(3, 23, 54, .48) 30%, rgba(2, 10, 24, .08) 72%),
    linear-gradient(180deg, rgba(2, 10, 24, 0) 62%, #020b1d 100%),
    url("/references/main-desktop.png") center top / cover no-repeat;
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: 520px;
  padding: 58px 0 0 34px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: 44px;
  line-height: 1.18;
  font-weight: 800;
}
.hero p {
  margin: 0 0 22px;
  max-width: 390px;
  font-size: 19px;
  line-height: 1.34;
  color: #edf4ff;
}

.trust-row {
  margin-top: -2px;
  padding: 0 34px 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.trust-row div {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 12px;
  color: #e7f1ff;
}
.trust-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #eef7ff;
}

.search-panel {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 22, 52, .82);
}
.search-panel.is-collapsed {
  height: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  margin: 0;
}
.search-panel label { display: block; margin-bottom: 8px; font-weight: 700; }
.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.search-results { display: grid; gap: 8px; margin-top: 12px; }
.search-item {
  width: 100%;
  text-align: left;
  display: block;
  border: 1px solid rgba(120, 184, 255, .18);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, .04);
  box-shadow: none;
}
.search-item small { color: var(--muted); }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, .47fr) minmax(390px, .55fr);
  gap: 16px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(7, 35, 78, .82), rgba(3, 16, 39, .78));
  box-shadow: inset 0 0 48px rgba(28, 122, 255, .1);
  padding: 18px;
}
.programs { grid-row: span 2; }
.tests-panel { display: none; }
.news { grid-column: 2 / 4; }
.section-head {
  min-height: 36px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}
.section-head h2, .panel h2 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.1;
}
.section-head p, .request-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}
.section-head a {
  color: #dceaff;
  font-size: 14px;
  white-space: nowrap;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.program-card {
  min-height: 250px;
  border: 1px solid rgba(103, 184, 255, .32);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  text-align: left;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(14, 111, 214, .08), rgba(1, 8, 20, .9)),
    radial-gradient(circle at 50% 18%, rgba(31, 196, 255, .34), transparent 36%),
    linear-gradient(135deg, #073b87, #021025);
  box-shadow: inset 0 0 46px rgba(24, 125, 255, .16);
}
.program-card:nth-child(5),
.program-card:nth-child(6) { grid-column: span 2; }
.program-card .card-visual {
  min-height: 115px;
  display: grid;
  place-items: center;
  font-size: 54px;
  color: #82d7ff;
  text-shadow: 0 0 24px rgba(0, 136, 255, .9);
}
.program-card .card-body {
  min-height: 112px;
  padding: 0 16px 14px;
  display: grid;
  gap: 8px;
}
.program-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.08;
}
.program-card p {
  margin: 0;
  color: #dceaff;
  line-height: 1.32;
  font-size: 14px;
}
.card-arrow {
  justify-self: end;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .1);
  font-size: 23px;
}
.program-card[data-accent="cyan"] { background-color: rgba(0, 135, 151, .35); }
.program-card[data-accent="violet"] { background-color: rgba(67, 61, 177, .36); }
.program-card[data-accent="gold"] { background-color: rgba(128, 78, 13, .34); }
.program-card[data-accent="green"] { background-color: rgba(4, 103, 76, .34); }

.material-list, .test-list, .event-list, .news-list, .admin-materials {
  display: grid;
  gap: 10px;
}
.event-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(123, 190, 255, .14);
}
.event-item:last-child { border-bottom: 0; padding-bottom: 0; }
.event-date {
  height: 60px;
  border: 1px solid rgba(141, 196, 255, .25);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  line-height: 1;
}
.event-date strong { font-size: 28px; }
.event-date small { color: var(--muted); font-size: 12px; }
.event-copy strong { font-size: 14px; }
.event-copy p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.25; }
.event-actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }

.request-panel {
  min-height: 318px;
  display: grid;
  align-content: start;
  background:
    linear-gradient(90deg, rgba(7, 35, 76, .96), rgba(4, 20, 45, .66)),
    radial-gradient(circle at 75% 70%, rgba(31, 142, 255, .26), transparent 40%),
    linear-gradient(135deg, #08295c, #021025);
}
.request-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 28px;
}
.request-icons span {
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  font-size: 28px;
}
.request-icons small {
  color: #dbeaff;
  font-size: 12px;
  line-height: 1.2;
}
.request-panel .primary-btn { justify-self: start; min-width: 175px; }

.news-list { grid-template-columns: 1fr; }
.news-item {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 70px;
}
.news-thumb {
  height: 64px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(12, 125, 255, .8), rgba(3, 24, 55, .7)),
    url("/references/main-desktop.png") center / cover no-repeat;
}
.news-item small { color: var(--muted); }
.news-item strong { display: block; margin-top: 4px; line-height: 1.25; }

.material-item, .test-item, .admin-item {
  border: 1px solid rgba(124, 186, 255, .16);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, .04);
}
.replace-material-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}
.material-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.material-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: end;
}
.small-btn {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: var(--radius);
}

.section-dialog {
  width: min(980px, calc(100% - 30px));
  max-height: min(820px, calc(100vh - 30px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel2);
  color: var(--ink);
  padding: 22px;
}
.section-dialog::backdrop { background: rgba(0, 0, 0, .64); }
.close-btn {
  position: sticky;
  top: 0;
  margin-left: auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.question { margin: 18px 0; }
.question label {
  display: block;
  margin: 8px 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
}
.install-steps { display: grid; gap: 12px; }
.install-steps section {
  border: 1px solid rgba(124, 186, 255, .16);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, .04);
}
.install-steps h3 { margin: 0 0 8px; }
.install-steps p { margin: 0; color: var(--muted); line-height: 1.45; }

.material-overlay {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #061327;
  color: var(--ink);
}
.material-overlay::backdrop { background: #020812; }
.material-overlay iframe {
  display: block;
  width: 100%;
  height: calc(100vh - 64px);
  border: 0;
  background: #061327;
}
.viewer-body { overflow: hidden; }
.viewer-top {
  height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 12, 30, .96);
}
.viewer-top .brand strong { font-size: 24px; }
.viewer-top .brand span { font-size: 12px; }
.viewer-frame {
  height: calc(100vh - 64px);
  overflow: hidden;
  background: #020812;
  touch-action: manipulation;
}
.embedded-viewer .viewer-top { display: none; }
.embedded-viewer .viewer-frame { height: 100vh; }
.viewer-media { width: 100%; height: 100%; border: 0; background: #020812; }
.viewer-frame video.viewer-media { object-fit: contain; }
.slide-viewer {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at center, #071a38 0, #020812 72%);
}
.slide-viewer canvas {
  display: block;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 88px);
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
}
.embedded-viewer .slide-viewer canvas {
  max-height: calc(100vh - 24px);
}
.slide-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 76px;
  border: 1px solid rgba(180, 215, 255, .24);
  border-radius: 8px;
  transform: translateY(-50%);
  background: rgba(3, 15, 34, .42);
  color: #fff;
  cursor: pointer;
}
.slide-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
.slide-prev { left: 18px; }
.slide-next { right: 18px; }
.slide-prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.slide-next::before { transform: translate(-65%, -50%) rotate(45deg); }
.slide-counter {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  transform: translateX(-50%);
  min-width: 64px;
  padding: 7px 12px;
  border: 1px solid rgba(180, 215, 255, .18);
  border-radius: 999px;
  background: rgba(3, 15, 34, .62);
  color: rgba(255, 255, 255, .86);
  font-size: 14px;
  text-align: center;
}
.viewer-note { max-width: 720px; margin: 40px auto; padding: 20px; }

.admin-page {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 40px;
  display: grid;
  gap: 16px;
}
.admin-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  min-height: 74px;
}
.admin-panel h1 { margin: 0 0 12px; }
.admin-panel h2 { margin-top: 0; }
.panel-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.panel-image-form {
  border: 1px solid rgba(124, 186, 255, .16);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, .04);
}
.panel-image-preview {
  min-height: 170px;
  border: 1px solid rgba(124, 186, 255, .18);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(2, 15, 36, .72);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.panel-image-preview.has-image { min-height: 220px; color: transparent; }
.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.admin-form label { display: grid; gap: 6px; color: var(--muted); }
.json-editor { min-height: 260px; font-family: Consolas, monospace; margin: 10px 0; }
.stats-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }

@media (max-width: 1360px) {
  .topbar { grid-template-columns: 260px minmax(0, 1fr) auto; gap: 12px; }
  .brand strong { font-size: 34px; }
  .brand span { font-size: 13px; }
  .nav-tabs { gap: 8px; justify-content: start; }
  .nav-tabs a { min-width: 104px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) minmax(330px, .48fr); }
  .request-panel { grid-column: 2; }
  .tests-panel { display: block; }
  .news { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  .app-shell { width: calc(100% - 32px); }
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
  .top-actions { justify-content: end; }
  .nav-tabs {
    grid-column: 1 / -1;
    justify-content: start;
  }
  .dashboard-grid { grid-template-columns: 1fr; }
  .request-panel, .news { grid-column: auto; }
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-card:nth-child(5), .program-card:nth-child(6) { grid-column: auto; }
  .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 0; }
}

@media (max-width: 720px) {
  .app-shell { width: 100%; padding: 0; }
  .reference-home { width: 100%; }
  .hs-home { left: 2.6%; top: 3.5%; width: 11.8%; height: 4.1%; }
  .hs-learning { left: 18.4%; top: 4.1%; width: 11.2%; height: 3.3%; }
  .hs-tests { left: 31.9%; top: 4.1%; width: 10.8%; height: 3.3%; }
  .hs-cases { left: 44.4%; top: 4.1%; width: 11.2%; height: 3.3%; }
  .hs-webinars { left: 57.3%; top: 4.1%; width: 12.9%; height: 3.3%; }
  .hs-news { left: 71.8%; top: 4.1%; width: 18.2%; height: 3.3%; }
  .hs-install { left: 89.2%; top: 3.8%; width: 5.0%; height: 3.6%; }
  .hs-start { left: 4.5%; top: 25.4%; width: 23.8%; height: 3.2%; }
  .hs-card-1 { left: 4.4%; top: 35.5%; width: 23.1%; height: 12.6%; }
  .hs-card-2 { left: 28.9%; top: 35.5%; width: 23.1%; height: 12.6%; }
  .hs-card-3 { left: 53.4%; top: 35.5%; width: 23.1%; height: 12.6%; }
  .hs-card-4 { left: 77.8%; top: 35.5%; width: 18.7%; height: 12.6%; }
  .hs-card-5 { left: 4.4%; top: 48.6%; width: 28.2%; height: 12.5%; }
  .hs-card-6 { left: 34.1%; top: 48.6%; width: 27.2%; height: 12.5%; }
  .hs-card-7 { left: 62.8%; top: 48.6%; width: 33.7%; height: 12.5%; }
  .hs-request { left: 47.8%; top: 72.8%; width: 22.0%; height: 2.9%; }
  .hs-neg-back { left: 3.0%; top: 1.4%; width: 12.0%; height: 4.2%; }
  .hs-neg-courses { left: 3.2%; top: 6.6%; width: 19.0%; height: 3.2%; }
  .material-hotspot-1 { left: 3.9%; top: 37.5%; width: 29.7%; height: 18.9%; }
  .material-hotspot-2 { left: 35.1%; top: 37.5%; width: 29.7%; height: 18.9%; }
  .material-hotspot-3 { left: 66.0%; top: 37.5%; width: 29.7%; height: 18.9%; }
  .material-hotspot-4 { left: 3.9%; top: 57.3%; width: 29.7%; height: 18.9%; }
  .material-hotspot-5 { left: 35.1%; top: 57.3%; width: 29.7%; height: 18.9%; }
  .material-hotspot-6 { left: 66.0%; top: 57.3%; width: 29.7%; height: 18.9%; }
  .material-hotspot-7 { left: 3.9%; top: 77.3%; width: 29.7%; height: 18.9%; }
  .material-hotspot-8 { left: 35.1%; top: 77.3%; width: 29.7%; height: 18.9%; }
  .material-hotspot-9 { left: 66.0%; top: 77.3%; width: 29.7%; height: 18.9%; }
  .dynamic-webinars { left: 2.55%; top: 68.26%; width: 42.36%; height: 17.08%; }
  .dynamic-training { left: 46.30%; top: 68.26%; width: 51.16%; height: 17.08%; }
  .topbar {
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }
  .brand strong { font-size: 34px; }
  .brand span { font-size: 13px; }
  .top-actions .icon-btn { width: 40px; min-width: 40px; }
  .nav-tabs {
    position: fixed;
    z-index: 20;
    left: 12px;
    right: 12px;
    bottom: 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(3, 18, 43, .96);
    box-shadow: 0 15px 50px rgba(0,0,0,.45);
    gap: 4px;
  }
  .nav-tabs a {
    min-width: 78px;
    min-height: 64px;
    flex: 1 0 78px;
    flex-direction: column;
    gap: 5px;
    padding: 8px 4px;
    font-size: 12px;
  }
  .nav-icon { font-size: 22px; }
  .hero {
    min-height: 418px;
    margin: 0 -12px;
    background:
      linear-gradient(90deg, rgba(2, 10, 24, .78), rgba(2, 10, 24, .18)),
      linear-gradient(180deg, rgba(2, 10, 24, 0) 70%, #020b1d 100%),
      url("/references/main-mobile.png") center top / cover no-repeat;
  }
  .hero-copy {
    width: min(360px, 100%);
    padding: 48px 0 0 28px;
  }
  .hero h1 { font-size: 32px; line-height: 1.18; }
  .hero p { font-size: 16px; max-width: 300px; }
  .primary-btn { min-width: 204px; }
  .trust-row {
    margin-top: 0;
    grid-template-columns: repeat(5, minmax(136px, 1fr));
    overflow-x: auto;
    padding: 12px 0;
  }
  .trust-row div {
    border: 1px solid rgba(123, 190, 255, .14);
    border-radius: var(--radius);
    background: rgba(4, 22, 51, .62);
  }
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-card { min-height: 255px; }
  .program-card .card-visual { min-height: 110px; }
  .program-card h3 { font-size: 18px; }
  .program-card p { font-size: 13px; }
  .webinar-panel, .request-panel { min-height: 0; }
  .request-icons { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .request-icons small { font-size: 10px; }
  .news-list {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    overflow-x: auto;
  }
  .news-item { grid-template-columns: 88px minmax(0, 1fr); }
  .news-thumb { height: 70px; }
  .search-row, .admin-form, .panel-image-grid { grid-template-columns: 1fr; }
  .material-item { grid-template-columns: 1fr; }
  .material-actions { justify-content: start; }
  .viewer-top { grid-template-columns: 1fr auto; height: auto; min-height: 64px; }
  .viewer-top .brand { display: none; }
  .viewer-frame, .material-overlay iframe { height: calc(100vh - 64px); }
}

@media (max-width: 430px) {
  .app-shell { width: calc(100% - 20px); }
  .brand strong { font-size: 30px; }
  .brand span { font-size: 11px; padding-left: 10px; }
  .hero { min-height: 430px; }
  .hero-copy { padding-left: 18px; }
  .program-grid { gap: 10px; }
  .panel { padding: 14px; }
}
