:root {
  --blue: #0a3976;
  --blue-2: #0f4a92;
  --blue-3: #eaf3ff;
  --ink: #10213d;
  --muted: #667792;
  --muted-2: #667792;
  --line: #dfe7f2;
  --soft-line: #dfe7f2;
  --surface: #ffffff;
  --surface-soft: #f7faff;
  --surface-warm: #fbf7ee;
  --green: #168354;
  --gold: #b8841a;
  --shadow: 0 10px 30px rgba(26, 55, 95, .08);
  --radius: 8px;
  --container: 1400px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafd 42%, #ffffff 100%);
  font-family: "Noto Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button,
input,
textarea {
  font: inherit;
}

.site-main {
  min-height: 54vh;
}

.container,
.page-section {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.page-section {
  padding-block: 40px 56px;
}

.page-narrow {
  width: min(100% - 32px, 960px);
}

.page-title {
  max-width: 1100px;
  margin: 0 0 10px;
  color: #0a3976;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.page-lead {
  margin: 0 0 32px;
  color: var(--muted-2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 16px rgba(8, 45, 94, .04);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(var(--container), calc(100% - 48px));
  min-height: 88px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--blue);
  font-weight: 900;
  white-space: nowrap;
}

.brand-logo {
  width: 80px;
  height: 72px;
  object-fit: contain;
}

.brand-text {
  display: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.nav-link,
.nav-group-button {
  position: relative;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
  white-space: nowrap;
}

.nav-group-button svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
  transition: transform .18s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-group:hover .nav-group-button,
.nav-group-button[aria-expanded="true"] {
  color: var(--blue);
  background: transparent;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.nav-group {
  position: relative;
}

.nav-group:hover .nav-group-button svg,
.nav-group-button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 20px 45px rgba(8, 45, 94, .12);
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #334460;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a.is-active {
  color: var(--blue);
  background: var(--blue-3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-button,
.button-primary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #062040);
  box-shadow: 0 14px 28px rgba(8, 45, 94, .2);
  font-size: 14px;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease;
}

.contact-button svg,
.button-primary svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.contact-button:hover,
.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(8, 45, 94, .24);
}

.button-secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(8, 45, 94, .35);
  border-radius: 10px;
  background: rgba(255, 255, 255, .82);
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  transition: background-color .18s ease, border-color .18s ease;
}

.button-secondary:hover {
  background: #fff;
  border-color: var(--blue);
}

.mobile-toggle {
  width: 46px;
  height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--blue);
  cursor: pointer;
}

.mobile-toggle svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.25;
}

.mobile-toggle .icon-close,
.mobile-toggle.is-open .icon-menu {
  display: none;
}

.mobile-toggle.is-open .icon-close {
  display: block;
}

.mobile-overlay,
.mobile-panel {
  display: none;
}

.hero {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .88) 34%, rgba(255, 255, 255, .22) 68%, rgba(255, 255, 255, .08) 100%),
    url("../images/hero-bg.png") center right / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: -1;
  height: 110px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  min-height: 580px;
  display: flex;
  align-items: center;
  padding: 88px 0 130px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
}

.eyebrow {
  margin: 0 0 18px;
  color: #4a5a78;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.hero h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(52px, 8vw, 86px);
  line-height: .92;
  font-weight: 950;
  text-transform: uppercase;
}

.hero p:not(.eyebrow) {
  max-width: 510px;
  margin: 28px 0 0;
  color: #3a4a5e;
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.wave-divider {
  height: 64px;
  margin-top: -1px;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: 64px;
  stroke: none;
}

.quick-links {
  position: relative;
  z-index: 3;
  margin-top: -72px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.quick-card,
.link-card,
.notice-card,
.contact-card,
.gallery-card,
.panel {
  border: 1px solid rgba(200, 212, 229, .9);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
}

.quick-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 24px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.quick-card:hover,
.link-card:hover,
.gallery-card:hover {
  transform: translateY(-3px);
  border-color: rgba(8, 45, 94, .25);
  box-shadow: 0 22px 56px rgba(8, 45, 94, .12);
}

.quick-card svg,
.card-icon {
  width: 44px;
  height: 44px;
  color: var(--blue);
  stroke-width: 1.8;
}

.quick-card h2,
.quick-card h3 {
  margin: 0;
  color: var(--blue);
  font-size: 18px;
  line-height: 1.15;
}

.quick-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.quick-arrow {
  color: var(--blue);
  font-size: 32px;
  line-height: 1;
}

.stats-section {
  padding-block: 36px;
}

.stats-panel {
  position: relative;
  overflow: hidden;
  padding: 42px 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2) 58%, #062040);
  box-shadow: 0 24px 64px rgba(8, 45, 94, .16);
}

.stats-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 95% 6%, rgba(255, 255, 255, .12), transparent 22%),
    radial-gradient(circle at 6% 100%, rgba(184, 132, 26, .2), transparent 20%);
}

.section-kicker {
  margin: 0 0 8px;
  color: #8aade0;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.section-heading {
  margin: 0 0 32px;
  color: #fff;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.08;
  text-align: center;
  font-weight: 900;
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.stat-card {
  text-align: center;
}

.stat-card svg {
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  color: #7aade0;
  stroke-width: 1.5;
}

.stat-value {
  margin-bottom: 8px;
  color: #fff;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: #a3c4e8;
  font-size: 14px;
  font-weight: 750;
}

.dark-band {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #0b1a30;
}

.dark-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/hero-bg.png") center / cover no-repeat;
  opacity: .045;
  mix-blend-mode: overlay;
}

.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 2fr;
  gap: 44px;
  padding-block: 68px;
}

.about-grid h2,
.panel h2,
.footer-nav h2,
.footer-contact h2 {
  margin: 0;
}

.about-grid h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.08;
  font-weight: 900;
}

.about-grid p {
  color: #a0b3cc;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.feature {
  padding: 18px;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, .08);
}

.feature:first-child {
  border-left: 0;
}

.feature svg {
  width: 38px;
  height: 38px;
  margin: 0 auto 12px;
  color: #5c89c5;
  stroke-width: 1.6;
}

.feature h3 {
  margin: 0;
  color: #fff;
  font-size: 14px;
}

.feature p {
  margin: 8px 0 0;
  color: #8a9bb5;
  font-size: 12px;
  line-height: 1.45;
}

.team-panel {
  padding: 32px;
  margin-block: 56px;
}

.team-panel h2 {
  color: var(--blue);
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.15;
  font-weight: 900;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 24px;
  margin-top: 22px;
  color: #3a4e6a;
}

.team-grid strong {
  color: var(--blue);
}

.panel {
  overflow: hidden;
  margin-bottom: 28px;
}

.panel-body {
  padding: 24px;
}

.panel-title {
  margin: 0 0 18px;
  color: #0a3976;
  font-size: 22px;
  font-weight: 900;
}

.table-scroll {
  overflow-x: auto;
}

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

.data-table th,
.data-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--soft-line);
  text-align: left;
  vertical-align: top;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table th {
  color: #7587a5;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.data-table td {
  color: #394b69;
}

.data-table td:first-child {
  color: #0a3976;
  font-weight: 900;
}

.data-table tbody tr:hover {
  background: #f7faff;
}

.doc-link {
  color: #667792;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
}

.prose {
  color: #4c5f7d;
}

.prose p {
  margin: 0 0 12px;
}

.migrated-content {
  width: min(100% - 32px, 1120px);
}

.legacy-content {
  padding: 28px;
  border: 1px solid rgba(223, 231, 242, .9);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
  color: #344760;
  white-space: pre-line;
}

.legacy-content > *:first-child {
  margin-top: 0;
}

.legacy-content p {
  margin: 0 0 16px;
  white-space: pre-line;
}

.legacy-content strong {
  color: #0a3976;
}

.legacy-content a {
  color: #0a3976;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.archive-reference {
  color: #52637f;
  font-weight: 750;
}

.doc-unavailable {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #667792;
  background: #f4f7fb;
  font-size: 12px;
  font-weight: 800;
}

.legacy-content .content-rule {
  width: 100%;
  height: 1px;
  margin: 18px 0;
  border: 0;
  background: var(--soft-line);
}

.legacy-content .table-scroll {
  margin: 18px 0;
  white-space: normal;
}

.legacy-content .data-table a {
  text-decoration: none;
}

.rule-block {
  margin-bottom: 30px;
}

.rule-block:last-child {
  margin-bottom: 0;
}

.rule-block h2 {
  margin: 0 0 14px;
  color: #0a3976;
  font-size: 19px;
  font-weight: 900;
}

.rule-block ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-block li {
  padding-left: 14px;
  border-left: 2px solid var(--soft-line);
  color: #4c5f7d;
}

.news-list {
  display: grid;
}

.news-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--soft-line);
}

.news-item:last-child {
  border-bottom: 0;
}

.news-date {
  color: #0a3976;
  font-size: 14px;
  font-weight: 900;
}

.news-item h2 {
  margin: 0;
  color: #172846;
  font-size: 18px;
  font-weight: 900;
}

.news-item p {
  margin: 6px 0 0;
  color: var(--muted-2);
}

.card-list {
  display: grid;
  gap: 16px;
}

.link-card,
.notice-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.link-card h2,
.notice-card h2,
.contact-card h2,
.gallery-card h2 {
  margin: 0;
  color: #172846;
  font-size: 18px;
  font-weight: 900;
}

.link-card p,
.notice-card p,
.contact-card p,
.gallery-card p {
  margin: 6px 0 0;
  color: var(--muted-2);
}

.link-url {
  display: block;
  margin-top: 6px;
  color: #0a3976;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-left: 10px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--blue);
  background: #e2f0ff;
  font-size: 12px;
  font-weight: 800;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.contact-card {
  padding: 28px;
}

.contact-card .card-icon {
  margin-bottom: 16px;
}

.contact-card a {
  color: #0a3976;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.gallery-card {
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.gallery-thumb {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .72);
  background: linear-gradient(135deg, #0a3976, #0f4a92 56%, #1b8a76);
}

.gallery-thumb.alt {
  background: linear-gradient(135deg, #0f4a92, #b8841a);
}

.gallery-thumb.deep {
  background: linear-gradient(135deg, #082b59, #0a3976 55%, #168354);
}

.gallery-thumb svg {
  width: 68px;
  height: 68px;
  stroke-width: 1.3;
}

.gallery-card-content {
  padding: 20px;
}

.not-found {
  min-height: 68vh;
  display: grid;
  place-items: center;
  padding-block: 64px;
  text-align: center;
  background: linear-gradient(180deg, var(--surface-soft), #fff);
}

.not-found-inner {
  width: min(100% - 32px, 560px);
}

.not-found h1 {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: clamp(38px, 7vw, 56px);
  line-height: 1.08;
  font-weight: 950;
}

.not-found p {
  margin: 0 auto 28px;
  max-width: 440px;
  color: var(--muted);
}

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fafd, #f1f5fb);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(8, 45, 94, .42), transparent);
}

.footer-inner {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr .75fr .75fr .75fr .75fr 1fr;
  gap: 34px;
}

.auth-grid,
.account-grid,
.listing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.auth-actions,
.listing-actions,
.moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.form-panel,
.auth-side,
.account-card,
.account-items,
.listing-main,
.listing-bids,
.moderation-card {
  padding: 26px;
}

.form-wide {
  width: min(100%, 860px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-full {
  grid-column: 1 / -1;
}

.form-panel label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  color: #31455f;
  font-size: 14px;
  font-weight: 850;
}

.form-panel input,
.form-panel textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}

.form-panel textarea {
  resize: vertical;
}

.form-panel input:focus,
.form-panel textarea:focus {
  border-color: #0a3976;
  box-shadow: 0 0 0 3px rgba(10, 57, 118, .12);
}

.form-message {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 750;
}

.form-error {
  color: #842029;
  background: #f8d7da;
}

.form-ok {
  color: #0f5132;
  background: #d1e7dd;
}

.form-note,
.form-note a {
  color: var(--muted);
}

.form-note a {
  color: var(--blue);
  font-weight: 850;
  text-decoration: underline;
}

.listing-grid,
.moderation-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.listing-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(200, 212, 229, .9);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.listing-card h2 {
  margin: 8px 0 6px;
  color: var(--blue);
  font-size: 20px;
  line-height: 1.2;
}

.listing-card p,
.auth-side p,
.account-card p,
.listing-main p,
.moderation-card p {
  color: var(--muted);
}

.listing-card strong,
.listing-price {
  color: var(--green);
  font-size: 20px;
  font-weight: 950;
  white-space: nowrap;
}

.listing-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-3);
  font-size: 12px;
  font-weight: 900;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.meta-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.meta-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
}

.meta-list dt {
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 900;
}

.meta-list dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
}

.moderation-card h2,
.account-card h2,
.account-items h2,
.listing-bids h2 {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 22px;
  font-weight: 900;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer-logo-link img {
  width: 56px;
  height: 50px;
  object-fit: contain;
}

.footer-logo-link strong {
  display: block;
  color: var(--blue);
  font-size: 18px;
}

.footer-logo-link small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.footer-brand p {
  max-width: 330px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.footer-pills a {
  padding: 8px 12px;
  border: 1px solid rgba(200, 212, 229, .9);
  border-radius: 10px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.footer-nav,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-nav h2,
.footer-contact h2 {
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.footer-nav a,
.footer-contact a,
.footer-contact p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(200, 212, 229, .65);
  color: #5c6e85;
  font-size: 12px;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 14px 30px rgba(8, 45, 94, .12);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue-3);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1240px) {
  .desktop-nav,
  .contact-button {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-overlay {
    position: fixed;
    inset: 84px 0 0;
    z-index: 40;
    background: rgba(0, 0, 0, .4);
  }

  .mobile-panel {
    position: fixed;
    inset: 84px 0 0;
    z-index: 41;
    overflow-y: auto;
    padding: 16px;
    border-top: 1px solid var(--line);
    background: #fff;
  }

  body.menu-open .mobile-overlay,
  body.menu-open .mobile-panel {
    display: block;
  }

  .mobile-panel a,
  .mobile-panel summary {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
  }

  .mobile-panel a:hover,
  .mobile-panel summary:hover {
    color: var(--blue);
    background: var(--blue-3);
  }

  .mobile-panel details {
    margin: 2px 0;
  }

  .mobile-panel details a {
    margin-left: 16px;
    color: #334460;
    border-left: 2px solid var(--blue-3);
    border-radius: 0 8px 8px 0;
  }

  .mobile-contact-button {
    margin-top: 12px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--blue), #062040) !important;
    text-align: center;
  }

  .quick-grid,
  .stats-grid,
  .about-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 76px;
  }

  .brand-logo {
    width: 56px;
    height: 50px;
  }

  .brand-text {
    display: none;
  }

  .mobile-overlay,
  .mobile-panel {
    top: 76px;
  }

  .hero,
  .hero-inner {
    min-height: 540px;
  }

  .hero-inner {
    padding: 76px 0 118px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 64px);
  }

  .hero p:not(.eyebrow) {
    font-size: 17px;
  }

  .quick-grid,
  .stats-grid,
  .about-grid,
  .about-features,
  .auth-grid,
  .account-grid,
  .listing-layout,
  .team-grid,
  .contact-grid,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

  .feature:first-child {
    border-top: 0;
  }

  .team-panel,
  .panel-body,
  .form-panel,
  .auth-side,
  .account-card,
  .account-items,
  .listing-main,
  .listing-bids,
  .moderation-card,
  .contact-card,
  .link-card,
  .notice-card {
    padding: 22px;
  }

  .form-grid,
  .listing-card,
  .meta-list div {
    grid-template-columns: 1fr;
  }

  .listing-card strong,
  .listing-price {
    white-space: normal;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .badge {
    display: flex;
    width: max-content;
    margin: 8px 0 0;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* Redesign layout shared by the MODX resources and marketplace pages. */
.section {
  padding: 36px 0;
}

.section-panel {
  overflow: hidden;
  border: 1px solid rgba(223, 231, 242, .9);
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px 8px;
}

.section-title {
  margin: 0;
  color: var(--blue);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 900;
}

.section-link {
  color: var(--blue);
  font-weight: 850;
  white-space: nowrap;
}

.events-wrap {
  overflow-x: auto;
  padding: 0 18px 22px;
}

.events-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.events-table th,
.events-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.events-table th {
  color: #7587a5;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.events-table td {
  color: #394b69;
  font-weight: 600;
}

.events-table tbody tr:last-child td {
  border-bottom: 0;
}

.date-cell {
  color: var(--blue);
  font-weight: 850;
  white-space: nowrap;
}

.badge-blue {
  color: var(--blue-2);
  background: #e2f0ff;
}

.badge-green {
  color: #168354;
  background: #dff6eb;
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) 2.3fr;
  gap: 34px;
  padding: 34px;
  border: 1px solid rgba(223, 231, 242, .9);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: var(--shadow);
}

.about-text p {
  margin: 14px 0 24px;
  color: #4c5f7d;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.benefit {
  padding: 14px 22px;
  border-left: 1px solid var(--line);
  text-align: center;
}

.benefit:first-child {
  border-left: 0;
}

.benefit svg {
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  color: var(--blue);
  stroke-width: 1.6;
}

.benefit h3 {
  margin: 0;
  color: var(--blue);
  font-size: 16px;
}

.benefit p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.legacy-content img {
  max-width: 100%;
  height: auto;
}

.legacy-content .image-fallback {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.legacy-content .data-table td > img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.legacy-content .data-table th,
.legacy-content .data-table td {
  min-width: 118px;
}

.site-footer {
  margin-top: 34px;
  padding: 42px 0 34px;
  overflow: visible;
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer::before {
  display: none;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(6, auto) 1fr;
  gap: 24px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #52637f;
  font-weight: 750;
}

.footer-brand img {
  width: 58px;
  height: 52px;
  object-fit: contain;
}

.contact-item {
  color: #52637f;
  font-weight: 700;
  white-space: nowrap;
}

.contact-item:hover {
  color: var(--blue);
}

.copyright {
  color: #7a8ba6;
  text-align: right;
  white-space: nowrap;
}

button.button-primary,
button.button-secondary {
  cursor: pointer;
}

@media (max-width: 1240px) {
  .site-header {
    background: rgba(255, 255, 255, .98);
    backdrop-filter: none;
  }

  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .mobile-overlay {
    inset: 88px 0 0;
  }

  .mobile-panel {
    inset: 88px 0 0;
  }

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

  .site-footer .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .copyright {
    text-align: left;
  }
}

@media (max-width: 880px) {
  .container,
  .page-section,
  .migrated-content {
    width: min(var(--container), calc(100% - 32px));
  }

  .page-title {
    font-size: 36px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .76)),
      url("../images/hero-bg.png") center right / cover no-repeat;
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit:nth-child(odd) {
    border-left: 0;
  }

  .benefit:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .page-section {
    padding-block: 32px 48px;
  }

  .page-title {
    font-size: 30px;
  }

  .page-lead {
    margin-bottom: 24px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }

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

  .quick-card {
    padding: 20px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 20px 8px;
  }

  .section-title {
    font-size: 25px;
  }

  .about-panel,
  .legacy-content {
    padding: 22px;
  }

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

  .benefit,
  .benefit:nth-child(odd) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .benefit:first-child {
    border-top: 0;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-item,
  .copyright {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* Content pages and calmer typography */
body {
  background: #fff;
  font-weight: 400;
}

.page-section[data-reveal] {
  opacity: 1;
  transform: none;
}

.page-title {
  margin-bottom: 14px;
  color: #16355d;
  font-size: 40px;
  line-height: 1.16;
  font-weight: 700;
}

.page-lead {
  max-width: 760px;
  color: #64748b;
  font-size: 16px;
  line-height: 1.7;
}

.brand-text strong,
.nav-link,
.nav-group-button,
.contact-button,
.button-primary,
.button-secondary,
.quick-card h2,
.quick-card h3,
.section-title,
.section-heading,
.panel-title,
.panel h2,
.notice-card h2,
.contact-card h2,
.gallery-card h2,
.listing-card h2,
.listing-card strong,
.listing-price,
.moderation-card h2,
.account-card h2,
.account-items h2,
.listing-bids h2,
.footer-nav h2,
.footer-contact h2,
.footer-logo-link strong {
  font-weight: 650;
}

.hero h1 {
  font-weight: 720;
}

.eyebrow,
.form-panel label,
.listing-badge,
.archive-reference,
.doc-unavailable,
.section-link,
.footer-pills a {
  font-weight: 550;
}

.migrated-content {
  width: min(100% - 48px, 1180px);
  padding-top: 52px;
  padding-bottom: 72px;
}

.legacy-content {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #34465e;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
}

.legacy-content strong {
  color: inherit;
  font-weight: 600;
}

.legacy-content a {
  font-weight: 550;
}

.legacy-content .content-rule {
  margin: 24px 0;
  background: #dde4ec;
}

.content-heading,
.rule-heading {
  margin: 36px 0 18px;
  color: #1b3b63;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 650;
}

.legacy-content > .content-heading:first-child,
.legacy-content > .rule-heading:first-child {
  margin-top: 0;
}

.content-heading-spaced {
  padding-top: 30px;
  border-top: 1px solid #dde4ec;
}

.table-scroll {
  margin: 20px 0 34px;
  border: 1px solid #dce4ed;
  border-radius: 6px;
  background: #fff;
}

.data-table {
  color: #34465e;
  font-size: 14px;
  line-height: 1.45;
}

.data-table th,
.data-table td,
.legacy-content .data-table th,
.legacy-content .data-table td {
  padding: 13px 15px;
  border-color: #e4e9f0;
  font-weight: 400;
  vertical-align: top;
}

.data-table th,
.legacy-content .data-table th {
  color: #304660;
  background: #f1f5f9;
  font-weight: 600;
}

.data-table td:first-child,
.archive-reference {
  font-weight: 450;
}

.data-table tbody tr:nth-child(even) {
  background: #f9fbfd;
}

.doc-unavailable {
  min-height: 0;
  padding: 3px 7px;
  color: #6b7280;
  background: #f3f4f6;
  font-size: 11px;
}

/* News */
.page-news .legacy-content {
  overflow: hidden;
  border-top: 1px solid #dce4ed;
  border-bottom: 1px solid #dce4ed;
  white-space: normal;
}

.news-entry {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 28px;
  padding: 22px 4px;
  border-bottom: 1px solid #e5eaf0;
}

.news-entry:last-child {
  border-bottom: 0;
}

.news-date {
  padding-top: 2px;
  color: #6b7b90;
  font-size: 13px;
  font-weight: 500;
}

.news-copy h2 {
  margin: 0 0 7px;
  color: #203b5e;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 620;
}

.news-copy p {
  margin: 0;
  color: #52647b;
  line-height: 1.65;
}

.news-divider {
  margin: 0;
  padding: 26px 4px 14px;
  border-bottom: 1px solid #dce4ed;
  color: #7a5b19;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 620;
}

/* Competition rules */
.page-reglament .legacy-content {
  white-space: pre-line;
}

.rule-heading {
  padding-top: 30px;
  border-top: 1px solid #dce4ed;
}

.rule-subheading {
  margin: 0 0 18px;
  color: #586b82;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
}

.rule-formula {
  width: fit-content;
  margin: 14px 0;
  padding: 12px 16px;
  border-left: 3px solid #b8841a;
  color: #253b57;
  background: #fbf7ee;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 500;
  white-space: normal;
}

/* Links */
.links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.resource-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 16px 18px;
  border: 1px solid #dce4ed;
  border-radius: 6px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.resource-link:hover {
  border-color: #9fb3ca;
  box-shadow: 0 8px 22px rgba(26, 55, 95, .08);
  transform: translateY(-2px);
}

.resource-link-title {
  color: #2b405b;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 550;
}

.resource-link-domain {
  flex: 0 0 auto;
  color: #76869b;
  font-size: 11px;
}

/* Announcements */
.announcements-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.announcement-card,
.announcement-note {
  padding: 24px;
  border: 1px solid #dce4ed;
  border-radius: 6px;
  background: #fff;
}

.announcement-card-accent {
  border-top: 3px solid #0a3976;
}

.announcement-note {
  border-left: 3px solid #b8841a;
  background: #fbf8f0;
}

.announcement-label {
  margin: 0 0 10px;
  color: #6d7d91;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.announcement-card h2,
.announcement-note h2 {
  margin: 0 0 10px;
  color: #203b5e;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 620;
}

.announcement-card p,
.announcement-note p {
  margin: 0 0 13px;
  color: #586a80;
  line-height: 1.65;
}

.announcement-card a {
  color: #0a3976;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.announcement-meta {
  font-size: 12px;
}

.announcement-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

/* Contacts and documents */
.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #dce4ed;
  border-left: 1px solid #dce4ed;
}

.contact-detail {
  display: flex;
  gap: 16px;
  min-height: 130px;
  padding: 24px;
  border-right: 1px solid #dce4ed;
  border-bottom: 1px solid #dce4ed;
  background: #fff;
}

.contact-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 5px;
  color: #0a3976;
  background: #eaf1fa;
  font-size: 13px;
  font-weight: 650;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
}

.contact-detail h2,
.document-row h2 {
  margin: 0 0 7px;
  color: #263f60;
  font-size: 16px;
  font-weight: 620;
}

.contact-detail p,
.document-row p {
  margin: 0;
  color: #64748b;
}

.contact-detail a {
  color: #0a3976;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.documents-list {
  border-top: 1px solid #dce4ed;
}

.document-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px 4px;
  border-bottom: 1px solid #dce4ed;
}

.document-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 5px;
  color: #65758a;
  background: #eef2f6;
  font-size: 10px;
  font-weight: 650;
}

.document-status {
  padding: 5px 9px;
  border-radius: 4px;
  color: #71717a;
  background: #f1f2f4;
  font-size: 11px;
}

/* Legacy gallery as a responsive catalogue */
.page-gallery .legacy-content,
.page-gallery .legacy-content .table-scroll {
  margin: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  white-space: normal;
}

.page-gallery .data-table,
.page-gallery .data-table tbody {
  display: block;
  width: 100%;
  min-width: 0;
}

.page-gallery .data-table tbody {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-gallery .data-table tr {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  min-height: 96px;
  border: 1px solid #dce4ed;
  border-radius: 6px;
  background: #fff;
}

.page-gallery .data-table td,
.page-gallery .data-table td:first-child {
  display: block;
  padding: 14px;
  border: 0;
  background: transparent;
  font-weight: 400;
}

.page-gallery .data-table td:first-child {
  padding-right: 0;
}

.page-gallery .data-table td > img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: contain;
  background: #f3f6f9;
}

.page-gallery .archive-reference {
  color: #52647b;
  font-size: 13px;
  line-height: 1.5;
}

.page-gallery .gallery-title {
  color: #2a4261;
  font-weight: 600;
}

@media (max-width: 800px) {
  .links-grid,
  .announcements-list,
  .page-gallery .data-table tbody {
    grid-template-columns: 1fr;
  }

  .news-entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .migrated-content {
    width: min(100% - 32px, 1180px);
    padding-top: 36px;
  }

  .page-title {
    font-size: 30px;
  }

  .content-heading,
  .rule-heading {
    font-size: 19px;
  }

  .contact-details-grid {
    grid-template-columns: 1fr;
  }

  .contact-detail {
    min-height: 0;
  }

  .resource-link {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .document-row {
    grid-template-columns: auto 1fr;
  }

  .document-status {
    grid-column: 2;
    justify-self: start;
  }
}
