:root {
  --bg: #050505;
  --panel: #10100f;
  --panel-soft: #171613;
  --text: #f7f0dd;
  --muted: #b5aa91;
  --gold: #d9a84a;
  --gold-light: #ffe08a;
  --line: rgba(217, 168, 74, 0.22);
  --white-soft: rgba(255, 255, 255, 0.72);
  font-family: Inter, "Noto Serif SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
  scrollbar-color: rgba(217, 168, 74, 0.5) rgba(12, 11, 10, 0.72);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(12, 11, 10, 0.72);
}

::-webkit-scrollbar-thumb {
  border: 2px solid rgba(12, 11, 10, 0.72);
  border-radius: 999px;
  background: rgba(217, 168, 74, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 224, 138, 0.66);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.24), var(--bg) 710px),
    radial-gradient(circle at 84% 28%, rgba(217, 168, 74, 0.12), transparent 28rem),
    var(--bg);
  color: var(--text);
}

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

button,
input,
select {
  font: inherit;
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reader-in {
  from {
    opacity: 0.55;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(88px, 1fr);
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease, padding 200ms ease;
}

.site-header.is-scrolled {
  padding-block: 12px;
  border-color: var(--line);
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  justify-self: start;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.2vw, 30px);
  color: var(--white-soft);
  font-size: 13px;
  min-width: 0;
}

.site-nav a {
  position: relative;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 160ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  content: "";
  opacity: 0;
  transform: scaleX(0.2);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  color: var(--gold-light);
}

.site-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.research-header-actions {
  grid-column: 3;
  justify-self: end;
}

.header-back {
  min-height: 40px;
  padding-inline: 14px;
  font-size: 13px;
}

.lang-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
}

.lang-toggle:hover {
  border-color: rgba(255, 224, 138, 0.56);
}

.primary-btn,
.secondary-btn,
.contact-form button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.primary-btn::before,
.secondary-btn::before,
.contact-form button::before,
.lang-toggle::before,
.admin-panel button::before,
.admin-editor button::before,
.category-editor button::before,
.admin-upload button::before,
.article-classifier button::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.34), transparent 34%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.primary-btn:hover,
.secondary-btn:hover,
.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.primary-btn:hover::before,
.secondary-btn:hover::before,
.contact-form button:hover::before,
.lang-toggle:hover::before,
.admin-panel button:hover::before,
.admin-editor button:hover::before,
.category-editor button:hover::before,
.admin-upload button:hover::before,
.article-classifier button:hover::before {
  opacity: 1;
}

.contact-form button {
  color: #12100a;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 58%, #956a22);
  font-weight: 700;
}

.primary-btn,
.secondary-btn {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 120px clamp(20px, 6vw, 96px) 88px;
}

.hero-compact {
  min-height: 78vh;
  padding-bottom: 72px;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.82;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.62) 38%, rgba(5, 5, 5, 0.2) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.08) 0%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding-top: 64px;
  animation: fade-rise 820ms ease both;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(48px, 9vw, 118px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  width: min(560px, 100%);
  margin: 28px 0 0;
  color: rgba(247, 240, 221, 0.78);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.9;
}

.hero-compact .hero-copy {
  width: min(500px, 100%);
}

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

.section {
  padding: 96px clamp(20px, 6vw, 96px);
}

.hero-compact + .research-preview {
  padding-top: 78px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: start;
}

h2 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(30px, 4.8vw, 58px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 18px 0 12px;
  font-size: 22px;
}

p {
  color: var(--muted);
  line-height: 1.85;
}

.intro p,
.section-head p,
.process-copy p,
.contact p {
  margin: 0;
  font-size: 17px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.metrics div {
  min-height: 138px;
  padding: 32px clamp(20px, 6vw, 72px);
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  color: var(--gold-light);
  font-family: "Noto Serif SC", serif;
  font-size: clamp(26px, 3.2vw, 42px);
}

.metrics span {
  margin-top: 10px;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 42px;
}

.section-head-minimal {
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.section-head p {
  width: min(480px, 100%);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.focus-grid article {
  min-height: 300px;
  padding: 34px;
  background:
    linear-gradient(145deg, rgba(217, 168, 74, 0.08), transparent 42%),
    var(--panel);
}

.focus-grid span {
  color: var(--gold);
  font-weight: 700;
}

.focus-grid p {
  margin-bottom: 0;
}

.research-preview {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 38%),
    #070706;
}

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

.article-card {
  position: relative;
  min-height: 230px;
  padding: 30px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(217, 168, 74, 0.09), transparent 46%),
  var(--panel);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.article-card::after {
  position: absolute;
  right: 24px;
  bottom: 22px;
  width: 42px;
  height: 1px;
  background: var(--gold-light);
  content: "";
  opacity: 0.35;
  transform: scaleX(0.45);
  transform-origin: right;
  transition: opacity 180ms ease, transform 180ms ease;
}

.article-card:hover {
  border-color: rgba(255, 224, 138, 0.48);
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
}

.article-card:hover::after,
.article-card.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.article-card.is-active {
  border-color: rgba(255, 224, 138, 0.62);
  background:
    linear-gradient(145deg, rgba(217, 168, 74, 0.16), transparent 48%),
    var(--panel);
}

.article-card span,
.reader-category {
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-card h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 24px;
  line-height: 1.25;
}

.article-card small {
  color: rgba(247, 240, 221, 0.52);
}

.card-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--gold-light);
  font-weight: 700;
}

.article-card-empty {
  cursor: default;
}

.text-link {
  display: inline-flex;
  margin-top: 26px;
  color: var(--gold-light);
  font-weight: 700;
}

.text-link-top {
  margin-top: 0;
  white-space: nowrap;
}

.subpage {
  padding-top: 72px;
}

.archive-hero {
  padding-bottom: 28px;
}

.archive-hero h1 {
  width: min(760px, 100%);
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(34px, 4.7vw, 58px);
  line-height: 1.1;
}

.archive-hero p {
  width: min(760px, 100%);
  margin-top: 14px;
  font-size: 16px;
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(540px, 1.2fr);
  gap: clamp(22px, 3vw, 40px);
  padding-top: 14px;
  align-items: start;
}

.archive-sidebar {
  display: grid;
  gap: 18px;
  align-self: start;
}

.archive-tools {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(14, 13, 11, 0.78);
}

.search-field {
  display: grid;
  gap: 8px;
  color: var(--gold-strong);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.search-field input {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  padding: 0 14px;
  outline: none;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.search-field input:focus {
  border-color: rgba(198, 151, 73, 0.7);
}

.archive-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.archive-filter-head span {
  color: var(--gold-strong);
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-chip {
  min-height: 32px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  padding: 0 10px;
  cursor: pointer;
}

.category-chip small {
  margin-left: 7px;
  color: rgba(247, 240, 221, 0.52);
}

.category-chip:hover,
.category-chip.is-active {
  color: var(--gold-strong);
  border-color: rgba(198, 151, 73, 0.62);
  background: rgba(198, 151, 73, 0.1);
}

.archive-grid {
  grid-template-columns: 1fr;
  gap: 14px;
  max-height: min(720px, calc(100vh - 330px));
  overflow: auto;
  padding-right: 8px;
}

.archive-grid .article-card {
  min-height: 176px;
}

.reader-panel {
  position: relative;
  align-self: start;
  scroll-margin-top: 96px;
  min-height: 620px;
  max-height: min(820px, calc(100vh - 116px));
  overflow: auto;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.reader-panel.is-reading {
  animation: reader-in 280ms ease both;
}

.reader-panel h2 {
  margin-top: 16px;
}

.reader-content {
  margin-top: 30px;
}

.reader-content p {
  color: rgba(247, 240, 221, 0.78);
  font-size: 17px;
}

.reader-content h2,
.reader-content h3,
.reader-content h4,
.reader-content h5 {
  margin: 32px 0 14px;
  color: var(--gold-strong);
}

.reader-content a {
  color: var(--gold);
  border-bottom: 1px solid rgba(198, 151, 73, 0.45);
}

.reader-content img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  margin: 24px 0;
  border: 1px solid var(--line);
}

.reader-content blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--gold);
  background: rgba(198, 151, 73, 0.08);
}

.reader-content ul,
.reader-content ol {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding-left: 22px;
  color: rgba(247, 240, 221, 0.78);
}

.reader-content code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-strong);
}

.article-cover img {
  margin-top: 0;
}

.article-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
}

.article-table-wrap table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.025);
}

.article-table-wrap th,
.article-table-wrap td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  color: rgba(247, 240, 221, 0.78);
}

.article-table-wrap th {
  color: var(--gold-strong);
  background: rgba(198, 151, 73, 0.08);
}

.article-attachments {
  display: grid;
  gap: 10px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.article-attachments h3 {
  margin: 0 0 4px;
}

.article-attachments a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.admin-help {
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(198, 151, 73, 0.08);
  color: rgba(247, 240, 221, 0.72);
}

.admin-help strong {
  display: block;
  color: var(--gold-strong);
  margin-bottom: 6px;
}

.admin-help p {
  margin: 0;
  font-size: 13px;
}

.admin-help code {
  color: var(--gold-strong);
}

.admin-module-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 0;
  padding-bottom: 8px;
}

.admin-module-switch button {
  min-height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 0 18px;
  cursor: pointer;
}

.admin-module-switch button:hover,
.admin-module-switch button.is-active {
  border-color: rgba(255, 224, 138, 0.62);
  background: rgba(217, 168, 74, 0.12);
  color: var(--gold-light);
}

.admin-module[hidden] {
  display: none;
}

.radar-admin-module {
  padding-top: 24px;
}

.radar-admin-head {
  margin-bottom: 16px;
}

.radar-admin-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 190px);
  min-height: 720px;
  border: 1px solid var(--line);
  background: #050505;
}

.admin-list button.is-file-article {
  border-color: rgba(198, 151, 73, 0.45);
  background: rgba(198, 151, 73, 0.08);
}

.process {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1fr);
  gap: clamp(40px, 7vw, 92px);
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    var(--panel);
}

.process-copy p {
  margin-top: 24px;
}

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

.process-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 74px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.process-list span {
  color: var(--gold-light);
  font-size: 20px;
  font-weight: 700;
}

.process-list small {
  color: var(--muted);
  font-size: 14px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 520px);
  gap: clamp(36px, 7vw, 88px);
  align-items: start;
}

.contact-minimal {
  border-top: 1px solid var(--line);
  background: #050505;
}

.contact p {
  margin-top: 24px;
}

.social-link {
  display: inline-flex;
  margin-top: 26px;
  color: var(--gold-light);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.contact-form input,
.contact-form select,
.admin-page input,
.admin-page textarea,
.admin-page select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  outline: none;
}

.admin-page textarea {
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.admin-page input:focus,
.admin-page textarea:focus {
  border-color: var(--gold);
}

.contact-form button {
  margin-top: 8px;
  border: 0;
}

.admin-layout,
.admin-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding-top: 28px;
}

.admin-panel,
.admin-editor,
.category-editor,
.admin-card,
.messages-section {
  border-top: 1px solid var(--line);
}

.admin-panel,
.admin-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.admin-card {
  padding-top: 22px;
}

.admin-auth-card,
.admin-guide-card {
  min-height: 0;
}

.admin-upload,
.article-classifier,
.admin-article-card,
.category-editor {
  min-height: 360px;
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-card-head h2 {
  margin: 4px 0 0;
}

.admin-card-head span {
  color: var(--muted);
  font-size: 12px;
}

.admin-panel label,
.admin-editor label,
.category-editor label,
.admin-upload label,
.article-classifier label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.admin-panel button,
.admin-editor button,
.category-editor button,
.admin-upload button,
.article-classifier button {
  position: relative;
  min-height: 44px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease;
}

.admin-panel button:hover,
.admin-editor button:hover,
.category-editor button:hover,
.admin-upload button:hover,
.article-classifier button:hover {
  border-color: rgba(255, 224, 138, 0.5);
  transform: translateY(-1px);
}

.admin-panel > button,
.admin-editor button[type="submit"],
.category-editor button[type="submit"],
.admin-upload button[type="submit"],
.article-classifier button[type="submit"] {
  color: #12100a;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 58%, #956a22);
  font-weight: 700;
}

.admin-list {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
}

.admin-list button {
  display: grid;
  gap: 6px;
  padding: 14px;
  text-align: left;
}

.admin-list button.is-active {
  border-color: rgba(255, 224, 138, 0.62);
  background: rgba(217, 168, 74, 0.12);
}

.admin-list strong,
.admin-list small {
  display: block;
}

.admin-list small {
  color: var(--muted);
}

.admin-editor,
.category-editor {
  display: grid;
  gap: 16px;
}

.admin-file-row {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.admin-file-row strong,
.admin-file-row small,
.admin-file-row code {
  display: block;
}

.admin-file-row small,
.admin-file-row code {
  color: var(--muted);
  font-size: 12px;
}

.admin-file-row .danger-btn,
.danger-btn {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  border-color: rgba(255, 111, 92, 0.38);
  color: #ffb3a7;
  background: rgba(255, 111, 92, 0.08);
}

.admin-file-row .danger-btn:hover,
.danger-btn:hover {
  border-color: rgba(255, 111, 92, 0.7);
}

.category-admin-list button.is-derived {
  opacity: 0.75;
}

.admin-upload,
.article-classifier {
  display: grid;
  gap: 12px;
}

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

.checkbox-row {
  display: flex !important;
  align-items: center;
}

.checkbox-row input {
  width: auto;
  min-height: auto;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.editor-actions button {
  padding-inline: 18px;
}

.admin-status {
  min-height: 24px;
  margin: 0;
}

.admin-status[data-type="ok"] {
  color: var(--gold-light);
}

.admin-status[data-type="error"] {
  color: #ffb3a7;
}

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

.message-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.message-card span,
.message-card small {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 6vw, 96px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .hero-compact {
    min-height: 680px;
  }

  .hero-bg {
    object-position: 62% center;
  }

  .intro-grid,
  .process,
  .contact {
    grid-template-columns: 1fr;
  }

  .metrics,
  .focus-grid,
  .article-grid,
  .message-list {
    grid-template-columns: 1fr;
  }

  .archive-layout,
  .admin-layout,
  .admin-dashboard,
  .form-row {
    grid-template-columns: 1fr;
  }

  .reader-panel {
    position: static;
  }

  .metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics div:last-child {
    border-bottom: 0;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 18px;
  }

  .section-head-minimal {
    display: flex;
    align-items: end;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 13px;
  }

  .brand small,
  .header-back {
    display: none;
  }

  .lang-toggle {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 690px;
    padding-inline: 16px;
  }

  .hero-compact {
    min-height: 610px;
  }

  .hero-copy {
    line-height: 1.7;
  }

  .section {
    padding: 72px 16px;
  }

  .hero-compact + .research-preview {
    padding-top: 60px;
  }

  .focus-grid article,
  .contact-form {
    padding: 24px;
  }

  .process-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    display: grid;
    padding-inline: 16px;
  }
}
