:root {
  --ink: #183044;
  --muted: #62778a;
  --paper: #fffdf5;
  --white: #ffffff;
  --yellow: #ffd842;
  --yellow-soft: #fff4a8;
  --blue: #1689d8;
  --blue-dark: #0c5f9a;
  --sky: #e8f7ff;
  --green: #27b77a;
  --coral: #ff735c;
  --line: rgba(24, 48, 68, 0.14);
  --shadow: 0 18px 45px rgba(25, 66, 104, 0.16);
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, Arial, sans-serif;
  line-height: 1.75;
}

body.is-locked {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 216, 66, 0.35), transparent 24%),
    radial-gradient(circle at 78% 68%, rgba(22, 137, 216, 0.2), transparent 28%),
    var(--paper);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader {
  display: grid;
  place-items: center;
  gap: 16px;
}

.loader-ring {
  width: 82px;
  height: 82px;
  border: 5px solid rgba(22, 137, 216, 0.15);
  border-top-color: var(--blue);
  border-right-color: var(--yellow);
  border-radius: 50%;
  animation: spin 1.05s linear infinite;
}

.loader-book {
  position: absolute;
  width: 34px;
  height: 25px;
  border: 3px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 5px 5px;
}

.loader-book::before,
.loader-book::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 16px;
  height: 24px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-bottom: 0;
}

.loader-book::before {
  left: -17px;
  border-radius: 5px 0 0 0;
  transform-origin: right bottom;
  animation: pageLeft 1.25s ease-in-out infinite;
}

.loader-book::after {
  right: -17px;
  border-radius: 0 5px 0 0;
  transform-origin: left bottom;
  animation: pageRight 1.25s ease-in-out infinite;
}

.loader p {
  margin: 0;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 clamp(18px, 5vw, 58px);
  background: rgba(255, 253, 245, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: height 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  height: 66px;
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(24, 48, 68, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
  border: 3px solid var(--yellow);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(22, 137, 216, 0.28);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--yellow);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-link:hover,
.header-link:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.menu-button {
  position: relative;
  z-index: 130;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
}

.menu-button span {
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-button span:nth-child(1) {
  transform: translateY(-7px);
}

.menu-button span:nth-child(3) {
  transform: translateY(7px);
}

body.is-menu-open .menu-button span:nth-child(1) {
  transform: rotate(45deg);
}

body.is-menu-open .menu-button span:nth-child(2) {
  opacity: 0;
}

body.is-menu-open .menu-button span:nth-child(3) {
  transform: rotate(-45deg);
}

.circle-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: rgba(255, 216, 66, 0.96);
  clip-path: circle(0 at calc(100% - 68px) 38px);
  pointer-events: none;
  transition: clip-path 0.55s cubic-bezier(0.77, 0, 0.18, 1);
}

body.is-menu-open .circle-menu {
  clip-path: circle(150% at calc(100% - 68px) 38px);
  pointer-events: auto;
}

.circle-menu-inner {
  display: grid;
  gap: 16px;
  width: min(86vw, 420px);
  text-align: center;
}

.circle-menu a {
  padding: 11px 20px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 6px 6px 0 var(--ink);
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.2s ease;
}

body.is-menu-open .circle-menu a {
  transform: translateY(0);
  opacity: 1;
}

.circle-menu a:nth-child(2) {
  transition-delay: 0.04s;
}

.circle-menu a:nth-child(3) {
  transition-delay: 0.08s;
}

.circle-menu a:nth-child(4) {
  transition-delay: 0.12s;
}

.circle-menu a:nth-child(5) {
  transition-delay: 0.16s;
}

.circle-menu a:nth-child(6) {
  transition-delay: 0.2s;
}

.circle-menu a:hover,
.circle-menu a:focus-visible {
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(3px, 3px);
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: var(--blue-dark);
}

.hero-slider,
.hero-slide,
.hero-slide img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease, transform 4.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(var(--hero-shift, 0));
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 38, 62, 0.78) 0%, rgba(12, 38, 62, 0.5) 42%, rgba(12, 38, 62, 0.08) 100%),
    linear-gradient(180deg, rgba(12, 38, 62, 0.15) 0%, rgba(12, 38, 62, 0.45) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(92vw, 1180px);
  margin: 0 auto;
  padding: 190px 0 110px;
  color: var(--white);
}

.hero-label {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 14px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: 40px;
  line-height: 1.18;
  letter-spacing: 0;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.hero-lead {
  max-width: 610px;
  margin: 24px 0 0;
  font-size: 17px;
  font-weight: 700;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-button,
.ghost-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.72);
}

.outline-button {
  color: var(--blue-dark);
  background: var(--white);
  border: 2px solid var(--blue);
}

.primary-button:hover,
.primary-button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible,
.outline-button:hover,
.outline-button:focus-visible {
  transform: translateY(-3px);
}

.primary-button:hover,
.primary-button:focus-visible {
  box-shadow: 5px 8px 0 var(--ink);
}

.rotating-badge {
  position: absolute;
  right: clamp(18px, 8vw, 110px);
  bottom: 118px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 142px;
  height: 142px;
  color: var(--ink);
  background: conic-gradient(from 0deg, var(--yellow), var(--white), var(--blue), var(--yellow));
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 8px 8px 0 rgba(24, 48, 68, 0.85);
  animation: spin 12s linear infinite;
}

.rotating-badge::before {
  content: "";
  position: absolute;
  inset: 12px;
  background: var(--white);
  border: 2px dashed var(--ink);
  border-radius: 50%;
}

.badge-content {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  animation: spinReverse 12s linear infinite;
}

.badge-content span,
.badge-content strong {
  display: block;
  line-height: 1;
}

.badge-content span {
  font-size: 15px;
  font-weight: 900;
}

.badge-content strong {
  color: var(--blue-dark);
  font-size: 25px;
}

.hero-dots {
  position: absolute;
  right: clamp(18px, 5vw, 58px);
  bottom: 40px;
  z-index: 2;
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 13px;
  height: 13px;
  padding: 0;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid var(--white);
  border-radius: 50%;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--yellow);
  border-color: var(--yellow);
  border-radius: 999px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 54px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 7px;
  height: 7px;
  background: var(--white);
  border-radius: 50%;
  animation: scrollDot 1.35s ease-in-out infinite;
}

.info-strip {
  overflow: hidden;
  color: var(--ink);
  background: var(--yellow);
  border-block: 2px solid var(--ink);
}

.strip-track {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.strip-track span {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 38px;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.strip-track span::before {
  content: "";
  width: 11px;
  height: 11px;
  margin-right: 12px;
  background: var(--blue);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.section {
  width: min(92vw, 1160px);
  margin: 0 auto;
  padding: 104px 0;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 42px;
}

.section-heading span,
.contact-copy span,
.course-body span {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
}

.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: 0;
}

.concept-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: center;
}

.concept-visual {
  overflow: hidden;
  background: var(--sky);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.concept-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.concept-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.metrics div {
  min-height: 132px;
  padding: 20px 16px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 5px 5px 0 rgba(24, 48, 68, 0.92);
}

.metrics strong {
  display: block;
  color: var(--coral);
  font-size: 40px;
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.news-section {
  padding-top: 40px;
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-item {
  display: grid;
  grid-template-columns: 120px 110px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 78px;
  padding: 18px 22px;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.news-item:hover {
  border-color: var(--ink);
  box-shadow: 6px 6px 0 rgba(24, 48, 68, 0.9);
  transform: translate(-2px, -2px);
}

.news-item time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.tag {
  display: inline-flex;
  justify-content: center;
  padding: 4px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.tag.yellow {
  background: var(--yellow);
}

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

.tag.green {
  color: var(--white);
  background: var(--green);
}

.news-item h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.course-section {
  width: 100%;
  padding-inline: max(4vw, 18px);
  background:
    linear-gradient(180deg, rgba(232, 247, 255, 0.9), rgba(255, 253, 245, 0.9)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(22, 137, 216, 0.05) 18px 20px);
}

.course-section > .section-heading,
.course-grid,
.lesson-tabs {
  width: min(92vw, 1160px);
  margin-inline: auto;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.course-card {
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 7px 7px 0 rgba(24, 48, 68, 0.86);
  transform-origin: center bottom;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-card:hover {
  transform: translateY(-5px) rotate(-0.5deg);
  box-shadow: 9px 12px 0 rgba(24, 48, 68, 0.86);
}

.course-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--sky);
}

.course-body {
  padding: 22px;
}

.course-body h3 {
  margin: 6px 0 10px;
  font-size: 21px;
}

.course-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.lesson-tabs {
  margin-top: 42px;
  padding: 24px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-buttons button {
  min-height: 42px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--sky);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.tab-buttons button.is-active {
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
}

.tab-panels {
  position: relative;
  min-height: 126px;
  margin-top: 24px;
}

.tab-panel {
  animation: panelIn 0.35s ease both;
}

.tab-panel h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.tab-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.gallery-shell {
  position: relative;
}

.gallery-viewport {
  overflow: hidden;
}

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 3);
  gap: 18px;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.gallery-card {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 6px 6px 0 rgba(24, 48, 68, 0.86);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-card figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 5px 12px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.gallery-controls {
  position: absolute;
  right: 0;
  top: -82px;
  display: flex;
  gap: 10px;
}

.gallery-controls button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  gap: 44px;
  align-items: center;
  width: min(92vw, 1160px);
  margin: 0 auto 96px;
  padding: 46px;
  background: var(--blue);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 10px 10px 0 var(--ink);
}

.contact-visual {
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.contact-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.contact-copy {
  color: var(--white);
}

.contact-copy span {
  color: var(--yellow);
}

.contact-copy p {
  max-width: 520px;
  margin: 16px 0 0;
  font-weight: 700;
}

.site-footer {
  padding: 34px 18px;
  color: var(--white);
  background: var(--ink);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}

.page-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.page-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.rocket {
  position: relative;
  width: 19px;
  height: 34px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 50% 50% 8px 8px;
  animation: rocketFloat 1.3s ease-in-out infinite;
}

.rocket::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.rocket::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: -12px;
  width: 7px;
  height: 14px;
  background: var(--coral);
  border-radius: 50% 50% 80% 80%;
}

.js-reveal,
.js-zoom,
.js-flip {
  opacity: 0;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.js-reveal {
  transform: translateY(28px);
}

.js-zoom {
  transform: scale(0.94);
}

.js-flip {
  transform: rotateX(14deg) translateY(26px);
  transform-style: preserve-3d;
}

.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinReverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes pageLeft {
  50% {
    transform: rotateY(-34deg);
  }
}

@keyframes pageRight {
  50% {
    transform: rotateY(34deg);
  }
}

@keyframes scrollDot {
  0% {
    transform: translateY(-12px);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rocketFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .hero {
    min-height: 680px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .rotating-badge {
    right: 22px;
    bottom: 96px;
    width: 116px;
    height: 116px;
  }

  .rotating-badge strong {
    font-size: 20px;
  }

  .concept-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .gallery-track {
    grid-auto-columns: calc((100% - 18px) / 2);
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    padding: 0 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small,
  .header-link {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .hero-copy {
    padding: 138px 0 118px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .rotating-badge {
    bottom: 84px;
    width: 94px;
    height: 94px;
    box-shadow: 5px 5px 0 rgba(24, 48, 68, 0.85);
  }

  .badge-content span {
    font-size: 12px;
  }

  .badge-content strong {
    font-size: 17px;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 20px;
  }

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

  .news-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .lesson-tabs,
  .contact-section {
    padding: 20px;
  }

  .gallery-track {
    grid-auto-columns: 100%;
  }

  .gallery-controls {
    position: static;
    justify-content: flex-end;
    margin-top: 18px;
  }
}

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

h1 span, h1 p, h2 span, h2 p { font-size: inherit; }
