:root {
  --theme: #b5179e;
  --theme-2: #d6338a;
  --theme-dark: #8f1180;
  --theme-soft: #fdf2f8;
  --theme-line: #f6d7ea;
  --grad: linear-gradient(135deg, #b5179e 0%, #e03a8c 100%);
  --text: #1f1a24;
  --muted: #6b6475;
  --title: #120d17;
  --bg: #fcf8fa;
  --card: #ffffff;
  --line: #f1e9ee;
  --green: #16a34a;
  --grad-green: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  --radius: 24px;
  --radius-sm: 18px;
  --radius-lg: 30px;
  --el-size: 58px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-sm: 0 1px 2px rgba(60, 20, 50, .03), 0 4px 14px rgba(60, 20, 50, .05);
  --shadow: 0 2px 6px rgba(60, 20, 50, .04), 0 14px 34px rgba(60, 20, 50, .08);
  --shadow-theme: 0 10px 26px rgba(181, 23, 158, .24);
  --shadow-green: 0 10px 28px rgba(22, 163, 74, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); overflow-x: hidden; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(120% 55% at 50% -10%, #fbe7f3 0%, rgba(251, 231, 243, 0) 60%),
    var(--bg);
  background-repeat: no-repeat;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
:focus-visible { outline: 2px solid var(--theme); outline-offset: 3px; }

.emoji { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -.28em; margin: 0 .08em; }
.emoji.lg { width: 1.5em; height: 1.5em; vertical-align: -.38em; }

.app {
  max-width: 28rem;
  margin: 0 auto;
  padding: 12px 16px calc(28px + env(safe-area-inset-bottom));
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.topbar {
  display: flex;
  align-items: center;
  margin: -12px -16px 18px;
  padding: 22px 16px 12px;
  flex: none;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(252, 248, 250, .78);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}
.back {
  flex: none;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--title);
  transition: opacity .3s var(--ease), transform .3s var(--ease), width .4s var(--ease), margin .4s var(--ease);
}
.back:active { transform: scale(.9); }
.back.hidden { opacity: 0; pointer-events: none; transform: scale(.6); width: 0; margin-right: 0; }
.back svg { width: 18px; height: 18px; }
.progress { position: relative; flex: 1; height: 8px; border-radius: 99px; overflow: hidden; background: #f4e4ee; }
.progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--grad);
  border-radius: 99px;
  transition: width .8s var(--ease);
}

.steps { flex: 1; display: flex; flex-direction: column; }
.step { display: none; flex: 1; flex-direction: column; }
.step.active { display: flex; }
.step-inner { margin: auto 0; display: flex; flex-wrap: wrap; }
.step-inner > * { flex-basis: 100%; min-width: 0; padding: .25rem 0; }
.step.active .step-inner > * { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.step.leaving { display: flex; animation: leave .22s ease both; }
.step.long .step-inner { margin-top: 0; margin-bottom: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes leave { to { opacity: 0; transform: translateY(-8px); } }

.content { line-height: 1.3; }
.content h1, .content h2 {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  color: var(--title);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.content h1 { font-size: 1.95rem; font-weight: 800; line-height: 1.12; margin-bottom: .6rem; }
.content h2 { font-size: 1.55rem; font-weight: 800; line-height: 1.15; margin-bottom: .6rem; }
.content p { line-height: 1.5; margin-bottom: .6rem; }
.content p:last-child, .content h1:last-child, .content h2:last-child { margin-bottom: 0; }
.center { text-align: center; }
.small { font-size: .78em; }
p.small { font-size: 13px; line-height: 1.45; color: var(--muted); }
.mark {
  background: var(--grad);
  color: #fff;
  padding: .04em .34em;
  border-radius: .45em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--theme-soft);
  color: var(--theme);
  border: 1px solid var(--theme-line);
  font-weight: 600;
  font-size: 14px;
}
.intro { margin: .5rem 0 1.4rem; }
.intro .pill { margin-bottom: 14px; }
.meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.meta strong { color: var(--title); }
.claim {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 800;
  text-align: center;
  color: var(--theme-dark);
  letter-spacing: -.02em;
  margin-top: .35rem;
}

.img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.img img { width: 100%; height: auto; }
.img.w53, .ph.w53 { flex-basis: 53%; margin-left: auto; margin-right: auto; border-radius: var(--radius-lg); }
.img.w80, .ph.w80 { flex-basis: 80%; margin-left: auto; margin-right: auto; }
.img.square, .ph.square { aspect-ratio: 1 / 1; }
.img.square img { height: 100%; object-fit: cover; }

.ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  min-height: 168px;
  padding: 18px 14px;
  border-radius: var(--radius);
  color: var(--theme-dark);
  background:
    repeating-linear-gradient(135deg, #fff7fb 0 12px, #fdeef6 12px 24px);
  border: 1.5px dashed #e4a8cf;
  box-shadow: var(--shadow-sm);
}
.ph svg { width: 34px; height: 34px; color: var(--theme); }
.ph-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--theme);
}
.ph-label {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  color: var(--title);
  letter-spacing: -.02em;
}
.ph-note { font-size: 12.5px; line-height: 1.35; color: var(--muted); max-width: 16rem; }
.ph.diag { min-height: 230px; border-radius: var(--radius); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.options { display: grid; gap: 10px; }
.options.cols-2 { grid-template-columns: 1fr 1fr; }
.options .opt { animation: rise .55s var(--ease) both; animation-delay: calc(120ms + var(--j, 0) * 55ms); }
.opt {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  color: var(--title);
  border: 1.5px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), border-color .25s ease, background .25s ease, box-shadow .35s var(--ease);
}
@media (hover: hover) {
  .opt:hover { transform: translateY(-2px); border-color: var(--theme-line); box-shadow: var(--shadow); }
}
.opt:active { transform: scale(.97); }
.opt.selected {
  border-color: var(--theme);
  background: var(--theme-soft);
  box-shadow: 0 0 0 4px rgba(181, 23, 158, .10), var(--shadow);
}
.opt-body { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: var(--el-size); flex: 1; }
.opt-label { flex: 1; line-height: 1.3; font-weight: 500; }
.opt-label strong { font-weight: 700; }
.opt-img + .opt-body { padding: 12px; }
.opt-img + .opt-body .opt-label { font-size: 14px; }
.opt-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f7f1f4;
  margin: 6px 6px 0;
  border-radius: calc(var(--radius) - 6px);
}
.opt-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.opt:hover .opt-img img, .opt.selected .opt-img img { transform: scale(1.04); }

.opt.featured {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-theme);
}
.opt.featured:hover { border-color: transparent; box-shadow: 0 14px 30px rgba(181, 23, 158, .30); }
.opt.featured.selected {
  background: linear-gradient(135deg, #8f1180, #b5179e);
  box-shadow: 0 0 0 4px rgba(181, 23, 158, .18), var(--shadow-theme);
}
.opt.center-label .opt-body { justify-content: center; text-align: center; }
.opt.center-label .opt-label { flex: none; font-size: 17px; }

.radio {
  flex: none;
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #ddd0d8;
  background: #fff;
  color: #fff;
  transition: background .25s ease, border-color .25s ease, transform .35s var(--ease);
}
.opt.featured .radio { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .14); }
.radio svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  transform: translate(-50%, -50%) scale(.4);
  opacity: 0;
  transition: opacity .2s ease, transform .35s var(--ease);
}
.opt.selected .radio { background: var(--theme); border-color: var(--theme); transform: scale(1.08); }
.opt.featured.selected .radio { background: #fff; border-color: #fff; color: var(--theme); }
.opt.selected .radio svg { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.letter {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--theme-soft);
  color: var(--theme);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: background .25s ease, color .25s ease, transform .35s var(--ease);
}
.opt.selected .letter { background: var(--grad); color: #fff; transform: scale(1.06); }

.opt-emoji {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--theme-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  transition: transform .45s var(--ease), background .25s ease;
}
.opt-emoji img { width: 30px; height: 30px; transition: transform .45s var(--ease); }
.opt:hover .opt-emoji img { transform: scale(1.08) rotate(-4deg); }
.opt.selected .opt-emoji { background: #fbd5ea; transform: scale(1.04); }
.opt.selected .opt-emoji img { animation: pop .5s var(--ease); }
@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.3) rotate(-8deg); }
  100% { transform: scale(1); }
}
.opt-body .radio.end { margin-left: auto; }

.alert { border-radius: var(--radius); padding: 16px 18px; }
.alert p { margin-bottom: .55rem; line-height: 1.45; }
.alert p:last-child { margin-bottom: 0; }
.alert.light { background: #fff; color: var(--muted); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.alert.danger {
  background: #fff1f3;
  color: #e11d48;
  padding: 12px 16px;
  border: 1px solid #fecdd3;
  border-radius: 99px;
  letter-spacing: .01em;
}
.alert.warning { background: #fffaeb; color: var(--title); border: 1px solid #fbe3a1; }
.alert.warning p { display: flex; gap: 10px; align-items: flex-start; }
.alert.warning .emoji { flex: none; margin: 0; vertical-align: 0; }
.alert.medical { background: #f4f7f4; color: #3d4a40; border: 1px solid #d5e3d8; }
.alert.medical strong { color: #1f3d2a; }

.list { display: grid; gap: 10px; margin-top: 14px; }
.list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  line-height: 1.45;
}
.list-item .emoji { flex: none; margin: 0; width: 24px; height: 24px; vertical-align: 0; }

.btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  width: 100%;
  min-height: var(--el-size);
  padding: 14px 18px;
  border-radius: 99px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: .01em;
  text-decoration: none;
  box-shadow: var(--shadow-theme);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .2s ease;
}
@media (hover: hover) { .btn:hover { transform: translateY(-2px); filter: brightness(1.05); } }
.btn:active { transform: scale(.97); }
.btn .arrow { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.green {
  background: var(--grad-green);
  box-shadow: var(--shadow-green);
  font-size: 15.5px;
  padding: 16px 22px;
}
.btn.green .shine {
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0));
  transform: skewX(-20deg);
  animation: shine 3.2s ease-in-out infinite;
  pointer-events: none;
}
.btn.pulse { animation: glow 2.2s ease-in-out infinite; }
.btn.shake { animation: shake .4s var(--ease); }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes glow {
  0%, 100% { box-shadow: var(--shadow-green), 0 0 0 0 rgba(34, 197, 94, .45); }
  50% { box-shadow: var(--shadow-green), 0 0 0 10px rgba(34, 197, 94, 0); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

.loader { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 0; }
.ring { position: relative; width: 132px; height: 132px; margin-bottom: 22px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: #f4e4ee; }
.ring .bar { stroke: url(#ringGrad); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; }
.ring .loading-pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--title);
  letter-spacing: -.02em;
}
.loading-title { font-weight: 700; font-size: 17px; color: var(--title); margin-bottom: 6px; }
.loading-desc { color: var(--muted); max-width: 300px; }
.typing { display: inline-flex; gap: 4px; margin-top: 14px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--theme); opacity: .3; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 -16px;
  padding: 6px 0 14px;
}
.carousel::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 84%;
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.slide:first-child { margin-left: 8%; }
.slide:last-child { margin-right: 8%; }
.slide:not(.current) { transform: scale(.95); opacity: .7; }
.slide > img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f7f1f4; }
.slide p {
  text-align: center;
  padding: 14px 12px;
  min-height: 52px;
  margin-top: auto;
  font-weight: 600;
  color: var(--title);
}
.dots { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 4px; }
.dot { width: 7px; height: 7px; border-radius: 99px; background: var(--theme); opacity: .2; transition: all .4s var(--ease); }
.dot.on { width: 22px; opacity: 1; background: var(--grad); }

.results { display: grid; gap: 12px; }
.results img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.price {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 2px var(--theme-line), 0 18px 40px rgba(181, 23, 158, .14);
}
.price-top {
  background: var(--grad);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .02em;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.price-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 16px 20px; }
.price-title {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.25;
  color: var(--title);
  letter-spacing: -.01em;
}
.price-box {
  flex: none;
  background: var(--theme-soft);
  border: 1px solid var(--theme-line);
  border-radius: 20px;
  padding: 10px 14px;
  text-align: right;
  color: var(--title);
}
.price-before { font-size: 12px; color: var(--muted); text-align: left; }
.price-before s { text-decoration-color: #e11d48; text-decoration-thickness: 2px; }
.price-value {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.1;
  white-space: nowrap;
  letter-spacing: -.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-value small { font-size: 15px; }
.price-after { font-size: 12px; color: var(--muted); }

.badge-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px auto 0;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 99px;
  background: #fff;
  border: 1px dashed #b7cfc0;
  color: #1f3d2a;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}
.badge-ph-dot {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e7f6ec;
  border: 1.5px solid #86efac;
  position: relative;
}
.badge-ph-dot::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 8px;
  border: solid #16a34a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.faq { display: grid; gap: 10px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--title);
  line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--theme-soft);
  color: var(--theme);
  font-weight: 800;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 16px 14px; color: var(--text); line-height: 1.5; }

.guarantee {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--theme-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 16px;
}
.seal {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--theme-dark);
  background:
    radial-gradient(circle at 50% 50%, #fff 0 58%, transparent 59%),
    repeating-conic-gradient(from 0deg, var(--theme) 0 8deg, transparent 8deg 16deg);
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--theme-line);
}
.seal strong {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 22px;
  line-height: 1;
  display: block;
}
.seal span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.guarantee h2 { font-size: 1.15rem; margin-bottom: .35rem; }
.guarantee p { margin: 0; line-height: 1.45; }

.draft-note { margin-top: 8px; }
.draft-note p { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

.space-1 { height: 1rem; }
.space-2 { height: 2rem; }

@media (min-width: 900px) {
  body {
    background:
      radial-gradient(70% 45% at 50% -8%, #fbe7f3 0%, rgba(251, 231, 243, 0) 62%),
      var(--bg);
  }
  .app { padding-top: 28px; }
}

@media (max-width: 360px) {
  .content h1 { font-size: 1.7rem; }
  .price-value { font-size: 24px; }
  .opt-body { padding: 12px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
