/* Цвета — из приложения WellMax */
:root {
  --bg: #0D1120;
  --bg-raised: #151B2E;
  --bg-card: #1A2136;
  --line: #262E47;
  --text: #F2F3F7;
  --muted: #9AA1B8;
  --blue: #8190F2;
  --blue-deep: #3B4AB5;
  --yellow: #F4B12A;
  --green: #22A86A;
  --pink: #EE6C8E;
  --paper: #F5F6F8;
  --ink: #141A2E;
  --ink-muted: #5B6278;

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-text: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.08; }
h2 { font-size: clamp(30px, 5vw, 52px); max-width: 15ch; }
h3 { font-size: 19px; font-weight: 600; line-height: 1.25; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); font-size: 15px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--yellow); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 999px;
  background: var(--yellow); color: var(--ink);
  font: 600 16px/1 var(--font-text); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { background: #FFC24A; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--bg-card); }
.btn--store { flex-direction: column; gap: 3px; min-height: 60px; padding: 0 28px; font-family: var(--font-display); font-size: 17px; }
.btn--store small { font: 500 12px/1 var(--font-text); opacity: .75; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgb(13 17 32 / .92); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top__row { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 18px/1 var(--font-display); text-decoration: none; }
.logo__mark { width: 34px; height: 34px; }
.top__nav { display: none; gap: 26px; margin-left: auto; }
.top__nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top__nav a:hover { color: var(--text); }
.top__side { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--bg-card); }
.lang button { min-width: 38px; min-height: 32px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 600 13px/1 var(--font-text); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--line); color: var(--text); }
@media (max-width: 389px) {
  .logo { font-size: 16px; gap: 8px; }
  .logo__mark { width: 30px; height: 30px; }
  .lang button { min-width: 34px; }
  .btn--small { padding: 0 12px; }
}
@media (min-width: 900px) {
  .top__row { gap: 20px; }
  .top__side { gap: 12px; }
  .top__nav { display: flex; }
  .top__nav + .top__side { margin-left: 26px; }
}

/* Метка времени у секций: мини-кольцо + час дня */
.stamp { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--muted); font-size: 15px; font-weight: 500; }
.stamp__dial {
  --a: 0deg;
  position: relative; width: 22px; height: 22px; border-radius: 50%;
  background: conic-gradient(var(--yellow) 0 120deg, var(--blue) 120deg 360deg);
  -webkit-mask: radial-gradient(circle, transparent 6px, #000 6.5px);
          mask: radial-gradient(circle, transparent 6px, #000 6.5px);
}
.stamp__dial::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px;
  border-radius: 50%; background: #fff;
  transform: rotate(var(--a)) translateY(-8px);
}

/* Кольцо-циферблат: 12 сверху, 0 снизу, как в приложении */
.dial { position: relative; aspect-ratio: 1; }
.dial svg { width: 100%; height: 100%; overflow: visible; }
.dial__track { fill: none; stroke: var(--bg-card); stroke-width: 34; }
.dial__arc { fill: none; stroke-width: 34; transform: rotate(-90deg); transform-origin: 200px 200px; }
.dial__arc--fast { stroke: var(--blue); }
.dial__arc--eat { stroke: var(--yellow); }
.dial__ticks line { stroke: var(--line); stroke-width: 2; stroke-linecap: round; }
.dial__ticks line.is-major { stroke: #4A5373; stroke-width: 3; }
.dial__labels text { fill: var(--muted); font: 500 15px var(--font-text); text-anchor: middle; }
.dial__now { fill: #fff; stroke: var(--bg); stroke-width: 4; transform-origin: 200px 200px; }
.dial__dinner { fill: var(--bg); stroke: #fff; stroke-width: 4; transform-origin: 200px 200px; transition: transform .25s ease; }
.dial__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.dial__phase { color: var(--yellow); font-weight: 600; font-size: clamp(13px, 2.4vw, 17px); }
.dial__phase.is-fast { color: var(--blue); }
.dial__clock { font: 700 clamp(26px, 6vw, 46px)/1.15 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.dial__clock--range { font-size: clamp(18px, 5.4vw, 28px); }
.dial__note { color: var(--muted); font-size: clamp(12px, 2.2vw, 15px); }

.js .dial--hero .dial__arc { stroke-dasharray: 0 1056; transition: stroke-dasharray 1.3s cubic-bezier(.6, 0, .2, 1); }
.js .dial--hero .dial__arc--eat { transition-delay: .5s; }
.dial--planner .dial__arc { transition: stroke-dasharray .3s ease, stroke-dashoffset .3s ease; }

/* Рамка iPhone */
.phone {
  position: relative; margin: 0;
  padding: 2.6%;
  border-radius: 15% / 7%;
  background: linear-gradient(150deg, #3A4159, #171B2A 40%, #232A3E);
  box-shadow: 0 0 0 1px #4A5270 inset, 0 30px 60px -20px rgb(0 0 0 / .7);
}
.phone img { width: 100%; border-radius: 12.6% / 5.8%; background: var(--bg); }
.phone::after {
  content: ""; position: absolute; top: 3.9%; left: 50%; width: 29%; height: 3.6%;
  transform: translateX(-50%); border-radius: 999px; background: #000;
}

/* Первый экран */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero__grid { display: grid; gap: 40px; }
.hero__title { font-size: clamp(44px, 10vw, 92px); letter-spacing: -.02em; }
.hero__slogan { margin-top: 14px; font: 600 clamp(20px, 3.2vw, 28px)/1.25 var(--font-display); color: var(--yellow); max-width: 20ch; }
.hero__lead { margin-top: 20px; max-width: 46ch; color: #C9CDDB; font-size: 18px; }
.hero__meta { margin-top: 18px; color: var(--muted); font-size: 14px; }
.cta { display: grid; gap: 18px; margin-top: 30px; justify-items: start; }

.follow { display: grid; gap: 10px; }
.follow__label { color: var(--muted); font-size: 14px; max-width: 40ch; }
.follow__row { display: flex; flex-wrap: wrap; gap: 10px; }

.hero__stage { position: relative; aspect-ratio: 600 / 820; width: 100%; max-width: 560px; margin-inline: auto; }
.dial--hero { position: absolute; left: 0; top: 0; width: 86%; }
.dial--hero .dial__center { justify-content: flex-start; padding-top: 30%; }
.phone--hero { position: absolute; left: 55%; top: 33%; width: 43%; }
.hero__dial-caption { position: absolute; left: 0; bottom: 0; max-width: 50%; color: var(--muted); font-size: 13px; line-height: 1.4; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; }
  .hero__stage { max-width: none; margin-right: -3vw; }
  .phone--hero { width: 260px; left: auto; right: 7%; }
}

/* Секции */
section { padding-block: clamp(64px, 10vw, 128px); }
.hero { padding-top: clamp(28px, 6vw, 72px); }

/* Как это работает */
.how { background: var(--bg-raised); }
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 48px; }
.step h3 { margin-top: 22px; }
.step > p { margin-top: 8px; color: var(--muted); max-width: 36ch; }
.viewfinder { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.viewfinder img { width: 100%; height: 100%; object-fit: cover; }
.viewfinder::before {
  content: ""; position: absolute; inset: 14%;
  background:
    linear-gradient(#fff, #fff) left top / 26px 3px, linear-gradient(#fff, #fff) left top / 3px 26px,
    linear-gradient(#fff, #fff) right top / 26px 3px, linear-gradient(#fff, #fff) right top / 3px 26px,
    linear-gradient(#fff, #fff) left bottom / 26px 3px, linear-gradient(#fff, #fff) left bottom / 3px 26px,
    linear-gradient(#fff, #fff) right bottom / 26px 3px, linear-gradient(#fff, #fff) right bottom / 3px 26px;
  background-repeat: no-repeat;
}
.viewfinder__shutter {
  position: absolute; left: 50%; bottom: 5%; width: 54px; height: 54px; transform: translateX(-50%);
  border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 5px rgb(13 17 32 / .55), 0 0 0 7px var(--yellow);
}
.phone--step { width: min(280px, 70vw); }
.left-card { padding: 28px; border-radius: 28px; background: var(--bg-card); }
.left-card__top { color: var(--muted); font-size: 17px; }
.left-card__big { color: var(--text); font: 700 52px/1 var(--font-display); }
.left-card__more { margin-top: 6px; color: var(--green); font: 700 26px/1.2 var(--font-display); }
.left-card__bar { display: flex; gap: 4px; height: 12px; margin: 22px 0; border-radius: 99px; background: var(--line); overflow: hidden; }
.left-card__bar i { width: var(--w); background: var(--c); border-radius: 99px; }
.left-card__macros { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px; margin: 0; }
.left-card__macros dt { color: var(--muted); font-size: 14px; }
.left-card__macros dt::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--blue); vertical-align: 1px; }
.left-card__macros div:nth-child(2) dt::before { background: var(--yellow); }
.left-card__macros div:nth-child(3) dt::before { background: var(--pink); }
.left-card__macros dd { margin: 2px 0 0; font-weight: 600; font-size: 17px; }

.extras { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; gap: 18px; }
.extras ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px 40px; }
.extras li { padding-left: 22px; position: relative; color: #C9CDDB; }
.extras li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--yellow); }

@media (min-width: 900px) {
  .steps { grid-template-columns: 1.15fr .9fr 1fr; align-items: end; gap: 40px; }
  .step--ai { margin-bottom: -40px; }
  .extras { grid-template-columns: 1fr 2fr; }
  .extras ul { grid-template-columns: 1fr 1fr; }
}

/* Голодание */
.fasting__grid { display: grid; gap: 48px; }
.fasting__text > p { margin-top: 18px; color: #C9CDDB; max-width: 44ch; }
.planner { margin-top: 30px; padding: 24px; border-radius: var(--radius); background: var(--bg-raised); display: grid; gap: 22px; }
.planner__plans { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.planner__plans legend { width: 100%; margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.planner__plans input { position: absolute; opacity: 0; }
.planner__plans span { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--bg-card); font: 600 15px var(--font-display); cursor: pointer; transition: background-color .15s, color .15s; }
.planner__plans input:checked + span { background: var(--blue); color: var(--ink); }
.planner__plans input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.planner__slider { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline; color: var(--muted); font-size: 14px; }
.planner__slider output { color: var(--text); font: 700 24px var(--font-display); font-variant-numeric: tabular-nums; }
.planner__slider input { grid-column: 1 / -1; width: 100%; accent-color: var(--yellow); height: 32px; }
.planner__result { font-size: 17px; line-height: 1.45; }
.planner__result b { color: var(--yellow); font-weight: 600; }
.fasting__visual { display: grid; gap: 28px; justify-items: center; }
.dial--planner { width: min(100%, 440px); }
.live { margin: 0; width: min(100%, 420px); }
.live img { border-radius: 22px; }
.live figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }
@media (min-width: 900px) {
  .fasting__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
}

/* Тренер и друзья */
.coach { background: var(--bg-raised); }
.coach__grid, .friends__grid { display: grid; gap: 44px; align-items: center; }
.coach__text > p, .friends__text > p { margin-top: 18px; color: #C9CDDB; max-width: 46ch; }
.phone--side { width: min(300px, 72vw); justify-self: center; }
.quote { margin: 28px 0 22px; padding: 20px 22px; border-left: 3px solid var(--yellow); border-radius: 0 16px 16px 0; background: var(--bg-card); }
.quote p { font-weight: 500; }
.quote footer { margin-top: 6px; color: var(--muted); font-size: 14px; }
.ticks { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 48ch; }
.ticks li { position: relative; padding-left: 22px; color: #C9CDDB; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--blue); }
@media (min-width: 900px) {
  .coach__grid { grid-template-columns: 5fr 7fr; gap: 80px; }
  .friends__grid { grid-template-columns: 7fr 5fr; gap: 80px; }
  .phone--tilt { transform: rotate(3deg); }
}

/* Ещё в WellMax */
.more { padding-top: 0; }
.more__title { font-size: clamp(24px, 3.4vw, 34px); }
.more__list { display: grid; gap: 0; margin: 28px 0 0; }
.more__list > div { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line); }
.more__list dt { font-weight: 600; }
.more__list dd { margin: 0; color: var(--muted); }
@media (min-width: 700px) {
  .more__list { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .more__list > div { grid-template-columns: 180px 1fr; gap: 16px; }
}

/* Автор */
.author { padding-top: 0; }
.author__box { padding: clamp(28px, 5vw, 56px); border-radius: 32px; background: linear-gradient(135deg, var(--bg-card), var(--bg-raised)); border: 1px solid var(--line); }
.author__box h2 { max-width: none; font-size: clamp(26px, 4vw, 40px); }
.author__box p { margin-top: 16px; max-width: 62ch; color: #C9CDDB; }
.author__box a { color: var(--yellow); }

/* Premium — светлый блок */
.premium { background: var(--paper); color: var(--ink); }
.premium :focus-visible { outline-color: var(--blue-deep); }
.premium__lead { margin-top: 16px; color: var(--ink-muted); max-width: 52ch; }
.plans { display: grid; gap: 14px; margin-top: 36px; max-width: 720px; }
.plan { padding: 24px 26px; border-radius: var(--radius); background: #fff; box-shadow: 0 0 0 1.5px #E3E5EC inset; }
.plan--best { box-shadow: 0 0 0 2.5px var(--ink) inset; }
.plan__name { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.plan__badge { padding: 3px 10px; border-radius: 999px; background: var(--green); color: #fff; font-size: 13px; font-weight: 600; }
.plan__price { margin-top: 8px; font: 700 34px/1 var(--font-display); }
.plan__note { margin-top: 8px; color: var(--ink-muted); font-size: 15px; }
@media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; } }

.compare-wrap { margin-top: 40px; overflow-x: auto; }
.compare { width: 100%; max-width: 880px; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 14px 12px; text-align: left; border-bottom: 1px solid #E3E5EC; }
.compare thead th { font: 600 14px var(--font-display); color: var(--ink-muted); }
.compare thead th:last-child { color: var(--ink); }
.compare tbody th { font-weight: 500; }
.compare td:last-child { font-weight: 600; }
.compare .yes { color: var(--green); font-weight: 700; }
.compare .no { color: #A0A5B5; }
@media (max-width: 559px) {
  .compare { font-size: 14px; }
  .compare th, .compare td { padding: 12px 6px; }
  .compare th:first-child { padding-left: 0; }
}
.premium__fine { margin-top: 22px; max-width: 70ch; color: var(--ink-muted); font-size: 14px; }

/* FAQ */
.faq__grid { display: grid; gap: 32px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 44px 22px 0; font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq details p { padding-bottom: 22px; color: #C9CDDB; max-width: 64ch; }
.faq details a { color: var(--yellow); }
@media (min-width: 900px) { .faq__grid { grid-template-columns: 1fr 2fr; } }

/* Финал и подвал */
.final { padding-top: 0; }
.final__box { display: grid; gap: 24px; justify-items: start; padding: clamp(28px, 5vw, 56px); border-radius: 32px; background: var(--yellow); color: var(--ink); }
.final__box h2 { max-width: 18ch; }
.final__text { max-width: 52ch; color: #3D2E0A; font-size: 18px; }
.final .btn { background: var(--ink); color: #fff; }
.final .btn:hover { background: #26304F; }
.final .btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.final .btn--line:hover { background: rgb(20 26 46 / .08); }
.final :focus-visible { outline-color: var(--ink); }
/* Реклама — пунктирная рамка: «здесь может быть ваш пост» */
.ads { padding-top: 0; }
.ads__box { display: grid; gap: 16px; justify-items: start; padding: clamp(28px, 5vw, 48px); border: 2px dashed var(--line); border-radius: 32px; }
.ads__box h2 { font-size: clamp(24px, 3.4vw, 34px); max-width: none; }
.ads__box p { max-width: 60ch; color: #C9CDDB; }
.foot { padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot__row { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }

/* Документы: политика и условия */
.doc { padding-block: clamp(40px, 7vw, 80px); }
.doc h1 { font-size: clamp(30px, 5vw, 48px); max-width: 18ch; }
.doc__updated { margin-top: 12px; color: var(--muted); font-size: 14px; }
.doc__body { max-width: 70ch; margin-top: 32px; }
.doc__body h2 { margin-top: 40px; font-size: 21px; max-width: none; line-height: 1.3; }
.doc__body p, .doc__body li { margin-top: 12px; color: #C9CDDB; }
.doc__body ul { padding-left: 20px; }
.doc__body a { color: var(--yellow); }
html[data-lang="ru"] [lang="en"]:not(html), html[data-lang="en"] [lang="ru"]:not(html) { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 404 */
.notfound { display: grid; justify-items: center; gap: 18px; text-align: center; min-height: 100vh; align-content: center; }
.notfound p { color: var(--muted); max-width: 40ch; }
.dial--404 { width: min(260px, 70vw); }
