.sm-recipe {
  --sm-green: #0d4b3a;
  --sm-green-dark: #073d30;
  --sm-coral: #f5525f;
  --sm-orange: #ff765b;
  --sm-cream: #fffaf6;
  --sm-border: #eadfd7;
  --sm-muted: #65736e;
  max-width: 1080px;
  margin: clamp(32px, 5vw, 68px) auto 0;
  color: var(--sm-green-dark);
}

.sm-recipe__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  overflow: hidden;
  border: 1px solid var(--sm-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(13, 75, 58, 0.07);
}

.sm-recipe__facts > span {
  display: grid;
  min-height: 86px;
  align-content: center;
  gap: 4px;
  padding: 14px 18px;
  border-right: 1px solid var(--sm-border);
  text-align: center;
}

.sm-recipe__facts > span:last-child {
  border-right: 0;
}

.sm-recipe__facts small {
  color: var(--sm-muted);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sm-recipe__facts strong {
  color: var(--sm-green);
  font-size: 16px;
}

.sm-recipe__section {
  margin-top: 22px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--sm-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(13, 75, 58, 0.055);
}

.sm-recipe__section h2 {
  margin: 5px 0 24px;
  color: var(--sm-green-dark);
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.08;
}

.sm-recipe__eyebrow {
  margin: 0;
  color: var(--sm-coral);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.sm-recipe__ingredients {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sm-recipe__ingredients li {
  display: grid;
  grid-template-columns: minmax(70px, auto) 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sm-border);
}

.sm-recipe__ingredients li > span:last-child {
  color: #263e36;
  font-weight: 600;
}

.sm-recipe__ingredients a {
  color: var(--sm-green);
  text-decoration-color: rgba(13, 75, 58, 0.25);
  text-underline-offset: 3px;
}

.sm-recipe__ingredients small {
  display: block;
  margin-top: 3px;
  color: var(--sm-muted);
  font-size: 12px;
  font-weight: 400;
}

.sm-recipe__amount {
  color: var(--sm-coral);
  font-weight: 800;
}

.sm-recipe__source {
  margin: 18px 4px 0;
  color: var(--sm-muted);
  font-size: 13px;
}

.sm-recipe__source a {
  color: var(--sm-green);
  font-weight: 700;
  text-underline-offset: 3px;
}

.sm-recipe__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sm-recipe-step;
}

.sm-recipe__steps li {
  position: relative;
  min-height: 58px;
  padding: 0 0 25px 68px;
  counter-increment: sm-recipe-step;
}

.sm-recipe__steps li:not(:last-child)::after {
  position: absolute;
  top: 47px;
  bottom: 4px;
  left: 23px;
  width: 1px;
  background: var(--sm-border);
  content: "";
}

.sm-recipe__steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sm-coral), var(--sm-orange));
  color: #fff;
  content: counter(sm-recipe-step, decimal-leading-zero);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(245, 82, 95, 0.2);
}

.sm-recipe__steps li > strong {
  display: block;
  margin-bottom: 5px;
  color: var(--sm-green-dark);
  font-size: 17px;
}

.sm-recipe__steps li p {
  margin: 0 0 8px;
  color: #4f635c;
  line-height: 1.65;
}

.sm-recipe__shop {
  background: linear-gradient(145deg, #fffaf6, #f5faf7);
}

.sm-recipe__products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.sm-recipe-product {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--sm-border);
  border-radius: 14px;
  background: #fff;
  color: var(--sm-green-dark);
  text-decoration: none !important;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.sm-recipe-product:hover {
  border-color: #f2aaa4;
  box-shadow: 0 14px 26px rgba(13, 75, 58, 0.1);
  transform: translateY(-2px);
}

.sm-recipe-product img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 10px;
  background: #faf9f6;
}

.sm-recipe-product strong,
.sm-recipe-product small {
  display: block;
}

.sm-recipe-product strong {
  font-size: 14px;
  line-height: 1.3;
}

.sm-recipe-product small {
  margin-top: 5px;
  color: var(--sm-coral);
  font-size: 13px;
}

.sm-recipe-product > b {
  grid-column: 1 / -1;
  margin: 0 -10px -10px;
  padding: 9px 12px;
  background: var(--sm-green);
  color: #fff;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 820px) {
  .sm-recipe__ingredients,
  .sm-recipe__products {
    grid-template-columns: 1fr;
  }

  .sm-recipe__facts > span {
    border-bottom: 1px solid var(--sm-border);
  }
}

@media (max-width: 520px) {
  .sm-recipe__facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .sm-recipe__facts > span {
    min-height: 72px;
    padding: 11px 8px;
  }

  .sm-recipe__section {
    padding: 20px 17px;
    border-radius: 14px;
  }

  .sm-recipe__ingredients li {
    grid-template-columns: 62px 1fr;
  }

  .sm-recipe__steps li {
    padding-left: 56px;
  }

  .sm-recipe__steps li::before {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .sm-recipe__steps li:not(:last-child)::after {
    top: 40px;
    left: 19px;
  }
}
