:root {
  --cherry: #E8202A;
  --yellow: #FFC814;
  --pink: #FF6FB5;
  --sky: #3AA8F0;
  --navy: #14204A;
  --white: #fffefb;
  --card-line: #d7efff;
  --card-fill: #f4faff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Avenir Next", "Segoe UI", ui-rounded, system-ui, -apple-system, sans-serif;
  color: var(--navy);
  min-height: 100vh;
  background: linear-gradient(180deg, var(--sky) 0%, #8ecfff 36%, #ffb7db 74%, var(--pink) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

main {
  width: min(640px, calc(100% - 32px));
  margin: 36px auto 24px;
  background: var(--white);
  border-radius: 28px;
  padding: 32px 24px 28px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(20, 32, 74, 0.18);
}

.icon {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 36px;
  box-shadow: 0 10px 24px rgba(20, 32, 74, 0.2);
}

.badge {
  display: inline-block;
  margin: 20px 0 8px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 999px;
}

h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.tagline {
  font-size: 1.15rem;
  line-height: 1.45;
  margin: 0 auto 28px;
  max-width: 30ch;
}

.how {
  text-align: left;
  background: var(--card-fill);
  border: 2px solid var(--card-line);
  border-radius: 20px;
  padding: 20px 20px 8px;
}

.how h2 {
  text-align: center;
  margin: 0 0 16px;
  font-size: 1.15rem;
}

.how ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.how li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
  line-height: 1.45;
  counter-increment: step;
}

.how li::before {
  content: counter(step);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.how li:nth-child(1)::before { background: var(--cherry); }
.how li:nth-child(2)::before { background: var(--sky); }
.how li:nth-child(3)::before { background: var(--pink); }

.contact {
  margin: 28px 0 0;
  font-size: 1.05rem;
}

.contact a {
  color: var(--cherry);
  font-weight: 700;
  text-decoration: none;
}

.contact a:hover,
.contact a:focus {
  text-decoration: underline;
}

footer {
  color: var(--navy);
  text-align: center;
  padding: 8px 16px 36px;
  font-weight: 600;
}

footer a {
  color: var(--navy);
  margin: 0 10px;
  text-decoration: none;
}

footer a:hover,
footer a:focus {
  text-decoration: underline;
}

footer p {
  margin: 12px 0 0;
  font-weight: 600;
  opacity: 0.85;
}

.legal {
  text-align: left;
}

.legal h1 {
  text-align: left;
  font-size: clamp(1.7rem, 6vw, 2.3rem);
}

.legal p,
.legal li {
  line-height: 1.55;
}

.back {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--cherry);
  font-weight: 700;
  text-decoration: none;
}

.back:hover,
.back:focus {
  text-decoration: underline;
}

@media (max-width: 420px) {
  main { padding: 24px 18px 22px; margin-top: 20px; }
  .icon { width: 132px; height: 132px; border-radius: 30px; }
}
