.smart-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .65fr);
  gap: 24px;
  align-items: stretch;
  padding: 34px 0 28px;
}

.smart-home-primary,
.home-project-card,
.home-brand-level {
  background: #fff;
  border: 1px solid #d5e3eb;
  border-radius: 18px;
}

.smart-home-primary { padding: 36px; }

.smart-home-primary h1 {
  margin: 10px 0 14px;
  color: #173b56;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.1;
}

.smart-home-primary > p {
  max-width: 780px;
  color: #526d7c;
  font-size: 18px;
  line-height: 1.6;
}

.home-smart-form { margin-top: 20px; }

.home-smart-form label {
  display: block;
  margin-bottom: 9px;
  color: #173b56;
  font-weight: 750;
}

.home-smart-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.home-smart-form input {
  min-width: 0;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid #abc4d2;
  border-radius: 8px;
  font: inherit;
}

.home-smart-form button {
  min-height: 58px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: #006a96;
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.home-smart-status {
  min-height: 1.5em;
  margin: 8px 0 0;
  color: #526d7c;
}

.home-smart-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.home-smart-examples button {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #abc4d2;
  border-radius: 999px;
  background: #f7fbfd;
  color: #12425c;
  font: inherit;
  cursor: pointer;
}

.home-filter-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  font-weight: 700;
}

.home-project-card {
  align-self: center;
  padding: 28px;
  background: #edf6fa;
}

.home-project-card h2 { margin: 10px 0; }

.home-project-card p {
  color: #526d7c;
  line-height: 1.55;
}

.home-brand-level {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: center;
  margin: 6px 0 20px;
  padding: 26px 30px;
}

.home-brand-level h2 { margin: 8px 0; }

.home-brand-level p {
  color: #526d7c;
  line-height: 1.55;
}

.home-brand-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.home-brand-products figure { margin: 0; }

.home-product-crop {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  padding: 14px;
  border-radius: 12px;
  background: #f7fafc;
}

.home-product-crop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.home-product-crop picture { display:contents; }


.home-brand-products figcaption {
  padding-top: 8px;
  color: #526d7c;
  font-size: 13px;
  text-align: center;
}

.smart-home-primary :focus-visible,
.home-project-card :focus-visible {
  outline: 3px solid #007dba;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .smart-home-hero,
  .home-brand-level { grid-template-columns: 1fr; }
  .home-project-card { align-self: stretch; }
}

@media (max-width: 600px) {
  .smart-home-hero { padding-top: 28px; }
  .smart-home-primary { padding: 24px 18px; }
  .smart-home-primary h1 { font-size: 32px; }
  .home-smart-form > div { grid-template-columns: 1fr; }
  .home-smart-form button { width: 100%; }
  .home-project-card,
  .home-brand-level { padding: 22px 18px; }
  .home-brand-products { grid-template-columns: 1fr; }
  .home-product-crop { max-height: 230px; }
}
