* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* width/height у <img> проставлены для валидатора; размер по-прежнему задаёт CSS,
   как в исходном макете */
img { width: auto; height: auto; }

/* бывшие h1 на экранах квиза: на странице допустим один h1 */
.h1 { font-size: 2em; font-weight: bold; }

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  background: var(--color-surface-tertiary-alpha);
  font-family: var(--font-family-body);
  color: var(--color-text-primary);
  -webkit-tap-highlight-color: transparent;
}

#app {
  width: 100%;
  min-width: 360px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.screen {
  display: none;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 96px;
}

.screen.is-active {
  display: flex;
}

/* Nav bar: back button + logo. No fake iOS status bar --
   the real webview host provides the actual device chrome. */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 56px;
  padding: 0 16px;
  flex-shrink: 0;
}

.nav-back {
  position: absolute;
  left: 16px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-primary);
}

.nav-back svg {
  width: 20px;
  height: 20px;
}

.nav-logo {
  height: 22px;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 20px;
  flex: 1;
}

/* Progress bar */
.progress-block {
  padding: 0 16px;
}

.progress-line {
  position: relative;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-border-primary);
  overflow: hidden;
}

.progress-step {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  transition: width 0.3s ease;
}

/* Question */
.question {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.question h1,
.question h2 {
  font-family: var(--font-family-title);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xxl);
  line-height: 1.25;
  letter-spacing: var(--letter-spacing-base);
  color: var(--color-text-primary);
}

.question p {
  font-family: var(--font-family-body);
  font-size: var(--font-size-s);
  color: var(--color-text-secondary);
}

/* Answers */
.answers {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.button-chooser {
  height: 50px;
  width: 100%;
  border: 2px solid var(--color-border-secondary);
  border-radius: var(--radius-button-square);
  background: var(--color-surface-primary);
  box-shadow: var(--shadow-elevation-2);
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-s);
  letter-spacing: var(--letter-spacing-broad);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.button-chooser:active {
  background: #fafafa;
}

.button-chooser.is-selected {
  border-color: var(--color-accent);
}

/* Screen 00 · Intro */
.screen--intro {
  background: linear-gradient(106deg, #ffdef5 30%, #f7dfff 69%);
  position: relative;
}

.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 16px;
  margin-top: 48px;
}

.intro-mascot {
  width: 200px;
  height: 200px;
  object-fit: cover;
}

.intro-card {
  width: 100%;
  background: var(--color-surface-primary);
  border-radius: 24px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intro-card h1,
.intro-card h2 {
  font-family: var(--font-family-title);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xxl);
  line-height: 1.25;
  color: var(--color-text-primary);
}

.intro-card p {
  font-family: var(--font-family-body);
  font-size: 20px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.intro-footer {
  position: fixed;
  left: 32px;
  right: 32px;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 20;
  pointer-events: none;
}

.intro-footer > * {
  pointer-events: auto;
}

.cta-pill {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 50px;
  background: var(--general-positive, #08c408);
  box-shadow: var(--shadow-elevation-2);
  font-family: var(--font-family-title);
  font-weight: var(--font-weight-bold);
  font-size: 16px;
  letter-spacing: var(--letter-spacing-broad);
  color: #fff;
  cursor: pointer;
}

/* Screens 02 / 02-1 / 02-2 / 02-3 · Branch (personalized answer) screens */
.screen--branch {
  background: linear-gradient(180deg, rgba(206, 138, 255, 0.25) 0%, rgba(255, 202, 132, 0.25) 100%), #ffffff;
}

.branch-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  text-align: center;
}

.branch-mascot {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.branch-text h1,
.branch-text h2 {
  font-family: var(--font-family-title);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xxl);
  line-height: 1.25;
  color: var(--color-text-primary);
}

.accent {
  color: var(--color-accent);
}

.branch-text p {
  font-family: var(--font-family-body);
  font-size: 20px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.offer-card {
  background: var(--color-surface-primary);
  border-radius: 24px;
  margin: 0 16px;
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-title {
  font-family: var(--font-family-title);
  font-weight: var(--font-weight-bold);
  font-size: 18px;
  color: var(--color-text-primary);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 8px;
  font-family: var(--font-family-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  width: fit-content;
}

.badge--green {
  background: #08c408;
  color: #fff;
}

.badge--white {
  background: var(--color-surface-primary);
  color: var(--color-text-secondary);
}

/* Marathon carousel (screens 02 / 02-1 / 02-2) — one full-width card per swipe */
.marathon-carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.marathon-card {
  display: flex;
  align-items: stretch;
  gap: 12px;
  background: #f8f8f8;
  border-radius: 20px;
  overflow: hidden;
  min-width: 100%;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.marathon-card-img {
  width: 120px;
  flex-shrink: 0;
  object-fit: cover;
}

.marathon-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 12px 12px 0;
  min-width: 0;
}

.marathon-card-title {
  font-family: var(--font-family-body);
  font-weight: 700;
  font-size: 22px;
  color: var(--color-text-primary);
}

.marathon-card-date {
  font-family: var(--font-family-body);
  font-size: 14px;
  color: var(--color-text-secondary);
}

.marathon-card-stats {
  display: flex;
  gap: 4px;
  font-family: var(--font-family-body);
  font-size: 14px;
  color: #7a8096;
}

/* Program carousel (screen 02-3) — small square cards, several visible */
.program-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.program-card {
  position: relative;
  flex-shrink: 0;
  width: 150px;
}

.program-card-img {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  background: #f8f8f8;
}

.program-card-tag-left {
  position: absolute;
  top: 4px;
  left: 4px;
}

.program-card-tag-right {
  position: absolute;
  top: 4px;
  right: 4px;
}

.program-card-body {
  padding: 4px 8px 8px;
  display: flex;
  flex-direction: column;
}

.program-card-title {
  font-family: var(--font-family-title);
  font-weight: var(--font-weight-bold);
  font-size: 16px;
  color: var(--color-text-primary);
}

.program-card-desc {
  font-family: var(--font-family-body);
  font-size: 14px;
  color: var(--color-text-primary);
}

/* AI-coach card (screens 06 / 06-1 / 06-2) */
.ai-coach-card {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #fff6f5;
  border: 1px solid #fd5860;
  border-radius: 24px;
  box-shadow: 0px 1px 5px 2px rgba(49, 24, 31, 0.09), 0px 8px 10px rgba(49, 24, 31, 0.09);
  text-align: left;
  width: 100%;
}

.ai-coach-avatar {
  width: 64px;
  height: 64px;
  border-radius: 64px;
  background: linear-gradient(90deg, #fd5860 0%, #e976d5 34%, #ffb14a 100%);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.ai-coach-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-coach-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.ai-coach-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 30px;
  border-radius: 24px;
  background: linear-gradient(90deg, rgba(253, 88, 96, 0.2) 0%, rgba(233, 118, 213, 0.2) 34%, rgba(255, 177, 74, 0.2) 100%);
  width: fit-content;
}

.ai-coach-tag span {
  font-family: var(--font-family-title);
  font-weight: var(--font-weight-bold);
  font-size: 16px;
  background: linear-gradient(90deg, #fd5860 0%, #e976d5 34%, #ffb14a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ai-coach-text {
  font-family: var(--font-family-body);
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text-primary);
}

.stat-pill-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface-primary);
  border-radius: 24px;
  padding: 12px 16px;
  width: 100%;
}

.stat-pill-number {
  font-family: var(--font-family-title);
  font-weight: var(--font-weight-bold);
  font-size: 36px;
  color: var(--color-accent);
  line-height: 1.2;
  flex-shrink: 0;
}

.stat-pill-text {
  font-family: var(--font-family-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text-primary);
}

/* Family profiles (screens 09 / 09-1) */
.family-profiles {
  display: flex;
  gap: 12px;
  padding: 0 16px;
}

.family-avatar {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.family-avatar img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 120px;
  object-fit: cover;
}

.family-avatar span {
  font-family: var(--font-family-title);
  font-weight: var(--font-weight-bold);
  font-size: 12px;
  color: var(--color-text-secondary);
  text-align: center;
}

.stat-note-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--color-surface-primary);
  border-radius: 24px;
  margin: 0 16px;
  padding: 12px 16px 16px;
}

.stat-note-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.stat-note-text {
  font-family: var(--font-family-title);
  font-weight: var(--font-weight-bold);
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text-primary);
}

.stat-note-source {
  font-family: var(--font-family-body);
  font-size: 12px;
  color: #7a8096;
  margin-top: 2px;
}

/* Stats card (screens 04 / 04-1 / 04-2) */
.stats-card {
  background: var(--color-surface-primary);
  border-radius: 24px;
  margin: 0 16px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stats-card-title {
  font-family: var(--font-family-title);
  font-weight: var(--font-weight-bold);
  font-size: 18px;
  line-height: 1.38;
  color: var(--color-text-primary);
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stats-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-family-body);
  font-size: 16px;
  color: var(--color-text-primary);
}

.stats-row .icon-down {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #08c408;
}

.stats-footnote {
  font-family: var(--font-family-body);
  font-size: 12px;
  color: #7a8096;
}

/* Meditation carousel (screens 04 / 04-1 / 04-2 / 04-3) */
.meditation-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.meditation-card {
  position: relative;
  flex: 1 0 0;
  min-width: 160px;
  max-width: 272px;
  height: 188px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}

.meditation-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.meditation-card-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(38, 36, 28, 0) 0%, rgba(42, 39, 29, 0.37) 70%, rgba(38, 36, 28, 0.76) 100%);
}

.meditation-card-label {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #fff;
}

.meditation-card-label svg {
  width: 18px;
  height: 18px;
}

.meditation-card-label span {
  font-family: var(--font-family-title);
  font-weight: var(--font-weight-bold);
  font-size: 16px;
  letter-spacing: 0.15px;
}

/* Footer action button (used on later screens) */
.footer {
  margin-top: auto;
  padding: 16px;
}

.button-action {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: var(--radius-button-square);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-s);
  cursor: pointer;
}

.button-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Recipe cards (screen 11) */
.recipe-carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.recipe-card {
  flex-shrink: 0;
  width: 150px;
}

.recipe-card-img-wrap {
  position: relative;
}

.recipe-card-img {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  background: #f8f8f8;
}

.recipe-card-time {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ffffe2;
  border-radius: 12px;
  padding: 4px 8px;
  font-family: var(--font-family-body);
  font-size: 14px;
  color: var(--color-text-primary);
}

.recipe-card-title {
  font-family: var(--font-family-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: #001624;
  margin-top: 4px;
}

.recipe-card-kcal {
  font-family: var(--font-family-body);
  font-size: 12px;
  color: #7e8298;
  margin-top: 4px;
}

/* Calorie progress card (screen 11-1) */
.calorie-card {
  background: #f8f8f8;
  border-radius: 20px;
  margin: 0 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calorie-card-title {
  font-family: var(--font-family-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text-primary);
}

.calorie-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 16px;
}

.calorie-ring {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: conic-gradient(var(--color-accent) 0% 75%, var(--color-border-primary) 75% 100%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calorie-ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: #f8f8f8;
  border-radius: 50%;
}

.calorie-ring-value {
  position: relative;
  z-index: 1;
  background: #ff8cb6;
  color: #fff;
  font-family: var(--font-family-body);
  font-weight: 600;
  font-size: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calorie-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calorie-label {
  font-family: var(--font-family-body);
  font-size: 16px;
  color: #7a8096;
}

.calorie-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-family-title);
}

.calorie-value .main {
  font-weight: 700;
  font-size: 36px;
  color: var(--color-text-primary);
}

.calorie-value .sep,
.calorie-value .total {
  font-weight: 700;
  font-size: 18px;
  color: #7a8096;
}

.macro-pills {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  width: 100%;
}

.macro-pill {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 6px 4px;
  border-radius: 8px;
  font-family: var(--font-family-body);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.macro-pill--protein { background: #d5f1ff; color: #16678f; }
.macro-pill--fat { background: #ffefd7; color: #bc7e20; }
.macro-pill--carbs { background: #defae4; color: #358e48; }

.calorie-card .cta-pill {
  box-shadow: 0px 1px 3px 1px rgba(49, 24, 31, 0.06), 0px 4px 15px 2px rgba(49, 24, 31, 0.06);
}

.meal-cards {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px;
}

.meal-card {
  flex-shrink: 0;
  width: 140px;
  background: linear-gradient(108deg, #f8f8f8 1%, #ece4f6 101%);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}

.meal-card-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #08c408;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.meal-card-check svg {
  width: 14px;
  height: 14px;
}

.meal-card-title {
  font-family: var(--font-family-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text-primary);
}

.meal-card-kcal {
  font-family: var(--font-family-body);
  font-size: 14px;
  color: var(--color-text-primary);
}

/* Specialist cards (screen 11-2) */
.specialist-carousel {
  display: flex;
  gap: 12px;
}

.specialist-card {
  position: relative;
  flex-shrink: 0;
  width: 160px;
  height: 200px;
  border-radius: 16px;
  background: linear-gradient(121deg, #bbea6c 3%, #ebffc9 88%);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.specialist-photo {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 108px;
  height: 130px;
  object-fit: cover;
  object-position: top;
  z-index: 1;
}

.specialist-card--wide .specialist-photo {
  width: 128px;
  left: 50%;
  right: auto;
  transform: translateX(-8px);
}

.specialist-info {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.specialist-name {
  font-family: var(--font-family-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.38;
  color: var(--color-text-primary);
}

.specialist-role {
  font-family: var(--font-family-body);
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.specialist-exp {
  display: flex;
  align-items: center;
  gap: 8px;
}

.specialist-exp-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #fafff1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.specialist-exp-label {
  font-family: var(--font-family-body);
  font-size: 10px;
  color: var(--color-text-secondary);
}

.specialist-exp-value {
  font-family: var(--font-family-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text-primary);
}

/* Screen 12 · Results summary */
.screen--results {
  background: linear-gradient(180deg, rgba(206, 138, 255, 0.25) 0%, rgba(255, 202, 132, 0.25) 100%), #ffffff;
}

.results-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px 96px;
}

.results-card {
  background: var(--color-surface-primary);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.results-card-title {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text-primary);
  line-height: 1.38;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f7f9;
  border-radius: 12px;
  padding: 8px 12px 8px 8px;
  font-family: var(--font-family-body);
  font-size: 14px;
  color: var(--color-text-primary);
}

.chip-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
}

.chip-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.results-footnote {
  font-family: var(--font-family-body);
  font-size: 14px;
  color: #7a8096;
}

.chart-legend {
  display: flex;
  gap: 16px;
}

.chart-legend-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chart-legend-label {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.chart-legend-bar {
  height: 4px;
  border-radius: 2px;
}

.chart-legend-bar--marathon { background: var(--color-accent); }
.chart-legend-bar--normal { background: var(--color-border-primary); }

.chart-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-family-body);
  font-size: 12px;
  color: #7a8096;
}

/* Comparison table */
.compare-head {
  display: flex;
  align-items: center;
  gap: 4px;
}

.compare-head-label {
  width: 160px;
  font-family: var(--font-family-body);
  font-size: 14px;
  color: var(--color-text-primary);
}

.compare-head-col {
  flex: 1;
  text-align: center;
  font-family: var(--font-family-body);
  font-size: 14px;
  color: var(--color-text-primary);
}

.compare-head-col.premium {
  background: linear-gradient(90deg, #fd5860 0%, #e976d5 34%, #ffb14a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.compare-divider {
  height: 1px;
  background: var(--color-border-secondary);
  border: none;
  margin: 0;
}

.compare-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.compare-row-label {
  width: 160px;
  font-family: var(--font-family-body);
  font-size: 14px;
  color: var(--color-text-secondary);
}

.compare-row-col {
  flex: 1;
  display: flex;
  justify-content: center;
}

.compare-check {
  width: 32px;
  height: 32px;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

.compare-check--basic { background: #08c408; }
.compare-check--premium { background: linear-gradient(10deg, #ce8aff 3%, #ffca84 99%); }

/* Value items ("990 ₽ = ") */
.value-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface-secondary, #f8f8f8);
  border-radius: 16px;
  padding: 12px;
}

.value-item-emoji {
  font-size: 28px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-item-title {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text-primary);
}

.value-item-desc {
  font-family: var(--font-family-body);
  font-size: 14px;
  color: #7a8096;
}

.value-item--highlight {
  background: linear-gradient(90deg, rgba(206, 138, 255, 0.9) 0%, rgba(255, 202, 132, 0.9) 100%);
  color: #fff;
}

.value-item--highlight .value-item-title,
.value-item--highlight .value-item-desc {
  color: #fff;
}

/* Social proof */
.social-proof-transparent {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.social-proof-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-proof-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.social-proof-emoji {
  font-size: 36px;
  flex-shrink: 0;
}

.social-proof-title {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text-primary);
}

.social-proof-desc {
  font-family: var(--font-family-body);
  font-size: 14px;
  color: var(--color-text-secondary);
}

.avatar-stack {
  display: flex;
  align-items: center;
  margin-top: 12px;
}

.avatar-stack img {
  width: 32px;
  height: 32px;
  border-radius: 32px;
  border: 2px solid #fff;
  object-fit: cover;
  margin-right: -8px;
  box-shadow: 0px 1px 3px 1px rgba(49, 24, 31, 0.06);
}

.avatar-stack-count {
  margin-left: 8px;
  background: #fff;
  border-radius: 90px;
  padding: 8px 16px;
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text-primary);
  box-shadow: 0px 1px 1.5px rgba(49, 24, 31, 0.06), 0px 4px 7.5px rgba(49, 24, 31, 0.06);
}

/* Rating card */
.rating-card {
  display: flex;
  gap: 17px;
  align-items: center;
}

.rating-number {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 40px;
  color: var(--color-text-primary);
}

.rating-stars {
  color: #ffb800;
  font-size: 16px;
  letter-spacing: 2px;
}

.rating-caption {
  font-family: var(--font-family-body);
  font-size: 13px;
  color: var(--color-text-primary);
}

.rating-caption b { font-weight: 700; }

/* Reviews */
.review-card {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 90px;
  object-fit: cover;
}

.review-name {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text-primary);
}

.review-date {
  font-family: var(--font-family-body);
  font-size: 14px;
  color: #7a8096;
}

.review-text {
  font-family: var(--font-family-body);
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.review-rating {
  color: #ffb800;
  font-size: 12px;
}

/* Timeline */
.timeline-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-icon {
  width: 40px;
  height: 40px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.timeline-icon--gift { background: #ead7ff; }
.timeline-icon--bell { background: #fff595; }
.timeline-icon--check { background: #d3ffd3; }

.timeline-title {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text-primary);
}

.timeline-desc {
  font-family: var(--font-family-body);
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* Screen 13 · "Можно начинать" (soft paywall teaser) */
.premium-banner {
  background: linear-gradient(90deg, #ce8aff 0%, #e29ed6 34%, #ffca84 100%);
  border-radius: 24px;
  margin: 0 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.premium-banner-title {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}

.premium-slider {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.premium-slider-title {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text-primary);
}

.premium-cards {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.premium-card {
  flex-shrink: 0;
  width: 100px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.premium-card-img {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  background: #ece6fe;
  object-fit: cover;
  display: block;
}

.premium-card-label {
  font-family: var(--font-family-body);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
  color: var(--color-text-primary);
  text-align: center;
}

.link-button {
  background: none;
  border: none;
  width: 100%;
  text-align: center;
  font-family: var(--font-family-title);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 4px;
}

/* Screenshot carousel (real app screenshots, screens 02 / 02-1 / 02-2) */
.screenshot-carousel {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.screenshot-card {
  flex-shrink: 0;
  height: 124px;
  border-radius: 19px;
  overflow: hidden;
  position: relative;
}

.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screenshot-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #fff;
  border: 1px solid var(--color-border-primary);
  border-radius: 8px;
  padding: 6px 8px;
  font-family: var(--font-family-body);
  font-weight: 600;
  font-size: 8px;
  color: var(--color-text-primary);
}

/* "Динамика занятий за 30 дней" chart card — real Figma SVG curves */
.chart-30-card {
  background: var(--color-surface-primary);
  border-radius: 16px;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  overflow: hidden;
}

.chart-30-header {
  padding: 0 16px;
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text-primary);
}

.chart-30-graph {
  position: relative;
  width: 100%;
  height: 204px;
  overflow: hidden;
}

.chart-30-graph .grid-line {
  position: absolute;
  left: 50%;
  width: 386px;
  transform: translate(-50%, -50%);
}

.chart-30-graph .curve {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
}

.chart-30-axis {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  font-family: var(--font-family-body);
  font-size: 12px;
  color: #7a8096;
}

.chart-30-legend {
  display: flex;
  gap: 4px;
  padding: 0 16px;
}

/* Program cards, filmstrip crop (screen 02-3) */
.program-carousel-crop {
  display: flex;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.program-card-crop {
  flex-shrink: 0;
  width: 150px;
  height: 208px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.program-card-crop img {
  position: absolute;
  display: block;
  max-width: none;
}

.cta-pill--primary {
  background: var(--general-positive, #08c408);
  color: #fff;
}

/* Screens 13 / 14 — final premium offer screens */
.reminder-cards {
  display: flex;
  gap: 8px;
  padding: 0 16px;
}

.reminder-card {
  flex: 1;
  background: var(--color-surface-primary);
  border-radius: 24px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reminder-card-icon {
  font-size: 22px;
}

.reminder-card p {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text-primary);
  letter-spacing: 0.15px;
}

.footer-price-note {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  color: var(--color-text-primary);
}

.warning-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--color-surface-primary);
  border-radius: 24px;
  padding: 12px 16px 16px;
  margin: 0 16px;
}

.warning-card-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.warning-card p {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text-primary);
  line-height: 1.45;
  letter-spacing: 0.15px;
}

.family-avatar.locked {
  position: relative;
}

.family-avatar.locked img {
  filter: grayscale(1);
  opacity: 0.7;
}

.family-avatar .lock-badge {
  position: absolute;
  bottom: 22px;
  right: 4px;
  font-size: 14px;
}

/* Single marathon photo card + stat card (screens 02 / 02-1 / 02-2 / 02-3, updated design) */
.marathon-single {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.marathon-single img {
  width: 100%;
  height: auto;
  display: block;
}

.marathon-single-badge {
  position: absolute;
  top: 8px;
  right: 16px;
  background: #35d205;
  border-radius: 8px;
  padding: 6px 8px;
  font-family: var(--font-family-title);
  font-weight: 600;
  font-size: 8px;
  color: #fff;
}

.stat-card {
  background: var(--color-surface-primary);
  border-radius: 24px;
  padding: 12px 16px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
}

.stat-card-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.stat-card-text {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0.15px;
  color: var(--color-text-primary);
}

/* Meditation cards v2 (screens 04 / 04-1 / 04-2 / 04-3, updated design) */
.meditation-carousel-v2 {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.meditation-card-v2 {
  position: relative;
  width: 160px;
  height: 188px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(100deg, #f8f8f8 1.3%, #ece4f6 101.45%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}

.meditation-card-v2-icon-decor {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 80px;
  z-index: 1;
}

.meditation-card-v2-title {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 24px;
  color: var(--color-text-primary);
  position: relative;
  z-index: 2;
}

.meditation-card-v2-headphone {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 2;
}

/* Screens 11.x updated design */
.nutrition-intro-card {
  width: 100%;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(160deg, #d4f2d9 10.9%, #ffffff 97.5%);
  position: relative;
  overflow: hidden;
}

.nutrition-intro-icon {
  width: 71px;
  height: 87px;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.nutrition-intro-title {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 24px;
  color: var(--color-text-primary);
  position: relative;
  z-index: 1;
}

.nutrition-intro-text {
  font-family: var(--font-family-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-primary);
  position: relative;
  z-index: 1;
}

.meal-bubble-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.meal-bubble-screenshot {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.meal-bubble-mascot {
  position: absolute;
  left: 0;
  bottom: 20px;
  width: 82px;
  height: 86px;
  object-fit: contain;
}

.meal-bubble-text {
  position: absolute;
  right: 8px;
  bottom: 0;
  background: #fff;
  border-radius: 16px 16px 4px 16px;
  padding: 12px;
  width: 195px;
  box-shadow: 4px 4px 6px rgba(0,0,0,0.08);
  font-family: var(--font-family-body);
  font-size: 12px;
  line-height: 1.35;
  color: var(--color-text-primary);
}

.breakfast-card {
  background: var(--color-surface-primary);
  border-radius: 24px;
  padding: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breakfast-card-title {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.15px;
  color: var(--color-text-primary);
}

.breakfast-card-content {
  display: flex;
  gap: 4px;
  height: 148px;
  position: relative;
}

.breakfast-main-img {
  flex: 1;
  border-radius: 16px;
  object-fit: cover;
  height: 100%;
  min-width: 0;
}

.breakfast-side-imgs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 124px;
  height: 100%;
  flex-shrink: 0;
}

.breakfast-side-imgs > div {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.breakfast-side-imgs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.breakfast-side-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-family-subheader, var(--font-family-body));
  font-weight: 500;
  font-size: 16px;
  text-align: center;
  line-height: 1.4;
}

.breakfast-time-badge {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffe2;
  border-radius: 12px;
  padding: 4px 8px;
  font-family: var(--font-family-subheader, var(--font-family-body));
  font-weight: 500;
  font-size: 16px;
  color: var(--color-text-primary);
}

.day-summary-card {
  background: var(--color-surface-primary);
  border-radius: 20px;
  padding: 16px 12px 16px 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.day-summary-title {
  font-family: var(--font-family-header, var(--font-family-body));
  font-weight: 700;
  font-size: 20px;
  color: var(--color-text-primary);
}

.day-summary-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.day-summary-ring {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: conic-gradient(var(--color-accent) 0% 75%, var(--color-border-primary) 75% 100%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.day-summary-ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: #fff;
  border-radius: 50%;
}

.day-summary-ring span {
  position: relative;
  z-index: 1;
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 28px;
  color: var(--color-text-primary);
}

.day-summary-legend {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.day-summary-cal-label {
  font-family: var(--font-family-body);
  font-size: 16px;
  color: #7a8096;
}

.day-summary-cal-value {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  margin-top: 8px;
}

.day-summary-cal-value .main {
  font-family: var(--font-family-title);
  font-weight: 600;
  font-size: 40px;
  color: var(--color-text-primary);
}

.day-summary-cal-value .total {
  font-family: var(--font-family-header, var(--font-family-body));
  font-size: 18px;
  color: #7a8096;
}

.day-summary-macros {
  display: flex;
  gap: 8px;
}

.day-summary-macro {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 8px;
  border-radius: 8px;
  font-family: var(--font-family-subheader, var(--font-family-body));
  font-weight: 500;
  font-size: 12px;
}

.day-summary-macro .val { font-size: 14px; }

.day-summary-macro--protein { background: #d5f1ff; color: #16678f; }
.day-summary-macro--fat { background: #ffefd7; color: #bc7e20; }
.day-summary-macro--carbs { background: #defae4; color: #3ba165; }

/* In-flow footer (screen 13 only) — scrolls with content instead of staying fixed */
.content-footer {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 16px;
}

[data-screen="13"] {
  padding-bottom: 24px;
}

/* Кнопка оплаты тарифа — ссылка без href, выглядит как .cta-pill */
a.cta-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  user-select: none;
}

[data-cta-slot] {
  display: contents;
}
