#metodika {
  scroll-margin-top: 90px;
}

#metodika .section-title::before {
  display: none;
}

#metodika .copy-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #591731;
}

#metodika .copy-kicker::before {
  content: "";
  flex: 0 0 32px;
  height: 2px;
  background: #cf861c;
}

#metodika .section-title em {
  color: #9a4c13;
}

.process-icon {
  display: grid;
  place-items: center;
}

.process-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#metodika {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 21%);
  gap: 16px clamp(18px, 2.4vw, 30px);
  padding: clamp(22px, 3vw, 36px);
  border-radius: 24px;
  border: 1px solid #fffdfa;
  background: url("outcomes-ribbon.svg") right bottom / 29% 48px no-repeat,
    radial-gradient(ellipse at 20% 40%, #fff9f2, transparent 76%), #f8eadf;
  box-shadow: 0 8px 26px #5723370b;
}

#metodika .section-title, #metodika .method-note {
  grid-column: 1 / -1;
  margin: 0;
}

#metodika .steps {
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  --medal-size: 53px;
}

#metodika .steps::before {
  display: block;
  inset: calc(var(--medal-size) / 2) calc((100% - 54px) / 4 - var(--medal-size) / 2) auto calc(var(--medal-size) / 2);
  width: auto;
  height: 2px;
  background: linear-gradient(90deg, #dc942d, #f9c068, #df8c2a);
  box-shadow: 0 0 8px #eea44b5e;
}

#metodika .steps li {
  display: block;
  min-width: 0;
  position: relative;
  padding-top: calc(var(--medal-size) + 11px);
}

#metodika .steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset: calc(var(--medal-size) / 2 - 4px) 12px auto auto;
  width: 8px;
  height: 8px;
  border: 2px solid #e49c34;
  border-radius: 50%;
  background: #fff7e5;
}

.process-icon {
  position: absolute;
  inset: 0 auto auto 0;
  width: var(--medal-size);
  height: var(--medal-size);
  border-radius: 50%;
  color: #ffdf85;
  background: radial-gradient(circle at 35% 18%, #a22248, #520820 65%, #310515);
  border: 3px solid #ffdc8d;
  box-shadow: 0 0 0 2px #fff0cb, 0 2px 12px #d28f3970;
}

#metodika .step-no {
  display: inline;
  margin-inline-end: 5px;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #a45c17;
  font: italic 700 17px/1.22 var(--display);
  animation: none;
}

#metodika .steps li > div, #metodika .steps h3 {
  display: inline;
}

#metodika .steps h3 {
  color: #54132b;
  font-weight: 800;
}

#metodika .steps p {
  line-height: 1.45;
}

#metodika .copy-cta {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  margin: 0;
  padding: 5px 0 5px clamp(12px, 1.8vw, 25px);
  border-inline-start: 1px solid #daa99a;
}

#metodika .copy-cta .cta {
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  font-size: 14px;
  background: linear-gradient(145deg, #ffe59c, #ffcb62 56%, #f4a21b);
  box-shadow: 0 6px 15px #9d521d2d;
}

#metodika .copy-cta svg {
  flex: none;
}

@media (max-width: 950px) {
  #metodika {
    grid-template-columns: minmax(0, 1fr);
    background-size: 38% 38px, auto;
  }

  #metodika .copy-cta {
    grid-area: auto;
    grid-column: 1;
    justify-self: start;
    border: 0;
    padding: 0;
  }
}

@media (max-width: 650px) {
  #metodika {
    background-size: 49% 29px, auto;
  }

  #metodika .steps {
    grid-template-columns: minmax(0, 1fr);
    --medal-size: 42px;
  }

  #metodika .steps::before {
    inset: 0 auto calc(var(--medal-size) / 2) calc(var(--medal-size) / 2);
    width: 2px;
    height: auto;
    background: linear-gradient(#dd8c28, #efb653);
  }

  #metodika .steps li {
    padding: 0 0 0 calc(var(--medal-size) + 13px);
    min-height: var(--medal-size);
  }

  #metodika .steps li:not(:last-child)::after {
    display: none;
  }

  .process-icon svg {
    width: 21px;
    height: 21px;
  }
}
