/* ─── Deep app features (bio age, monitoring, workouts, AI Chef scene) ─── */

.app-features-intro {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.app-features-intro h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  margin: 0 0 14px;
}

.app-features-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.app-features-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(216, 180, 90, 0.22);
  background: rgba(216, 180, 90, 0.06);
  color: var(--text-muted);
}

.app-features-pill--green {
  border-color: rgba(74, 232, 168, 0.35);
  background: rgba(74, 232, 168, 0.08);
  color: #4ae8a8;
}

.app-features-pill--gold {
  border-color: rgba(216, 180, 90, 0.4);
  color: #d8b45a;
}

.app-features-pill--purple {
  border-color: rgba(107, 92, 255, 0.35);
  background: rgba(107, 92, 255, 0.08);
  color: #a89bff;
}

/* Bio age */
.bio-age-block {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .bio-age-block {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

.bio-age-orb-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.bio-age-orb {
  position: relative;
  width: min(280px, 72vw);
  height: min(280px, 72vw);
  display: flex;
  align-items: center;
  justify-content: center;
  /* 0 → янтарная сфера (паспортный возраст), 1 → зелёная (биовозраст).
     JS обновляет --bio-progress по ходу отсчёта 36 → 25; hue-rotate не
     трогает белый текст и дёшев для GPU */
  --bio-progress: 1;
  filter: hue-rotate(calc((1 - var(--bio-progress)) * -105deg));
}

.bio-age-orb__glow {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 232, 168, 0.35) 0%, transparent 68%);
  animation: bio-glow-pulse 4s ease-in-out infinite;
}

.bio-age-orb__blob {
  position: absolute;
  inset: 6%;
  border-radius: 42% 58% 52% 48% / 48% 42% 58% 52%;
  background: linear-gradient(145deg, #4ae8a8 0%, #1f9d62 45%, #2ecc87 100%);
  opacity: 0.92;
  animation: bio-blob-morph 9s ease-in-out infinite;
  box-shadow:
    inset -12px -18px 40px rgba(0, 0, 0, 0.18),
    inset 8px 12px 24px rgba(184, 245, 216, 0.35),
    0 0 48px rgba(46, 204, 135, 0.35);
}

/* Размытые слои — только transform (морф border-radius на blur-слое
   заставляет пересчитывать размытие каждый кадр и дёргает анимацию) */
.bio-age-orb__blob--2 {
  inset: 14%;
  opacity: 0.45;
  border-radius: 55% 45% 50% 50% / 46% 54% 46% 54%;
  animation: bio-blob-drift 11s ease-in-out infinite;
  animation-delay: -3s;
  filter: blur(2px);
  will-change: transform;
}

.bio-age-orb__blob--3 {
  inset: 22%;
  opacity: 0.25;
  border-radius: 46% 54% 58% 42% / 54% 44% 56% 46%;
  animation: bio-blob-drift 13s ease-in-out infinite;
  animation-delay: -5.5s;
  background: linear-gradient(135deg, #b8f5d8, #4ae8a8);
  filter: blur(6px);
  will-change: transform;
}

@keyframes bio-blob-drift {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  33% {
    transform: rotate(10deg) scale(1.05);
  }
  66% {
    transform: rotate(-8deg) scale(0.96);
  }
}

@keyframes bio-blob-morph {
  0%,
  100% {
    border-radius: 42% 58% 52% 48% / 48% 42% 58% 52%;
    transform: rotate(0deg) scale(1);
  }
  33% {
    border-radius: 58% 42% 48% 52% / 52% 58% 42% 48%;
    transform: rotate(8deg) scale(1.03);
  }
  66% {
    border-radius: 48% 52% 58% 42% / 42% 48% 52% 58%;
    transform: rotate(-6deg) scale(0.98);
  }
}

@keyframes bio-glow-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

.bio-age-orb__center {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.bio-age-orb__num {
  display: block;
  font-size: clamp(3rem, 8vw, 4.2rem);
  font-weight: 200;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.bio-age-orb__unit {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bio-age-orb__delta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  font-weight: 700;
  color: #b8f5d8;
}

/* Финал анимации 36 → 25: плашка дельты появляется, число делает «поп» */
html.js .bio-age-orb__delta {
  opacity: 0;
  transform: translateY(10px) scale(0.85);
  transition:
    opacity 0.5s ease,
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html.js .bio-age-orb.is-done .bio-age-orb__delta {
  opacity: 1;
  transform: none;
}

html.js .bio-age-orb.is-done .bio-age-orb__num {
  animation: bio-num-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bio-num-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Отсчёт и появление дельты остаются (смена значений), но без движения:
     ни подлёта плашки, ни «попа» числа */
  html.js .bio-age-orb__delta {
    transform: none;
  }

  html.js .bio-age-orb.is-done .bio-age-orb__num {
    animation: none;
  }
}

.bio-age-metrics {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.bio-age-metric {
  text-align: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 88px;
}

.bio-age-metric__val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #4ae8a8;
}

.bio-age-metric__lbl {
  font-size: 0.58rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.bio-age-factors {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.bio-age-factor {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.bio-age-factor__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(74, 232, 168, 0.12);
}

.bio-age-factor__text strong {
  display: block;
  font-size: 0.85rem;
}

.bio-age-factor__text span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.bio-age-factor__delta {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4ae8a8;
}

/* Monitoring */
.monitoring-block {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .monitoring-block {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .monitoring-block--reverse .monitoring-block__visual {
    order: 2;
  }
}

.monitoring-card-ui {
  border-radius: 22px;
  padding: 18px 16px;
  background: linear-gradient(145deg, rgba(18, 22, 28, 0.95), rgba(12, 15, 20, 0.98));
  border: 1px solid rgba(74, 232, 168, 0.18);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.monitoring-card-ui::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(74, 232, 168, 0.14) 0%, transparent 55%);
  pointer-events: none;
}

.monitoring-card-ui__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  position: relative;
}

.monitoring-card-ui__title {
  font-size: 0.95rem;
  font-weight: 600;
}

.monitoring-status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(74, 232, 168, 0.15);
  color: #4ae8a8;
  border: 1px solid rgba(74, 232, 168, 0.35);
}

.monitoring-card-ui__body {
  display: flex;
  gap: 14px;
  align-items: center;
  position: relative;
}

.monitoring-score-orb {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

.monitoring-score-orb__ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.monitoring-score-orb__ring circle {
  fill: none;
  stroke-width: 5;
}

.monitoring-score-orb__track {
  stroke: rgba(255, 255, 255, 0.1);
}

.monitoring-score-orb__fill {
  stroke: #4ae8a8;
  stroke-linecap: round;
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.monitoring-score-orb.is-animated .monitoring-score-orb__fill {
  stroke-dashoffset: var(--orb-offset, 175);
}

.monitoring-score-orb__pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(74, 232, 168, 0.35);
  animation: monitoring-pulse 2.8s ease-out infinite;
}

@keyframes monitoring-pulse {
  0% {
    transform: scale(0.92);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

.monitoring-score-orb__val {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
}

.monitoring-score-orb__cap {
  font-size: 0.48rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  margin-top: 2px;
  line-height: 1.2;
}

.monitoring-card-ui__summary {
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(237, 239, 245, 0.88);
}

.monitoring-factors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  position: relative;
}

.monitoring-factor-chip {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.monitoring-deviation {
  margin-top: 14px;
  position: relative;
}

.monitoring-deviation__bar {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4ae8a8 0%, #fbbf24 50%, #ef4444 100%);
  position: relative;
}

.monitoring-deviation__marker {
  position: absolute;
  top: 50%;
  left: calc(var(--deviation, 0.22) * 100%);
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #4ae8a8;
  box-shadow: 0 0 12px rgba(74, 232, 168, 0.5);
  transition: left 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.monitoring-deviation__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.55rem;
  color: var(--text-muted);
}

/* Workouts dual */
.workouts-duo {
  display: grid;
  gap: 32px;
}

@media (min-width: 780px) {
  .workouts-duo {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

.workout-feature-card {
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  background: linear-gradient(160deg, rgba(18, 22, 28, 0.9), rgba(10, 12, 16, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.workout-feature-card--gym {
  border-color: rgba(216, 180, 90, 0.2);
}

.workout-feature-card--run {
  border-color: rgba(6, 182, 212, 0.2);
}

.workout-feature-card h3 {
  font-size: 1.15rem;
  margin: 0 0 6px;
}

.workout-feature-card > p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 18px;
  line-height: 1.5;
}

.workout-feature-card .phone-mock {
  margin-inline: auto;
}

/* Gym session UI */
/* Сетка 4 колонки + кнопка снизу на всю ширину: в узком экране телефона
   flex-ряд не вмещал показатели, и они наезжали друг на друга */
.app-gym-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 4px;
  padding: 9px 8px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(216, 180, 90, 0.1), rgba(18, 22, 28, 0.8));
  border: 1px solid rgba(216, 180, 90, 0.22);
}

.app-gym-stat {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
}

.app-gym-stat__val {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  color: #e8c878;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.app-gym-stat__lbl {
  font-size: 0.42rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Разделители убраны: в узком экране телефона они съедали место
   и показатели слипались */
.app-gym-stat__sep {
  display: none;
}

.app-gym-finish {
  grid-column: 1 / -1;
  padding: 6px;
  border-radius: 10px;
  background: #d8b45a;
  color: #0b0e11;
  font-size: 0.56rem;
  font-weight: 800;
  border: none;
}

.app-gym-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 10px;
  padding-bottom: 2px;
}

.app-gym-chip {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.app-gym-chip.is-active {
  background: rgba(216, 180, 90, 0.18);
  border-color: rgba(216, 180, 90, 0.45);
  color: #e8c878;
  font-weight: 700;
}

.app-gym-exercise {
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.app-gym-exercise__name {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.app-gym-set {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.68rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.app-gym-set__num {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(216, 180, 90, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: #d8b45a;
}

.app-gym-set.is-done .app-gym-set__check {
  margin-left: auto;
  color: #4ae8a8;
}

/* Run map — стилизация под тёмную Apple Maps */
.app-run-map {
  position: relative;
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #1b1d22;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.app-run-map__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.app-run-map.is-loaded .app-run-map__canvas {
  opacity: 1;
}

.app-run-map__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 2px;
}

.app-run-map__tile {
  background: #243044;
  opacity: 0;
  transform: scale(0.92);
}

.app-run-map.is-loading .app-run-map__tile {
  animation: map-tile-in 0.45s ease forwards;
  animation-delay: calc(var(--i, 0) * 0.06s);
}

@keyframes map-tile-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.app-run-map__route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease 0.5s;
}

.app-run-map.is-loaded .app-run-map__route {
  opacity: 1;
}

/* Сетка улиц Астаны (стилизация): пара проспектов + поперечные */
.app-run-map__streets {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease 0.4s;
}

.app-run-map.is-loaded .app-run-map__streets {
  opacity: 1;
}

.app-run-map__streets path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1.5;
}

.app-run-map__streets path:first-child {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 4;
}

/* Маршрут в стиле Apple Maps: синяя линия с мягким «гало» */
.app-run-map__trail-halo {
  fill: none;
  stroke: #0a84ff;
  stroke-opacity: 0.28;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 130;
  stroke-dashoffset: 130;
}

.app-run-map__trail {
  fill: none;
  stroke: #0a84ff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 130;
  stroke-dashoffset: 130;
  filter: drop-shadow(0 0 5px rgba(10, 132, 255, 0.55));
}

.app-run-map.is-loaded .app-run-map__trail,
.app-run-map.is-loaded .app-run-map__trail-halo {
  animation: route-draw 1.6s ease forwards 0.3s;
}

@keyframes route-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* Бегун: белая точка с синим кольцом, едет по маршруту (SMIL animateMotion) */
.app-run-map__runner {
  fill: #ffffff;
  stroke: #0a84ff;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(10, 132, 255, 0.9));
  opacity: 0;
  transition: opacity 0.4s ease 1.9s;
}

.app-run-map.is-loaded .app-run-map__runner {
  opacity: 1;
}

/* Пины достопримечательностей */
.app-run-map__pin {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #dfe6f2;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s ease 0.9s;
}

.app-run-map.is-loaded .app-run-map__pin {
  opacity: 1;
}

.app-run-map__pin--start {
  left: 5%;
  bottom: 6%;
}

.app-run-map__pin--finish {
  right: 4%;
  top: 6%;
  transition-delay: 1.7s;
}

.app-run-map__ico {
  display: inline-block;
  flex-shrink: 0;
}

/* Нур Алем — сфера ЭКСПО */
.app-run-map__ico--sphere {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9ad8ff 0%, #2f6bd8 70%);
  box-shadow: 0 0 5px rgba(90, 160, 255, 0.7);
}

/* Хан Шатыр — шатёр */
.app-run-map__ico--tent {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 9px solid #e8c878;
}

.app-run-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.app-run-stat {
  text-align: center;
  padding: 8px 4px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
}

.app-run-stat__val {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #06b6d4;
}

.app-run-stat__lbl {
  font-size: 0.48rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.app-run-live {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.62rem;
  color: #ef4444;
  font-weight: 600;
}

.app-run-live__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: run-live-blink 1.2s ease infinite;
}

@keyframes run-live-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* AI Chef cinematic scene */
.ai-chef-scene {
  position: relative;
  padding: 32px 20px 24px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ai-chef-scene__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(107, 92, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 40%, rgba(216, 180, 90, 0.12) 0%, transparent 45%);
  pointer-events: none;
}

.ai-chef-scene__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 520px;
}

@media (min-width: 640px) {
  .ai-chef-scene__stage {
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
    max-width: none;
  }
}

.ai-chef-scene__phone {
  width: min(200px, 42vw);
  border-radius: 28px;
  padding: 10px 8px 12px;
  background: #0b0e11;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.ai-chef-scene__phone--result {
  opacity: 0;
  transform: translateX(12px) scale(0.96);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.ai-chef-scene.is-result .ai-chef-scene__phone--result {
  opacity: 1;
  transform: none;
}

.ai-chef-scene__notch {
  width: 56px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 auto 8px;
}

.ai-chef-scene__camera {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, #2a2218 0%, #1a1510 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-chef-scene__food {
  font-size: 4rem;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
  transform: scale(1);
  transition: transform 0.3s ease;
}

.ai-chef-scene.is-flash .ai-chef-scene__food {
  transform: scale(1.02);
}

.ai-chef-scene__viewfinder {
  position: absolute;
  inset: 12%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  pointer-events: none;
}

.ai-chef-scene__viewfinder::before,
.ai-chef-scene__viewfinder::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: #fff;
  border-style: solid;
}

.ai-chef-scene__viewfinder::before {
  top: -2px;
  left: -2px;
  border-width: 2px 0 0 2px;
}

.ai-chef-scene__viewfinder::after {
  bottom: -2px;
  right: -2px;
  border-width: 0 2px 2px 0;
}

.ai-chef-scene__flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.ai-chef-scene.is-flash .ai-chef-scene__flash {
  animation: chef-flash 0.35s ease;
}

@keyframes chef-flash {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
  }
}

.ai-chef-scene__scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(107, 92, 255, 0.45) 48%, transparent 100%);
  transform: translateY(-120%);
  opacity: 0;
}

.ai-chef-scene.is-scan .ai-chef-scene__scan {
  opacity: 1;
  animation: chef-scan 1.2s ease-in-out;
}

@keyframes chef-scan {
  0% {
    transform: translateY(-120%);
  }
  100% {
    transform: translateY(120%);
  }
}

.ai-chef-scene__shutter {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: rgba(255, 255, 255, 0.2);
}

.ai-chef-scene.is-flash .ai-chef-scene__shutter {
  animation: shutter-pulse 0.35s ease;
}

@keyframes shutter-pulse {
  50% {
    transform: translateX(-50%) scale(0.88);
    background: #fff;
  }
}

.ai-chef-scene__arrow {
  display: none;
  align-items: center;
  justify-content: center;
  color: rgba(107, 92, 255, 0.7);
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

@media (min-width: 640px) {
  .ai-chef-scene__arrow {
    display: flex;
  }
}

.ai-chef-scene.is-result .ai-chef-scene__arrow {
  opacity: 1;
  animation: arrow-nudge 1.5s ease-in-out infinite;
}

@keyframes arrow-nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}

.ai-chef-result {
  padding: 4px 2px;
}

.ai-chef-result__badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.52rem;
  font-weight: 800;
  background: rgba(107, 92, 255, 0.25);
  color: #a89bff;
  margin-bottom: 8px;
}

.ai-chef-result__title {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.ai-chef-result__sub {
  font-size: 0.58rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.4;
}

.ai-chef-result__macros {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.ai-chef-result__macro {
  padding: 8px 6px;
  border-radius: 10px;
  text-align: center;
  background: rgba(107, 92, 255, 0.1);
  border: 1px solid rgba(107, 92, 255, 0.2);
}

.ai-chef-result__macro-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #a89bff;
  font-variant-numeric: tabular-nums;
}

.ai-chef-result__macro-lbl {
  font-size: 0.48rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.ai-chef-result__add {
  margin-top: 10px;
  width: 100%;
  padding: 8px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #6b5cff, #8b7bff);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
}

/* Подпись в потоке, а не absolute — иначе налезала на телефоны */
.ai-chef-scene__caption {
  margin: 18px auto 0;
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ai-chef-scene.is-result .ai-chef-scene__caption {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .bio-age-orb__blob,
  .bio-age-orb__glow,
  .monitoring-score-orb__pulse,
  .app-run-live__dot {
    animation: none;
  }

  .ai-chef-scene__phone--result {
    opacity: 1;
    transform: none;
  }
}
