:root {
  --blue: #02a1e5;
  --deep: #06456e;
  --ink: #143044;
  --muted: rgba(20, 48, 68, 0.62);
  --line: rgba(6, 69, 110, 0.14);
  --paper: #f3f8fb;
  --card: #ffffff;
  --ok: #0f8a4b;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: "Segoe UI", "Noto Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(2, 161, 229, 0.28), transparent 60%),
    radial-gradient(700px 380px at 110% 0%, rgba(6, 69, 110, 0.18), transparent 55%),
    var(--paper);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.brand, .phone {
  color: var(--deep);
  text-decoration: none;
  font-weight: 650;
}

.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { width: 36px; height: 36px; }
.phone { font-size: 0.95rem; }

.stage {
  width: min(1080px, calc(100% - 1.5rem));
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.guide { position: sticky; top: 1rem; text-align: center; }

.character { width: 210px; margin: 0 auto; }
.character svg { width: 100%; height: auto; display: block; }
.character .body { transform-origin: 100px 180px; animation: bob 3.2s ease-in-out infinite; }
.character .eye { transform-origin: center; animation: blink 4.8s infinite; }
.character .arm { transform-origin: 140px 130px; }
.character[data-mood="wave"] .arm { animation: wave 1.4s ease-in-out infinite; }
.character[data-mood="cheer"] .body { animation: cheer 0.7s ease-in-out 2; }
.shadow { fill: rgba(6, 69, 110, 0.12); }

.speech {
  margin: 0.25rem auto 0;
  max-width: 16rem;
  padding: 0.85rem 1rem;
  border-radius: 1.1rem 1.1rem 1.1rem 0.35rem;
  background: #fff;
  color: var(--deep);
  font-weight: 650;
  line-height: 1.35;
  box-shadow: 0 10px 30px rgba(6, 69, 110, 0.08);
}

.card {
  background: var(--card);
  border-radius: 1.6rem;
  padding: 1.35rem 1.25rem 1.15rem;
  box-shadow: 0 18px 50px rgba(6, 69, 110, 0.1);
  min-height: 28rem;
  animation: rise 0.45s ease;
}

.offer {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #e7f6fd;
  color: var(--deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1, h2 { margin: 0 0 0.45rem; line-height: 1.15; color: var(--deep); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.lead { margin: 0 0 1.1rem; color: var(--muted); font-size: 1.05rem; line-height: 1.5; }

.pips { display: flex; gap: 0.35rem; margin: 0 0 1rem; }
.pips span {
  height: 0.35rem;
  flex: 1;
  border-radius: 99px;
  background: #e4eef4;
}
.pips span.is-on { background: var(--blue); }

.choices, .mods, .prices { display: grid; gap: 0.65rem; }
.choices { grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); }

.choice, .mod, .price {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 1rem;
  padding: 0.85rem 0.9rem;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}
.choice small, .mod small, .price small { display: block; color: var(--muted); margin-top: 0.2rem; }
.choice.is-on, .mod.is-on { border-color: var(--blue); background: #f3fbfe; box-shadow: inset 0 0 0 1px var(--blue); }

label.field { display: block; margin: 0 0 0.8rem; font-size: 0.92rem; font-weight: 650; }
input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
textarea { min-height: 5.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible {
  outline: 3px solid rgba(2, 161, 229, 0.35);
  outline-offset: 1px;
}

.search { display: flex; gap: 0.5rem; margin-bottom: 0.8rem; }
.search input { margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.8rem; }
.chip {
  border: 0;
  border-radius: 999px;
  background: #e7f6fd;
  color: var(--deep);
  padding: 0.35rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.tools { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.4rem 0 0.9rem; }
.tools a, .tools label {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--deep);
  text-decoration: none;
  font-size: 0.92rem;
  cursor: pointer;
}
.tools input { display: none; }

.actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 1.1rem;
}
button.primary, button.ghost {
  min-height: 3rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button.primary { border: 0; background: var(--blue); color: #fff; }
button.primary:disabled { opacity: 0.55; cursor: wait; }
button.ghost { border: 1px solid var(--line); background: #fff; color: var(--deep); }

.error {
  margin: 0.8rem 0 0;
  padding: 0.7rem 0.8rem;
  border-radius: 0.8rem;
  background: #fff1f0;
  color: #9d2b22;
}

.review { display: grid; gap: 0.6rem; }
.review article {
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  background: #f7fbfe;
}
.review h3 { margin: 0 0 0.2rem; font-size: 0.95rem; }
.review p { margin: 0; color: var(--muted); }

.check { display: flex; gap: 0.65rem; align-items: flex-start; font-weight: 550; }
.check input { width: 1.15rem; height: 1.15rem; margin: 0.15rem 0 0; }

.logo-preview { width: 64px; height: 64px; object-fit: contain; border-radius: 0.7rem; background: #f7fbfe; }

.done h2 { color: var(--ok); }

@media (max-width: 800px) {
  .stage { grid-template-columns: 1fr; width: min(100% - 1rem, 720px); }
  .guide { position: static; display: grid; grid-template-columns: 96px 1fr; gap: 0.6rem; align-items: center; text-align: left; }
  .character { width: 96px; }
  .speech { margin: 0; max-width: none; }
  .row, .actions { grid-template-columns: 1fr; }
  .actions { display: grid; }
  button.primary, button.ghost { width: 100%; }
  .card { min-height: 0; padding: 1.1rem 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .character .body, .character .eye, .character .arm, .card { animation: none; }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-18deg); }
}
@keyframes cheer {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.04); }
}
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(0.1); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
