:root {
  --blue: #3e529b;
  --blue-deep: #2f3f7a;
  --blue-soft: #6575b0;
  --blue-mist: #e8ebf5;
  --ink: #1a1f33;
  --muted: #5c6478;
  --line: #d8dce8;
  --white: #ffffff;
  --rail: 72px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 920px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 100%, var(--blue-mist) 0%, transparent 42%),
    var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.page {
  display: grid;
  grid-template-columns: 1fr var(--rail);
  min-height: 100vh;
}

.main {
  order: 1;
  min-width: 0;
}

.rail {
  order: 2;
  position: sticky;
  top: 0;
  height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 30%),
    repeating-linear-gradient(
      -18deg,
      transparent 0 28px,
      rgba(255, 255, 255, 0.04) 28px 30px
    ),
    var(--blue);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.rail::before,
.rail::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 38%;
  left: -20%;
  background: rgba(255, 255, 255, 0.06);
  clip-path: polygon(0 35%, 100% 0, 100% 65%, 0 100%);
}

.rail::before {
  top: -8%;
}

.rail::after {
  bottom: -8%;
  transform: scaleY(-1);
}

.rail__cap {
  position: relative;
  z-index: 1;
  width: 58%;
  animation: float-cap 5.5s ease-in-out infinite;
}

.rail__cap svg {
  width: 100%;
  height: auto;
  display: block;
}

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

.top {
  padding: 1.1rem var(--pad) 0;
  max-width: calc(var(--max) + var(--pad) * 2);
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.partners strong {
  color: var(--blue);
  font-weight: 800;
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue-soft);
  display: inline-block;
}

.dates {
  font-weight: 600;
  color: var(--blue);
}

.hero {
  position: relative;
  padding: clamp(2.5rem, 7vw, 5rem) var(--pad) clamp(2.5rem, 6vw, 4.5rem);
  max-width: calc(var(--max) + var(--pad) * 2);
  min-height: calc(100vh - 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto auto -20% -8%;
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  border: 48px solid var(--blue-mist);
  border-radius: 50%;
  opacity: 0.55;
  pointer-events: none;
  animation: pulse-ring 8s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.7;
  }
}

.hero__label {
  display: inline-block;
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
  padding: 0.45rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.35rem;
  position: relative;
}

.hero__mark {
  width: 64px;
  margin-bottom: 1rem;
  position: relative;
}

.hero__mark svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero__title {
  margin: 0;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-weight: 700;
  font-size: clamp(2.15rem, 6.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--blue-deep);
  max-width: 11ch;
  position: relative;
}

.hero__lead {
  margin: 1.1rem 0 0;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  font-weight: 500;
  color: var(--ink);
  position: relative;
}

.hero__place {
  margin: 0.85rem 0 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  position: relative;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  position: relative;
  width: fit-content;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
}

.about {
  padding: 0 var(--pad) clamp(2.5rem, 5vw, 3.5rem);
  max-width: calc(var(--max) + var(--pad) * 2);
}

.about h2,
.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 600;
  color: var(--blue);
}

.about p,
.section-head p {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
}

.about__meta {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.about__meta li {
  display: grid;
  gap: 0.2rem;
  padding-left: 0.95rem;
  border-left: 3px solid var(--blue);
}

.about__meta span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.lectures {
  padding: 0 var(--pad) clamp(3rem, 7vw, 5rem);
  max-width: calc(var(--max) + var(--pad) * 2);
  display: grid;
  gap: 1.15rem;
}

.section-head {
  margin-bottom: 0.5rem;
}

.lecture {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  padding: 1.35rem 0 1.5rem;
  border-top: 1px solid var(--line);
  transition: background 0.25s ease;
}

.lecture:last-of-type {
  border-bottom: 1px solid var(--line);
}

.lecture:hover {
  background: linear-gradient(90deg, var(--blue-mist), transparent 70%);
}

.lecture__num {
  font-family: "Unbounded", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  padding-top: 0.2rem;
}

.lecture__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-bottom: 0.55rem;
}

.lecture__meta time {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  background: var(--blue-mist);
  color: var(--blue);
}

.lecture h3 {
  margin: 0;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.speaker {
  margin: 0.75rem 0 1.15rem;
  display: grid;
  gap: 0.2rem;
}

.speaker strong {
  font-weight: 700;
}

.speaker span {
  color: var(--muted);
  font-size: 0.92rem;
}

.lecture__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 0.95rem;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.action--accent {
  background: var(--blue);
  color: var(--white);
}

.action[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.action:not([aria-disabled="true"]):hover {
  background: var(--blue);
  color: var(--white);
}

.back {
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.9rem;
}

.content {
  padding: clamp(1.5rem, 4vw, 2.75rem) var(--pad) clamp(2.5rem, 6vw, 4rem);
  max-width: calc(var(--max) + var(--pad) * 2);
}

.content__label {
  display: inline-block;
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: 0.35rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.content h1 {
  margin: 0 0 1.25rem;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: clamp(1.45rem, 3.8vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-deep);
  letter-spacing: -0.02em;
}

.content .lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 58ch;
}

.speaker-block {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 0 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.speaker-block strong {
  font-size: 1.05rem;
}

.speaker-block span {
  color: var(--muted);
  font-size: 0.95rem;
}

.block {
  margin-bottom: 2rem;
}

.block h2 {
  margin: 0 0 0.85rem;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue);
}

.block p {
  margin: 0 0 0.75rem;
}

.block--accent {
  padding: 1.25rem 1.15rem;
  background: var(--blue-mist);
  border-left: 3px solid var(--blue);
}

.block--accent ul {
  margin: 0;
  padding-left: 1.15rem;
}

.block--accent li {
  margin-bottom: 0.55rem;
}

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

.thesis-list ul {
  margin: 0.35rem 0 0.85rem;
  padding-left: 1.15rem;
  color: var(--ink);
}

.thesis-list ul li {
  margin-bottom: 0.35rem;
}

.thesis-list ul li:last-child {
  margin-bottom: 0;
}

.thesis-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: thesis;
  display: grid;
  gap: 1.35rem;
}

.thesis-list > li {
  counter-increment: thesis;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 1.25rem;
}

.thesis-list > li:first-child {
  border-top: 0;
  padding-top: 0;
}

.thesis-list h3 {
  margin: 0 0 0.75rem;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.thesis-list h3::before {
  content: counter(thesis, decimal-leading-zero);
  display: inline-block;
  margin-right: 0.55rem;
  color: var(--blue);
  font-weight: 700;
}

.thesis-out {
  padding: 0.75rem 0.9rem;
  background: var(--blue-mist);
  border-left: 3px solid var(--blue);
}

.content__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.diag-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: 1.5rem 1.75rem;
  align-items: start;
  margin-bottom: 1.75rem;
}

.diag-sliders {
  display: grid;
  gap: 0.85rem;
}

.slider-card {
  display: block;
  padding: 0.95rem 1rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}

.slider-card__top {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.slider-card__num {
  font-family: "Unbounded", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
}

.slider-card__title {
  flex: 1;
  font-weight: 700;
  font-size: 0.95rem;
}

.slider-card__val {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  color: var(--blue);
  font-size: 1.05rem;
  min-width: 1.5ch;
  text-align: right;
}

.slider-card__q {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.slider-card input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
  height: 1.4rem;
  cursor: pointer;
}

.slider-card__scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.slider-card__hints {
  display: grid;
  gap: 0.35rem;
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}

.slider-card__hints strong {
  color: var(--blue);
  font-weight: 700;
}

.diag-group {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.diag-group:last-child {
  margin-bottom: 0;
}

.diag-group__title {
  margin: 0.25rem 0 0;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue);
}

.diag-viz {
  position: sticky;
  top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--blue-mist), var(--white) 55%);
}

.radar-wrap {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.radar-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.radar-label {
  fill: var(--muted);
  font-size: 9.5px;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 600;
}

.radar-hint {
  margin: 0.5rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.result {
  padding: 1.35rem 1.2rem;
  background: var(--blue);
  color: var(--white);
}

.result__type {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.result__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  max-width: 62ch;
  line-height: 1.6;
}

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

  .diag-viz {
    position: relative;
    top: 0;
    order: -1;
  }
}

.footer {
  position: relative;
  margin-top: auto;
  padding: 2.5rem var(--pad) 2rem;
  background: var(--blue);
  color: rgba(255, 255, 255, 0.88);
  overflow: hidden;
}

.footer__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 12% 80%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 28% 55%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 46% 70%, #fff 0 3px, transparent 4px),
    radial-gradient(circle at 68% 48%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 84% 78%, #fff 0 2px, transparent 3px);
  pointer-events: none;
}

.footer p {
  position: relative;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
}

@media (max-width: 820px) {
  :root {
    --rail: 0px;
  }

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

  .hero {
    min-height: calc(100svh - 7.5rem);
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }

  .rail {
    order: 0;
    position: relative;
    height: 88px;
    width: 100%;
  }

  .rail::before,
  .rail::after {
    width: 55%;
    height: 160%;
    top: -30%;
    clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
  }

  .rail::before {
    left: -8%;
  }

  .rail::after {
    left: auto;
    right: -8%;
    bottom: auto;
    top: -30%;
    transform: none;
  }

  .rail__cap {
    width: 52px;
  }

  .hero__title {
    max-width: none;
  }

  .lecture {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .lecture__num {
    font-size: 0.95rem;
  }

  .lecture__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .action {
    width: 100%;
  }
}

/* ---- Lecture 04 diagnosis: quiz / matrix / case ---- */

.diag-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 2rem;
}

.diag-steps a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
}

.diag-steps a:hover {
  background: var(--blue);
  color: var(--white);
}

.diag-block {
  margin-bottom: 2.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.diag-block__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  align-items: start;
}

.diag-block__letter {
  font-family: "Unbounded", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  background: var(--blue);
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  line-height: 1;
}

.diag-block__head h2 {
  margin: 0 0 0.35rem;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue-deep);
}

.diag-block__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.quiz {
  display: grid;
  gap: 1rem;
}

.quiz-card {
  padding: 1.1rem 1.05rem;
  border: 1px solid var(--line);
  background: var(--white);
}

.quiz-card__meta {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

.quiz-card__num {
  font-family: "Unbounded", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
}

.quiz-card__skill {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.quiz-card__text {
  margin: 0 0 0.85rem;
  font-weight: 600;
  line-height: 1.45;
}

.quiz-card__opts {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.quiz-opt {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 0.92rem;
}

.quiz-opt:hover {
  border-color: var(--blue-soft);
  background: var(--blue-mist);
}

.quiz-opt input {
  margin-top: 0.2rem;
  accent-color: var(--blue);
}

.quiz-check {
  margin-top: 0.15rem;
}

.quiz-fb {
  margin-top: 0.85rem;
  padding: 0.85rem 0.95rem;
  font-size: 0.92rem;
  line-height: 1.5;
  border-left: 3px solid var(--blue);
}

.quiz-fb a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
}

.quiz-fb--ok {
  background: #e8f5ec;
  border-left-color: #2f7a4a;
}

.quiz-fb--soft {
  background: #fff6e5;
  border-left-color: #c4891a;
}

.quiz-fb--bad,
.quiz-fb--warn {
  background: var(--blue-mist);
  border-left-color: var(--blue);
}

.quiz-summary,
.matrix-result {
  margin-top: 1.25rem;
  padding: 1.2rem 1.15rem;
  background: var(--blue);
  color: var(--white);
}

.quiz-summary h3,
.matrix-result h3 {
  margin: 0 0 0.65rem;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.quiz-summary p,
.matrix-result p {
  margin: 0 0 0.55rem;
  color: rgba(255, 255, 255, 0.92);
}

.quiz-summary ul {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

.quiz-summary a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

.matrix {
  display: grid;
  gap: 1rem;
}

.matrix-row {
  padding: 1.05rem 1rem;
  border: 1px solid var(--line);
  background: var(--white);
}

.matrix-row__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.matrix-row__top h3 {
  margin: 0;
  font-size: 1rem;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-weight: 600;
}

.matrix-row__score {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  color: var(--blue);
  font-size: 1.2rem;
}

.matrix-row__slider {
  display: block;
  margin-bottom: 0.85rem;
}

.matrix-row__slider input {
  width: 100%;
  accent-color: var(--blue);
}

.matrix-row__scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
}

.matrix-row__action {
  display: grid;
  gap: 0.4rem;
}

.matrix-row__action span {
  font-size: 0.88rem;
  color: var(--muted);
}

.matrix-row__action textarea {
  width: 100%;
  resize: vertical;
  border: 1.5px solid var(--line);
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

.matrix-row__action textarea:focus {
  outline: 2px solid var(--blue-soft);
  border-color: var(--blue);
}

.matrix-row__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
  min-height: 1.5rem;
}

.chip {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
}

.chip--focus {
  background: #fff6e5;
  color: #8a5a00;
}

.chip--gap {
  background: var(--blue-mist);
  color: var(--blue-deep);
}

.chip--ok {
  background: #e8f5ec;
  color: #2f7a4a;
}

.case-card {
  padding: 1.2rem 1.1rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--blue-mist), var(--white) 40%);
}

.case-card__prompt {
  margin: 0 0 1rem;
  line-height: 1.55;
}

.case-card__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.45rem;
}

.case-card__area {
  width: 100%;
  resize: vertical;
  border: 1.5px solid var(--line);
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  margin-bottom: 0.85rem;
}

.case-card__area:focus {
  outline: 2px solid var(--blue-soft);
  border-color: var(--blue);
}

.case-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.case-card__status {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

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

@media (max-width: 820px) {
  .diag-block__head {
    grid-template-columns: 1fr;
  }
}

/* ---- Lecture 04 survey (KKT / interdisciplinarity / AI) ---- */

.survey {
  display: grid;
  gap: 0.5rem;
}

.survey-q {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
  min-width: 0;
}

.survey-q legend,
.survey-q__title {
  display: block;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  color: var(--ink);
}

.survey-q--open {
  display: grid;
  gap: 0.45rem;
}

.survey-q--open textarea {
  width: 100%;
  resize: vertical;
  border: 1.5px solid var(--line);
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

.survey-q--open textarea:focus {
  outline: 2px solid var(--blue-soft);
  border-color: var(--blue);
}

.survey-hint {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.survey-error {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  background: #fff6e5;
  border-left: 3px solid #c4891a;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}

.scale-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.scale-row label {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid var(--blue);
  cursor: pointer;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  color: var(--blue);
}

.scale-row label:has(input:checked) {
  background: var(--blue);
  color: var(--white);
}

.scale-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rank-list {
  display: grid;
  gap: 0.65rem;
}

.rank-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  cursor: pointer;
}

.rank-item span {
  font-size: 0.92rem;
  line-height: 1.4;
}

.rank-item select {
  min-width: 3.5rem;
  padding: 0.4rem 0.35rem;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  background: var(--white);
}

.survey #submit-btn {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.survey-result {
  margin-top: 0.5rem;
}

.survey-result .result--survey {
  margin-bottom: 1rem;
}

.result__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.survey-result__card {
  padding: 1.15rem 1.1rem;
  border: 1px solid var(--line);
  margin-bottom: 1rem;
  background: var(--white);
}

.survey-result__card h3 {
  margin: 0 0 0.65rem;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
}

.survey-result__card p {
  margin: 0 0 0.55rem;
  line-height: 1.5;
}

.survey-result__card a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
}

.survey-result .content__cta {
  border-top: 0;
  padding-top: 0.5rem;
}

.survey-result .action {
  cursor: pointer;
  background: transparent;
  font-family: inherit;
}

@media (max-width: 820px) {
  .rank-item {
    grid-template-columns: 1fr;
  }

  .survey #submit-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}


