.stack {
  display: grid;
  gap: 16px;
}

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

.field label {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 5px;
  border: 1px solid #d7dfef;
  padding: 14px 16px;
  font-size: 16px;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input {
  height: 54px;
}

.field textarea {
  min-height: 118px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(91, 107, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(91, 107, 255, 0.14);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.button,
button.button {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 5px;
  background: linear-gradient(135deg, #5b6bff 0%, #2743d0 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(39, 67, 208, 0.22);
}

.button.secondary {
  background: rgba(91, 107, 255, 0.08);
  color: #111827;
  box-shadow: none;
}

.button.light {
  background: rgba(255, 255, 255, 0.72);
  color: #111827;
  box-shadow: none;
  border: 1px solid #d7dfef;
}

.result-page {
  width: min(980px, calc(100% - 32px));
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 32px 0;
}

.result-page .hero {
  justify-items: center;
}

.result-card {
  width: min(100%, 860px);
  padding: 44px 36px;
  border-radius: 5px;
  background: #ffffff;
  border: 1px solid #dce3f1;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.result-card .illustration-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.result-card h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.result-card p.lead {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

.result-card .note {
  margin-top: 22px;
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(19, 16, 13, 0.55);
  backdrop-filter: blur(8px);
  z-index: 30;
}

.modal.is-open {
  display: flex;
}

.modal-card {
  width: min(520px, 100%);
  background: #ffffff;
  border: 1px solid #dce3f1;
  border-radius: 5px;
  padding: 30px 30px 26px;
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.18);
}

.modal-card h3 {
  margin: 0;
  color: #101827;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.modal-card p {
  margin: 22px 0 0;
  color: #334155;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.02em;
}

.modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.modal-actions .btn {
  min-width: 116px;
  min-height: 48px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(39, 67, 208, 0.18);
}

.landing-page {
  padding: 40px 20px 96px;
}

.landing-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.landing-shell {
  --landing-shell-width: 800px;
  width: min(calc(100vw - 40px), var(--landing-shell-width));
  display: grid;
  gap: 0;
  justify-items: stretch;
}

.landing-poster {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  border: 1px solid #dce3f1;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.landing-poster img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.landing-poster img.is-hidden {
  display: none;
}

.landing-fallback {
  min-height: 360px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.landing-fallback.is-hidden {
  display: none;
}

.landing-fallback-box {
  width: min(300px, 100%);
  height: 300px;
  border-radius: 5px;
  background: #d1d5db;
  border: 1px dashed #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.landing-form-card {
  border: 1px solid #dce3f1;
  border-top: 1px solid #dce3f1;
  border-radius: 0 0 5px 5px;
  background: #ffffff;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.08);
}

.landing-form-inner {
  padding: 32px 32px 36px;
  display: grid;
  gap: 16px;
}

.landing-form-inner .field input,
.landing-form-inner .field textarea {
  font-size: 16px;
}

.landing-form-inner #name {
  font-size: 18px;
  font-weight: 800;
}

.landing-form-intro {
  margin: 0;
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.26;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #101827;
  text-align: center;
}

.landing-form-inner .button-row {
  display: block;
  margin-top: 4px;
}

.landing-form-inner .button-row .button {
  width: 100%;
  min-height: 54px;
}

.phone-grid {
  display: grid;
  grid-template-columns: minmax(76px, 0.9fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.phone-grid input {
  text-align: center;
  letter-spacing: 0.04em;
  font-size: 18px;
  font-weight: 800;
}

.phone-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 980px) {
  .result-card {
    padding: 32px 24px;
  }

  .phone-grid {
    gap: 8px;
  }

  .phone-separator {
    font-size: 18px;
  }
}
