.rhm-home-main {
  background: var(--rhm-color-surface);
  color: var(--rhm-color-ink);
}

.rhm-home-hero {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  background: var(--rhm-color-surface-subtle, #f6f7f8);
  border-bottom: 1px solid var(--rhm-color-outline, #d9dcd7);
  color: #000000;
}

.rhm-home-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: min(100%, 1200px);
  min-height: 570px;
  margin: 0 auto;
  padding: 72px 20px;
}

.rhm-home-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(100%, 920px);
}

.rhm-home-section-heading__label {
  margin: 0 0 12px;
  color: var(--rhm-color-brand);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.rhm-home-hero h1 {
  max-width: 14ch;
  margin: 0;
  color: #000000;
  font-size: 78px;
  font-weight: 750;
  line-height: 1.03;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.rhm-home-hero__description {
  max-width: 42ch;
  margin: 28px 0 0;
  color: var(--rhm-color-ink-muted);
  font-size: 21px;
  font-weight: 450;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.rhm-home-hero__actions {
  display: flex;
  margin-top: 36px;
}

.rhm-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.rhm-home-button svg,
.rhm-home-section-heading__link svg {
  width: 18px;
  height: 18px;
  margin-left: 8px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rhm-home-button--primary {
  background: var(--rhm-color-brand);
  color: #ffffff;
}

.rhm-home-button:focus-visible,
.rhm-home-section-heading__link:focus-visible {
  outline: 3px solid var(--rhm-color-info);
  outline-offset: 3px;
}

.rhm-home-products {
  padding: 64px 0 80px;
  background: var(--rhm-color-surface, #ffffff);
}

.rhm-home-products__inner {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 0 20px;
}

.rhm-home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.rhm-home-section-heading h2 {
  margin: 0;
  color: var(--rhm-color-ink);
  font-size: 30px;
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: 0;
}

.rhm-home-section-heading__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--rhm-color-brand-strong);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.rhm-home-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (hover: hover) {
  .rhm-home-button--primary:hover {
    background: var(--rhm-color-brand-strong);
    color: #ffffff;
  }
}

@media (max-width: 1023px) {
  .rhm-home-hero h1 {
    max-width: 13ch;
    font-size: 64px;
  }

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

@media (max-width: 767px) {
  .rhm-home-hero,
  .rhm-home-hero__inner {
    min-height: 460px;
  }

  .rhm-home-hero__inner {
    padding: 32px 20px;
  }

  .rhm-home-hero h1 {
    max-width: 100%;
    font-size: 52px;
    line-height: 1.04;
  }

  .rhm-home-hero__description {
    max-width: 32ch;
    margin-top: 24px;
    font-size: 18px;
    line-height: 1.55;
  }

  .rhm-home-hero__actions {
    margin-top: 32px;
  }

  .rhm-home-button {
    min-width: 152px;
  }

  .rhm-home-products {
    padding: 40px 0 64px;
  }

  .rhm-home-section-heading {
    align-items: flex-start;
    margin-bottom: 22px;
  }

  .rhm-home-section-heading h2 {
    font-size: 25px;
  }

  .rhm-home-section-heading__link {
    flex: 0 0 auto;
  }

  .rhm-home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 768px) and (max-height: 760px) {
  .rhm-home-hero,
  .rhm-home-hero__inner {
    min-height: 400px;
  }

  .rhm-home-hero__inner {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .rhm-home-hero h1 {
    font-size: 64px;
  }

  .rhm-home-hero__description {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.5;
  }

  .rhm-home-hero__actions {
    margin-top: 28px;
  }

  .rhm-home-products {
    padding-top: 48px;
  }
}

@media (max-width: 479px) {
  .rhm-home-section-heading {
    display: block;
  }

  .rhm-home-section-heading__link {
    margin-top: 10px;
  }
}

@media (min-width: 1024px) {
  .rhm-home-section-heading__link {
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rhm-home-button {
    transition: none;
  }
}
