:root {
  --bg: #f9f4ee;
  --panel: #fffaf5;
  --panel-strong: #f1e6dc;
  --border: #d8c5b4;
  --accent: #c39263;
  --accent-strong: #a86d47;
  --muted: #715b4a;
  --text: #2e241c;
  --danger: #c56556;
  --success: #6f9a6f;
  --shadow-soft: 0 14px 36px rgba(71, 47, 27, 0.12);
  --shadow-strong: 0 24px 60px rgba(71, 47, 27, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: linear-gradient(150deg, rgba(222, 195, 168, 0.3), rgba(249, 244, 238, 0.96)), var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

.top-bar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: rgba(255, 250, 245, 0.88);
  border-bottom: 1px solid rgba(216, 197, 180, 0.6);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(71, 47, 27, 0.08);
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  border-radius: 12px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.brand:hover {
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.brand:focus-visible {
  outline: 3px solid rgba(168, 109, 71, 0.35);
  outline-offset: 4px;
}

.brand-title {
  font-weight: 800;
  font-size: 19px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.7);
  transition: border 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.top-nav a:hover,
.pill-link:hover {
  border-color: var(--accent-strong);
  background: rgba(168, 109, 71, 0.12);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eyebrow {
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent-strong);
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
}

.minimal-grid {
  gap: 14px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(169, 109, 71, 0.1), transparent 30%);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(71, 47, 27, 0.16);
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.card-header.compact h3 {
  margin: 4px 0 6px;
  font-size: 20px;
}

.small {
  font-size: 14px;
}

.card-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(196, 139, 99, 0.12);
  border: 1px solid rgba(196, 139, 99, 0.32);
  border-radius: 12px;
  font-weight: 800;
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(71, 47, 27, 0.12);
}

.panel-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.muted {
  color: var(--muted);
}

.muted {
  line-height: 1.6;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.1;
  text-decoration: none;
  font-family: inherit;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  user-select: none;
  appearance: none;
  transition: border 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  background: rgba(255, 255, 255, 0.7);
}

.button.primary {
  background: linear-gradient(135deg, #d9b48f, #b57d52);
  color: #2f241b;
  border: 1px solid rgba(168, 109, 71, 0.5);
  box-shadow: var(--shadow-strong);
}

.button.ghost {
  background: rgba(196, 139, 99, 0.08);
}

.button.delete {
  font-weight: 500;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--accent-strong);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  color: var(--text);
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.form-grid .field-error input,
.form-grid .field-error select,
.form-grid .field-error textarea {
  border-color: rgba(214, 122, 78, 0.9);
  box-shadow: 0 0 0 3px rgba(214, 122, 78, 0.18);
}

.form-grid .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(196, 139, 99, 0.08);
}

.form-grid .field-error.consent {
  border-color: rgba(214, 122, 78, 0.9);
  background: rgba(214, 122, 78, 0.12);
}

.form-grid .consent input {
  margin-top: 4px;
}

.form-actions {
  margin-top: 6px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-actions.span-2 {
  grid-column: span 2;
}

.span-2 {
  grid-column: span 2;
}

.alert {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(196, 139, 99, 0.1);
  border: 1px solid rgba(196, 139, 99, 0.35);
  color: #5a3f2f;
  margin-bottom: 10px;
}

.badge {
  background: rgba(196, 139, 99, 0.16);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 12px;
  font-weight: 800;
  border: 1px solid rgba(196, 139, 99, 0.35);
}

.badge.neutral {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
}

.question-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.question {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.question-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.stage-badge {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(196, 139, 99, 0.6);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.6);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(45, 32, 24, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  padding: 20px;
}

.modal-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-strong);
  text-align: center;
}

.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.option {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(212, 175, 146, 0.1);
  transition: border 0.2s ease, background 0.2s ease;
}

.option:hover {
  border-color: var(--accent-strong);
  background: rgba(168, 109, 71, 0.08);
}

.option input {
  transform: scale(1.1);
}

.epi-intro {
  display: grid;
  place-items: center;
  min-height: 360px;
}

.sch-intro {
  display: grid;
  place-items: center;
  min-height: 360px;
}

.pdo-intro {
  display: grid;
  place-items: center;
  min-height: 360px;
}

.epi-intro-card {
  max-width: 680px;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.sch-intro-card {
  max-width: 680px;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.pdo-intro-card {
  max-width: 680px;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.epi-intro-list {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.sch-intro-list {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.pdo-intro-list {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.epi-progress {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.sch-progress {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.epi-progress-count {
  font-weight: 700;
}

.sch-progress-count {
  font-weight: 700;
}

.epi-progress-bar {
  position: relative;
  height: 8px;
  background: rgba(196, 139, 99, 0.18);
  border-radius: 999px;
  overflow: hidden;
}

.sch-progress-bar {
  position: relative;
  height: 8px;
  background: rgba(196, 139, 99, 0.18);
  border-radius: 999px;
  overflow: hidden;
}

.epi-progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d9b48f, #b57d52);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.sch-progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d9b48f, #b57d52);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.epi-questionnaire {
  display: grid;
  gap: 12px;
}

.sch-questionnaire {
  display: grid;
  gap: 12px;
}

.epi-question {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.sch-question {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.epi-question legend {
  font-weight: 600;
  padding: 0 4px;
}

.sch-question legend {
  font-weight: 600;
  padding: 0 4px;
}

.epi-question-number {
  color: var(--accent-strong);
  font-weight: 800;
  margin-right: 6px;
}

.sch-question-number {
  color: var(--accent-strong);
  font-weight: 800;
  margin-right: 6px;
}

.epi-question-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.sch-question-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.epi-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(196, 139, 99, 0.1);
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease;
}

.sch-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(196, 139, 99, 0.1);
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease;
}

.epi-option input {
  margin: 0;
}

.sch-option input {
  margin: 0;
}

.epi-option:hover {
  border-color: var(--accent-strong);
}

.sch-option:hover {
  border-color: var(--accent-strong);
}

.epi-question.is-answered {
  border-color: rgba(111, 154, 111, 0.6);
  background: rgba(111, 154, 111, 0.08);
}

.sch-question.is-answered {
  border-color: rgba(111, 154, 111, 0.6);
  background: rgba(111, 154, 111, 0.08);
}

.epi-question.has-error {
  border-color: rgba(197, 101, 86, 0.7);
  background: rgba(197, 101, 86, 0.08);
}

.sch-question.has-error {
  border-color: rgba(197, 101, 86, 0.7);
  background: rgba(197, 101, 86, 0.08);
}

.epi-error.hidden {
  display: none;
}

.sch-error.hidden {
  display: none;
}

.epi-submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.sch-submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.sch-report {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sch-section h3 {
  margin-bottom: 8px;
}

.sch-scale-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sch-scale-row {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.sch-scale-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.sch-scale-title {
  font-weight: 700;
}

.sch-scale-desc {
  color: var(--muted);
  font-size: 14px;
}

.sch-scale-score {
  font-weight: 700;
  color: #4f7a4f;
}

.sch-scale-bar {
  display: grid;
  gap: 2px;
  margin: 10px 0 8px;
}

.sch-segment {
  height: 10px;
  border-radius: 3px;
  background: rgba(196, 139, 99, 0.18);
}

.sch-segment.low.active {
  background: rgba(128, 110, 95, 0.6);
}

.sch-segment.mid.active {
  background: rgba(111, 154, 111, 0.7);
}

.sch-segment.high.active {
  background: rgba(197, 101, 86, 0.75);
}

.sch-segment.off {
  opacity: 0.35;
}

.sch-scale-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.sch-scale-level {
  font-weight: 600;
}

.sch-scale-interpretation {
  color: var(--muted);
}

.sch-summary {
  border-radius: 16px;
  padding: 16px;
  background: rgba(111, 154, 111, 0.12);
  border: 1px solid rgba(111, 154, 111, 0.3);
}

.sch-service {
  border-radius: 16px;
  border: 1px dashed rgba(111, 102, 93, 0.4);
  padding: 16px;
  font-size: 14px;
  display: grid;
  gap: 6px;
}

.alert.warning {
  background: rgba(197, 101, 86, 0.12);
  border-color: rgba(197, 101, 86, 0.4);
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
}

table th,
table td {
  border: 1px solid var(--border);
  padding: 10px;
  text-align: left;
}

table th {
  background: var(--panel-strong);
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.table-actions form {
  margin: 0;
}

.person-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(196, 139, 99, 0.12), rgba(255, 250, 245, 0.9));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 8px 0;
  box-shadow: var(--shadow-soft);
}

.footer {
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
  padding: 28px 24px 36px;
  background: rgba(255, 250, 245, 0.9);
  border-top: 1px solid rgba(216, 197, 180, 0.6);
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.footer-title {
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.footer a {
  color: var(--accent-strong);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-note {
  font-size: 12px;
  color: var(--muted);
  max-width: 1180px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .span-2,
  .form-actions.span-2 {
    grid-column: span 1;
  }

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

  .section-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .person-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

.progress {
  position: relative;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 12px 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.progress .bar {
  height: 12px;
  background: linear-gradient(135deg, #d9b48f, #b57d52);
  width: 0;
  transition: width 0.3s ease;
}

.progress .caption {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 12px;
  color: var(--muted);
}

.hidden {
  display: none;
}

.scale-row {
  display: grid;
  grid-template-columns: 200px 1fr 120px;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.scale-bar {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 10px;
  height: 12px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.scale-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #d9b48f, #b57d52);
}

.risk-block ul {
  margin: 0;
  padding-left: 18px;
}

.json-block {
  background: #1f1a15;
  color: #f6efe8;
  padding: 12px;
  border-radius: 12px;
  overflow: auto;
}

.results-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.stat {
  background: rgba(196, 139, 99, 0.1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.stat strong {
  display: block;
  font-size: 18px;
  margin-bottom: 2px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 10px;
}

.section-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(196, 146, 99, 0.1);
  color: var(--accent-strong);
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 0;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin: 12px 0 10px;
  letter-spacing: -0.02em;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}


.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(196, 139, 99, 0.4);
  background: rgba(255, 250, 245, 0.7);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-strong);
}

.highlight-panel {
  margin-top: 16px;
  background: linear-gradient(150deg, rgba(241, 230, 220, 0.9), rgba(255, 250, 245, 0.98));
}

.steps {
  display: grid;
  gap: 10px;
}

.step {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
}

.step-index {
  font-weight: 800;
  font-size: 20px;
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(196, 139, 99, 0.4);
  background: rgba(196, 139, 99, 0.1);
}

.legal-panel {
  margin-top: 16px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.legal-list {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.legal-note {
  margin-top: 12px;
}

.mlo-scale-table th,
.mlo-scale-table td,
.sten-table th,
.sten-table td {
  text-align: center;
}

.mlo-scale-table td.code,
.sten-table td.code {
  font-weight: 800;
}

.sten-table td.fact {
  font-weight: 700;
  color: var(--accent-strong);
}

.sten-bar {
  margin: 12px 0;
}

.sten-bar__segments {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}

.sten-segment {
  height: 14px;
  border-radius: 6px;
  background: #e0d4c7;
}

.sten-segment.low {
  background: linear-gradient(90deg, #d97a6d, #c56556);
}

.sten-segment.mid {
  background: linear-gradient(90deg, #b9c7a0, #9bb08a);
}

.sten-segment.high {
  background: linear-gradient(90deg, #7fbf7b, #5f9c68);
}

.sten-segment.off {
  opacity: 0.3;
}

.sten-bar.compact .sten-segment {
  height: 10px;
}

.sten-bar__label {
  font-size: 13px;
  color: var(--muted);
}

.range-bar {
  height: 12px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.range-bar.low { background: linear-gradient(90deg, rgba(111, 154, 111, 0.25), rgba(111, 154, 111, 0.12)); }
.range-bar.mid { background: linear-gradient(90deg, rgba(189, 163, 92, 0.25), rgba(189, 163, 92, 0.12)); }
.range-bar.high { background: linear-gradient(90deg, rgba(197, 101, 86, 0.25), rgba(197, 101, 86, 0.12)); }

.range-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #9cbf8b, #c39263);
  border-radius: 999px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.card.shadow {
  box-shadow: var(--shadow-soft);
}

.mmpi-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mmpi-row {
  display: grid;
  grid-template-columns: 1.2fr 2fr 60px;
  gap: 10px;
  align-items: center;
}

.mmpi-title {
  font-weight: 700;
}

.mmpi-score {
  text-align: right;
  font-weight: 800;
}

.mini-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legend {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.result-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.summary-text {
  background: rgba(160, 119, 80, 0.08);
  border: 1px solid rgba(160, 119, 80, 0.2);
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.5;
}

.epi-section {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.epi-section-header {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.6px;
  color: var(--accent-strong);
  margin-bottom: 12px;
}

.epi-scale-grid {
  display: grid;
  gap: 16px;
}

.epi-scale-row {
  display: grid;
  grid-template-columns: 180px 1fr 48px;
  gap: 12px;
  align-items: center;
}

.epi-scale-title {
  font-weight: 700;
}

.epi-scale-score {
  font-weight: 800;
  text-align: right;
}

.epi-scale-note {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: -6px;
}

.epi-scale-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.epi-scale-segments {
  display: grid;
  gap: 3px;
  align-items: center;
}

.epi-scale-segments span {
  height: 12px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
}

.epi-segment.low {
  background: linear-gradient(90deg, #a36a52, #c39263);
}

.epi-segment.mid {
  background: linear-gradient(90deg, #bfa37d, #d9b48f);
}

.epi-segment.high {
  background: linear-gradient(90deg, #c56556, #b54639);
}

.epi-segment.good {
  background: linear-gradient(90deg, #7fbf7b, #5f9c68);
}

.epi-segment.warn {
  background: linear-gradient(90deg, #d97a6d, #c56556);
}

.epi-segment.neutral {
  background: rgba(196, 139, 99, 0.25);
}

.epi-segment.off {
  opacity: 0.25;
}

.epi-scale-labels {
  position: relative;
  height: 14px;
  font-size: 11px;
  color: var(--muted);
}

.epi-scale-label {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}

.epi-temperament-card {
  background: rgba(196, 139, 99, 0.08);
  border: 1px solid rgba(196, 139, 99, 0.3);
  border-radius: 14px;
  padding: 14px;
}

.epi-temperament-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.epi-chart {
  display: flex;
  justify-content: center;
  overflow-x: auto;
}

.epi-chart svg {
  width: 100%;
  max-width: 360px;
  height: auto;
}

.epi-chart-label {
  font-size: 10px;
  fill: var(--muted);
  font-weight: 700;
}

.epi-chart-quadrant {
  font-size: 10px;
  fill: #2e241c;
  font-weight: 700;
}

.epi-text-block h4 {
  margin-bottom: 6px;
}

.epi-text-block p {
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.6;
}

.epi-toc {
  background: rgba(196, 139, 99, 0.08);
}

.epi-toc-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

.epi-toc-list a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 600;
}

.epi-toc-list a:hover {
  text-decoration: underline;
}

.epi-list {
  margin: 8px 0 12px;
  padding-left: 20px;
  line-height: 1.6;
}

.epi-key-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.epi-variant {
  margin-bottom: 16px;
}

.epi-question-list {
  margin: 10px 0 0;
  padding-left: 20px;
  line-height: 1.6;
}

.epi-answer-sheet {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.epi-answer-sheet th,
.epi-answer-sheet td {
  border: 1px solid var(--border);
  padding: 6px;
  text-align: center;
}

.epi-answer-sheet td.cell {
  height: 24px;
}

.epi-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 6px;
  margin: 12px 0 16px;
}

.epi-matrix-header {
  background: rgba(196, 139, 99, 0.18);
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: 10px;
  font-weight: 700;
  text-align: center;
}

.epi-matrix-cell {
  background: rgba(196, 139, 99, 0.08);
  border: 1px solid var(--border);
  padding: 12px 8px;
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
}

.pdo-report {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pdo-section {
  display: grid;
  gap: 14px;
}

.pdo-header {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.pdo-title-card {
  background: #f4f4f7;
  border-radius: 10px;
  border: 1px solid #d6d6dc;
  padding: 12px 16px;
}

.pdo-title-card h2 {
  margin: 0 0 6px;
}

.pdo-summary-card {
  background: #fff;
  border: 1px solid #d6d6dc;
  border-radius: 10px;
  padding: 12px 16px;
  display: grid;
  gap: 6px;
  align-content: start;
}

.pdo-summary-title {
  font-weight: 800;
  font-size: 18px;
}

.pdo-summary-meta {
  margin-top: 6px;
  font-weight: 600;
  color: #4a4a4a;
}

.pdo-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  background: #fbfbfd;
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid #d6d6dc;
}

.pdo-meta-grid {
  display: grid;
  gap: 6px;
}

.pdo-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.pdo-meta-label {
  color: var(--muted);
}

.pdo-meta-value {
  font-weight: 600;
  color: #2b2b2b;
}

.pdo-code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 12px;
  color: #6a6a6a;
  letter-spacing: 0.3px;
}

.pdo-notes {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
}

.pdo-banner {
  background: #fffde9;
  border: 1px solid #d6d6dc;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  text-align: center;
  text-transform: lowercase;
}

.pdo-section-bar {
  background: #f2f2f6;
  border: 1px solid #d6d6dc;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 700;
  text-align: center;
}

.pdo-leaders {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
}

.pdo-table-wrapper {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #d6d6dc;
  background: #fff;
}

.pdo-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.pdo-table th,
.pdo-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #d6d6dc;
  text-align: left;
  font-size: 14px;
}

.pdo-table thead th {
  font-weight: 700;
  color: #2b2b2b;
  background: #f2f2f6;
}

.pdo-table + .pdo-table {
  margin-top: 12px;
}

.pdo-table tbody tr:last-child td {
  border-bottom: none;
}

.pdo-row-reached td {
  background: rgba(38, 112, 255, 0.08);
  font-weight: 600;
}

.pdo-highlight-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.pdo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.pdo-scale-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #d6d6dc;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.pdo-scale-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.pdo-scale-title {
  font-weight: 800;
}

.pdo-scale-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.pdo-scale-score {
  font-weight: 800;
  font-size: 22px;
  color: #2b2b2b;
}

.pdo-scale-note {
  font-size: 13px;
}

.pdo-risk {
  background: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid #d6d6dc;
}

.pdo-risk ul {
  padding-left: 18px;
  margin: 8px 0 0;
}

@media (max-width: 720px) {
  .epi-scale-row {
    grid-template-columns: 1fr;
  }

  .epi-scale-score {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .pdo-header {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ОБЪЯВЛЕНИЕ В ШАПКЕ - Премьера ГИРУС-МГ
   ========================================================================== */

.top-bar {
  flex-wrap: wrap;
  gap: 14px;
}

.top-announce {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: #2f241b;
  font-weight: 700;
  font-size: 13px;
  background: linear-gradient(120deg, rgba(255, 246, 232, 0.95), rgba(255, 235, 209, 0.95));
  border: 1px solid rgba(168, 109, 71, 0.45);
  box-shadow:
    0 14px 30px rgba(168, 109, 71, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  isolation: isolate;
  animation: top-announce-pop 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.top-announce:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--accent-strong);
  box-shadow:
    0 18px 38px rgba(168, 109, 71, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.top-announce-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(255, 255, 255, 0.7) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: top-announce-shine 3.6s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.top-announce-dot {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9534f;
  box-shadow: 0 0 0 0 rgba(217, 83, 79, 0.55);
  animation: top-announce-pulse 1.8s ease-in-out infinite;
}

.top-announce-label {
  position: relative;
  z-index: 1;
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #a86d47;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(168, 109, 71, 0.12);
  border: 1px solid rgba(168, 109, 71, 0.35);
}

.top-announce-text {
  position: relative;
  z-index: 1;
  color: #2f241b;
}

.top-announce-text strong {
  font-weight: 800;
  letter-spacing: 0.4px;
}

.top-announce-arrow {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-weight: 800;
  transform: translateX(0);
  transition: transform 0.25s ease;
}

.top-announce:hover .top-announce-arrow {
  transform: translateX(4px);
}

@keyframes top-announce-shine {
  0% { transform: translateX(-120%); }
  60% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

@keyframes top-announce-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 83, 79, 0.55); }
  50% { box-shadow: 0 0 0 8px rgba(217, 83, 79, 0); }
}

@keyframes top-announce-pop {
  0% { opacity: 0; transform: translateY(-10px) scale(0.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
  .top-bar {
    justify-content: center;
  }
  .top-announce {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .top-announce-text { font-size: 12px; }
}

/* ==========================================================================
   БАННЕР НА ГЛАВНОЙ
   ========================================================================== */

.home-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  border-radius: 22px;
  text-decoration: none;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255, 246, 232, 0.95), rgba(252, 224, 191, 0.85)),
    radial-gradient(circle at 80% 20%, rgba(168, 109, 71, 0.16), transparent 60%);
  border: 1px solid rgba(168, 109, 71, 0.35);
  box-shadow:
    0 22px 48px rgba(71, 47, 27, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.home-banner::before {
  content: '';
  position: absolute;
  inset: -2px;
  background:
    conic-gradient(from 180deg at 50% 50%,
      rgba(168, 109, 71, 0.35),
      rgba(217, 180, 143, 0.05),
      rgba(217, 83, 79, 0.25),
      rgba(168, 109, 71, 0.35));
  filter: blur(28px);
  opacity: 0.55;
  z-index: -1;
  animation: home-banner-rotate 16s linear infinite;
}

.home-banner:hover {
  transform: translateY(-2px);
  border-color: var(--accent-strong);
  box-shadow:
    0 28px 60px rgba(71, 47, 27, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.home-banner-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 62%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: home-banner-shine 5s ease-in-out infinite;
  pointer-events: none;
}

.home-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 760px;
}

.home-banner-title {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.home-banner-title strong {
  font-weight: 800;
  background: linear-gradient(120deg, #a86d47, #d9534f 60%, #a86d47);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: home-banner-gradient 6s ease-in-out infinite;
}

.home-banner-mark {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #d9b48f, #b57d52);
  box-shadow: 0 8px 18px rgba(168, 109, 71, 0.4);
}

.home-banner-mark::before,
.home-banner-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
}

.home-banner-mark::before {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.7), transparent 60%);
}

.home-banner-mark::after {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  inset: 6px;
  animation: home-banner-mark-spin 4s linear infinite;
}

.home-banner-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.home-banner-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  color: #fffaf5;
  background: linear-gradient(135deg, #c39263, #a86d47 60%, #8b522a);
  box-shadow: 0 14px 32px rgba(139, 82, 42, 0.35);
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-banner:hover .home-banner-cta {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(139, 82, 42, 0.45);
}

.home-banner-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.home-banner:hover .home-banner-arrow {
  transform: translateX(4px);
}

@keyframes home-banner-shine {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

@keyframes home-banner-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes home-banner-rotate {
  to { transform: rotate(1turn); }
}

@keyframes home-banner-mark-spin {
  to { transform: rotate(1turn); }
}

@media (max-width: 760px) {
  .home-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .home-banner-cta { width: 100%; justify-content: center; }
}

/* ==========================================================================
   СТРАНИЦА ГИРУС-МГ
   ========================================================================== */

.girus-hero {
  position: relative;
  margin-top: 0;
  padding: 56px 44px 64px;
  border-radius: 28px;
  background: linear-gradient(150deg, rgba(255, 246, 232, 0.95) 0%, rgba(245, 219, 192, 0.85) 65%, rgba(217, 180, 143, 0.78) 100%);
  border: 1px solid rgba(168, 109, 71, 0.32);
  box-shadow:
    0 30px 70px rgba(71, 47, 27, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  overflow: hidden;
  isolation: isolate;
}

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

.girus-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  animation: girus-orb-drift 14s ease-in-out infinite;
}

.girus-orb-1 {
  width: 360px; height: 360px;
  top: -120px; right: -100px;
  background: radial-gradient(circle, rgba(217, 83, 79, 0.5), transparent 60%);
}

.girus-orb-2 {
  width: 320px; height: 320px;
  bottom: -140px; left: -80px;
  background: radial-gradient(circle, rgba(168, 109, 71, 0.6), transparent 60%);
  animation-delay: -4s;
  animation-duration: 16s;
}

.girus-orb-3 {
  width: 240px; height: 240px;
  top: 30%; left: 35%;
  background: radial-gradient(circle, rgba(255, 220, 175, 0.6), transparent 60%);
  animation-delay: -8s;
  animation-duration: 12s;
  opacity: 0.45;
}

.girus-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 109, 71, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 109, 71, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

@keyframes girus-orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.08); }
}

.girus-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}

.girus-hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: girus-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.girus-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(168, 109, 71, 0.35);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent-strong);
  width: max-content;
  backdrop-filter: blur(6px);
}

.girus-eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d9534f;
  box-shadow: 0 0 0 0 rgba(217, 83, 79, 0.6);
  animation: top-announce-pulse 1.8s ease-in-out infinite;
}

.girus-title {
  margin: 0;
  line-height: 1.02;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.girus-title-line {
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, #5a3a22 0%, #a86d47 35%, #d9534f 60%, #a86d47 85%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: girus-title-gradient 7s ease-in-out infinite;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.girus-title-sub {
  font-size: clamp(16px, 1.4vw, 18px);
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 6px;
  text-transform: uppercase;
}

@keyframes girus-title-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.girus-lead {
  font-size: 17px;
  color: #4a382a;
  max-width: 560px;
  line-height: 1.65;
  margin: 0;
}

.girus-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.girus-cta {
  position: relative;
  overflow: hidden;
  padding: 14px 22px;
  font-size: 15px;
}

.girus-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.girus-cta:hover::after { transform: translateX(100%); }

.girus-cta-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.girus-cta:hover .girus-cta-arrow { transform: translateX(4px); }

.girus-cta-ghost {
  padding: 14px 22px;
  font-size: 15px;
}

.girus-hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(168, 109, 71, 0.2);
  margin-top: 6px;
}

.girus-hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.girus-hero-meta-label { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.girus-hero-meta-value { font-weight: 700; color: #3a2c20; font-size: 14px; }

/* Визуал справа: лицо + орбиты + волна */

.girus-hero-visual {
  position: relative;
  width: 100%;
  height: 420px;
  display: grid;
  place-items: center;
  animation: girus-fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.girus-visual-ring {
  position: relative;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.girus-visual-ring::before,
.girus-visual-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(168, 109, 71, 0.35);
}

.girus-visual-ring::before {
  inset: -20px;
  border-style: solid;
  border-color: rgba(168, 109, 71, 0.15);
  animation: girus-ring-spin 22s linear infinite;
}

.girus-visual-ring::after {
  inset: -50px;
  animation: girus-ring-spin 30s linear infinite reverse;
}

@keyframes girus-ring-spin { to { transform: rotate(1turn); } }

.girus-visual-face {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 244, 226, 0.95), rgba(217, 180, 143, 0.7) 70%);
  display: grid;
  place-items: center;
  box-shadow:
    0 30px 70px rgba(168, 109, 71, 0.35),
    inset 0 0 60px rgba(255, 255, 255, 0.4);
  animation: girus-face-breath 4s ease-in-out infinite;
}

@keyframes girus-face-breath {
  0%, 100% { transform: scale(1); box-shadow: 0 30px 70px rgba(168, 109, 71, 0.35), inset 0 0 60px rgba(255, 255, 255, 0.4); }
  50% { transform: scale(1.02); box-shadow: 0 36px 82px rgba(168, 109, 71, 0.45), inset 0 0 80px rgba(255, 255, 255, 0.55); }
}

.girus-face-svg {
  width: 100%;
  height: 100%;
}

.girus-face-pulse circle {
  transform-origin: center;
  animation: girus-face-pulse 2.2s ease-in-out infinite;
}

.girus-face-pulse circle:nth-child(2) { animation-delay: 0.4s; }

@keyframes girus-face-pulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.6); opacity: 0; }
}

.girus-orbit {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.92);
  border: 1px solid rgba(168, 109, 71, 0.35);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--accent-strong);
  box-shadow: 0 10px 24px rgba(168, 109, 71, 0.2);
  animation: girus-orbit-float 6s ease-in-out infinite;
}

.girus-orbit-1 { top: 6%; left: 8%; animation-delay: 0s; }
.girus-orbit-2 { top: 14%; right: 4%; animation-delay: -2s; }
.girus-orbit-3 { bottom: 14%; right: 0; animation-delay: -3s; }
.girus-orbit-4 { bottom: 6%; left: 0; animation-delay: -5s; }

@keyframes girus-orbit-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.girus-visual-wave {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 8%;
  height: 80px;
  pointer-events: none;
  opacity: 0.85;
}

.girus-wave-svg { width: 100%; height: 100%; }

.girus-wave-path {
  stroke-dasharray: 12 6;
  animation: girus-wave-dash 3s linear infinite;
}

@keyframes girus-wave-dash {
  to { stroke-dashoffset: -36; }
}

@keyframes girus-fade-up {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Stats */

.girus-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.girus-stat {
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 250, 245, 0.96), rgba(241, 230, 220, 0.9));
  border: 1px solid rgba(216, 197, 180, 0.6);
  box-shadow: 0 18px 40px rgba(71, 47, 27, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.girus-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(71, 47, 27, 0.18);
}

.girus-stat-value {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #a86d47, #d9534f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.girus-stat-label { font-weight: 700; color: var(--text); font-size: 14px; }
.girus-stat-sub { color: var(--muted); font-size: 12px; }

/* Section title */

.girus-section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.girus-section-title h2 {
  margin: 8px 0 6px;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.02em;
}

/* Capabilities */

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

.girus-capability {
  position: relative;
  padding: 24px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(71, 47, 27, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.girus-capability::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(168, 109, 71, 0.4), transparent 60%);
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.girus-capability:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(71, 47, 27, 0.18);
  border-color: rgba(168, 109, 71, 0.6);
}

.girus-capability:hover::before { opacity: 1; }

.girus-capability-tag {
  display: inline-flex;
  width: max-content;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(168, 109, 71, 0.12);
  border: 1px solid rgba(168, 109, 71, 0.35);
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.girus-capability h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.girus-capability p { margin: 0; }

.girus-capability-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f5dbc0, #d9b48f);
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 28px rgba(168, 109, 71, 0.3);
  transition: transform 0.3s ease;
}

.girus-capability:hover .girus-capability-icon { transform: rotate(-6deg) scale(1.05); }

.girus-capability-icon::before {
  content: '';
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fffaf5;
}

.girus-capability-icon[data-icon="face"]::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid #a86d47;
  box-shadow:
    -8px -2px 0 -1px rgba(168, 109, 71, 0.6),
    8px -2px 0 -1px rgba(168, 109, 71, 0.6);
}

.girus-capability-icon[data-icon="voice"]::after {
  content: '';
  position: absolute;
  width: 8px; height: 22px;
  border-radius: 999px;
  background: #a86d47;
  box-shadow: -12px 0 0 -1px rgba(168, 109, 71, 0.7), 12px 0 0 -1px rgba(168, 109, 71, 0.7);
}

.girus-capability-icon[data-icon="pulse"]::after {
  content: '';
  position: absolute;
  width: 32px; height: 12px;
  background:
    linear-gradient(transparent 5px, #a86d47 5px, #a86d47 7px, transparent 7px),
    linear-gradient(transparent 5px, #a86d47 5px, #a86d47 7px, transparent 7px);
  background-size: 16px 12px, 16px 12px;
  background-position: 0 0, 50% 0;
  background-repeat: no-repeat;
  clip-path: polygon(0% 50%, 18% 50%, 25% 0%, 38% 100%, 50% 50%, 70% 50%, 78% 0%, 92% 100%, 100% 50%);
  background: #a86d47;
  height: 14px;
}

.girus-bullets {
  margin: 4px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.girus-bullets li { line-height: 1.5; }

/* Demo */

.girus-demo {
  margin-top: 18px;
}

.girus-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  grid-template-rows: auto auto;
  gap: 18px;
}

.girus-demo-card {
  position: relative;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 250, 245, 0.98), rgba(241, 230, 220, 0.92));
  border: 1px solid rgba(216, 197, 180, 0.7);
  box-shadow:
    0 18px 40px rgba(71, 47, 27, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.girus-demo-card-title {
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 800;
}

.girus-demo-traffic { grid-column: 1; grid-row: 1; }
.girus-demo-emotions { grid-column: 2; grid-row: 1 / span 2; }
.girus-demo-voice { grid-column: 1; grid-row: 2; }
.girus-demo-ppg { grid-column: 1 / span 2; grid-row: 3; }

@media (max-width: 920px) {
  .girus-demo-grid {
    grid-template-columns: 1fr;
  }
  .girus-demo-traffic,
  .girus-demo-emotions,
  .girus-demo-voice,
  .girus-demo-ppg {
    grid-column: auto;
    grid-row: auto;
  }
}

.girus-traffic-light {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #2b2017, #3e2c1f);
  box-shadow: 0 14px 30px rgba(47, 36, 27, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.girus-traffic-bulb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #4a3a2c;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.6);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.girus-traffic-bulb.active[data-bulb="red"] {
  background: #d9534f;
  box-shadow: 0 0 24px rgba(217, 83, 79, 0.7), inset 0 0 12px rgba(255, 255, 255, 0.25);
}

.girus-traffic-bulb.active[data-bulb="amber"] {
  background: #f0b232;
  box-shadow: 0 0 24px rgba(240, 178, 50, 0.7), inset 0 0 12px rgba(255, 255, 255, 0.3);
}

.girus-traffic-bulb.active[data-bulb="green"] {
  background: #5cb85c;
  box-shadow: 0 0 24px rgba(92, 184, 92, 0.7), inset 0 0 12px rgba(255, 255, 255, 0.25);
}

.girus-traffic-label {
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  min-height: 22px;
  text-align: center;
}

.girus-traffic-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
}

.girus-traffic-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.girus-traffic-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.girus-emotions-grid {
  display: grid;
  gap: 10px;
}

.girus-emotion-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}

.girus-emotion-value { color: var(--accent-strong); font-variant-numeric: tabular-nums; }

.girus-emotion-track {
  position: relative;
  height: 10px;
  background: rgba(168, 109, 71, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.girus-emotion-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, #d9b48f, #c39263, #a86d47);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 12px rgba(168, 109, 71, 0.5);
}

.girus-voice-indicator {
  position: relative;
  width: 100%;
  height: 140px;
  display: grid;
  place-items: center;
}

.girus-voice-ring {
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(168, 109, 71, 0.4);
  animation: girus-voice-ring 2.4s ease-out infinite;
}

.girus-voice-ring-2 { animation-delay: 1.2s; }

@keyframes girus-voice-ring {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.girus-voice-center {
  position: relative;
  z-index: 1;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d9b48f, #a86d47);
  color: #fffaf5;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: 0 20px 40px rgba(168, 109, 71, 0.4), inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.girus-voice-status { display: block; font-weight: 800; font-size: 14px; }
.girus-voice-acus { display: block; font-size: 11px; opacity: 0.85; margin-top: 4px; letter-spacing: 1px; }

.girus-voice-meter {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(168, 109, 71, 0.12);
  overflow: hidden;
}

.girus-voice-meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, #5cb85c, #f0b232, #d9534f);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.girus-voice-hint {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.girus-ppg-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.girus-ppg-bpm {
  font-weight: 800;
  font-size: 42px;
  background: linear-gradient(120deg, #a86d47, #d9534f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.girus-ppg-bpm small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  -webkit-text-fill-color: var(--muted);
}

.girus-ppg-confidence {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.girus-ppg-confidence > span {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.girus-ppg-conf-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(168, 109, 71, 0.12);
  overflow: hidden;
}

.girus-ppg-conf-fill {
  height: 100%;
  background: linear-gradient(90deg, #c39263, #a86d47, #5cb85c);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.girus-ppg-curve {
  width: 100%;
  height: 90px;
  background: linear-gradient(180deg, rgba(255, 250, 245, 0.6), rgba(241, 230, 220, 0.7));
  border-radius: 14px;
  border: 1px solid rgba(216, 197, 180, 0.6);
}

/* Indicators */

.girus-indicators { margin-top: 18px; }

.girus-indicators-title {
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 800;
  margin-bottom: 12px;
}

.girus-indicators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.girus-indicator {
  position: relative;
  padding: 14px 16px 14px 44px;
  border-radius: 16px;
  background: rgba(255, 250, 245, 0.95);
  border: 1px solid rgba(216, 197, 180, 0.6);
  box-shadow: 0 10px 20px rgba(71, 47, 27, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.girus-indicator:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(71, 47, 27, 0.14);
}

.girus-indicator-pulse {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c39263;
}

.girus-indicator-pulse::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.4;
  animation: girus-indicator-pulse 1.8s ease-out infinite;
}

.girus-indicator[data-accent="amber"] .girus-indicator-pulse,
.girus-indicator[data-accent="amber"] .girus-indicator-pulse::after { color: #f0b232; background: #f0b232; }
.girus-indicator[data-accent="rose"] .girus-indicator-pulse,
.girus-indicator[data-accent="rose"] .girus-indicator-pulse::after { color: #e0846d; background: #e0846d; }
.girus-indicator[data-accent="violet"] .girus-indicator-pulse,
.girus-indicator[data-accent="violet"] .girus-indicator-pulse::after { color: #9b7aba; background: #9b7aba; }
.girus-indicator[data-accent="crimson"] .girus-indicator-pulse,
.girus-indicator[data-accent="crimson"] .girus-indicator-pulse::after { color: #d9534f; background: #d9534f; }

.girus-indicator[data-accent="amber"] .girus-indicator-pulse::after { background: transparent; }
.girus-indicator[data-accent="rose"] .girus-indicator-pulse::after { background: transparent; }
.girus-indicator[data-accent="violet"] .girus-indicator-pulse::after { background: transparent; }
.girus-indicator[data-accent="crimson"] .girus-indicator-pulse::after { background: transparent; }

@keyframes girus-indicator-pulse {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

.girus-indicator-name { font-weight: 800; font-size: 14px; }
.girus-indicator-detail { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Flow / Tech / Final */

.girus-flow, .girus-tech, .girus-final { margin-top: 18px; }

.girus-step {
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.girus-step:hover {
  transform: translateX(4px);
  border-color: var(--accent-strong);
}

.girus-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.girus-tech-card {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 250, 245, 0.96);
  border: 1px solid rgba(216, 197, 180, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.girus-tech-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(71, 47, 27, 0.12);
}

.girus-tech-name { font-weight: 800; color: var(--text); margin-bottom: 4px; }
.girus-tech-detail { color: var(--muted); font-size: 13px; }

.girus-final {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 246, 232, 0.96), rgba(252, 224, 191, 0.86));
}

.girus-final-content { display: flex; flex-direction: column; gap: 14px; }
.girus-final-content h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; }
.girus-final-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.girus-final-aside { display: grid; gap: 12px; }
.girus-final-card {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(216, 197, 180, 0.7);
  box-shadow: 0 12px 24px rgba(71, 47, 27, 0.1);
}
.girus-final-card-label { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.girus-final-card-value { font-weight: 800; color: var(--text); margin-top: 4px; }
.girus-price-card {
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

.girus-price-card .girus-final-card-value {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .girus-hero { padding: 40px 24px; }
  .girus-hero-content { grid-template-columns: 1fr; gap: 32px; }
  .girus-hero-visual { height: 360px; }
  .girus-capabilities { grid-template-columns: 1fr; }
  .girus-hero-meta { grid-template-columns: 1fr; }
  .girus-final { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .top-announce-shine,
  .home-banner-glow,
  .girus-orb,
  .girus-face-pulse circle,
  .girus-orbit,
  .girus-wave-path,
  .girus-visual-face,
  .girus-voice-ring,
  .girus-indicator-pulse::after,
  .top-announce-dot,
  .girus-title-line {
    animation: none !important;
  }
}

/* ==========================================================================\n   НАУЧНЫЕ ПУБЛИКАЦИИ\n   ========================================================================== */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.research-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.5fr);
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(168, 109, 71, 0.28);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 10%, rgba(217, 180, 143, 0.38), transparent 34%),
    linear-gradient(135deg, rgba(255, 250, 245, 0.98), rgba(246, 232, 217, 0.94));
  box-shadow: var(--shadow-strong);
}

.research-hero::after {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  right: -160px;
  bottom: -210px;
  border-radius: 50%;
  border: 1px solid rgba(168, 109, 71, 0.16);
  box-shadow: 0 0 0 34px rgba(168, 109, 71, 0.05), 0 0 0 72px rgba(168, 109, 71, 0.035);
  pointer-events: none;
}

.research-hero-copy { position: relative; z-index: 1; }
.research-hero h1 { margin: 8px 0 12px; font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.045em; }
.research-lead { max-width: 790px; margin: 0; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }
.research-hero-mark { position: relative; z-index: 1; color: var(--accent-strong); display: grid; place-items: center; }
.research-hero-mark svg { width: min(100%, 210px); filter: drop-shadow(0 16px 30px rgba(71, 47, 27, 0.15)); }

.research-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.research-stats > div {
  display: flex;
  flex-direction: column;
  min-width: 120px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(168, 109, 71, 0.22);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(8px);
}

.research-stats strong { font-size: 22px; line-height: 1.1; }
.research-stats span { margin-top: 3px; color: var(--muted); font-size: 12px; }

.research-library { display: flex; flex-direction: column; gap: 18px; }

.research-toolbar {
  position: sticky;
  top: 86px;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(216, 197, 180, 0.86);
  border-radius: 20px;
  background: rgba(255, 250, 245, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(71, 47, 27, 0.1);
}

.research-search { position: relative; display: flex; align-items: center; }
.research-search svg { position: absolute; left: 15px; width: 19px; height: 19px; fill: none; stroke: var(--muted); stroke-width: 1.9; pointer-events: none; }
.research-search input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px 11px 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.86);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.research-search input:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 4px rgba(168,109,71,.12); background: #fff; }

.research-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.research-filter {
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}
.research-filter:hover { border-color: var(--accent-strong); transform: translateY(-1px); }
.research-filter.is-active { color: #fffaf5; background: var(--accent-strong); border-color: var(--accent-strong); }
.research-result-count { white-space: nowrap; color: var(--muted); font-size: 13px; padding: 0 6px; }
.research-result-count strong { color: var(--text); }

.research-list { display: grid; gap: 16px; }
.research-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255,250,245,.98), rgba(255,255,255,.76));
  box-shadow: 0 16px 38px rgba(71,47,27,.09);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.research-card:hover { transform: translateY(-2px); border-color: rgba(168,109,71,.5); box-shadow: 0 22px 46px rgba(71,47,27,.14); }
.research-card[hidden] { display: none !important; }
.research-card-topline, .research-card-footer, .research-reference, .research-links, .research-meta-pills { display: flex; align-items: center; }
.research-card-topline { justify-content: space-between; gap: 14px; }
.research-meta-pills, .research-links, .research-reference { gap: 8px; flex-wrap: wrap; }
.research-year, .research-type, .research-format, .research-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.research-year { padding: 7px 10px; background: var(--accent-strong); color: #fffaf5; }
.research-type { padding: 7px 10px; border: 1px solid rgba(168,109,71,.25); background: rgba(168,109,71,.08); color: var(--accent-strong); }
.research-format { padding: 7px 9px; border: 1px solid rgba(197,101,86,.25); background: rgba(197,101,86,.08); color: #9e4d43; letter-spacing: .5px; }
.research-card-body h2, .research-card-body h3 { margin: 0; max-width: 980px; letter-spacing: -.022em; line-height: 1.22; }
.research-card-body h2 { font-size: clamp(22px, 3vw, 29px); }
.research-card-body h3 { font-size: 19px; }
.research-authors { margin: 10px 0 0; font-weight: 700; color: #4c3a2d; font-size: 14px; }
.research-venue { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.research-abstract { margin: 14px 0 0; max-width: 960px; color: var(--muted); font-size: 15px; }
.research-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.research-tag { padding: 7px 10px; border: 1px solid rgba(216,197,180,.75); background: rgba(241,230,220,.55); color: #604b3a; }
.research-card-footer { justify-content: space-between; gap: 16px; border-top: 1px solid rgba(216,197,180,.62); padding-top: 16px; }
.research-doi { color: var(--accent-strong); text-decoration: none; font-size: 12px; font-weight: 700; word-break: break-all; }
.research-doi:hover { text-decoration: underline; }
.research-doi.is-muted { color: var(--muted); font-weight: 600; }
.research-copy { border: 0; padding: 7px 10px; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.research-copy:hover, .research-copy.is-copied { background: rgba(168,109,71,.1); color: var(--accent-strong); }

.research-empty { padding: 38px; text-align: center; border: 1px dashed var(--border); border-radius: 20px; color: var(--muted); }
.research-empty strong, .research-empty span { display: block; }
.research-empty strong { color: var(--text); font-size: 18px; margin-bottom: 4px; }

.research-note { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; }
.research-note h2 { margin: 4px 0 6px; }
.research-note p { max-width: 800px; margin-bottom: 0; }

.home-research { display: flex; flex-direction: column; gap: 14px; }
.home-research-heading { margin: 0; }
.home-research-heading .eyebrow { margin-bottom: 4px; }
.research-featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.research-card--compact { padding: 18px; gap: 12px; }
.research-card--compact .research-card-footer { margin-top: auto; }
.research-card--compact .research-authors { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.research-card--compact .research-venue { min-height: 42px; }

@media (max-width: 1060px) {
  .research-toolbar { grid-template-columns: 1fr; position: static; }
  .research-result-count { justify-self: end; }
  .research-featured-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .research-hero { grid-template-columns: 1fr; padding: 28px 22px; border-radius: 22px; }
  .research-hero-mark { display: none; }
  .research-stats > div { flex: 1 1 110px; min-width: 0; }
  .research-featured-grid { grid-template-columns: 1fr; }
  .research-card { padding: 18px; border-radius: 18px; }
  .research-card-footer, .research-note { align-items: stretch; flex-direction: column; }
  .research-links .button { flex: 1 1 140px; }
  .research-note .button { width: 100%; }
  .research-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: thin; }
  .research-filter { flex: 0 0 auto; }
  .top-nav { justify-content: center; flex-wrap: wrap; }
  .top-nav a { padding: 9px 12px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .research-card, .research-filter { transition: none !important; }
}
