.rs-guide-role-nav {
  position: sticky;
  top: 92px;
  z-index: 40;
  background: rgba(255,255,255,.94);
  border-block: 1px solid var(--rs-line);
  backdrop-filter: blur(16px);
}

.rs-guide-role-nav__inner {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-block: 14px;
}

.rs-guide-role-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  color: var(--rs-ink);
  font-weight: 800;
  border: 1px solid var(--rs-line);
  border-radius: 999px;
  background: #fff;
  transition: .2s ease;
}

.rs-guide-role-nav a:hover {
  color: var(--rs-red);
  border-color: rgba(239,43,36,.35);
  transform: translateY(-1px);
}

.rs-guide-role-nav a span {
  color: var(--rs-muted);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rs-guide-role-nav a strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  color: #fff;
  font-size: .78rem;
  border-radius: 50%;
  background: var(--rs-red);
}

.rs-guide-intro,
.rs-guide-section,
.rs-guide-note {
  scroll-margin-top: 170px;
}

.rs-guide-intro {
  padding: 104px 0;
  background: linear-gradient(180deg, #fff, #f7f9fc);
}

.rs-guide-intro__heading {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 48px;
}

.rs-guide-intro__heading h2,
.rs-guide-section__header h2,
.rs-guide-note h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.24;
  letter-spacing: -.035em;
}

.rs-guide-intro__heading > p,
.rs-guide-section__header > p,
.rs-guide-note__inner > p {
  margin: 0;
  color: var(--rs-muted);
  font-size: 1.03rem;
}

.rs-guide-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.rs-guide-index-card {
  padding: 36px;
  border: 1px solid rgba(78,159,255,.16);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, #f7fbff);
  box-shadow: 0 18px 60px rgba(29,50,87,.07);
}

.rs-guide-index-card--teacher {
  border-color: rgba(239,43,36,.14);
  background: linear-gradient(145deg, #fff, #fff8f7);
}

.rs-guide-index-card__label {
  margin: 0 0 4px;
  color: var(--rs-blue);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.rs-guide-index-card--teacher .rs-guide-index-card__label { color: var(--rs-red); }
.rs-guide-index-card h3 { margin: 0 0 24px; font-size: 1.55rem; }
.rs-guide-index-card ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }

.rs-guide-index-card a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 7px 8px;
  border-radius: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.rs-guide-index-card a:hover { background: rgba(78,159,255,.08); }
.rs-guide-index-card--teacher a:hover { background: rgba(239,43,36,.07); }

.rs-guide-index-card a span {
  flex: 0 0 32px;
  color: var(--rs-blue);
  font-size: .74rem;
  letter-spacing: .06em;
}

.rs-guide-index-card--teacher a span { color: var(--rs-red); }

.rs-guide-section { padding: 116px 0; background: #fff; }
.rs-guide-section--teacher { background: var(--rs-soft); }

.rs-guide-section__header {
  max-width: 840px;
  margin-bottom: 52px;
}

.rs-guide-section__header > p:last-child { max-width: 720px; margin-top: 18px; }
.rs-guide-card-list { display: grid; gap: 36px; }

.rs-guide-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 0;
  min-height: 470px;
  overflow: hidden;
  scroll-margin-top: 176px;
  border: 1px solid var(--rs-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 58px rgba(29,50,87,.08);
}

.rs-guide-card--reverse { grid-template-columns: minmax(300px, .75fr) minmax(0, 1.25fr); }
.rs-guide-card--reverse .rs-guide-card__image { order: 2; }

.rs-guide-card__image {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100%;
  padding: 34px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: linear-gradient(145deg, #edf2f8, #f9fbfd);
  cursor: zoom-in;
}

.rs-guide-card__image img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(20,33,61,.08);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(29,50,87,.13);
  transition: transform .28s ease, box-shadow .28s ease;
}

.rs-guide-card__image:hover img,
.rs-guide-card__image:focus-visible img {
  transform: scale(1.018);
  box-shadow: 0 20px 48px rgba(29,50,87,.18);
}

.rs-guide-card__zoom {
  position: absolute;
  right: 48px;
  bottom: 48px;
  padding: 8px 13px;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(20,33,61,.86);
  box-shadow: 0 8px 20px rgba(20,33,61,.2);
}

.rs-guide-card__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 64px);
}

.rs-guide-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--rs-red);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.rs-guide-card__meta span + span {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  color: var(--rs-ink);
  border: 1px solid var(--rs-line);
  border-radius: 50%;
  background: #fff;
}

.rs-guide-card__copy h3 {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  line-height: 1.34;
  letter-spacing: -.025em;
}

.rs-guide-card__copy > p:not(.rs-guide-card__meta) { margin: 0; color: var(--rs-muted); }

.rs-guide-card__back {
  align-self: flex-start;
  margin-top: 26px;
  color: var(--rs-red);
  font-size: .86rem;
  font-weight: 800;
}

.rs-guide-card__back::before { content: '↑'; margin-right: 7px; }

.rs-guide-note {
  padding: 96px 0;
  color: #fff;
  background: linear-gradient(135deg, #101b34, #172a50 60%, #183b70);
}

.rs-guide-note__inner {
  display: grid;
  grid-template-columns: minmax(250px, .55fr) minmax(0, 1fr);
  gap: 32px 64px;
  align-items: start;
}

.rs-guide-note__inner > p { color: rgba(255,255,255,.76); }
.rs-guide-note .rs-cta-inline { grid-column: 2; margin-top: 2px; }

.rs-guide-lightbox {
  width: min(94vw, 1500px);
  max-width: none;
  max-height: 94vh;
  padding: 24px;
  overflow: visible;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 100px rgba(0,0,0,.38);
}

.rs-guide-lightbox::backdrop { background: rgba(8,15,31,.86); backdrop-filter: blur(5px); }
.rs-guide-lightbox img { display: block; width: 100%; max-height: calc(94vh - 48px); object-fit: contain; }

.rs-guide-lightbox__close {
  position: absolute;
  top: -18px;
  right: -18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 50%;
  background: var(--rs-ink);
  cursor: pointer;
}

body.rs-guide-lightbox-open { overflow: hidden; }

@media (max-width: 980px) {
  .rs-guide-intro__heading,
  .rs-guide-note__inner { grid-template-columns: 1fr; gap: 24px; }
  .rs-guide-note .rs-cta-inline { grid-column: auto; }
  .rs-guide-card,
  .rs-guide-card--reverse { grid-template-columns: 1fr; }
  .rs-guide-card--reverse .rs-guide-card__image { order: 0; }
  .rs-guide-card__image { min-height: 0; }
}

@media (max-width: 760px) {
  .rs-guide-role-nav { top: 78px; }
  .rs-guide-role-nav__inner { justify-content: stretch; }
  .rs-guide-role-nav a { flex: 1 1 0; justify-content: center; padding-inline: 12px; font-size: .9rem; }
  .rs-guide-role-nav a span { display: none; }
  .rs-guide-intro { padding: 76px 0; }
  .rs-guide-index-grid { grid-template-columns: 1fr; }
  .rs-guide-index-card { padding: 26px 20px; }
  .rs-guide-section { padding: 82px 0; }
  .rs-guide-card-list { gap: 24px; }
  .rs-guide-card__image { padding: 20px; }
  .rs-guide-card__zoom { right: 28px; bottom: 28px; }
  .rs-guide-card__copy { padding: 30px 24px 34px; }
  .rs-guide-lightbox { width: 96vw; padding: 10px; border-radius: 10px; }
  .rs-guide-lightbox__close { top: -14px; right: -5px; }
}

@media (max-width: 480px) {
  .rs-guide-role-nav a strong { display: none; }
  .rs-guide-role-nav a { min-height: 44px; }
  .rs-guide-index-card a { align-items: flex-start; }
  .rs-guide-card__zoom { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rs-guide-card__image img,
  .rs-guide-role-nav a { transition: none; }
}
