/* Home plaque «Сервисы по ключу» (Figma kit 2gKfe8…, «Плашка · Сервисы по ключу» 286:293).
   Card, title, text and the connection row come from .home-products (app-home-yandex-products.css)
   and the shared .account-row with its --dot/--error variants (app-home-providers.css); only the differences live here. */

/* Desktop: icon | text | chip, rows under the text (286:173). Phone: rows full width, chip last (291:771). */
.home-key-services__grid {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  grid-template-areas: "icon copy action" ". body .";
  column-gap: 16px;
  align-items: start;
}
.home-key-services__grid > .home-products__copy { grid-area: copy; }
.home-key-services__grid > .home-products__action { grid-area: action; }
.home-key-services__body { grid-area: body; min-width: 0; }

.home-key-services__icon {
  grid-area: icon;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--status-success-bg);
  color: var(--status-success-fg);
}
.home-key-services__icon .lf-icon { width: 20px; height: 20px; }

/* «Яндекс Еда +»: shared Gray S button, the brand only as the leading logo. */
.home-key-services__chip { gap: 8px; }
.home-key-services__brand { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 6px; object-fit: contain; }
.home-key-services__chip:disabled .home-key-services__brand { opacity: 0.5; }

.home-key-services__rows { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; max-width: 480px; }
.home-key-services .account-row .account-open { flex-shrink: 0; margin: 0; }

.home-key-services__body > p { margin: 12px 0 0; font-size: 13px; line-height: 18px; color: var(--color-text-secondary); }
.home-key-services__body > .home-products__error { font-size: 15px; line-height: 22px; color: var(--status-error-fg, var(--color-error)); overflow-wrap: anywhere; }
.home-key-services__lock { display: flex; align-items: center; gap: 6px; }
.home-key-services__lock .lf-icon { flex: 0 0 16px; width: 16px; height: 16px; }

.home-key-services__form { display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 768px) {
  .home-key-services__grid { grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "icon copy" "body body" "action action"; }
  .home-key-services__grid > .home-products__action:not(:empty) { margin-top: 16px; }
  .home-key-services__rows { max-width: none; }
}
