:root {
  --smg-red: #e30613;
  --smg-red-dark: #b8000a;
  --text: #111111;
  --muted: #4f4f55;
  --soft: #f6f6f7;
  --line: #e9e9ec;
  --card: #ffffff;
  --shadow: 0 12px 28px rgba(17, 17, 17, 0.09);
  --shadow-soft: 0 5px 18px rgba(17, 17, 17, 0.08);
  --radius: 8px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  padding-bottom: env(safe-area-inset-bottom);
  background:
    radial-gradient(circle at 12% 0%, rgba(227, 6, 19, 0.06), transparent 24rem),
    #f7f7f8;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-140%);
  border-radius: 999px;
  background: var(--text);
  color: #ffffff;
  padding: 0.7rem 1rem;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 1.5rem auto;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(17, 17, 17, 0.12);
}

.hero,
main {
  padding-inline: clamp(1.25rem, 3.4vw, 2rem);
}

.hero {
  padding-top: clamp(1.2rem, 3vw, 2rem);
}

.brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  min-height: 106px;
}

.brand__logo {
  width: clamp(112px, 16vw, 158px);
  height: auto;
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(380px, 1.25fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.2rem);
  margin-top: -0.25rem;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__content h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(2.8rem, 5.8vw, 4.65rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero__content h1 span {
  color: var(--smg-red);
}

.hero__content p {
  margin: 1.25rem 0 0;
  color: var(--text);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  font-weight: 500;
}

.hero__image {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
}

.hero__image::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 46%;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.84) 34%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.hero__image img {
  width: 100%;
  height: clamp(320px, 38vw, 470px);
  object-fit: cover;
}

.tiles-section {
  padding-top: clamp(2rem, 5vw, 4.6rem);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.35rem);
}

.tile {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 355px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tile:focus-visible {
  outline: 3px solid rgba(227, 6, 19, 0.35);
  outline-offset: 4px;
}

.tile:hover {
  transform: translateY(-5px);
  border-color: rgba(227, 6, 19, 0.45);
  box-shadow: var(--shadow);
}

.tile img {
  width: 100%;
  height: 178px;
  object-fit: cover;
}

.tile__icon {
  position: absolute;
  left: 1.1rem;
  top: 9.7rem;
  z-index: 2;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: var(--smg-red);
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(227, 6, 19, 0.22);
}

.tile__body {
  display: block;
  padding: 2rem 4.2rem 4.2rem 1.2rem;
}

.tile__title {
  display: block;
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  font-weight: 900;
  line-height: 1.12;
}

.tile__text {
  display: block;
  margin-top: 0.9rem;
  max-width: 18rem;
  color: #19191d;
  font-size: 1rem;
}

.tile__arrow {
  position: absolute;
  right: 1.2rem;
  bottom: 1.1rem;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--smg-red);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease;
}

.tile:hover .tile__arrow {
  transform: translateX(5px);
}

.timeline-section {
  padding-block: clamp(2.5rem, 6vw, 4.4rem) clamp(1.6rem, 4vw, 3rem);
}

.timeline-section h2 {
  position: relative;
  margin: 0 0 2.25rem;
  font-size: clamp(1.9rem, 4vw, 2.55rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.timeline-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.72rem;
  width: 160px;
  height: 9px;
  border-radius: 50%;
  border-top: 4px solid var(--smg-red);
}

.timeline-section__heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: flex-start;
}

.calendar-link {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  padding: 0.65rem 0.9rem;
  color: var(--smg-red);
  font-size: 0.82rem;
  font-weight: 800;
}

.calendar-link:hover,
.calendar-link:focus-visible {
  border-color: var(--smg-red);
  background: rgba(227, 6, 19, 0.06);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.4rem);
  margin: 0;
  padding: 1.3rem 0 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 3.1rem;
  height: 1px;
  background: #cfd0d4;
}

.timeline li {
  position: relative;
  min-width: 0;
}

.timeline__icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  margin-bottom: 1rem;
  border: 1.5px solid rgba(227, 6, 19, 0.65);
  border-radius: 50%;
  background: #ffffff;
  color: var(--smg-red);
  font-size: 2rem;
  font-weight: 900;
}

.timeline h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  line-height: 1.2;
}

.timeline p {
  margin: 0;
  color: #1d1d20;
  font-size: 0.84rem;
}

.timeline strong {
  font-weight: 700;
}

.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 10px solid var(--smg-red);
  padding: 1.7rem 0 1.3rem;
}

.values article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 0.8rem;
  align-items: center;
  min-width: 0;
  padding: 0 1rem;
  border-right: 1px solid var(--line);
}

.values article:last-child {
  border-right: 0;
}

.values span {
  grid-row: 1 / span 2;
  color: var(--smg-red);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.values h2 {
  grid-column: 2;
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.values p {
  grid-column: 2;
  margin: 0.25rem 0 0;
  color: #222226;
  font-size: 0.85rem;
  line-height: 1.35;
  overflow-wrap: normal;
  word-break: normal;
}

.closing {
  padding-block: clamp(1.8rem, 4vw, 3rem);
}

.closing h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.08;
}

.closing p {
  margin: 0.8rem 0 0;
  max-width: 52rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: center;
  border-top: 1px solid var(--line);
  background: #f4f4f5;
  padding: 1.25rem clamp(1.2rem, 4vw, 3rem);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer__school {
  margin: 0;
  color: #1d1d20;
  font-weight: 800;
}

.site-footer address {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 1rem;
  font-style: normal;
  text-align: right;
}

.site-footer address span {
  white-space: nowrap;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-footer a:hover {
  color: var(--smg-red);
}

.subpage-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem) clamp(1.25rem, 3.4vw, 2rem) 0;
}

.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.45rem;
  color: var(--smg-red);
  font-weight: 900;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--smg-red-dark);
}

.detail {
  padding: clamp(1.2rem, 3vw, 2rem) clamp(1.25rem, 3.4vw, 2rem) clamp(2rem, 5vw, 4rem);
}

.detail__hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(380px, 1.15fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
}

.detail__hero > * {
  min-width: 0;
}

.detail__label {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border-radius: 999px;
  background: rgba(227, 6, 19, 0.08);
  color: var(--smg-red);
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.detail h1 {
  margin: 1rem 0 0;
  max-width: 16ch;
  font-size: clamp(2.1rem, 4.1vw, 3.2rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.detail h1 span {
  color: var(--smg-red);
}

.detail h1.detail__title--compact {
  max-width: none;
  font-size: clamp(1.55rem, 2.7vw, 2.25rem);
  white-space: nowrap;
}

.detail__intro {
  margin: 1rem 0 0;
  max-width: 38rem;
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.detail__image {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.detail__image img {
  width: 100%;
  height: clamp(240px, 30vw, 380px);
  object-fit: cover;
}

.welcome-intro {
  margin-top: clamp(2.4rem, 6vw, 4rem);
  max-width: 58rem;
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 5vw, 3.2rem);
}

.welcome-intro h2 {
  margin: 0.85rem 0 0;
  max-width: 18ch;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.08;
}

.welcome-intro p {
  margin: 0.95rem 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.accordion-section {
  display: grid;
  gap: 0.85rem;
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
}

.accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.accordion-item summary {
  position: relative;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 3.3rem 1rem 1.15rem;
  color: var(--text);
  cursor: pointer;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 900;
  line-height: 1.2;
  list-style: none;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(227, 6, 19, 0.08);
  color: var(--smg-red);
  font-size: 1.45rem;
  line-height: 1;
}

.accordion-item[open] summary {
  color: var(--smg-red-dark);
}

.accordion-item[open] summary::after {
  content: "–";
}

.accordion-item__content {
  border-top: 1px solid var(--line);
  padding: 0.25rem 1.15rem 1.2rem;
}

.accordion-item__content p,
.accordion-item__content li {
  color: var(--muted);
}

.accordion-item__content p {
  margin: 0.9rem 0 0;
}

.accordion-item__content ul {
  margin: 0.9rem 0 0;
  padding-left: 1.2rem;
}

.accordion-item__content li + li {
  margin-top: 0.5rem;
}

.schedule-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: start;
  margin-top: clamp(2.4rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 5vw, 3.2rem);
}

.schedule-section__intro h2 {
  margin: 0.85rem 0 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.08;
}

.schedule-section__intro p {
  margin: 0.95rem 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.schedule-table-wrap {
  width: min(100%, 620px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table caption {
  background: var(--smg-red);
  color: #ffffff;
  padding: 1rem 1.15rem;
  font-size: 1.08rem;
  font-weight: 900;
  text-align: left;
}

.schedule-table th,
.schedule-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.schedule-table thead th {
  background: #f4f4f5;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-table tbody th {
  font-weight: 750;
}

.schedule-table tbody td {
  color: #1d1d20;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.schedule-table tbody tr:last-child > * {
  border-bottom: 0;
}

.schedule-table__break > * {
  background: rgba(227, 6, 19, 0.07);
  color: var(--smg-red);
}

.schedule-table__break--lunch > * {
  background: var(--smg-red);
  color: #ffffff;
}

.schedule-short-note {
  width: min(100%, 620px);
  margin: -0.4rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.3rem);
  margin-top: clamp(1.6rem, 4vw, 3rem);
}

.detail-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card {
  display: block;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: clamp(1rem, 2vw, 1.35rem);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(227, 6, 19, 0.45);
  box-shadow: var(--shadow);
}

.info-card:focus-visible {
  outline: 3px solid rgba(227, 6, 19, 0.35);
  outline-offset: 4px;
}

.info-card__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--smg-red);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 900;
}

.info-card h2,
.info-card h3 {
  margin: 1rem 0 0.45rem;
  font-size: 1.18rem;
  line-height: 1.15;
}

.info-card p,
.info-card li {
  color: var(--muted);
}

.info-card p {
  margin: 0;
}

.info-card ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}

.info-card__link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--smg-red);
  font-weight: 800;
}

.detail-note {
  margin-top: clamp(1.3rem, 3vw, 2rem);
  border-left: 6px solid var(--smg-red);
  border-radius: var(--radius);
  background: var(--soft);
  padding: 1.15rem 1.25rem;
}

.detail-note p {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.section-heading {
  max-width: 52rem;
}

.section-heading h2 {
  margin: 0.85rem 0 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.08;
}

.section-heading p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.class-teams,
.contact-roles {
  scroll-margin-top: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

.class-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.3rem);
  margin-top: clamp(1.5rem, 4vw, 2.4rem);
}

.class-team-card {
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.class-team-card figure {
  margin: 0;
  background: var(--soft);
}

.class-team-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.class-team-card > div {
  padding: clamp(1rem, 2vw, 1.3rem);
}

.class-team-card h3,
.role-card h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
}

.role-card h3.role-card__title--compact {
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.class-team-card p,
.role-card p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.role-card p.role-card__name {
  margin-top: 0.35rem;
  color: #1d1d20;
  font-weight: 800;
}

.role-card__email {
  display: inline-block;
  margin-top: 0.45rem;
  color: var(--smg-red);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.role-card__email:hover,
.role-card__email:focus-visible {
  text-decoration-thickness: 2px;
}

.class-team-card p {
  line-height: 1.55;
}

.class-team-card__person {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
  padding-top: 0.5rem;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(1.5rem, 4vw, 2.4rem);
}

.role-grid--contacts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.role-grid--contacts .role-card {
  grid-template-columns: 1fr;
}

.role-grid--contacts .role-card figure {
  border-left: 0;
  border-top: 6px solid var(--smg-red);
}

.role-grid--contacts .role-card img {
  height: 220px;
  min-height: 220px;
}

.advice-panel {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-top: 6px solid var(--smg-red);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.advice-panel__intro {
  max-width: 52rem;
}

.advice-panel__intro h3 {
  margin: 0.8rem 0 0;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  line-height: 1.15;
}

.advice-panel__intro p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.advice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.advice-grid section {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: var(--soft);
  padding: 1rem;
}

.advice-grid h4 {
  margin: 0;
  font-size: 1.05rem;
}

.advice-grid p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.advice-grid p.advice-grid__role {
  margin-top: 0.25rem;
  color: var(--smg-red);
  font-size: 0.82rem;
  font-weight: 800;
}

.role-card {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 0.58fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.role-card figure {
  margin: 0;
  border-left: 6px solid var(--smg-red);
  background: var(--soft);
}

.role-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.role-card div {
  padding: clamp(1.1rem, 2vw, 1.4rem);
}

.material-section {
  scroll-margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.4rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

.material-section--standalone {
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 3vw, 2rem);
}

.material-section--standalone .material-section__intro {
  max-width: 52rem;
}

.material-section h2 {
  margin: 0.85rem 0 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.08;
}

.material-section__intro p {
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.download-link {
  display: inline-flex;
  align-items: center;
  margin-top: 1.2rem;
  border: 2px solid var(--smg-red);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  color: var(--smg-red);
  font-size: 0.88rem;
  font-weight: 800;
}

.download-link::before {
  content: "↓";
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.download-link:hover,
.download-link:focus-visible {
  background: var(--smg-red);
  color: #ffffff;
}

.material-section__list {
  border-left: 6px solid var(--smg-red);
  background: var(--soft);
  padding: clamp(1.2rem, 3vw, 1.8rem);
}

.material-section__list h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  line-height: 1.25;
}

.material-section__list ul {
  margin: 0;
  padding-left: 1.25rem;
}

.material-section__list li {
  color: var(--text);
}

.material-section__list li + li {
  margin-top: 0.7rem;
}

.material-groups {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.material-group {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 1rem;
}

.material-group h3,
.material-group h4 {
  margin: 0 0 0.7rem;
  color: var(--smg-red-dark);
  font-size: 0.98rem;
  font-weight: 900;
}

.material-group ul {
  margin: 0;
  padding-left: 1.15rem;
}

.book-section {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 0.68fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: clamp(1.4rem, 3vw, 2rem);
}

.book-section h2,
.book-section h3 {
  margin: 0.6rem 0 0;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  line-height: 1.1;
}

.book-table-wrap {
  overflow-x: auto;
}

.book-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 0.95rem;
}

.book-table th,
.book-table td {
  border: 1px solid var(--line);
  padding: 0.75rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.book-table th {
  background: #f0f0f2;
  color: var(--text);
  font-weight: 900;
}

.book-table td:last-child,
.book-table th:last-child {
  white-space: nowrap;
}

.expectations-section {
  scroll-margin-top: 1rem;
  margin-top: clamp(2.8rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

.expectations-section__intro {
  max-width: 52rem;
}

.expectations-section h2 {
  margin: 0.85rem 0 0;
  max-width: 18ch;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.08;
}

.expectations-section__intro p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.expectations-list {
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
}

.expectations-list h3,
.class-duty h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
}

.expectations-list ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.expectations-list li {
  border: 1px solid var(--line);
  border-top: 4px solid var(--smg-red);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 1.15rem;
}

.expectations-list li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.expectations-list strong {
  display: block;
  margin-bottom: 0.35rem;
}

.class-duty {
  scroll-margin-top: 1rem;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--soft);
  padding: clamp(1.2rem, 3vw, 1.8rem);
}

.class-duty p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.class-duty ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 2rem;
  margin: 1.1rem 0 0;
  padding-left: 1.25rem;
}

.expectations-note {
  margin-top: 1.2rem;
  border-left: 6px solid var(--smg-red);
  padding: 0.9rem 1.1rem;
}

.expectations-note p {
  margin: 0;
  font-weight: 700;
}

@media (max-width: 900px) {
  .page-shell {
    width: min(430px, 100%);
    margin-block: 0 max(1rem, env(safe-area-inset-bottom));
    overflow: visible;
    border-radius: 0;
  }

  .hero,
  main {
    padding-inline: 1.2rem;
  }

  .brand {
    min-height: 112px;
  }

  .brand__logo {
    width: 128px;
  }

  .hero__layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
  }

  .hero__image {
    order: 1;
    width: calc(100% + 2.4rem);
    margin-inline: -1.2rem;
  }

  .hero__image::before {
    display: none;
  }

  .hero__image img {
    height: 178px;
    object-position: 42% center;
  }

  .hero__content {
    order: 2;
    width: 100%;
    padding-block: 1.35rem 1.6rem;
  }

  .hero__content h1 {
    max-width: 10ch;
    font-size: clamp(2rem, 10.5vw, 2.9rem);
  }

  .hero__content p {
    margin-top: 0.9rem;
    font-size: 0.98rem;
  }

  .tiles-section {
    padding-top: 0.5rem;
  }

  .tile-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .tile {
    grid-column: auto;
    grid-template-columns: 86px minmax(0, 1fr) 34px;
    grid-template-rows: 1fr;
    min-height: 0;
    align-items: center;
    padding: 0.62rem;
    border-radius: 8px;
  }

  .tile img {
    width: 86px;
    height: 86px;
    border-radius: 6px;
  }

  .tile__icon {
    left: 3.9rem;
    top: auto;
    bottom: 0.72rem;
    width: 30px;
    height: 30px;
    border-width: 2px;
    font-size: 0.86rem;
  }

  .tile__body {
    padding: 0 0.55rem 0 0.85rem;
  }

  .tile__title {
    font-size: 0.86rem;
  }

  .tile__text {
    margin-top: 0.35rem;
    font-size: 0.78rem;
  }

  .tile__arrow {
    position: static;
    width: 34px;
    height: 44px;
    font-size: 1.4rem;
  }

  .timeline-section {
    padding-top: 1.8rem;
  }

  .timeline-section__heading {
    display: block;
  }

  .calendar-link {
    display: inline-block;
    margin: -0.5rem 0 1.5rem;
  }

  .timeline {
    display: block;
    padding: 0.2rem 0 0;
  }

  .timeline::before {
    left: 27px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
  }

  .timeline li {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 0.9rem;
    min-height: 72px;
    padding-bottom: 1rem;
  }

  .timeline__icon {
    width: 56px;
    height: 56px;
    margin: 0;
    font-size: 1.35rem;
  }

  .timeline h3,
  .timeline p {
    grid-column: 2;
  }

  .timeline h3 {
    align-self: end;
    margin-top: 0.2rem;
  }

  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    border-bottom-width: 8px;
    padding: 1.2rem 0 max(1.25rem, env(safe-area-inset-bottom));
  }

  .values article {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0.55rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: left;
  }

  .values article:last-child {
    border-right: 1px solid var(--line);
  }

  .values span {
    font-size: 1.7rem;
  }

  .values h2 {
    font-size: 0.88rem;
  }

  .values p {
    display: block;
    font-size: 0.76rem;
  }

  .closing {
    display: none;
  }

  .site-footer {
    display: block;
    text-align: center;
  }

  .site-footer address {
    display: grid;
    justify-content: center;
    margin-top: 0.55rem;
    text-align: center;
  }

  .subpage-header {
    align-items: center;
    padding-inline: 1.2rem;
  }

  .subpage-header .brand__logo {
    width: 118px;
  }

  .detail {
    padding-inline: 1.2rem;
  }

  .detail__hero {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 1.2rem;
  }

  .detail h1 {
    font-size: clamp(1.8rem, 8vw, 2.35rem);
  }

  .detail__image {
    width: calc(100% + 2.4rem);
    margin-inline: -1.2rem;
    border-radius: 0;
  }

  .detail__image img {
    height: 178px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .schedule-section {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .info-card {
    min-height: 0;
  }

  .class-team-grid,
  .role-grid {
    grid-template-columns: 1fr;
  }

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

  .class-team-card,
  .role-card {
    grid-template-columns: 1fr;
  }

  .class-team-card img,
  .role-card img {
    height: 188px;
    min-height: 188px;
  }

  .role-card figure {
    border-left: 0;
    border-top: 6px solid var(--smg-red);
  }

  .material-section {
    grid-template-columns: 1fr;
    gap: 1.3rem;
    margin-top: 2.4rem;
    padding-top: 2rem;
  }

  .book-section {
    grid-template-columns: 1fr;
  }

  .expectations-section {
    margin-top: 2.8rem;
    padding-top: 2rem;
  }

  .expectations-list ul,
  .class-duty ul {
    grid-template-columns: 1fr;
  }

  .expectations-list li:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (max-width: 370px) {
  .tile {
    grid-template-columns: 78px minmax(0, 1fr) 30px;
  }

  .tile img {
    width: 78px;
    height: 78px;
  }

  .tile__icon {
    left: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
