:root {
  --accent: #e986a4;
  --accent-dark: #d96f90;
  --text: #2c2c2c;
  --muted: #6d6870;
  --line: #f0c8d5;
  --soft: #fff5f8;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 16px;
}

button,
input {
  font: inherit;
}

.page {
  min-height: 100vh;
  padding-bottom: 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
  align-items: center;
  max-width: 980px;
  min-height: 420px;
  margin: 0 auto;
  padding: 40px 24px 10px;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  margin-bottom: 18px;
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.82;
  letter-spacing: -0.08em;
}

.brand__back {
  font-size: clamp(3.4rem, 8vw, 6rem);
  font-weight: 700;
}

.brand__stage {
  color: var(--accent);
  font-size: clamp(3.1rem, 7.2vw, 5.5rem);
  font-style: italic;
  font-weight: 700;
}

.hero h1 {
  max-width: 480px;
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero__photo {
  min-height: 400px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 58%, #ffffff 96%),
    url("./assets/alina-hero.png") center bottom / contain no-repeat;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.intro {
  max-width: 520px;
  margin: 28px auto 52px;
  padding: 0 24px;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
}

.card {
  width: min(100% - 32px, 640px);
  margin: 0 auto;
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: grid;
  gap: 28px;
}

.field {
  display: grid;
  gap: 12px;
}

.field span,
.options legend {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.35;
}

.field input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  padding: 12px 0 13px;
  color: var(--text);
  background: transparent;
}

.field input:focus {
  border-bottom-color: var(--accent);
}

.field input::placeholder {
  color: #b8b1b8;
}

.options {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.options legend {
  margin-bottom: 2px;
}

.options small {
  display: block;
  margin-top: 4px;
  font-weight: 700;
}

.options label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.35;
}

.options input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.form-message {
  min-height: 22px;
  margin: 24px 0 0;
  color: var(--accent-dark);
  font-size: 0.92rem;
  text-align: center;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.progress {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.button {
  justify-self: end;
  min-width: 112px;
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(233, 134, 164, 0.28);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    opacity 0.2s ease;
}

.button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.button--ghost {
  justify-self: start;
  color: var(--accent);
  background: var(--soft);
  box-shadow: none;
}

.button--ghost:hover {
  color: var(--white);
}

.success {
  padding: 56px 24px;
  border-radius: 28px;
  background: var(--soft);
  text-align: center;
}

.success h2 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.success p {
  max-width: 440px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 28px;
    text-align: center;
  }

  .hero__photo {
    min-height: 360px;
    margin-top: 8px;
    background-position: center bottom;
  }

  .hero h1 {
    margin-inline: auto;
  }

  .intro {
    margin-top: 18px;
    margin-bottom: 42px;
  }
}

@media (max-width: 520px) {
  .page {
    padding-bottom: 40px;
  }

  .hero {
    padding-inline: 18px;
  }

  .brand__back {
    font-size: clamp(2.9rem, 16vw, 4.4rem);
  }

  .brand__stage {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .hero__photo {
    min-height: 300px;
  }

  .card {
    width: min(100% - 28px, 640px);
  }

  .form-actions {
    grid-template-columns: 1fr 46px 1fr;
  }

  .button {
    min-width: 98px;
    padding-inline: 18px;
  }
}
