.hero-photo {
  overflow: hidden;
}

.hero-photo figcaption {
  padding: 0 10px;
}

.detail-photo figcaption {
  padding: 0 10px;
}

.trust-list {
  gap: 12px;
  margin: 24px 0;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.trust-list li::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px #fff3b6;
}

.brand-logo {
  width: auto;
  height: 88px;
  border-radius: 0;
  object-fit: contain;
}

.notice {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: clamp(15px, 1.8vw, 18px) clamp(19px, 2.4vw, 24px);
  border-radius: 24px;
  line-height: 1.45;
  text-wrap: balance;
}

.free-badge {
  position: absolute;
  top: 0;
  right: 20px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  color: #fff;
  background: #176b2c;
  border: 2px solid var(--bg);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  transform: translateY(-50%);
}

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

.card-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 10px;
  color: #4b3b00;
  background: var(--yellow);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero-photo img {
  aspect-ratio: 6 / 7;
  width: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.materials-story {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) 1.28fr;
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  margin-top: 54px;
  padding: clamp(20px, 4vw, 42px);
  background: var(--ink);
  color: #fff;
  border-radius: 32px;
  overflow: hidden;
}

.materials-story img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 22px;
}

.materials-story .eyebrow {
  color: var(--yellow);
}

.materials-story h3 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.detail-photo img {
  width: 100%;
  max-height: 590px;
  object-fit: cover;
  object-position: center 45%;
}

.class-gallery {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 18px;
  margin-top: 38px;
}

.class-gallery figure {
  position: relative;
  min-height: 430px;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #222;
}

.class-gallery img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.class-gallery figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  margin: 0;
  padding: 12px 14px;
  color: #fff;
  background: rgba(23, 23, 23, .82);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  font-weight: 700;
}

.video-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  scroll-margin-top: 120px;
}

.video-gallery figure {
  min-width: 0;
  min-height: 0;
  background: var(--card);
  border: 1px solid var(--line);
}

.video-gallery video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 568;
  object-fit: contain;
  background: #171717;
}

.video-gallery video:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: -3px;
}

.video-gallery figcaption {
  position: static;
  margin: 0;
  padding: 18px 20px;
  color: var(--ink);
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
  font-size: .9rem;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .class-gallery.video-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .class-gallery.video-gallery figure:first-child {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .class-gallery.video-gallery {
    grid-template-columns: minmax(0, 1fr);
    max-width: 400px;
    margin-inline: auto;
    gap: 24px;
  }

  .class-gallery.video-gallery figure {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .direction-cards {
    grid-template-columns: 1fr;
  }

  .materials-story {
    grid-template-columns: 1fr;
  }

  .materials-story img {
    max-height: 360px;
  }

  .class-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .class-gallery figure:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .brand-logo {
    height: 70px;
  }

  .notice {
    padding: 14px 16px;
    border-radius: 18px;
  }

  .free-badge {
    right: 14px;
  }

  .class-gallery {
    grid-template-columns: 1fr;
  }

  .class-gallery figure:first-child {
    grid-column: auto;
  }

  .class-gallery figure,
  .class-gallery img {
    min-height: 380px;
  }
}

@media (max-width: 640px) {
  .section-head {
    max-width: none;
    margin-right: 0;
    margin-left: 0;
    text-align: left;
  }

  .section-head .eyebrow,
  .section-head h2,
  .section-head p,
  .cta-box h2,
  .cta-box p,
  .materials-story .eyebrow,
  .materials-story h3,
  .materials-story p,
  .notice {
    text-align: left;
  }
}
