:root {
  --ink: #17202a;
  --muted: #5c6670;
  --paper: #fffaf5;
  --soft: #eef3eb;
  --line: #d8dfd6;
  --sage: #5f7f6c;
  --coral: #c56f61;
  --blue: #345c73;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(23, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body.menu-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: var(--white);
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.site-header.scrolled {
  color: var(--ink);
  background: rgba(255, 250, 245, 0.94);
  box-shadow: 0 12px 36px rgba(23, 32, 42, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: 20px;
  font-weight: 700;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 15px;
}

.nav a,
.header-action {
  opacity: 0.92;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav a:hover,
.header-action:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.header-action {
  padding: 12px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 140px clamp(20px, 6vw, 80px) 86px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  animation: slowZoom 18s ease-out forwards;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(23, 32, 42, 0.72), rgba(23, 32, 42, 0.18) 58%, rgba(23, 32, 42, 0.06)),
    linear-gradient(0deg, rgba(23, 32, 42, 0.55), transparent 42%);
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd7cf;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  line-height: 1.02;
}

h1 {
  max-width: 850px;
  font-size: clamp(48px, 8vw, 96px);
}

h2 {
  font-size: clamp(34px, 5vw, 62px);
}

h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.hero-text {
  max-width: 650px;
  margin: 26px 0 32px;
  font-size: 21px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.primary {
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 14px 34px rgba(197, 111, 97, 0.24);
}

.primary:hover {
  background: #b85f52;
}

.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.wide {
  width: 100%;
}

.band {
  padding: 96px clamp(20px, 6vw, 80px);
}

.muted {
  background: var(--soft);
}

.section-head {
  width: min(760px, 100%);
  margin-bottom: 42px;
}

.section-head.compact {
  margin-bottom: 0;
}

.section-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 42px;
}

.intro-grid,
.diplomas,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.large-copy,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 24px;
  line-height: 1.55;
}

.principles {
  display: grid;
  gap: 14px;
}

.principles span {
  padding: 18px 20px;
  border-left: 4px solid var(--sage);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(23, 32, 42, 0.06);
  font-weight: 800;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.review-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(23, 32, 42, 0.07);
}

.service-card {
  min-height: 270px;
  padding: 28px;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 34px;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.service-card p,
.review-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.media-panel {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.media-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 650ms ease;
}

.media-panel:hover img {
  transform: scale(1.035);
}

.diploma-copy {
  align-self: center;
}

.diploma-text {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.diploma-gallery {
  min-width: 0;
}

.diploma-gallery .section-row {
  margin-bottom: 22px;
}

.slider-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.slider-button {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.slider-button:hover {
  transform: translateY(-2px);
  color: var(--white);
  background: var(--blue);
}

.slider-viewport {
  overflow: hidden;
  margin-inline: -6px;
  padding: 6px;
}

.slider-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.diploma-photo-card {
  flex: 0 0 min(520px, 86vw);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.diploma-photo-card img {
  width: 100%;
  height: clamp(360px, 52vw, 620px);
  object-fit: contain;
  background: #f7f1ec;
}

.diploma-photo-card figcaption {
  margin: 0;
  padding: 16px 18px;
  color: var(--muted);
  font-weight: 800;
}

.review-card {
  flex: 0 0 min(420px, 86vw);
  min-height: 280px;
  margin: 0;
  padding: 30px;
  scroll-snap-align: start;
}

.review-card p {
  font-size: 18px;
}

.review-card cite {
  display: block;
  margin-top: 24px;
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
}

.contact-panel {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.contact-link {
  padding: 17px 18px;
  border-radius: 8px;
  background: #f7f1ec;
  font-size: 20px;
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 6vw, 80px);
  color: var(--muted);
  background: var(--ink);
}

.footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slowZoom {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.08);
  }
}

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .intro-grid,
  .diplomas,
  .contact,
  .service-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand {
    font-size: 18px;
  }

  .header-action {
    padding: 10px 13px;
    font-size: 14px;
  }

  .hero {
    min-height: 88vh;
    padding: 112px 20px 58px;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(23, 32, 42, 0.76), rgba(23, 32, 42, 0.36)),
      linear-gradient(90deg, rgba(23, 32, 42, 0.6), rgba(23, 32, 42, 0.12));
  }

  h1 {
    font-size: 46px;
  }

  .hero-text,
  .large-copy,
  .contact-copy p {
    font-size: 19px;
  }

  .button {
    width: 100%;
    padding-inline: 16px;
    text-align: center;
  }

  .band {
    padding: 68px 20px;
  }

  .service-card,
  .review-card,
  .diploma-photo-card,
  .contact-panel {
    padding: 22px;
  }

  .diploma-photo-card {
    padding: 0;
  }

  .diploma-photo-card img {
    height: 430px;
  }

  .section-row {
    align-items: start;
    flex-direction: column;
  }

  .slider-button {
    width: 42px;
    height: 42px;
  }

  .footer {
    display: grid;
  }
}
