/* MEDIHIM HOME MAIN V6 · 2026-07-24 */
.home-v6 .brand-hero__copy {
  width: min(760px, 64vw);
}

.home-v6 .brand-hero h1 {
  max-width: 760px;
  font-size: clamp(52px, 5.7vw, 84px);
  line-height: 1.02;
  letter-spacing: -.065em;
}

.home-v6 .brand-hero__lead {
  max-width: 730px;
  font-size: clamp(19px, 1.65vw, 25px);
}

.home-v6-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-v6-card {
  min-width: 0;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid #dbe7e9;
  border-radius: 24px;
  background: #fff;
}

a.home-v6-card {
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

a.home-v6-card:hover,
a.home-v6-card:focus-visible {
  border-color: rgba(22, 162, 181, .5);
  box-shadow: 0 18px 46px rgba(10, 48, 58, .1);
  transform: translateY(-4px);
}

a.home-v6-card:focus-visible {
  outline: 3px solid rgba(22, 162, 181, .24);
  outline-offset: 4px;
}

.home-v6-card__number {
  display: block;
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}

.home-v6-card h3 {
  margin: 34px 0 0;
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.22;
  letter-spacing: -.04em;
  word-break: keep-all;
}

.home-v6-card p {
  margin: auto 0 0;
  padding-top: 24px;
  color: var(--brand-muted);
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
}

.home-v6-card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
  color: var(--brand-primary-dark);
  font-size: 13px;
  font-weight: 850;
}

.home-v6-capability {
  border-color: rgba(22, 162, 181, .22);
  background: linear-gradient(145deg, #edf9fa, #fff 72%);
}

.home-v6-capability:nth-child(2) {
  border-color: rgba(255, 102, 204, .2);
  background: linear-gradient(145deg, #fff2fa, #fff 72%);
}

.home-v6-consult {
  counter-reset: consult-result;
}

.home-v6-consult .home-v6-card {
  counter-increment: consult-result;
  min-height: 230px;
}

.home-v6-consult .home-v6-card__number::before {
  content: "0" counter(consult-result);
}

.home-v6-consult .home-v6-card h3 {
  margin-top: auto;
}

.home-v6-consult-action {
  margin-top: 34px;
}

@media (max-width: 980px) {
  .home-v6 .brand-hero__copy {
    width: min(690px, 72vw);
  }

  .home-v6-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-v6-card {
    padding: 26px 22px;
  }
}

@media (max-width: 700px) {
  .home-v6 .brand-hero__copy {
    width: 100%;
  }

  .home-v6 .brand-hero h1 {
    max-width: 100%;
    font-size: clamp(47px, 13.3vw, 62px);
    line-height: 1.04;
  }

  .home-v6 .brand-hero__lead {
    font-size: 18px;
    line-height: 1.6;
  }

  .home-v6-grid {
    grid-template-columns: 1fr;
  }

  .home-v6-card {
    min-height: 0;
  }

  .home-v6-card p {
    margin-top: 18px;
  }

  .home-v6-consult .home-v6-card {
    min-height: 180px;
  }
}

@media (max-width: 360px) {
  .home-v6 .brand-hero h1 {
    font-size: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  a.home-v6-card {
    transition: none;
  }
}
