:root {
  --bg-page: #edf3fb;
  --bg-shell: #ffffff;
  --bg-soft: #f5f8ff;
  --bg-muted: #eef4ff;
  --bg-card: #ffffff;
  --color-text: #1b2430;
  --color-heading: #112a5b;
  --color-primary: #103d8f;
  --color-primary-soft: #dfe9ff;
  --color-muted: #5b6f8a;
  --color-border: #dfe7f5;
  --color-border-strong: #c7d5ee;
  --color-accent: #0d4aa7;
  --color-link: #0d4aa7;
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--color-text);
  font-family: Verdana, Arial, sans-serif;
  font-size: 8pt;
  line-height: normal;
  overflow-x: hidden;
}

body {
  position: relative;
  background: linear-gradient(180deg, #edf3fb 0%, #e9edf5 100%);
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

A {
  color: var(--color-link);
  font-family: Verdana, Arial, sans-serif;
  font-size: 8pt;
  text-decoration: none;
}

A:hover {
  color: var(--color-accent);
  font-family: Verdana, Arial, sans-serif;
  font-size: 8pt;
  text-decoration: underline;
}

A:visited {
  color: var(--color-link);
  font-family: Verdana, Arial, sans-serif;
  font-size: 8pt;
}

A:link {
  color: var(--color-link);
  font-family: Verdana, Arial, sans-serif;
  font-size: 8pt;
}

.legacy-shell {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  background: #ffffff;
  min-height: 100vh;
  border: 1px solid #c9ced6;
  box-shadow: 0 0 0 1px #eef2f7;
}

.legacy-shell > .row {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.legacy-border-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  background: url('/ol/images/borderleft.gif') repeat-y top left;
  z-index: 0;
}

.legacy-menu {
  position: relative;
  padding: 0 0 0 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border-right: 1px solid #e4e7ee;
  font-size: 1rem;
  overflow: visible;
}

.legacy-menu *,
.right-rail *,
.legacy-content * {
  font-family: Verdana, Arial, sans-serif;
  font-size: 8pt;
}

.legacy-content {
  min-width: 0;
  max-width: none;
  padding: 0 18px 0 18px;
  background: #ffffff;
  border-left: 1px solid #eef2f9;
  border-right: 1px solid #eef2f9;
  font-size: 1rem;
}

.right-rail {
  position: relative;
  padding: 14px 12px 12px;
  background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 100%);
  border-left: 1px solid #e4e7ee;
  top: auto;
  align-self: stretch;
  height: auto;
  font-size: 1rem;
  overflow: visible;
}

.right-rail-box {
  background: #f8faff;
  border: 1px solid #d9e3ff;
  padding: 12px 10px;
}

.right-rail-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.right-rail-list li {
  display: grid;
  gap: 3px;
  padding: 8px 8px 9px;
  border: 1px solid #dfe8ff;
  background: #ffffff;
}

.rail-day-group {
  display: grid;
  gap: 6px;
}

.rail-activity {
  display: grid;
  gap: 2px;
  padding-top: 4px;
  border-top: 1px solid #edf1ff;
}

.rail-day {
  display: inline-block;
  color: #000099;
  font-weight: bold;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.right-rail-list strong {
  color: #00009c;
  font-size: 0.92rem;
  line-height: 1.35;
}

.right-rail-list small {
  color: #333;
  line-height: 1.45;
  font-size: 0.78rem;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px 10px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #dfe8ff;
  color: #000099;
  font-weight: bold;
  font-size: 14px;
}

.brand-box strong,
.brand-box small {
  display: block;
}

.brand-box strong {
  font-size: 1rem;
}

.brand-box small {
  color: #666666;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-box,
.menu,
.menu-block {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}

.login-box {
  padding: 10px 10px 12px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: linear-gradient(180deg, #f9fbff 0%, #f1f6ff 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.login-form {
  display: grid;
  gap: 8px;
}

.login-form label {
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
  color: #2c2c2c;
}

.login-form label span {
  font-weight: 600;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  border: 1px solid #b8c4e8;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.9rem;
  background: #fff;
}

.remember-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 2px;
}

.login-form button {
  width: 88px;
  justify-self: end;
  border: 1px solid #b8c4e8;
  border-radius: 6px;
  background: linear-gradient(180deg, #edf4ff 0%, #dfeaff 100%);
  color: #000099;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
}

.logged-user {
  display: grid;
  gap: 4px;
  color: #000099;
  font-size: 0.9rem;
}

.logged-user strong {
  color: #000099;
}

.logged-user a {
  color: #000099;
  font-weight: bold;
}

.menu a,
.menu-block a {
  display: block;
  padding: 2px 4px;
  color: #000099;
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 600;
}

.menu-header {
  margin: 10px 0 4px;
  color: #00009c;
  font-family: Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: bold;
  letter-spacing: 0.02em;
}

.training-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 4px;
  color: #00009c;
  font-family: Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.training-icon {
  width: 14px;
  height: 14px;
  color: #00009c;
  flex-shrink: 0;
}

.sponsor-box {
  padding: 0 0 6px;
}

.sponsor-tag {
  display: grid;
  place-items: center;
  min-height: 36px;
  background: #f1f4ff;
  border: 1px solid #d8d8d8;
  color: #000099;
  font-weight: bold;
  font-size: 0.82rem;
}

.content-strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 -18px 0;
  padding: 12px 18px 26px;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(90deg, rgba(220, 233, 255, 0.75) 0%, rgba(255, 255, 255, 0.98) 35%, rgba(220, 233, 255, 0.75) 100%);
}

.content-strip::after {
  display: none;
}

.content-strip__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.content-strip__logo {
  display: block;
  width: 150px;
  max-width: 42%;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(11, 45, 104, 0.12));
}

.topbar {
  width: auto;
  margin: 0 -18px 12px;
  padding: 10px 18px 8px;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(223, 233, 255, 0.6) 0%, rgba(255,255,255,0) 100%);
}

.topbar h1 {
  margin: 0;
  width: 100%;
  display: block;
  text-align: center;
  color: var(--color-heading);
  font-family: Arial, sans-serif;
  font-size: clamp(2.1rem, 2.8vw, 2.9rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  white-space: nowrap;
  text-transform: uppercase;
}

.hero-panel,
.info-card,
.event-item,
.news-admin {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  border: 1px solid var(--color-border-strong);
  box-shadow: inset 0 0 0 1px rgba(16, 61, 143, 0.04), 0 6px 18px rgba(15, 23, 42, 0.04);
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.home-news-panel {
  grid-column: 1;
  margin-bottom: 0;
}

.home-image-panel {
  grid-column: 2;
  margin-bottom: 0;
}

.home-intro-panel {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.home-intro-panel > p {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.15rem;
  line-height: 1.55;
  font-weight: 500;
}

.weekly-image-panel a {
  display: block;
}

.weekly-image-panel img {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 153, 0.18);
  background: #eef3ff;
}

.info-card.accent {
  background: #f8faff;
  border: 1px solid #d0d7e8;
  border-left: 4px solid #000099;
}

.eyebrow,
.section-tag {
  color: #00009c;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}

.hero-panel h2,
.info-card h3,
.event-item h3 {
  color: #00009c;
  font-family: Arial;
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 8px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.info-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card {
  min-height: 180px;
}

.news-list-home {
  display: grid;
  gap: 12px;
}

.home-news-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #e9edf5;
  align-items: start;
}

.home-news-item:last-child {
  border-bottom: none;
}

.home-news-body {
  min-width: 0;
}

.home-news-body h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.35;
}

.home-news-body h4 a,
.info-card a {
  color: #000099;
  font-weight: bold;
}

.home-news-item .news-thumb-wrap {
  width: 100%;
  min-height: 72px;
}

.home-news-item .news-thumb {
  min-height: 72px;
}

.home-news-item .news-thumb-date {
  font-size: 0.66rem;
  left: 5px;
  bottom: 5px;
}

.home-news-item .news-summary {
  margin: 0;
  font-size: 0.9rem;
}

.home-news-item .news-summary > :first-child {
  margin-top: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-list span {
  background: #f2f5ff;
  border: 1px solid #d8e0ff;
  color: #000099;
  padding: 4px 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-list-block {
  display: grid;
  gap: 12px;
}

.news-admin {
  display: grid;
  gap: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.news-admin h2,
.news-admin h3 {
  margin: 0;
  color: var(--color-heading);
}

.news-admin form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  color: var(--color-heading);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  border: 1px solid var(--color-border-strong);
  border-radius: 10px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--color-text);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(16, 61, 143, 0.12);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--color-text);
}

.checkbox-row input {
  width: auto;
  accent-color: var(--color-primary);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.form-actions button,
.form-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

.form-actions a {
  background: #ffffff;
  color: var(--color-primary);
}

.notice {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #edf8ee;
  border: 1px solid #bfdcc6;
  color: #1f5e36;
  font-weight: 600;
}

.news-admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.news-admin-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #ffffff;
}

.news-admin-list span {
  color: var(--color-muted);
  font-size: 0.8rem;
}

.news-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #d8d8d8;
  border-left: 4px solid #dfe8ff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.01);
  align-items: start;
}

.news-thumb-wrap {
  position: relative;
  display: block;
  min-height: 84px;
  background: #eef4ff;
  border: 1px solid #d0d7e8;
  overflow: hidden;
}

.news-thumb {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 84px;
  object-fit: cover;
  background: #eef3ff;
}

.news-thumb-date {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(13, 74, 167, 0.18);
  color: #000099;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 3px 6px;
  line-height: 1.2;
}

.news-body {
  min-width: 0;
}

.news-body h3 {
  margin: 0;
  color: #00009c;
  font-family: Arial;
  font-size: 14px;
}

.news-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 4px;
}

.news-meta {
  margin: 0;
  color: #000099;
  font-size: 0.72rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-author-inline {
  color: #4f5d75;
  font-size: 0.72rem;
  font-weight: 600;
}

.news-summary {
  margin: 2px 0 8px;
  color: #222;
  line-height: 1.6;
}

.news-summary > :first-child {
  margin-top: 0;
}

.news-summary > p,
.news-summary > div,
.news-summary > span,
.news-summary > strong,
.news-summary > em,
.news-summary > a {
  display: inline;
  margin: 0;
}

.news-summary p,
.news-summary div,
.news-summary ul,
.news-summary ol,
.news-summary blockquote,
.news-summary span,
.news-summary strong,
.news-summary em,
.news-summary a {
  margin-top: 0;
  margin-bottom: 0;
}

.news-readmore {
  margin: 0;
}

.news-detail {
  background: #ffffff;
  border: 1px solid #d8d8d8;
  padding: 16px;
}

.news-article-header {
  padding: 0;
  margin: 0 0 10px;
  background: transparent;
  border: 0;
}

.news-article-header .section-tag {
  margin: 0 0 6px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.2;
}

.news-article-header h2 {
  margin: 0 0 8px;
  font-family: Arial, sans-serif;
  font-size: 23px;
  font-weight: bold;
  line-height: 1.2;
  color: #00009c;
}

.news-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #1e1e1e;
  font-size: 13px;
  line-height: 1.3;
}

.news-detail .back-link {
  margin-bottom: 16px;
}

.news-lead {
  color: #1a1a1a;
  font-size: 8pt;
  margin: 0 0 16px;
}

.weekly-image-caption,
.weekly-image-caption > * {
  display: block;
  width: 100%;
  margin: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  line-height: 1.5;
}

.home-intro-panel > p,
.home-intro-panel > div,
.news-lead > p,
.news-lead > div {
  display: block;
  margin: 0 0 0.75em;
}

.news-detail-body > p,
.news-detail-body > div,
.news-detail-body > ul,
.news-detail-body > ol,
.news-detail-body > blockquote,
.news-detail-body > table,
.news-detail-body > pre,
.news-detail-body > hr {
  display: block;
  margin: 0 0 1em;
}

.news-detail-body > span,
.news-detail-body > strong,
.news-detail-body > em,
.news-detail-body > a {
  display: inline;
  margin: 0;
}

.news-detail-body {
  color: #222;
  line-height: 1.7;
  margin-bottom: 20px;
}

.news-gallery {
  columns: 3 220px;
  column-gap: 16px;
  margin-top: 20px;
}

.news-gallery figure {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  padding: 8px;
  border: 1px solid #e4e7ee;
  background: #f7f9ff;
  break-inside: avoid;
}

.news-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #d0d7e8;
}

.news-gallery figcaption {
  margin-top: 8px;
  color: #4a4a4a;
  font-size: 11px;
}

.news-preformatted,
.news-preformatted * {
  font-family: "Courier New", Courier, monospace !important;
  font-size: 8pt !important;
  line-height: normal !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.news-preformatted {
  margin: 16px 0;
  padding: 0;
  background: transparent;
  border: 0;
  white-space: pre;
  overflow-x: auto;
  color: #1d1d1d;
  line-height: normal;
}

.news-preformatted-html {
  white-space: normal;
  font-family: Verdana, Arial, sans-serif;
  font-size: 8pt;
  line-height: normal;
}

.news-preformatted-html table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
}

.news-preformatted-html td,
.news-preformatted-html th {
  padding: 4px 8px;
  border: 1px solid #dfe8ff;
  vertical-align: top;
}

.news-preformatted-html strong,
.news-preformatted-html b {
  font-weight: 700;
}

.news-link {
  margin-top: 18px;
}

.news-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.news-lightbox.is-open {
  display: flex;
}

.news-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
}

.news-lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1000px);
  max-height: 92vh;
  padding: 18px 18px 12px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.35);
}

.news-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.news-lightbox-image {
  display: block;
  max-width: min(92vw, 940px);
  max-height: 80vh;
  width: auto;
  height: auto;
  background: #f2f5ff;
}

.news-lightbox-caption {
  margin-top: 10px;
  color: #394a63;
  font-size: 0.8rem;
  text-align: center;
}

.news-author {
  margin-top: 24px;
  color: #444;
  font-size: 12px;
}

.news-body h3 {
  margin: 0 0 8px;
  color: #00009c;
  font-family: Arial;
  font-size: 14px;
}

.mini-list {
  margin: 10px 0 0;
  padding-left: 18px;
}

.mini-list li {
  margin-bottom: 4px;
}

.info-card ul {
  margin: 0;
  padding-left: 16px;
}

.info-card li {
  margin-bottom: 6px;
}

.event-list {
  display: grid;
  gap: 10px;
}

.event-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  align-items: center;
}

.event-date {
  background: #eef4ff;
  border: 1px solid #d0d7e8;
  padding: 10px 8px;
  text-align: center;
  font-weight: bold;
  color: #000099;
}

.event-date span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 1000px) {
  .home-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .home-news-panel,
  .home-image-panel,
  .home-intro-panel {
    grid-column: auto;
    margin-bottom: 0;
    width: 100%;
  }

  .home-image-panel {
    order: 1;
  }

  .home-intro-panel {
    order: 2;
  }

  .home-news-panel {
    order: 3;
  }

  .legacy-shell {
    width: 100%;
    display: block;
  }

  .legacy-border-left {
    display: none;
  }

  .legacy-menu {
    border-right: 1px solid #e4e7ee;
  }

  .legacy-content {
    width: auto;
    max-width: none;
    padding: 0 10px;
  }

  .right-rail {
    display: block;
  }

  .info-grid,
  .info-grid.two-columns {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) {
  .menu-toggle,
  .training-toggle {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .menu-toggle,
  .training-toggle {
    position: fixed;
    top: 14px;
    z-index: 60;
    border: 1px solid rgba(0, 0, 153, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    display: flex;
  }

  .menu-toggle {
    left: 14px;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  .training-toggle {
    right: max(14px, env(safe-area-inset-right));
    padding: 8px 10px;
    gap: 4px;
    font-size: 0.68rem;
    color: #000099;
    font-weight: bold;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    text-transform: lowercase;
    letter-spacing: 0.02em;
    min-width: 62px;
  }

  .training-toggle .training-icon {
    width: 14px;
    height: 14px;
    color: #000099;
    flex-shrink: 0;
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #000099;
  }

  .content-strip {
    margin: 0 -16px 0;
    padding: 8px 12px 12px;
  }

  .content-strip__logo {
    width: 160px;
    max-width: 58%;
  }

  .topbar {
    margin: 0 -16px 10px;
    padding: 8px 12px 6px;
  }

  .topbar h1 {
    letter-spacing: 0;
    white-space: nowrap;
    font-size: clamp(1.8rem, 5vw, 2.4rem);
  }

  .legacy-menu {
    padding: 72px 10px 20px;
  }

  .menu,
  .menu-block {
    display: grid;
    gap: 5px;
  }

  .menu a,
  .menu-block a {
    min-height: 37px;
    padding: 7px 10px;
    border: 1px solid rgba(0, 0, 153, 0.12);
    border-radius: 8px;
    background: rgba(223, 232, 255, 0.34);
    line-height: 1.25;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: flex;
    align-items: center;
  }

  .menu-header {
    margin: 8px 0 4px;
    padding-left: 2px;
    font-size: 0.78rem;
    font-weight: 800;
  }

  .menu-block:nth-of-type(2) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;
  }

  .menu-block:nth-of-type(2) .menu-header {
    grid-column: 1 / -1;
  }

  .menu-block:nth-of-type(2) a {
    min-height: 40px;
    display: flex;
    align-items: center;
  }

  .sponsor-box {
    display: grid;
    gap: 6px;
  }

  .sponsor-tag {
    min-height: 32px;
    font-size: 0.78rem;
  }

  .menu-backdrop {
    position: fixed;
    inset: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 30;
  }

  body.menu-open .menu-backdrop,
  body.training-open .menu-backdrop {
    opacity: 0;
    pointer-events: auto;
  }

  .legacy-shell {
    max-width: none;
    width: 100%;
    margin: 0;
    border: none;
    box-shadow: none;
    display: block;
  }

  .legacy-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: min(82vw, 310px);
    min-height: 100%;
    max-height: 100vh;
    padding: 16px 14px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
    border-right: 1px solid #dfe4f5;
    box-shadow: 12px 0 30px rgba(15, 23, 42, 0.18);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 40;
  }

  body:not(.menu-open) .legacy-menu {
    transform: translateX(-105%);
  }

  body.menu-open .legacy-menu {
    transform: translateX(0);
  }

  .legacy-content {
    width: 100%;
    max-width: none;
    padding: 18px 16px 20px;
  }

  .right-rail {
    position: absolute;
    top: 0;
    right: 0;
    width: min(82vw, 310px);
    min-height: 100%;
    max-height: 100vh;
    padding: 16px 14px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
    border-left: 1px solid #dfe4f5;
    box-shadow: -12px 0 30px rgba(15, 23, 42, 0.18);
    transform: translateX(105%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 40;
  }

  body:not(.training-open) .right-rail {
    transform: translateX(105%);
  }

  body.training-open .right-rail {
    transform: translateX(0);
  }

  .topbar {
    padding-left: 58px;
    padding-top: 10px;
  }

  .menu {
    display: grid;
    gap: 6px;
  }

  .login-box {
    margin-top: 0;
    padding: 10px 8px 10px;
  }

  .login-form button {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 640px) {
  .menu-toggle {
    left: 8px;
    width: 40px;
    height: 40px;
  }

  .training-toggle {
    right: 12px;
    padding: 8px 10px;
    font-size: 0.7rem;
  }

  .brand-box {
    padding-left: 4px;
  }

  .menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .menu a,
  .menu-block a {
    padding: 4px 6px;
    line-height: 1.3;
  }

  .login-form button {
    width: 100%;
    justify-self: stretch;
  }

  .news-item,
  .event-item {
    grid-template-columns: 1fr;
  }

  .news-date-box,
  .event-date {
    min-height: 48px;
  }

  .legacy-content {
    padding: 0 8px 12px;
  }

  .topbar {
    padding-top: 8px;
    padding-left: 52px;
    padding-right: 76px;
  }
}
