﻿:root {
  --red: #c1121f;
  --red-dark: #7d0d16;
  --yellow: #ffd60a;
  --blue: #12304a;
  --green: #2f7d32;
  --black: #111111;
  --white: #ffffff;
  --light: #f7f7f7;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--black);
  background: linear-gradient(180deg, #fff 0%, #fff7df 48%, #eef7f1 100%);
  overflow-x: hidden;
}

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 214, 10, 0.28), transparent 32%),
    linear-gradient(135deg, var(--red) 0%, var(--red-dark) 54%, #111 100%);
  color: var(--white);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.loading-screen.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-mark {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
}

.loader-mark img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--yellow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.loader-mark span {
  position: absolute;
  inset: 0;
  border: 4px solid rgba(255, 255, 255, 0.24);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.loading-screen p {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

.site-header {
  background: var(--red);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 0;
  gap: 1rem;
}

.logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

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

.logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--yellow);
}

.nav {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.nav a {
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a.active {
  background: var(--yellow);
  color: var(--black);
  transform: translateY(-1px);
}

.hero {
  min-height: calc(100svh - 76px);
  padding: 5rem 0 4rem;
  color: var(--white);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-slider {
  background: #111;
}

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

.hero-slide {
  z-index: -3;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.9s ease, transform 6s ease;
}

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

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.86) 0%, rgba(17, 17, 17, 0.55) 48%, rgba(17, 17, 17, 0.24) 100%),
    linear-gradient(0deg, rgba(17, 17, 17, 0.44), transparent 42%);
}

.hero-content {
  animation: heroIntro 0.85s ease both;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 0.7rem;
  max-width: 840px;
  font-size: 5rem;
  line-height: 0.98;
  text-wrap: balance;
}

.hero p {
  margin: 0 0 1.3rem;
  max-width: 720px;
  line-height: 1.65;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-dots {
  display: flex;
  gap: 0.55rem;
  margin-top: 2rem;
}

.hero-dots button {
  width: 42px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 68px;
  background: var(--yellow);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--yellow);
  color: var(--yellow);
}

.btn-outline:hover {
  background: var(--yellow);
  color: var(--black);
}

main {
  padding: 2.5rem 0 3.5rem;
}

.home-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: -4.3rem 0 2.3rem;
  position: relative;
  z-index: 2;
}

.highlight-card,
.mini-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.15rem;
  border: 1px solid rgba(193, 18, 31, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.highlight-card {
  border-top: 5px solid var(--red);
  backdrop-filter: blur(10px);
}

.highlight-card:hover,
.mini-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.highlight-card strong {
  display: block;
  color: var(--red);
  font-size: 2rem;
  line-height: 1;
}

.highlight-card h2,
.mini-card h3 {
  margin: 0.55rem 0 0.45rem;
  color: var(--blue);
}

.highlight-card p,
.mini-card p {
  margin: 0;
  line-height: 1.55;
  color: #4d5560;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.2rem;
  border-top: 5px solid var(--red);
}

.card h3 {
  margin-top: 0.2rem;
}

.student-work {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.work-card {
  overflow: hidden;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
}

.work-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.work-card div {
  padding: 1rem;
}

.work-card h3 {
  margin: 0 0 0.5rem;
}

.work-card p:last-child {
  margin-bottom: 0;
  line-height: 1.55;
}

.section-title {
  margin-bottom: 1rem;
  font-size: 1.7rem;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.about-box {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.about-box h2 {
  margin-top: 0;
}

iframe {
  width: 100%;
  height: 290px;
  border: 0;
  border-radius: 12px;
}

.gallery {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.learning-section {
  margin: 2rem 0 0;
  padding: 1.4rem;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 1rem;
  align-items: stretch;
  background: linear-gradient(135deg, rgba(18, 48, 74, 0.08), rgba(47, 125, 50, 0.1));
  border: 1px solid rgba(18, 48, 74, 0.08);
  border-radius: 8px;
}

.learning-copy {
  padding: 1rem;
}

.learning-copy h2 {
  margin: 0 0 0.7rem;
  color: var(--blue);
  font-size: 2.15rem;
}

.learning-copy p:last-child {
  margin-bottom: 0;
  line-height: 1.65;
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.mini-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-bottom: 5px solid var(--yellow);
}

.mini-card span {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  margin-bottom: auto;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
}

.quick-info,
.day-section,
.timeline-section,
.values-section,
.contact-details,
.faq-section {
  margin-top: 2rem;
}

.quick-info {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.quick-copy,
.day-card,
.value-intro {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.3rem;
  border-left: 5px solid var(--red);
}

.quick-copy h2,
.day-card h2,
.timeline-section h2,
.value-intro h2,
.faq-section h2 {
  margin: 0 0 0.7rem;
  color: var(--blue);
}

.quick-copy p:last-child,
.day-card p,
.value-intro p {
  margin-bottom: 0;
  line-height: 1.65;
}

.quick-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.quick-item,
.step-card,
.timeline-card,
.value-card,
.contact-card,
.faq-item {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1rem;
  border: 1px solid rgba(18, 48, 74, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-item:hover,
.step-card:hover,
.timeline-card:hover,
.value-card:hover,
.contact-card:hover,
.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.14);
}

.quick-item span,
.contact-card span {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quick-item p,
.step-card p,
.timeline-card p,
.value-card p,
.contact-card p,
.faq-item p {
  margin: 0;
  line-height: 1.55;
  color: #4d5560;
}

.day-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 1rem;
}

.day-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.step-card {
  border-bottom: 5px solid var(--green);
}

.step-card strong {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--blue);
  font-size: 1.25rem;
}

.timeline-section {
  padding: 1.4rem;
  background: linear-gradient(135deg, rgba(193, 18, 31, 0.08), rgba(18, 48, 74, 0.08));
  border-radius: 8px;
}

.timeline-grid,
.values-grid,
.contact-details,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.timeline-card {
  position: relative;
  border-top: 5px solid var(--yellow);
}

.timeline-card span {
  display: inline-grid;
  place-items: center;
  min-width: 64px;
  height: 34px;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
}

.timeline-card h3,
.value-card h3,
.contact-card h2 {
  margin: 0 0 0.55rem;
  color: var(--blue);
}

.values-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  align-items: stretch;
}

.values-grid {
  grid-template-columns: repeat(2, 1fr);
}

.value-card {
  border-left: 5px solid var(--yellow);
}

.contact-details {
  grid-template-columns: repeat(3, 1fr);
}

.contact-card {
  border-top: 5px solid var(--red);
}

.contact-card strong {
  display: block;
  margin: 0.45rem 0;
  color: var(--blue);
  font-size: 1.35rem;
}

.faq-grid {
  grid-template-columns: repeat(2, 1fr);
}

.faq-item {
  border-left: 5px solid var(--green);
}

.faq-item summary {
  color: var(--blue);
  cursor: pointer;
  font-weight: 800;
}

.faq-item p {
  margin-top: 0.75rem;
}

.cabinet-section,
.program-section,
.closing-strip {
  margin-top: 2rem;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: 0 0 0.65rem;
  color: var(--blue);
  font-size: 2.2rem;
}

.section-heading p:last-child {
  margin-bottom: 0;
  line-height: 1.65;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cabinet-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(18, 48, 74, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cabinet-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.16);
}

.cabinet-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.cabinet-card div {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-top: 5px solid var(--yellow);
}

.cabinet-card span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cabinet-card h3 {
  margin: 0.55rem 0;
  color: var(--blue);
}

.cabinet-card p {
  margin: 0;
  line-height: 1.55;
  color: #4d5560;
}

.program-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.program-panel {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
  border-left: 5px solid var(--green);
}

.program-panel.dark {
  background: linear-gradient(135deg, var(--blue), #111);
  color: var(--white);
  border-left-color: var(--yellow);
}

.program-panel h2 {
  margin: 0 0 0.8rem;
  color: var(--blue);
}

.program-panel.dark h2,
.program-panel.dark p {
  color: var(--white);
}

.program-panel p {
  line-height: 1.6;
}

.program-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.program-list span {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(193, 18, 31, 0.08);
  color: var(--blue);
  font-weight: 800;
}

.closing-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  box-shadow: var(--shadow);
}

.closing-strip h2 {
  margin: 0;
  max-width: 760px;
  font-size: 1.7rem;
}

.closing-strip .eyebrow {
  color: var(--yellow);
}

.updates {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.update-item {
  background: var(--white);
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.update-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.15);
}

.update-item h3 {
  margin: 0 0 0.55rem;
  font-size: 1.06rem;
}

.meta {
  font-size: 0.9rem;
  color: #5b5b5b;
  margin-bottom: 0.45rem;
}

.history-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1rem 0 1.8rem;
}

.history-tab {
  min-height: 92px;
  border: 1px solid #dedede;
  background: var(--white);
  color: #12304a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.history-tab:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.history-tab.active {
  background: #ff461f;
  color: var(--white);
  border-color: #ff461f;
}

.tab-icon {
  width: 42px;
  height: 42px;
  border: 3px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
}

.history-panel {
  display: none;
  margin-top: 0.2rem;
}

.history-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  animation: panelFade 0.35s ease both;
}

.history-copy {
  line-height: 1.65;
  background: var(--white);
  border-left: 5px solid #ff461f;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.35rem;
}

.history-copy h2 {
  color: #12304a;
  font-size: 1.55rem;
  margin: 0 0 0.55rem;
}

.panel-label {
  color: #ff461f;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 0 0.35rem;
}

.history-copy p {
  margin-top: 0;
}

.history-copy.wide {
  grid-column: 1 / -1;
}

.school-stats {
  margin: 2rem 0 0;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(193, 18, 31, 0.08), rgba(255, 214, 10, 0.16));
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  box-shadow: inset 0 0 0 1px rgba(193, 18, 31, 0.08);
}

.stat-card {
  min-height: 104px;
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  border-radius: 12px;
  border-bottom: 4px solid var(--yellow);
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.13);
}

.stat-icon {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 2px solid #ff461f;
  border-radius: 12px;
  position: relative;
  background: #fff8f5;
}

.stat-icon::before,
.stat-icon::after {
  content: "";
  position: absolute;
  background: #ff461f;
}

.stat-smile::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  left: 12px;
  top: 13px;
  box-shadow: 14px 0 0 #ff461f;
}

.stat-smile::after {
  width: 18px;
  height: 9px;
  left: 11px;
  top: 24px;
  border: 2px solid #ff461f;
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: transparent;
}

.stat-list::before {
  width: 18px;
  height: 3px;
  right: 8px;
  top: 12px;
  box-shadow: 0 9px 0 #ff461f, 0 18px 0 #ff461f;
}

.stat-list::after {
  width: 5px;
  height: 5px;
  left: 9px;
  top: 11px;
  box-shadow: 0 9px 0 #ff461f, 0 18px 0 #ff461f;
}

.stat-teacher::before,
.stat-staff::before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  left: 9px;
  top: 10px;
  box-shadow: 14px 0 0 #ff461f;
}

.stat-teacher::after,
.stat-staff::after {
  width: 30px;
  height: 12px;
  left: 6px;
  top: 25px;
  border-radius: 16px 16px 4px 4px;
}

.stat-staff {
  background: #fffdf0;
  border-color: var(--yellow);
}

.stat-staff::before,
.stat-staff::after {
  background: var(--red);
}

.stat-card strong {
  display: block;
  color: #12304a;
  font-size: 1.7rem;
  line-height: 1.1;
}

.stat-card p {
  margin: 0.4rem 0 0;
  color: #4d5560;
  font-size: 0.9rem;
}

.staff-section {
  margin-top: 2.2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(193, 18, 31, 0.08), rgba(255, 214, 10, 0.14));
  border: 1px solid rgba(193, 18, 31, 0.12);
  border-radius: 16px;
}

.staff-kicker {
  margin: 0;
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.staff-section h2 {
  margin: 0.15rem 0 1.5rem;
  color: #12304a;
  font-size: 2rem;
  text-transform: uppercase;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.staff-card {
  position: relative;
  min-height: 310px;
  background: var(--white);
  border: 1px solid rgba(193, 18, 31, 0.14);
  border-top: 5px solid var(--red);
  border-bottom: 5px solid var(--yellow);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.1);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.staff-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.16);
}

.staff-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 3px solid rgba(193, 18, 31, 0.18);
}

.staff-info {
  width: calc(100% - 1.4rem);
  min-height: 72px;
  margin: -2rem auto 0;
  padding: 0.85rem 1rem;
  position: relative;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.12);
  border-left: 4px solid var(--red);
  border-right: 4px solid var(--yellow);
  border-radius: 8px;
}

.staff-info h3 {
  margin: 0 0 0.45rem;
  color: #12304a;
  font-size: 0.98rem;
}

.staff-info p {
  margin: 0;
  color: #5c6570;
  font-size: 0.84rem;
  font-style: italic;
}

.reveal-card {
  opacity: 0;
  transform: translateY(22px);
}

.reveal-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.25s ease;
}

.delay-1.visible {
  transition-delay: 0.12s;
}

.delay-2.visible {
  transition-delay: 0.22s;
}

.delay-3.visible {
  transition-delay: 0.32s;
}

@keyframes panelFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroIntro {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.form-wrap {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  padding: 0.72rem 0.8rem;
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

.full {
  grid-column: 1 / -1;
}

.note {
  margin-top: 0.85rem;
  color: #2f7d32;
  font-weight: 700;
}

.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 1.2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy p {
  margin: 0.25rem 0;
}

.footer-credit {
  color: var(--yellow);
  font-size: 1rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--yellow);
}

@media (max-width: 900px) {
  .grid,
  .student-work,
  .gallery,
  .updates,
  .home-highlights,
  .learning-section,
  .learning-grid,
  .quick-info,
  .quick-list,
  .day-section,
  .day-steps,
  .timeline-grid,
  .values-section,
  .values-grid,
  .contact-details,
  .faq-grid,
  .cabinet-grid,
  .program-section,
  .about-layout,
  .form-grid,
  .history-tabs,
  .history-panel,
  .school-stats,
  .staff-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: calc(100svh - 126px);
    padding: 4.2rem 0 3rem;
  }

  .hero h1 {
    font-size: 3.4rem;
  }

  .learning-copy h2,
  .staff-section h2 {
    font-size: 1.7rem;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(17, 17, 17, 0.86), rgba(17, 17, 17, 0.54));
  }

  .home-highlights {
    margin-top: 1.2rem;
  }

  .section-heading h2 {
    font-size: 1.7rem;
  }

  .closing-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .history-tab {
    justify-content: flex-start;
    padding: 0 1rem;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.5rem, 1120px);
  }

  .logo {
    font-size: 0.98rem;
  }

  .logo img {
    width: 38px;
    height: 38px;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    flex: 1;
    text-align: center;
    padding: 0.55rem 0.4rem;
    font-size: 0.92rem;
  }

  .hero {
    min-height: calc(100svh - 120px);
    padding: 3.2rem 0 2.2rem;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero p {
    font-size: 0.98rem;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero-dots button {
    flex: 1;
    width: auto;
  }

  .hero-dots button.active {
    width: auto;
  }

  main {
    padding-top: 1.2rem;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .work-card img,
  .gallery img {
    height: 180px;
  }

  .learning-section {
    padding: 0.7rem;
  }

  .mini-card {
    min-height: 168px;
  }

  .cabinet-card {
    min-height: auto;
  }

  .cabinet-card img {
    height: 170px;
  }

  .program-list span {
    width: 100%;
    text-align: center;
  }

  .closing-strip h2 {
    font-size: 1.35rem;
  }

  .closing-strip .btn {
    width: 100%;
    text-align: center;
  }

  .footer-inner {
    align-items: flex-start;
  }
}

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