.research-page {
  min-height: calc(100vh - 160px);
  padding-top: 68px;
  padding-bottom: 90px;
}

.research-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(310px, 0.7fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 42px;
}

.research-hero h1 {
  margin: 10px 0 16px;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.research-hero h1 span {
  color: var(--accent);
}

.research-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.research-sync-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.research-sync-card .btn {
  grid-column: 1 / -1;
  width: 100%;
}

.research-sync-card small,
.research-summary-card small,
.research-branch-card small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.research-sync-card strong {
  display: block;
  margin-top: 5px;
  font-size: 13px;
}

.research-sync-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  font-size: 20px;
}

.research-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.research-summary-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.research-summary-card strong {
  display: block;
  margin: 8px 0 5px;
  font-size: 18px;
}

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

.research-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.research-branch-card {
  display: block;
  width: 100%;
  min-height: 190px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text);
  background: var(--panel);
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.research-branch-card:hover,
.research-branch-card.active {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.research-branch-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.research-branch-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.research-branch-head strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.research-level {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.research-progress {
  height: 7px;
  margin: 20px 0 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel2);
}

.research-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.research-branch-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.research-detail {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}

.research-detail-head {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.research-detail-head h2 {
  margin: 7px 0 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.research-level-badge {
  padding: 9px 12px;
  border-radius: 999px;
  color: white;
  background: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.research-detail-description {
  margin: 16px 0 20px;
  color: var(--muted);
  line-height: 1.65;
}

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

.research-detail-grid > article {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel2);
}

.research-section-title {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 13px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-section-title i,
.research-list-item i {
  color: var(--accent);
}

.research-list {
  display: grid;
  gap: 9px;
}

.research-list-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
}

.research-list-empty {
  color: var(--muted);
  font-size: 12px;
}

.research-skeleton {
  display: block;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--panel2), var(--line), var(--panel2));
  background-size: 220% 100%;
  animation: researchShimmer 1.2s linear infinite;
}

.research-skeleton.title { width: 75%; height: 18px; }
.research-skeleton.bar { width: 100%; height: 8px; margin: 28px 0 18px; }
.research-skeleton.line { width: 88%; height: 11px; }



@keyframes researchShimmer {
  to { background-position: -220% 0; }
}

@media (max-width: 1100px) {
  .research-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .research-hero { grid-template-columns: 1fr; }
  .research-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .research-page { padding-top: 38px; }
  .research-overview,
  .research-grid { grid-template-columns: 1fr; }
  .research-detail { padding: 18px; }
  .research-detail-head { align-items: flex-start; flex-direction: column; }
}


