* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ol,
ul {
  padding-left: 1.25rem;
}

html,
body {
  background: #e4e4e4;
  color: #333333;
  font-family: "amifer", sans-serif;
  line-height: 1.6;
}

body {
  margin: 0 auto;
  padding: 28px 20px 96px;
  max-width: 980px;
}

header {
  margin-bottom: 28px;
  position: relative;
}

header h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.2;
  letter-spacing: 0.2px;
  font-family: "amifer", sans-serif;
  font-weight: 900;
  font-style: normal;
  color: #3f82ff;
}

section {
  padding: 22px 20px;
  margin: 18px 0;
  transition: box-shadow 0.25s ease;
  border-radius: 22px;
  background: #F4F4F4;
  box-shadow: -5px -5px 10px 0 #FAFBFF, 5px 5px 10px 0 rgba(22, 27, 29, 0.23);
}

section h2 {
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 14px;
  color: #3f82ff;
  margin-left: 20px;
}

section p {
  color: #4e4e4e;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  margin-bottom: 12px;
}

ul.ingredients {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 16px;
  margin-top: 10px;
}

ul.ingredients li {
  background: #F4F4F4;
  border-radius: 12px;
  padding: 10px 12px 10px 32px;
  position: relative;
  font-weight: 600;
  color: #4e4e4e;
  box-shadow: -5px -5px 10px 0 #FAFBFF, 5px 5px 10px 0 rgba(22, 27, 29, 0.23);
}

ul.ingredients li::before {
  content: "•";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #3f82ff;
}

@media (min-width: 720px) {
  ul.ingredients {
    grid-template-columns: repeat(2, 1fr);
  }
}

section ol {
  margin: 10px 0 6px 0;
  padding-left: 3rem;
}

section ol li {
  margin: 8px 0;
}

section > img {
  margin-top: 14px;
  border-radius: 14px;
}

.step-ingredients {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: #F4F4F4;
  box-shadow: -5px -5px 10px 0 #FAFBFF, 5px 5px 10px 0 rgba(22, 27, 29, 0.23);
}

.step-ingredients h3 {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0;
  color: #3f82ff;
}

.mini-ingredients {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.mini-ingredients li {
  position: relative;
  padding-left: 18px;
  color: #2f3640;
  font-size: 0.98rem;
}

.mini-ingredients li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: 0;
  color: #3f82ff;
  font-size: 1.05rem;
  line-height: 1.1;
}

@media (min-width: 900px) {
  section {
    border-radius: 26px;
    padding: 28px 30px;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 22px 36px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  }
  section h2,
  .step-ingredients,
  section p,
  section ol {
    grid-column: 1;
  }
  section img {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: start;
    border-radius: 16px;
  }
  body > section:first-of-type {
    display: block;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
  }
}
