/* Homepage content uses the same centered frame as the supply panel. */
body:has(.home-a) {
  --home-frame: 1160px;
  --home-gutter: 18px;
  --home-inset: max(var(--home-gutter), calc((100% - var(--home-frame)) / 2));
}
.home-a > .a-section {
  padding-inline: var(--home-inset);
  padding-block: clamp(28px, 4vw, 55px);
}
.home-a > .market-mast > .container,
body:has(.home-a) .site-header > .header-inner,
body:has(.home-a) :is(.footer-grid,.footer-bottom) {
  box-sizing: border-box;
  width: min(var(--home-frame), calc(100% - 2 * var(--home-gutter)));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}
.home-a .a-section-title { margin-block-end: clamp(12px, 2vw, 22px); }
.home-a .catalog-card-media {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 10;
}
.home-a .catalog-card-media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-a > .a-consultation > .consultation-form { max-width: 720px; }
@media (max-width: 680px) {
  body:has(.home-a) { --home-gutter: 12px; }
}
body:has(.home-a) .site-header > .header-inner {
  width: min(var(--home-frame), calc(100% - 2 * var(--home-gutter))) !important;
  max-width: var(--home-frame) !important;
}
.home-a .catalog-card { overflow: hidden; }

.home-a > .a-consultation > :is(.a-eyebrow,p) { display:none; }
.home-a > .a-consultation > .consultation-form {
  width:100%; max-width:780px; margin-inline:auto;
  padding:clamp(18px,4vw,36px); border-radius:16px;
}
.home-a .a-consultation fieldset { border:0; padding:0; margin:0; min-inline-size:0; }
.home-a .a-consultation .consultation-fields {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 16px; margin-block:14px;
}
.home-a .a-consultation .consultation-fields > details { grid-column:1 / -1; }
.home-a .a-consultation .consultation-fields > label { min-width:0; }
.home-a .a-consultation .consultation-fields input { width:100%; }
.home-a .a-consultation summary { cursor:pointer; }
.home-a .a-consultation fieldset > button {
  display:block; width:100%; padding:11px 18px; min-height:44px;
  border:1px solid #153e44; border-radius:8px; background:#153e44;
  color:#fff; font:inherit; font-weight:700; cursor:pointer; margin-block-start:12px;
}
.home-a .a-consultation fieldset > button:hover { background:#235358; }
.home-a .a-consultation fieldset > button:disabled { opacity:.65; cursor:wait; }
.home-a .a-consultation .form-feedback:empty { display:none; }
@media(max-width:620px) {
  .home-a .a-consultation .consultation-fields { grid-template-columns:minmax(0,1fr); }
}
