:root {
  --ink: #18202f;
  --muted: #667085;
  --line: #d8dee8;
  --paper: #fbfcff;
  --blue: #2557a7;
  --red: #d65f3f;
  --green: #2c7a5b;
  --gold: #c86b2a;
  --amber: #e86f1d;
  --violet: #6e4aa8;
  --shadow: 0 22px 70px rgba(19, 32, 52, .16);
  --shadow-soft: 0 18px 50px rgba(24, 32, 47, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}
a { color: inherit; }
button, input, textarea { font: inherit; }
.noscript {
  padding: 12px 18px;
  color: white;
  background: #7a271a;
  font-weight: 800;
}

.hero {
  --hero-side: clamp(20px, 6vw, 86px);
  min-height: 92vh;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 88px var(--hero-side) 72px;
  color: white;
  background: #111827;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22vh;
  background: linear-gradient(0deg, rgba(17,24,39,.9), transparent);
  pointer-events: none;
}
.topbar {
  position: absolute;
  z-index: 5;
  left: clamp(18px, 5vw, 70px);
  right: clamp(18px, 5vw, 70px);
  top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.topbar::before {
  content: "";
  position: absolute;
  inset: -10px -14px;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(10, 18, 32, .24);
  backdrop-filter: blur(16px);
}
.header-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.header-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  padding: 6px 11px;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.1);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}
.navlinks { display: flex; gap: 18px; flex-wrap: wrap; }
.navlinks a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: 14px;
}
.lang-switcher-wrap {
  position: relative;
  display: grid;
  justify-items: end;
  gap: 8px;
  margin-left: auto;
}
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 5px 9px 5px 5px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  color: white;
  background: rgba(255,255,255,.11);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}
.lang-btn img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}
.lang-btn.is-active {
  border-color: rgba(242,138,46,.95);
  box-shadow: 0 0 0 2px rgba(242,138,46,.28);
  transform: scale(1.05);
}
.lang-btn.is-active img {
  box-shadow: 0 0 0 2px var(--amber);
}
.lang-current-hint {
  position: absolute;
  top: calc(100% + 9px);
  left: calc(var(--lang-active-index, 0) * 58px);
  z-index: 6;
  min-width: min(360px, 74vw);
  max-width: 420px;
  transform: translateX(-18px);
  border: 1px solid rgba(232,111,29,.78);
  border-left-width: 4px;
  border-right-width: 4px;
  border-radius: 14px;
  padding: 9px 13px;
  color: white;
  background: rgba(12, 20, 35, .86);
  box-shadow: 0 14px 36px rgba(0,0,0,.26);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 126px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 10px 14px;
  color: white;
  background: rgba(255,255,255,.13);
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}
.share-btn span { font-size: 16px; line-height: 1; }
.share-btn__label { color: inherit; }
.share-btn.is-copied { background: rgba(44, 122, 91, .9); }
.hero__media { position: absolute; inset: 0; }
.hero-swiper,
.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(.98);
  transform: scale(1.02);
}
.hero-swiper--fallback .hero-slide {
  opacity: 0;
  transition: opacity .75s ease;
}
.hero-swiper--fallback .hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}
.teacher-swiper--fallback,
.message-swiper--fallback {
  overflow: hidden;
}
.teacher-swiper--fallback .swiper-wrapper,
.message-swiper--fallback .swiper-wrapper {
  display: flex;
  align-items: stretch;
  transition: transform .35s ease;
}
.teacher-swiper--fallback .swiper-slide,
.message-swiper--fallback .swiper-slide {
  flex: 0 0 100%;
}
.teacher-swiper--fallback .swiper-pagination,
.message-swiper--fallback .message-swiper-pagination {
  display: inline-flex;
}
.hero-swiper-pagination {
  position: absolute;
  z-index: 3;
  left: min(calc(var(--hero-side) + 730px), calc(100vw - 174px)) !important;
  right: auto !important;
  bottom: 74px !important;
  width: auto !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(10, 18, 32, .58);
  backdrop-filter: blur(14px);
}
.hero-swiper-pagination .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  margin: 0 !important;
  background: rgba(255,255,255,.72);
  opacity: 1;
}
.hero-swiper-pagination .swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 999px;
  background: var(--amber);
}
.hero-swiper-prev,
.hero-swiper-next {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 46px;
  height: 54px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 8px;
  color: white;
  background: rgba(10, 18, 32, .54);
  box-shadow: 0 16px 42px rgba(0,0,0,.22);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}
.hero-swiper-prev { left: 18px; }
.hero-swiper-next { right: 18px; }
.hero__photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,18,32,.92), rgba(25,38,63,.48), rgba(10,18,32,.76)),
    linear-gradient(0deg, rgba(17,24,39,.92), rgba(17,24,39,.08) 42%, rgba(17,24,39,.48)),
    radial-gradient(circle at 78% 18%, rgba(242,138,46,.24), transparent 26%),
    radial-gradient(circle at 26% 72%, rgba(44,122,91,.24), transparent 24%);
}
.hero__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.055) 0 1px, transparent 1px 88px);
  opacity: .65;
}
.hero__rings {
  position: absolute;
  width: min(62vw, 720px);
  aspect-ratio: 1;
  right: -18vw;
  top: 8vh;
  border: 2px solid rgba(255,255,255,.22);
  border-radius: 50%;
  box-shadow: inset 0 0 0 70px rgba(255,255,255,.04), inset 0 0 0 140px rgba(255,255,255,.025);
  animation: slowSpin 28s linear infinite;
}
.hero__content {
  z-index: 2;
  max-width: min(650px, calc(100vw - var(--hero-side) * 2));
  position: absolute;
  left: var(--hero-side);
  bottom: 54px;
  opacity: .9;
}
.hero__content::before {
  content: "";
  position: absolute;
  inset: -24px -28px -22px;
  z-index: -1;
  width: min(710px, calc(100vw - 36px));
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(10,18,32,.56), rgba(10,18,32,.32));
  box-shadow: 0 24px 80px rgba(0,0,0,.24);
  backdrop-filter: blur(10px);
}
.eyebrow, .section-kicker, .detail-kicker {
  margin: 0 0 12px;
  color: var(--amber);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
}
.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6.4vw, 82px);
  line-height: .92;
  letter-spacing: 0;
}
.hero__lead {
  max-width: 600px;
  margin: 18px 0 0;
  font-size: clamp(17px, 2.1vw, 25px);
  color: rgba(255,255,255,.86);
}
.hero__stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.hero__stats span {
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(10, 18, 32, .48);
  backdrop-filter: blur(12px);
  padding: 12px 16px;
  border-radius: 8px;
}
.hero__stats b { color: white; }
.countdown-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.countdown {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(242,138,46,.52);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(10, 18, 32, .54);
  color: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
}
.countdown b { color: white; }
.bell-button {
  position: relative;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  background: rgba(10, 18, 32, .54);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.bell-button__icon {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.bell-button.is-ringing .bell-button__icon { animation: bellRing .42s ease-in-out 2; }
.scroll-cue {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 20px;
  color: white;
  text-decoration: none;
  font-size: 30px;
  opacity: .76;
}

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section__inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}
.split {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(260px, 1.2fr);
  gap: clamp(28px, 7vw, 92px);
}
h2 {
  margin: 0;
  font-size: clamp(34px, 6vw, 70px);
  line-height: .98;
}
.school-band {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.school-copy {
  font-size: clamp(18px, 2vw, 23px);
  color: #334155;
}
.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 800;
}
.text-link--primary {
  color: white;
  background: var(--gold);
  border-radius: 8px;
  padding: 10px 12px;
  text-decoration: none;
}
.route-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-top: 16px;
}
.route-links .text-link { margin-top: 0; }
.route-note {
  margin-top: 10px !important;
  font-size: 14px !important;
  color: var(--muted) !important;
}
.place-section {
  background:
    linear-gradient(180deg, #fff, #f4f7fb);
  border-bottom: 1px solid var(--line);
}
.place-layout {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.place-copy p:not(.section-kicker) {
  max-width: 440px;
  margin: 22px 0 0;
  color: #334155;
  font-size: clamp(18px, 2vw, 23px);
}
.map-panel {
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  background: #e8edf4;
}
.map-panel iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}
.teachers-section {
  background:
    linear-gradient(180deg, #f4f7fb, #fff 38%),
    #fff;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}
.role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.tab {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.tab.is-active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.teacher-swiper { padding: 8px 0 16px; }
.teacher-card__button {
  width: 100%;
  min-height: 440px;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: white;
  background: #202b3d;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
}
.teacher-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04);
  transition: transform .45s ease;
}
.teacher-card__button:hover img { transform: scale(1.04); }
.teacher-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(8,14,24,.9));
}
.teacher-card__body {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
}
.teacher-card__name {
  display: block;
  font-weight: 900;
  font-size: 23px;
  line-height: 1.08;
}
.teacher-card__subject {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
}
.swiper-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
}
.swiper-controls .swiper-pagination {
  position: static;
  width: auto;
  min-width: 80px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.swiper-controls .swiper-pagination-bullet {
  margin: 0 !important;
}
.swiper-prev, .swiper-next {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
  font-size: 28px;
}
.latest-band {
  background: #132033;
  color: white;
}
.latest-band .section-kicker { color: #a7e8c5; }
.gratitude-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.message-swiper {
  overflow: hidden;
  padding: 4px 2px 8px;
}
.message-swiper .swiper-wrapper {
  align-items: stretch;
}
.message-swiper .gratitude {
  height: auto;
  min-height: 230px;
  display: flex;
  flex-direction: column;
}
.message-swiper .gratitude footer {
  margin-top: auto;
  padding-top: 18px;
}
.message-swiper .like-btn {
  align-self: flex-start;
}
.message-swiper-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}
.message-swiper-prev,
.message-swiper-next {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  color: white;
  background: rgba(255,255,255,.12);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}
.message-swiper-prev.swiper-button-disabled,
.message-swiper-next.swiper-button-disabled {
  opacity: .35;
  cursor: default;
}
.message-swiper-pagination {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 68px;
}
.message-swiper-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 !important;
  background: rgba(255,255,255,.68);
  opacity: 1;
}
.message-swiper-pagination .swiper-pagination-bullet-active {
  width: 22px;
  border-radius: 999px;
  background: var(--amber);
}
.capsule-section + .latest-band .message-swiper-prev,
.capsule-section + .latest-band .message-swiper-next {
  border-color: rgba(255,255,255,.34);
  color: white;
}
.gratitude, .thanks-item {
  position: relative;
  background: white;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 18px;
}
.gratitude p, .thanks-item p { margin: 0; }
.gratitude footer, .thanks-item footer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}
.gratitude footer, .thanks-item footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.gratitude a { color: var(--blue); font-weight: 800; }
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  border: 1px solid #efc7be;
  border-radius: 999px;
  padding: 7px 10px;
  color: #b73d36;
  background: #fff7f5;
  cursor: pointer;
  font-weight: 900;
}
.like-btn span { font-size: 18px; line-height: 1; }
.like-btn.is-liked {
  border-color: #d65f3f;
  color: white;
  background: #d65f3f;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 70px);
  color: #d8dee8;
  background: #0b1020;
  font-size: 14px;
}
.footer a { color: var(--amber); }
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 18;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}
.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 24px;
  max-width: min(520px, calc(100% - 32px));
  padding: 12px 16px;
  border-radius: 8px;
  color: white;
  background: rgba(24,32,47,.96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.teacher-sheet {
  position: fixed;
  inset: 0;
  z-index: 20;
  visibility: hidden;
  pointer-events: none;
}
.teacher-sheet.is-open {
  visibility: visible;
  pointer-events: auto;
}
.teacher-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 22, .54);
  opacity: 0;
  transition: opacity .25s ease;
}
.teacher-sheet.is-open .teacher-sheet__backdrop { opacity: 1; }
.teacher-sheet__panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(880px, 100%);
  background: var(--paper);
  overflow: hidden;
  transform: translateX(100%);
  transition: transform .28s ease;
  box-shadow: -18px 0 80px rgba(0,0,0,.28);
}
.teacher-sheet.is-open .teacher-sheet__panel { transform: translateX(0); }
.sheet-close {
  position: sticky;
  top: 14px;
  left: calc(100% - 58px);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 30px;
  cursor: pointer;
}
.teacher-sheet__content {
  height: 100%;
  overflow: auto;
  padding: 12px clamp(18px, 5vw, 44px) 48px;
}
.teacher-detail {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.teacher-detail__profile {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 14px;
  min-width: 0;
}
.teacher-detail__top {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: white;
  box-shadow: var(--shadow-soft);
}
.teacher-detail__top img {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  justify-self: center;
  border-radius: 8px;
}
.teacher-detail h2 {
  margin: 0;
  font-size: clamp(28px, 2.4vw, 34px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.detail-subject {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.detail-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.detail-facts div {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 14px;
}
.detail-facts b, .detail-facts span { display: block; }
.detail-facts b { margin-bottom: 6px; }
.detail-facts span { color: var(--muted); font-size: 14px; }
.details-text {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: white;
  color: #334155;
  min-width: 0;
}
.details-text summary, .thanks-form-wrap summary {
  cursor: pointer;
  font-weight: 900;
}
.details-text p {
  max-height: 220px;
  overflow: auto;
  white-space: pre-line;
  margin: 12px 0 0;
}
.details-text ul {
  max-height: 260px;
  overflow: auto;
  margin: 12px 0 0;
  padding-left: 20px;
}
.details-text li {
  overflow-wrap: anywhere;
}
.details-text li + li { margin-top: 8px; }
.thanks-block {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #f8fafc;
}
.teacher-detail__thanks {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 80px);
}
.mini-head {
  position: sticky;
  top: -1px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}
.mini-head h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
}
.thanks-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-weight: 900;
}
.thanks-list {
  display: grid;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 220px;
  max-height: min(62vh, 680px);
  overflow: auto;
  padding-right: 6px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.teacher-sheet .thanks-list { max-height: clamp(260px, 54vh, 560px); }
.thanks-item {
  min-width: 0;
  overflow-wrap: anywhere;
}
.thanks-item p {
  font-size: 16px;
  line-height: 1.55;
}
.thanks-item--status {
  border-color: var(--amber);
  background: #fff9ec;
}
.thanks-item--rejected {
  border-color: #efb4a5;
  background: #fff4f1;
}
.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.status-icon {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(196, 138, 44, .28);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .85s linear infinite;
}
.thanks-item--rejected .status-icon {
  border: 0;
  border-radius: 0;
  animation: none;
  position: relative;
}
.thanks-item--rejected .status-icon::before,
.thanks-item--rejected .status-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 1px;
  width: 18px;
  height: 3px;
  background: var(--red);
}
.thanks-item--rejected .status-icon::before { transform: rotate(45deg); }
.thanks-item--rejected .status-icon::after { transform: rotate(-45deg); }
.status-reason {
  color: #7a4435;
  font-size: 14px;
}
.thanks-form-wrap {
  margin-top: 20px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 18px;
  flex: 0 0 auto;
}
.thanks-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.thanks-form label span {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}
.thanks-form textarea, .thanks-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcff;
}
.thanks-form textarea {
  min-height: 130px;
  resize: vertical;
}
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip input { position: absolute; opacity: 0; }
.chip span {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  cursor: pointer;
}
.chip input:checked + span {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.submit-btn {
  border: 0;
  border-radius: 8px;
  padding: 13px 16px;
  color: white;
  background: var(--gold);
  font-weight: 900;
  cursor: pointer;
}
.empty { color: var(--muted); }
.loading { padding: 60px; text-align: center; color: var(--muted); }
.load-error {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 70px 20px;
  color: var(--muted);
  text-align: center;
}
.load-error button {
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  color: white;
  background: var(--ink);
  cursor: pointer;
  font-weight: 900;
}
.field-help {
  display: block;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.thanks-form label span small {
  color: var(--muted);
  font-weight: 700;
}

.subpage-hero {
  position: relative;
  overflow: hidden;
  min-height: 58vh;
  padding: 132px clamp(20px, 6vw, 86px) 72px;
  color: white;
  background:
    linear-gradient(90deg, rgba(10,18,32,.94), rgba(25,38,63,.68)),
    radial-gradient(circle at 80% 18%, rgba(242,138,46,.38), transparent 26%),
    linear-gradient(135deg, #18202f, #2557a7 58%, #d65f3f);
}
.subpage-hero__content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}
.teacher-page-hero {
  min-height: 46vh;
}
.teacher-page-main {
  background: #f4f7fb;
}
.teacher-page-shell {
  max-width: 1180px;
}
.teacher-page-shell .teacher-detail { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); }
.teacher-page-shell .teacher-detail__top img {
  width: 240px;
}
.capsule-section { background: #fff; }
.capsule-layout {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(320px, 1.15fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.capsule-copy p:not(.section-kicker) {
  max-width: 520px;
  color: #334155;
  font-size: clamp(18px, 2vw, 23px);
}
.capsule-form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #f8fafc;
}
.gratitude-grid--capsule { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.capsule-sealed {
  color: #334155;
  font-weight: 900;
}
.capsule-message__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.capsule-message__head b {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 9px;
  color: white;
  background: var(--blue);
  font-size: 12px;
}

.confetti-on::before,
.bell-confetti-burst::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, #f28a2e 0 4px, transparent 5px),
    radial-gradient(circle at 35% 15%, #d65f3f 0 5px, transparent 6px),
    radial-gradient(circle at 58% 25%, #2c7a5b 0 4px, transparent 5px),
    radial-gradient(circle at 78% 18%, #2557a7 0 5px, transparent 6px),
    radial-gradient(circle at 88% 36%, #6e4aa8 0 4px, transparent 5px);
  animation: confettiDrop 1.8s ease-out forwards;
}
.bell-confetti-burst::before {
  background:
    radial-gradient(circle at 50% 70%, #f28a2e 0 4px, transparent 5px),
    radial-gradient(circle at 46% 66%, #d65f3f 0 5px, transparent 6px),
    radial-gradient(circle at 54% 64%, #2c7a5b 0 4px, transparent 5px),
    radial-gradient(circle at 42% 60%, #2557a7 0 5px, transparent 6px),
    radial-gradient(circle at 58% 58%, #6e4aa8 0 4px, transparent 5px);
  animation: confettiBurst 1.2s ease-out forwards;
}

@keyframes slowSpin { to { transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bellRing {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-12deg); }
  75% { transform: rotate(12deg); }
}
@keyframes confettiDrop {
  from { transform: translateY(-20px); opacity: 1; }
  to { transform: translateY(80vh); opacity: 0; }
}
@keyframes confettiBurst {
  from { transform: translateY(10vh) scale(.4); opacity: 1; }
  to { transform: translateY(-58vh) scale(1.8); opacity: 0; }
}

@media (max-width: 820px) {
  .hero { min-height: 86vh; padding-top: 172px; }
  .topbar { gap: 12px; flex-wrap: wrap; align-items: flex-start; }
  .topbar::before { inset: -10px -12px; }
  .navlinks { display: none; }
  .header-tags { display: none; }
  .header-tags span { min-height: 31px; padding: 5px 9px; font-size: 12px; }
  .lang-switcher-wrap {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-items: start;
  }
  .lang-switcher { width: 100%; overflow-x: auto; padding-top: 2px; padding-bottom: 3px; }
  .lang-current-hint {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    min-width: 0;
    width: min(100%, 420px);
    transform: none;
    text-align: left;
  }
  .lang-btn { flex: 0 0 auto; }
  .lang-btn img { width: 34px; height: 34px; }
  .share-btn { min-width: 112px; padding: 9px 11px; font-size: 14px; }
  .hero__content::before { inset: -18px -18px -18px; width: calc(100vw - 36px); }
  .hero__content {
    left: 18px;
    right: 18px;
    bottom: 146px;
    max-width: none;
  }
  .hero-swiper-prev,
  .hero-swiper-next {
    top: auto;
    bottom: 84px;
    width: 42px;
    height: 46px;
    font-size: 28px;
    transform: none;
  }
  .hero-swiper-pagination {
    left: 50% !important;
    bottom: 82px !important;
    transform: translateX(-50%);
  }
  .split, .section-head, .teacher-detail__top, .detail-facts, .place-layout, .capsule-layout {
    grid-template-columns: 1fr;
  }
  .teacher-detail, .teacher-page-shell .teacher-detail { grid-template-columns: 1fr; }
  .teacher-detail__profile { position: static; }
  .teacher-detail__thanks { max-height: none; }
  .thanks-list { max-height: min(58vh, 520px); }
  .section-head { align-items: start; }
  .role-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
  .tab { white-space: nowrap; }
  .gratitude-grid, .gratitude-grid--capsule { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
  .teacher-card__button { min-height: 390px; }
  .teacher-detail__top img { width: min(190px, 64vw); }
  .teacher-page-shell .teacher-detail__top img { width: min(220px, 70vw); }
  .map-panel, .map-panel iframe { min-height: 360px; }
  .countdown-row { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .hero { padding-top: 156px; }
  .hero h1 { font-size: clamp(38px, 13vw, 58px); }
  .hero__lead { font-size: 18px; }
  .hero__stats { gap: 8px; }
  .hero__stats span { padding: 10px 12px; }
  .topbar { left: 14px; right: 14px; top: 14px; }
  .share-btn { min-width: 46px; width: 46px; height: 46px; padding: 0; overflow: hidden; }
  .share-btn span { color: white; }
  .share-btn__label { display: none; }
  .lang-switcher { gap: 7px; }
  .lang-btn { min-height: 46px; padding: 5px; }
  .lang-btn span { display: none; }
  .lang-current-hint {
    display: block;
    font-size: 12px;
    width: 100%;
    max-width: 100%;
    min-height: 34px;
    max-height: 34px;
    padding: 8px 34px 8px 11px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;
  }
  .lang-current-hint::after {
    content: "⌄";
    position: absolute;
    right: 12px;
    top: 50%;
    color: rgba(255,255,255,.84);
    transform: translateY(-50%);
  }
  .lang-current-hint.is-expanded {
    max-height: none;
    white-space: normal;
  }
  .lang-current-hint.is-expanded::after { content: "⌃"; }
  .teacher-sheet__panel {
    top: auto;
    left: 0;
    right: 0;
    width: 100%;
    height: min(92vh, 100%);
    border-radius: 14px 14px 0 0;
    transform: translateY(100%);
  }
  .teacher-sheet.is-open .teacher-sheet__panel { transform: translateY(0); }
  .sheet-close {
    top: 10px;
    left: calc(100% - 56px);
  }
}

@media (min-width: 1280px) {
  .section__inner { width: min(1400px, calc(100% - 72px)); }
}
