:root {
  --bg: #f8fafb;
  --card: #fff;
  --ink: #12151f;
  --muted: #60646e;
  --line: #e4e7eb;
  --green: #43a86c;
  --green-dark: #2c8351;
  --green-soft: #dff3e6;
  --red: #dd4c45;
  --shadow: 0 3px 0 rgba(20, 28, 37, .07), 0 8px 22px rgba(20, 28, 37, .04);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: Poppins, system-ui, -apple-system, sans-serif; }
body { min-width: 320px; }
button, input { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100dvh; display: flex; justify-content: center; }
.quiz { width: min(100%, 560px); min-height: 100dvh; padding: 14px 18px 46px; }
.diet-header { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; min-height: 34px; margin: 4px 0 12px; }
.diet-header .back { border: 0; background: transparent; font-size: 25px; color: #23252a; padding: 0; width: 36px; height: 36px; }
.diet-header .brand { width: 165px; max-width: 100%; margin: 0 auto; display: block; }
.diet-header .spacer { width: 36px; }
.creator { text-align: center; padding-top: 6px; }
.creator img { width: 116px; height: auto; display: block; margin: 0 auto 5px; }
.progress-wrap { margin: 17px 0 32px; }
.progress-track { height: 14px; background: #edf0f3; border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: inherit; background: linear-gradient(135deg, #31945b, #5ac47d); transition: width .45s ease; }
.progress-label { color: #fff; font-size: 10px; text-align: center; line-height: 14px; font-weight: 600; }
.page { animation: enter .28s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
h1, h2, p { margin: 0; }
h1, h2 { font-size: clamp(19px, 4.8vw, 27px); line-height: 1.25; text-align: center; }
p { font-size: 15px; line-height: 1.45; }
.subhead { text-align: center; margin: 8px auto 22px; max-width: 460px; }
.muted { color: var(--muted); }
.green { color: var(--green-dark); }
.red { color: var(--red); }
.note { border: 1px solid var(--line); background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 16px 17px; margin-top: 18px; }
.option-list { display: grid; gap: 10px; margin: 15px 0; }
.option, .choice, .select-card { width: 100%; min-height: 66px; border: 1px solid var(--line); background: linear-gradient(#fff, #fbfcfd); border-radius: 13px; box-shadow: var(--shadow); padding: 15px 18px; display: flex; align-items: center; justify-content: center; gap: 13px; color: var(--ink); text-align: center; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.option > img { width: 58px; height: 72px; object-fit: contain; margin-left: auto; }
.option:hover, .choice:hover, .select-card:hover { transform: translateY(-1px); }
.option:focus-visible, .choice:focus-visible, .select-card:focus-visible, .primary:focus-visible { outline: 3px solid #83cda0; outline-offset: 2px; }
.option.active, .choice.active, .select-card.active { border-color: #70c999; background: #effaf3; }
.emoji { font-size: 27px; flex: 0 0 auto; }
.small-text { font-size: 13px; }
.primary { width: 100%; border: 0; border-radius: 12px; min-height: 68px; color: white; font-weight: 700; background: linear-gradient(135deg, #32945a, #55bc78); box-shadow: 0 5px 0 rgba(27, 106, 64, .2); font-size: 16px; margin-top: 17px; }
.primary:active { transform: translateY(1px); }
.backlink { border: 0; background: transparent; color: #31343a; font-size: 25px; padding: 0; }
.hero-copy { text-align: center; margin: 26px 0 0; }
.hero-copy h1 { font-size: 20px; }
.hero-copy .alarm { color: #c6554e; margin-top: 9px; }
.spinner-screen { text-align: center; padding: 48px 0 10px; }
.spinner-screen h1 { margin-bottom: 16px; }
.loader { height: 16px; border-radius: 999px; background: #e3e5e8; overflow: hidden; margin: 12px auto; max-width: 420px; }
.loader > div { height: 100%; background: linear-gradient(135deg, #2d8e56, #64c98b); transition: width .8s ease; }
.loader-text { color: white; font-size: 10px; font-weight: 700; position: relative; top: -14px; }
.range-wrap { margin: 22px 0 10px; text-align: center; }
.unit-toggle { display: inline-flex; background: #f0f2f4; border-radius: 999px; padding: 2px; margin: 5px auto 10px; }
.unit-toggle button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; }
.unit-toggle button.active { background: #55bb7b; color: #fff; }
.range-value { font-weight: 700; font-size: 42px; letter-spacing: -1px; }
.range-value span { color: #a1a5ad; font-size: 22px; font-weight: 500; }
input[type=range] { width: 100%; accent-color: var(--green); margin: 17px 0 10px; }
.range-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.center-note { text-align: center; font-size: 13px; color: #72767e; }
.size-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; margin-top: 20px; }
.size-grid .choice { min-height: 173px; flex-direction: column; gap: 6px; font-weight: 600; }
.size-grid img { width: 100%; max-height: 112px; object-fit: contain; }
.body-grid { display: grid; gap: 10px; }
.body-card { justify-content: flex-start; text-align: left; min-height: 86px; }
.body-card img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.radio { width: 28px; height: 28px; border: 2px solid #a8d6bb; border-radius: 50%; margin-left: auto; flex: 0 0 auto; }
.active .radio { border: 8px solid #59ba7c; }
.image-card { border-radius: 12px; overflow: hidden; margin: 18px 0; }
.image-card img { width: 100%; height: auto; display: block; }
.split-images { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.split-images img { width: 100%; height: 330px; object-fit: cover; border-radius: 10px; }
.info-image { width: 100%; display: block; border-radius: 12px; margin: 18px 0; }
.loading-copy { text-align: center; font-weight: 700; margin: 16px 0; }
.stats { display: grid; gap: 10px; margin: 16px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 17px; }
.stat small { display: block; color: #8a8e97; margin-bottom: 4px; }
.stat strong { font-size: 16px; }
.calories { border-radius: 13px; color: #fff; padding: 23px 18px 16px; background: linear-gradient(135deg, #278a52, #63bd7f); margin: 18px 0; }
.calories h3 { text-align: center; font-size: 16px; margin: 0 0 16px; }
.calorie-line { height: 8px; background: rgba(255,255,255,.75); border-radius: 999px; position: relative; }
.calorie-dot { position: absolute; right: 21%; top: 50%; transform: translate(50%,-50%); width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid #55bf7d; box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.calorie-labels { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; }
.food-group { margin: 18px 0; }
.food-group h3 { font-size: 16px; margin-bottom: 10px; }
.food-grid { display: grid; gap: 10px; }
.food-btn { min-height: 58px; justify-content: flex-start; text-align: left; }
.food-btn .radio { margin-left: 0; order: -1; border-color: #e0e4e8; }
.food-btn.active .radio { border: 8px solid #55bb7c; border-color: #55bb7c; }
.days-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.days-grid .choice { justify-content: flex-start; text-align: left; }
.clinic-card { text-align: center; }
.clinic-card img { width: min(100%, 285px); display: block; margin: 16px auto; }
.offer h2 { text-align: center; font-size: 20px; }
.transform { margin: 16px 0; }
.transform img { width: 100%; border-radius: 9px; display: block; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; margin: 17px 0; }
.plan-pill { border-right: 1px solid var(--line); padding: 18px 9px; text-align: center; }
.plan-pill:last-child { border-right: 0; }
.plan-pill b { display: block; font-size: 13px; }
.plan-pill .kg { font-size: 14px; }
.meter { height: 92px; width: 30px; border-radius: 7px; background: #e7eaee; margin: 12px auto 10px; display: flex; align-items: flex-end; overflow: hidden; }
.meter span { width: 100%; background: linear-gradient(#4fbc76,#29834f); height: 37%; }
.meter.tall span { height: 62%; }.meter.full span { height: 100%; }
.plan-pill small { display: block; color: #2a8a50; font-size: 11px; font-weight: 700; line-height: 1.25; }
.offer-text { margin: 20px 0; }
.offer-text p { margin: 9px 0; }
.price-button { min-height: 78px; text-align: left; justify-content: space-between; padding: 12px 18px; text-decoration: none; }
.price-button span { display: block; }
.price-button .current { color: #217a47; font-size: 20px; font-weight: 800; }
.price-button small { color: #636870; font-size: 12px; }
.guarantee { margin-top: 25px; padding: 18px; border-radius: 13px; background: #edf8f0; border: 1px solid #d1ead8; }
.tiny-footer { text-align: center; color: #777c84; font-size: 11px; margin-top: 22px; }

@media (min-width: 740px) {
  .quiz { padding-top: 26px; }
  .progress-wrap { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
