/* Final launch overrides loaded after the main stylesheet. */
html {
  scroll-padding-top: 112px;
}

/* Final responsive architecture: mobile/tablet stack first, desktop enhances. */
.hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 24px !important;
}

.hero-content {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: min(760px, 100%) !important;
  max-width: 100% !important;
}

.hero-image {
  grid-column: 1 !important;
  grid-row: 2 !important;
  width: min(760px, 100%) !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.rating-panel {
  grid-column: 1 !important;
  grid-row: 3 !important;
  width: min(760px, 100%) !important;
  max-width: 100% !important;
}

@media (min-width: 1181px) {
  .hero {
    grid-template-columns: minmax(430px, 1.15fr) minmax(320px, 0.75fr) minmax(380px, 0.72fr) !important;
    gap: clamp(22px, 3vw, 38px) !important;
  }

  .hero-content {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: min(620px, 100%) !important;
  }

  .hero-image {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-height: 540px !important;
    aspect-ratio: 4 / 3.25 !important;
  }

  .rating-panel {
    grid-column: 3 !important;
    grid-row: 1 !important;
    width: 100% !important;
  }
}

@media (max-width: 720px) {
  .hero {
    width: auto !important;
    margin-right: 16px !important;
    margin-left: 16px !important;
    padding: 48px 0 54px !important;
  }

  .hero-content,
  .hero-image,
  .rating-panel {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-content {
    padding: 20px !important;
  }

  .hero-copy {
    overflow-wrap: break-word !important;
  }
}

section,
[id] {
  scroll-margin-top: 115px;
}

.site-header {
  position: sticky !important;
  min-height: 88px !important;
  padding: 10px clamp(18px, 4.5vw, 64px) !important;
  z-index: 1000 !important;
}

.brand img {
  width: auto !important;
  max-width: min(230px, 42vw) !important;
  max-height: 68px !important;
}

.hero {
  display: grid !important;
  grid-template-columns: minmax(430px, 1.15fr) minmax(320px, 0.75fr) minmax(380px, 0.72fr) !important;
  grid-template-rows: auto !important;
  gap: clamp(22px, 3vw, 38px) !important;
  min-height: auto !important;
  padding: clamp(46px, 5vw, 72px) clamp(22px, 4vw, 58px) clamp(54px, 5.5vw, 82px) !important;
  align-items: center !important;
  overflow: visible !important;
  background: radial-gradient(circle at 68% 16%, rgba(111, 174, 232, 0.16), transparent 30%), linear-gradient(90deg, #f6fbff 0%, #eef8ff 100%) !important;
}

.hero-image {
  position: relative !important;
  inset: auto !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  height: auto !important;
  max-height: 540px !important;
  aspect-ratio: 4 / 3.25 !important;
  padding: 10px !important;
  object-fit: contain !important;
  object-position: center center !important;
  opacity: 1 !important;
  border: 1px solid #b9d8ef !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  box-shadow: 0 24px 54px rgba(20, 35, 80, 0.12) !important;
}

.hero-scrim {
  display: none !important;
}

.hero-content {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: min(620px, 100%) !important;
}

.hero h1 {
  font-size: clamp(2.8rem, 4.45vw, 4.55rem) !important;
  line-height: 1.02 !important;
  overflow-wrap: normal !important;
}

.hero-copy {
  max-width: 620px !important;
}

.hero-actions .button {
  min-width: 0 !important;
  padding-right: 18px !important;
  padding-left: 18px !important;
}

.rating-panel {
  grid-column: 3 !important;
  grid-row: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  justify-self: stretch !important;
}

.rating-list {
  grid-template-columns: 1fr !important;
}

.rating-list span {
  flex-direction: row !important;
  align-items: center !important;
}

.standard-certificate-card {
  display: grid;
  width: min(190px, 100%);
  min-height: 86px;
  place-items: center;
  padding: 16px 14px;
  border: 1px solid #9ec8e8;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #e8f4ff 100%);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.6);
  text-align: center;
}

.standard-certificate-card b {
  color: #25224f;
  font-size: 1.15rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.standard-certificate-card small {
  color: #52617a;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.standard-card .standard-certificate-card {
  margin-bottom: 14px;
}

.leaflet-slide img {
  max-height: 620px;
  object-fit: contain;
  object-position: center top;
  background: #ffffff;
}

.gallery-slide figcaption a {
  display: inline-flex;
  margin-left: 10px;
  color: #2d86cc;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hero-content {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .hero-image {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: min(100%, 760px) !important;
    justify-self: start !important;
  }

  .rating-panel {
    grid-column: 1 !important;
    grid-row: 3 !important;
    width: min(100%, 760px) !important;
    justify-self: start !important;
  }
}

@media (max-width: 920px) {
  html {
    scroll-padding-top: 88px;
  }

  section,
  [id] {
    scroll-margin-top: 88px;
  }

  .site-header {
    min-height: 70px !important;
    padding: 8px 18px !important;
  }

  .brand img {
    max-width: min(190px, 58vw) !important;
    max-height: 54px !important;
  }

  .hero {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    padding-right: 16px !important;
    padding-left: 16px !important;
    overflow: hidden !important;
  }

  .hero-content,
  .hero-image,
  .rating-panel {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
  }

  .hero-content {
    grid-row: 1 !important;
    padding: 20px !important;
  }

  .hero-image {
    grid-row: 2 !important;
    max-height: none !important;
  }

  .rating-panel {
    grid-row: 3 !important;
  }

  .hero-copy,
  .hero-content p {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .hero-actions .button {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
  }
}

@media (max-width: 640px) {
  .gallery-slide figcaption a {
    display: flex;
    justify-content: center;
    margin: 8px 0 0;
  }
}

@media (max-width: 720px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .hero {
    display: flex !important;
    flex-direction: column !important;
    width: auto !important;
    max-width: none !important;
    margin-right: 16px !important;
    margin-left: 16px !important;
    padding: 48px 0 54px !important;
    overflow: hidden !important;
  }

  .hero-content,
  .hero-image,
  .rating-panel {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
  }

  .hero-content {
    order: 1 !important;
    padding: 20px !important;
  }

  .hero-image {
    order: 2 !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  .rating-panel {
    order: 3 !important;
  }

  .hero h1,
  .hero-copy,
  .hero-content p {
    width: 100% !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
  }

  .hero-copy {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  .hero-image,
  .rating-panel {
    margin-top: 24px !important;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .rating-panel {
    padding: 20px !important;
  }

  .rating-list {
    grid-template-columns: 1fr !important;
  }

  .rating-list span {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-width: 0 !important;
  }

  .rating-list b {
    flex: 0 0 auto !important;
    max-width: 92px !important;
    padding: 5px 10px !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }
}
