/* СтальГрад | Компактный блок заявки v3
   Файл подключается после встроенных стилей sg_custom_order.php.
   Не изменяет CRM-форму внутри iframe Bitrix24. */
.sg-custom-order,
.sg-custom-order * {box-sizing:border-box}
.sg-custom-order {
  width:100%; max-width:none;
  margin:12px 0 25px;
  font-family:inherit;
}
.sg-custom-order__card {
  display:grid;
  grid-template-columns:minmax(0,29%) minmax(0,1fr);
  gap:20px;
  align-items:stretch;
  padding:16px;
  background:#fff;
  border:1px solid #e5e8ed;
  border-radius:13px;
  box-shadow:0 5px 18px rgba(31,41,55,.045);
}
.sg-custom-order__photo {
  position:relative;
  display:block;
  width:100%;
  height:auto;
  min-height:430px;
  align-self:stretch;
  overflow:hidden;
  border-radius:9px;
  background:#2b2e34;
}
.sg-custom-order__photo img {
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:62% 50%;
}
.sg-custom-order__photo::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top,rgba(14,22,28,.16),transparent 45%);
  pointer-events:none;
}
.sg-custom-order__body {
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  padding:0;
  min-width:0;
}
.sg-custom-order__eyebrow {
  align-self:flex-start;
  padding:4px 7px;
  border-radius:3px;
  background:#fcebed;
  color:#cc2029;
  font-size:10px;
}
.sg-custom-order h2 {
  margin:9px 0 7px;
  color:#242a31;
  font-size:clamp(20px,1.9vw,24px);
  font-weight:750;
  line-height:1.2;
}
.sg-custom-order__description {
  max-width:600px;
  margin:0 0 7px;
  color:#5e6875;
  font-size:13px;
  line-height:1.45;
}
.sg-custom-order__b24 {
  width:100%;
  max-width:100%;
  min-height:0;
  background:transparent;
}
.sg-custom-order__b24 iframe {
  display:block;
  width:100% !important;
  max-width:100% !important;
  border:0 !important;
}
@media (max-width:900px) and (min-width:681px) {
  .sg-custom-order__card {grid-template-columns:minmax(0,30%) minmax(0,1fr);gap:15px;padding:13px}
  .sg-custom-order__photo {min-height:400px}
  .sg-custom-order h2 {font-size:21px}
}
@media (max-width:680px) {
  .sg-custom-order {margin:10px 0 20px}
  .sg-custom-order__card {display:block;padding:12px;border-radius:12px}
  .sg-custom-order__photo {height:170px;min-height:0;margin-bottom:13px}
  .sg-custom-order__photo img {object-position:center 53%}
  .sg-custom-order__body {padding:0}
  .sg-custom-order h2 {font-size:21px;line-height:1.2}
  .sg-custom-order__description {font-size:13px;margin-bottom:6px}
}
