.hero {
  min-height: 980px;
  padding-bottom: 230px;
}

.hero h1 {
  font-size: clamp(48px, 4.65vw, 74px);
}

.hero h1 .hero-title-row { display: block; color: #fff; white-space: nowrap; }
.hero h1 .hero-title-accent { color: #ee0a69; }

@media (min-width: 821px) {
  .hero-inner { transform: translateY(-10px); }
}

.hero-service-strip {
  position: absolute;
  z-index: 5;
  right: 3%;
  bottom: 58px;
  left: 3%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 30px 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  border: 1px solid rgba(234, 55, 131, .48);
  border-radius: var(--ui-radius, 8px);
  background: rgba(18, 3, 9, .72);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .22);
  backdrop-filter: blur(10px);
}

.hero-service-item {
  min-width: 0;
  min-height: 142px;
  padding: 24px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 22px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--ui-radius, 8px);
  background: linear-gradient(135deg, rgba(103, 14, 48, .48), rgba(46, 7, 22, .74));
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.hero-service-item:hover,
.hero-service-item:focus-visible {
  border-color: rgba(239, 198, 111, .68);
  background: linear-gradient(135deg, rgba(126, 13, 58, .66), rgba(53, 7, 25, .82));
  outline: none;
  transform: translateY(-4px);
}

.hero-service-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid #d6b36b;
  border-radius: 50%;
  color: #cf0b56;
  background: #fffaf5;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
}

.hero-service-icon svg {
  width: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-service-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.hero-service-copy {
  min-width: 0;
  display: block;
}

.hero-service-copy strong {
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-family: var(--font-display, "Manrope", Arial, sans-serif);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero-service-copy small {
  display: block;
  color: rgba(255, 255, 255, .82);
  font-family: var(--font-body, "Montserrat", Arial, sans-serif);
  font-size: 14px;
  line-height: 1.65;
}

.hero-service-arrow {
  color: #efc66f;
  font-size: 28px;
  transition: transform .25s ease;
}

.hero-service-item:hover .hero-service-arrow,
.hero-service-item:focus-visible .hero-service-arrow {
  transform: translateX(5px);
}

@media (max-width: 1180px) {
  .hero { min-height: 940px; }
  .hero-service-strip { gap: 16px; padding: 22px; }
  .hero-service-item { grid-template-columns: 56px minmax(0, 1fr) 22px; gap: 14px; padding: 18px; }
  .hero-service-icon { width: 56px; height: 56px; }
  .hero-service-icon svg { width: 26px; }
  .hero-service-icon img { width: 34px; height: 34px; }
  .hero-service-copy strong { font-size: 14px; }
  .hero-service-copy small { font-size: 13px; }
}

@media (max-width: 820px) {
  .hero { width: 100%; min-height: 0; padding-bottom: 0; flex-direction: column; align-items: stretch; }
  .hero-inner { width: calc(100% - 32px); max-width: 680px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
  .hero-copy, .hero-actions, .hero-visual { min-width: 0; max-width: 100%; }
  .hero h1 { font-size: clamp(42px, 10vw, 56px); }
  .hero-service-strip {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: 90%;
    margin: 0 auto 34px;
    flex: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .hero-service-item { width: 100%; min-height: 118px; }
  .hero-service-copy strong { font-size: 17px; }
  .hero-service-copy small { font-size: 15px; }
}

@media (max-width: 560px) {
  .hero { width: 100%; max-width: 100vw; }
  .hero-inner { width: calc(100% - 32px); max-width: calc(100vw - 32px); min-width: 0; grid-template-columns: minmax(0, 1fr); }
  .hero-copy { width: 100%; max-width: 100%; min-width: 0; }
  .hero h1 { width: 100%; max-width: 100%; font-size: clamp(30px, 9vw, 38px); text-wrap: wrap; overflow-wrap: anywhere; }
  .hero-lead { width: 100%; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .hero-actions { width: 100%; grid-template-columns: minmax(0, 1fr); }
  .hero-actions .button { min-width: 0; white-space: normal; text-align: center; }
  .hero-service-strip { width: 92%; padding: 12px; gap: 10px; }
  .hero-service-item { grid-template-columns: 48px minmax(0, 1fr) 20px; min-height: 134px; padding: 18px 15px; gap: 12px; }
  .hero-service-icon { width: 48px; height: 48px; }
  .hero-service-icon svg { width: 23px; }
  .hero-service-icon img { width: 30px; height: 30px; }
  .hero-service-copy strong { margin-bottom: 8px; font-size: 18px; line-height: 1.3; }
  .hero-service-copy small { font-size: 16px; line-height: 1.5; }
  .hero-service-arrow { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-service-item,
  .hero-service-arrow { transition: none; }
}

/* Keep the notebook outside the heading's text column. */
@media (min-width: 821px) {
  .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; }
  .hero-copy { min-width: 0; }
  .hero h1 { max-width: 100%; font-size: clamp(30px, 4.25vw, 68px); }
  .hero-notebook { left: 0; width: 105% !important; }
}
@media (max-width: 820px) {
  .hero h1 .hero-title-row { white-space: normal; }
}
