@font-face{font-family:'Fira Sans Extra Condensed';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/fira-600-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Fira Sans Extra Condensed';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/fira-600-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Fira Sans Extra Condensed';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/fira-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Fira Sans Extra Condensed';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/fira-700-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Fira Sans Extra Condensed';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/fira-700-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Fira Sans Extra Condensed';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/fira-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url(fonts/manrope-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url(fonts/manrope-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url(fonts/manrope-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* ProPeptides демо, стиль v4 «Midi / Ritual» (01.12.2026).
   Тёплый белый, песочные плашки, сжатый жирный гротеск для заголовков и цифр,
   контурные теги, одна лаймовая плашка на экран. Текст Manrope. */
:root{
  --bg:#F7F7F2; --surface:#FFFFFF; --sand:#ECECE1; --sand2:#E2E2D4;
  --ink:#1B1B19; --ink-2:#3E3E3A; --muted:#6B6B62; --tab-off:#808077;
  --line:rgba(27,27,25,.13); --line-2:rgba(27,27,25,.28); --stroke:#1B1B19;
  --lime:#DAFF20; --lime-ink:#1B1B19; --lime-line:rgba(27,27,25,.16);
  --pri:#1B1B19; --on-pri:#FFFFFF;
  --plate:#1B1B19; --on-plate:#F7F7F2; --plate-mut:rgba(247,247,242,.62);
  /* направления: Вес (Zeit Lab), Энергия (ProLongevity), Glow (SHE) */
  --ves:#2D5A41; --ves-soft:#D6E6D2;
  --pl:#2B4C8E; --pl-soft:#D8E1F2;
  --she:#7E2D40; --she-soft:#F1DCDF;
  --brand:var(--ink); --brand-soft:var(--sand); --on-brand:var(--on-pri); --surface-2:var(--sand);
  --r-lg:22px; --r:16px; --r-sm:12px; --r-tag:7px; --gap:10px;
  --cond:"Fira Sans Extra Condensed",Manrope,system-ui,sans-serif;
  --sans:Manrope,system-ui,-apple-system,sans-serif;
  --dur-quick:150ms; --dur-fast:250ms; --dur-medium:350ms; --dur-slow:400ms;
  --ease-out:cubic-bezier(.22,1,.36,1); --ease-drawer:cubic-bezier(.32,.72,0,1);
  --maxw:600px; --gutter:max(16px,calc((100vw - var(--maxw))/2 + 16px));
  --tg-top:var(--tg-content-safe-area-inset-top,0px);
  --safe-b:max(env(safe-area-inset-bottom,0px),var(--tg-safe-area-inset-bottom,0px));
  color-scheme:light;
}
[data-theme=dark]{
  --bg:#161613; --surface:#1F1F1B; --sand:#272722; --sand2:#31312B;
  --ink:#F1F1E8; --ink-2:#CDCDC2; --muted:#9A9A8E; --tab-off:#8A8A7F;
  --line:rgba(241,241,232,.11); --line-2:rgba(241,241,232,.3); --stroke:#E6E6DC;
  --lime:#D4F53A; --lime-ink:#161613; --lime-line:rgba(22,22,19,.18);
  --pri:#F1F1E8; --on-pri:#161613;
  --plate:#272722; --on-plate:#F1F1E8; --plate-mut:rgba(241,241,232,.6);
  --ves:#A9D0B2; --ves-soft:#1E2B22;
  --pl:#A9BEEA; --pl-soft:#1E2433;
  --she:#E4A9B6; --she-soft:#30212A;
  color-scheme:dark;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
html,body{margin:0;background:var(--bg);color:var(--ink)}
body{font:15px/1.4 var(--sans);font-weight:500;-webkit-font-smoothing:antialiased;overscroll-behavior:none;text-rendering:optimizeLegibility}
button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:pointer}
input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px;border-radius:10px}
.num{font-variant-numeric:tabular-nums lining-nums}
.muted{color:var(--muted)}
.small{font-size:13px}
.row{display:flex;align-items:center;gap:12px}
.row.between{justify-content:space-between}
.grow,.t,.tile{min-width:0}
.cond{font-family:var(--cond);font-weight:700;letter-spacing:0}

/* ---------- шапка ---------- */
.top{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:12px;min-height:60px;padding:calc(8px + var(--tg-top)) var(--gutter) 8px;background:var(--bg)}
.top .logo{width:34px;height:34px;border-radius:50%;flex:none}
.top h1{margin:0;font-family:var(--cond);font-weight:700;font-size:28px;line-height:1.05;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top .greet{flex:1;min-width:0;line-height:1.1}
.top .greet small{display:block;font-size:13px;color:var(--muted);font-weight:500}
.top .greet h1{font-size:26px}
.top .back,.top .icon-btn{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;flex:none;position:relative;box-shadow:inset 0 0 0 1.5px var(--stroke)}
.top .back svg,.top .icon-btn svg{width:20px;height:20px}
.top .back + h1{font-size:24px}
.top .dot{position:absolute;top:8px;right:9px;width:8px;height:8px;border-radius:50%;background:var(--lime);box-shadow:0 0 0 2px var(--bg),0 0 0 3px var(--lime-line)}
.tg .top .back{display:none}
.top.scrolled{box-shadow:0 1px 0 var(--line)}

.view{padding:4px 16px calc(84px + var(--safe-b));max-width:var(--maxw);margin:0 auto}
.view.anim{animation:viewIn var(--dur-fast) var(--ease-out)}
@keyframes viewIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ---------- нижние вкладки ---------- */
.tabs{position:fixed;left:0;right:0;bottom:0;z-index:6;display:grid;grid-template-columns:repeat(5,1fr);min-height:58px;padding:4px max(6px,calc((100vw - var(--maxw))/2)) calc(4px + var(--safe-b));background:color-mix(in srgb,var(--bg) 94%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid var(--line)}
.tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:5px 0 3px;font-size:11px;font-weight:700;color:var(--tab-off);border-radius:12px;transition:color var(--dur-quick) var(--ease-out)}
.tabs button svg{width:23px;height:23px}
.tabs button.on{color:var(--ink)}
.tabs button.on svg{stroke-width:2.2}

/* ---------- текст ---------- */
.sec{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:22px 2px 8px}
.sec h3{margin:0;font-family:var(--cond);font-weight:700;font-size:23px;line-height:1.1}
.sec .small{white-space:nowrap}
.k{display:block;font-size:13px;color:var(--muted);font-weight:500}

/* контурный тег */
.chip{display:inline-flex;align-items:center;height:26px;padding:0 9px;border-radius:var(--r-tag);box-shadow:inset 0 0 0 1.5px var(--stroke);font-family:var(--cond);font-weight:600;font-size:15px;line-height:1;white-space:nowrap;flex:none}
.chip.lime{background:var(--lime);color:var(--lime-ink);box-shadow:inset 0 0 0 1.5px var(--lime-ink)}

/* ---------- плашки ---------- */
.card{background:var(--surface);border-radius:var(--r-lg);padding:16px;box-shadow:inset 0 0 0 1px var(--line);margin-bottom:var(--gap)}
.card.tight{padding:14px 16px}
.card h4{margin:0 0 4px;font-size:15px;font-weight:700}
.card.sand{background:var(--sand);box-shadow:none}
.card.lime{background:var(--lime);color:var(--lime-ink);box-shadow:none}
.card.lime .muted,.card.lime .k{color:var(--lime-ink);opacity:.72}

/* программа на главной: песок + фото */
.hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) clamp(112px,41%,210px);min-height:196px;border-radius:var(--r-lg);background:var(--sand);overflow:hidden;margin-bottom:var(--gap);cursor:pointer}
.hero .tx{display:flex;flex-direction:column;align-items:flex-start;padding:16px 12px 16px 16px;min-width:0}
.hero .ttl{font-family:var(--cond);font-weight:700;font-size:42px;line-height:.98;margin:12px 0 0;white-space:nowrap}
.hero .of{display:block;font-family:var(--cond);font-weight:600;font-size:21px;line-height:1.1;color:var(--ink-2);margin-top:4px}
.hero .ph{position:relative;background:var(--sand2)}
.hero .ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:52% 22%;display:block}
[data-theme=dark] .hero .ph img{filter:brightness(.88) saturate(.92)}
.squares{display:grid;grid-template-columns:repeat(6,minmax(0,22px));gap:5px;margin-top:auto;padding-top:16px}
.squares i{aspect-ratio:1;border-radius:5px;box-shadow:inset 0 0 0 1.3px var(--line-2)}
.squares i.d{background:var(--lime);box-shadow:inset 0 0 0 1.3px var(--lime-ink)}
.squares i.c{background:linear-gradient(135deg,var(--lime) 50%,transparent 50%);box-shadow:inset 0 0 0 1.3px var(--stroke)}
[data-theme=dark] .squares i.d{box-shadow:none}
.squares.wide{grid-template-columns:repeat(12,minmax(0,1fr));gap:4px;padding-top:10px;max-width:360px}

/* ближайший укол */
.shot-h{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.shot-h h4{font-family:var(--cond);font-weight:700;font-size:29px;line-height:1.05;margin:2px 0 2px}
.done-mark{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--lime);color:var(--lime-ink);flex:none}
.done-mark svg{width:22px;height:22px}

/* кнопки */
.btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;padding:10px 16px;border-radius:14px;font-weight:700;font-size:15px;line-height:1.2;text-align:center;background:var(--pri);color:var(--on-pri);transition:transform var(--dur-quick) var(--ease-out),opacity var(--dur-quick)}
.btn:active{transform:scale(.97)}
.btn svg{width:19px;height:19px;flex:none}
.btn.ghost,.btn.sec2{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--stroke)}
.btn.sm{min-height:38px;font-size:14px;border-radius:12px;width:auto;padding:8px 14px}
.btn:disabled{opacity:.75}
.btn .typing i{background:currentColor}
.btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.btns .btn{flex:1 0 auto;width:auto;min-width:0;white-space:nowrap;padding-left:14px;padding-right:14px}
.btns .btn:first-child{flex-grow:1.5}

/* написать менеджеру — строка с линией, как у Midi */
.write{display:flex;align-items:center;gap:12px;width:100%;min-height:54px;padding:6px 4px;margin:2px 0 0;text-align:left;font-family:var(--cond);font-weight:700;font-size:21px;line-height:1.1;border-bottom:1.5px solid var(--stroke)}
.write .lab{flex:1;min-width:0}
.write svg{width:22px;height:22px;flex:none}

/* вес */
.wv{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.big{font-family:var(--cond);font-weight:700;font-size:50px;line-height:1;letter-spacing:-.005em}
.big small{font-size:22px;font-weight:600;margin-left:4px;letter-spacing:0}
.delta{font-family:var(--cond);font-weight:700;font-size:23px;line-height:1.1;color:inherit}
.wv .r{text-align:right;flex:none}
.wv .r .k{margin-top:1px}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:12px}
.stat{background:var(--sand);border-radius:12px;padding:9px 10px;min-width:0}
.stat b{display:block;font-family:var(--cond);font-weight:700;font-size:22px;line-height:1.1}
.stat span{display:block;font-size:12px;color:var(--muted);overflow-wrap:anywhere}

/* график */
.chart{width:100%;height:auto;display:block;margin-top:8px;overflow:visible}
.chart .ln{fill:none;stroke:var(--ink);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1000;stroke-dashoffset:1000;animation:draw 1s var(--ease-out) .1s forwards}
.chart .ar{fill:var(--ink);opacity:0;animation:fadeA .5s var(--ease-out) .5s forwards}
.chart .gl{stroke:var(--line);stroke-width:1}
.chart text{font-family:var(--sans);font-size:10.5px;font-weight:600;fill:var(--muted)}
.chart .pt{fill:var(--lime);stroke:var(--ink);stroke-width:1.6}
.chart .pt.last{fill:var(--ink);stroke:none}
.card.lime .chart .ln{stroke:var(--lime-ink)}
.card.lime .chart .pt{fill:var(--lime);stroke:var(--lime-ink)}
.card.lime .chart .pt.last{fill:var(--lime-ink)}
.card.lime .chart text{fill:var(--lime-ink);opacity:.75}
@keyframes draw{to{stroke-dashoffset:0}}
@keyframes fadeA{to{opacity:.06}}
@keyframes fade{to{opacity:1}}

/* плитки «Сегодня» */
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:var(--gap)}
.tile{display:flex;flex-direction:column;gap:8px;padding:14px;border-radius:var(--r-lg);background:var(--sand);text-align:left;transition:transform var(--dur-quick) var(--ease-out)}
.tile:active{transform:scale(.97)}
.tile .ic{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;box-shadow:inset 0 0 0 1.5px var(--stroke);color:var(--ink)}
.tile .ic svg{width:18px;height:18px}
.tile .ic.ves{background:var(--ves-soft);box-shadow:none;color:var(--ves)}
.tile .ic.pl{background:var(--pl-soft);box-shadow:none;color:var(--pl)}
.tile .ic.she{background:var(--she-soft);box-shadow:none;color:var(--she)}
[data-theme=dark] .tile .ic.pl,[data-theme=dark] .tile .ic.she{box-shadow:inset 0 0 0 1px var(--line)}
.tile b{font-family:var(--cond);font-weight:700;font-size:20px;line-height:1.1;overflow-wrap:anywhere}
.tile span{font-size:12.5px;color:var(--muted);margin-top:-6px;overflow-wrap:anywhere}

/* списки */
.list{background:var(--surface);border-radius:var(--r-lg);box-shadow:inset 0 0 0 1px var(--line);overflow:hidden;margin-bottom:var(--gap)}
.list.flat{background:var(--sand);box-shadow:none;margin-bottom:0}
.li{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:10px 16px;text-align:left;border-bottom:1px solid var(--line)}
.li:last-child{border-bottom:0}
.li .ic{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--sand);color:var(--ink);flex:none}
.list.flat .li .ic{background:var(--surface)}
.li .ic svg{width:18px;height:18px}
.li .t{flex:1;min-width:0}
.li .t b{display:block;font-weight:700;font-size:15px;overflow-wrap:anywhere}
.li .t span{display:block;font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.li .r{font-size:14px;color:var(--ink-2);font-weight:600;white-space:nowrap;flex:none}
.li>svg{width:18px;height:18px;color:var(--muted);flex:none}
.li.ok .ic{background:var(--lime);color:var(--lime-ink)}
.li.miss .ic{background:transparent;box-shadow:inset 0 0 0 1.5px var(--line-2);color:var(--muted)}
.li .ic.ves{background:var(--ves-soft);color:var(--ves)}
.li .ic.pl{background:var(--pl-soft);color:var(--pl)}
.li .ic.she{background:var(--she-soft);color:var(--she)}
.li .ic.lime{background:var(--lime);color:var(--lime-ink)}

/* календарь */
.cal-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.cal-h b{font-family:var(--cond);font-weight:700;font-size:23px;text-transform:capitalize;flex:1;padding-left:2px}
.cal-h .nav{display:flex;gap:6px}
.cal-h button{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;box-shadow:inset 0 0 0 1.5px var(--stroke)}
.cal-h button svg{width:18px;height:18px}
.cal-h button.off{opacity:.3;pointer-events:none}
.cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px 3px;text-align:center}
.cal .wd{font-size:12px;color:var(--muted);font-weight:600;padding:2px 0 2px}
.cal .d{position:relative;display:grid;place-items:center;height:clamp(34px,10vw,42px);border-radius:11px;font-size:clamp(13px,3.9vw,15px);font-weight:600;color:var(--ink-2)}
.cal .d.o{visibility:hidden}
.cal .d.done{background:var(--lime);color:var(--lime-ink);font-weight:800}
.cal .d.plan{box-shadow:inset 0 0 0 1.5px var(--stroke);color:var(--ink);font-weight:700}
.cal .d.miss{background:var(--sand2);color:var(--muted);text-decoration:line-through}
.cal .d.today{background:var(--ink);color:var(--lime);font-weight:800;box-shadow:none}
.cal .d.log:after{content:"";position:absolute;bottom:2px;left:50%;width:12px;height:2px;margin-left:-6px;border-radius:1px;background:var(--ink-2)}
.cal .d.done.log:after,.cal .d.today.log:after{bottom:4px;background:currentColor}
.legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:10px;font-size:12px;color:var(--muted);font-weight:500}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend i{display:inline-block;width:12px;height:12px;border-radius:4px}
.legend i.l-done{background:var(--lime);box-shadow:inset 0 0 0 1px var(--lime-line)}
.legend i.l-plan{box-shadow:inset 0 0 0 1.5px var(--stroke)}
.legend i.l-miss{background:var(--sand2)}
.legend i.l-today{background:var(--ink)}
.legend i.l-log{width:12px;height:2px;border-radius:1px;background:var(--ink-2)}

/* прогресс курса */
.prog-k{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.prog-k b{display:block;font-family:var(--cond);font-weight:700;font-size:27px;line-height:1.05;margin-top:2px}

/* переключатель */
.sw{position:relative;width:48px;height:28px;border-radius:14px;background:var(--sand2);flex:none;transition:background-color var(--dur-fast) var(--ease-out)}
.sw:after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:var(--surface);box-shadow:0 1px 2px rgba(27,27,25,.22);transition:transform var(--dur-fast) var(--ease-out),background-color var(--dur-fast)}
.sw.on{background:var(--ink)}
.sw.on:after{transform:translateX(20px);background:var(--lime);box-shadow:none}
[data-theme=dark] .sw:after{background:#CDCDC2}
[data-theme=dark] .sw.on{background:var(--lime)}
[data-theme=dark] .sw.on:after{background:var(--lime-ink)}
.time-pill{height:34px;padding:0 12px;border-radius:10px;box-shadow:inset 0 0 0 1.5px var(--stroke);font-family:var(--cond);font-weight:700;font-size:18px;flex:none}

/* сегменты, самочувствие, теги */
.seg{display:flex;background:var(--sand);border-radius:12px;padding:3px}
.seg button{flex:1;min-width:0;height:34px;border-radius:9px;font-size:13.5px;font-weight:700;color:var(--muted);transition:background-color var(--dur-quick) var(--ease-out),color var(--dur-quick)}
.seg button.on{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px rgba(27,27,25,.08),inset 0 0 0 1px var(--line)}
[data-theme=dark] .seg button.on{background:var(--sand2);box-shadow:none}
.seg .kz{font-family:var(--cond);font-size:15px;font-weight:700}
.moods{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.mood{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;padding:9px 2px;border-radius:14px;background:var(--sand);font-size:clamp(10px,2.9vw,11.5px);font-weight:700;line-height:1.15;text-align:center;color:var(--ink-2);transition:background-color var(--dur-quick) var(--ease-out),color var(--dur-quick)}
.mood .face{width:26px;height:26px}
.mood.on{background:var(--ink);color:var(--bg)}
.mood.on .face{color:var(--lime)}
.tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.tag{min-height:34px;padding:6px 13px;border-radius:17px;box-shadow:inset 0 0 0 1.5px var(--line-2);font-size:13.5px;font-weight:600;line-height:1.2;transition:background-color var(--dur-quick) var(--ease-out),color var(--dur-quick),box-shadow var(--dur-quick)}
.tag.on{background:var(--ink);color:var(--bg);box-shadow:inset 0 0 0 1.5px var(--ink)}

/* питание */
.kcal{display:flex;align-items:center;gap:clamp(12px,4vw,18px)}
.ring{position:relative;width:clamp(92px,28vw,112px);height:clamp(92px,28vw,112px);flex:none}
.ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ring .bgc{stroke:var(--lime-line)}
.ring .fgc{stroke:var(--lime-ink);stroke-linecap:round;transition:stroke-dashoffset .8s var(--ease-out)}
.ring .in{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ring .in b{font-family:var(--cond);font-weight:700;font-size:28px;line-height:1}
.ring .in span{font-size:11px;font-weight:600;opacity:.75;margin-top:2px}
.macro{margin-bottom:9px}
.macro:last-child{margin-bottom:0}
.macro .row{gap:8px;font-size:13px;margin-bottom:5px;font-weight:600}
.macro .row b{font-weight:700;white-space:nowrap}
.mbar{height:6px;border-radius:3px;background:var(--lime-line);overflow:hidden}
.mbar i{display:block;height:100%;border-radius:3px;background:var(--lime-ink);transition:width .8s var(--ease-out)}
.mbar.ink{background:var(--sand2)}
.mbar.ink i{background:var(--ink)}
.tip{display:flex;gap:12px;align-items:flex-start;background:var(--sand);border-radius:var(--r-lg);padding:14px 16px;margin-bottom:var(--gap);font-size:14px}
.tip svg{width:20px;height:20px;flex:none;margin-top:1px}
.tip b{font-weight:800}
.food{display:flex;align-items:center;gap:12px;width:100%;padding:11px 0;text-align:left;border-bottom:1px solid var(--line)}
.food:last-child{border-bottom:0}
.food .t{flex:1}
.food .t b{display:block;font-weight:700;overflow-wrap:anywhere}
.food .t span{font-size:12.5px;color:var(--muted)}
.food .add{width:34px;height:34px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--stroke);display:grid;place-items:center;flex:none}
.food .add svg{width:18px;height:18px}

/* программы */
.prog{position:relative;display:flex;flex-direction:column;align-items:flex-start;border-radius:var(--r-lg);padding:16px;margin-bottom:var(--gap);color:var(--ink)}
.prog.ves{background:var(--ves-soft)}
.prog.en{background:var(--pl-soft)}
.prog.gl{background:var(--she-soft)}
.prog .head{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%}
.prog .br{color:var(--ink)}
.prog.ves .br{box-shadow:inset 0 0 0 1.5px var(--ves);color:var(--ves)}
.prog.en .br{box-shadow:inset 0 0 0 1.5px var(--pl);color:var(--pl)}
.prog.gl .br{box-shadow:inset 0 0 0 1.5px var(--she);color:var(--she)}
.prog h4{font-family:var(--cond);font-weight:700;font-size:40px;line-height:1;margin:12px 0 6px}
.prog p{margin:0 0 14px;font-size:14px;color:var(--ink-2);max-width:420px}
.prog .row{flex-wrap:wrap;gap:8px;width:100%}
.prog .btn{width:auto;min-height:42px;font-size:14px;padding:8px 16px;border-radius:12px}

/* знания */
.vids{display:flex;gap:10px;overflow-x:auto;margin:0 -16px;padding:2px 16px 6px;scroll-snap-type:x mandatory;scroll-padding:0 16px;scrollbar-width:none}
.vids::-webkit-scrollbar{display:none}
.vid{flex:0 0 204px;scroll-snap-align:start;text-align:left}
.vid .th{position:relative;height:120px;border-radius:18px;display:grid;place-items:center;overflow:hidden}
.vid .th.ves{background:var(--ves-soft)}.vid .th.pl{background:var(--pl-soft)}.vid .th.she{background:var(--she-soft)}.vid .th.sand{background:var(--sand2)}
.vid .th .pl{width:46px;height:46px;border-radius:50%;background:var(--pri);color:var(--on-pri);display:grid;place-items:center}
.vid .th .pl svg{width:18px;height:18px;margin-left:2px}
.vid .th em{position:absolute;right:10px;bottom:10px;font-style:normal}
.vid b{display:block;font-size:14.5px;font-weight:700;margin-top:8px;line-height:1.25}
.vid span{font-size:12.5px;color:var(--muted)}
.faq .item{border-bottom:1px solid var(--line)}
.faq .item:last-child{border-bottom:0}
.faq .q{display:flex;align-items:center;gap:12px;width:100%;min-height:54px;padding:12px 16px;text-align:left;font-weight:700;font-size:15px}
.faq .q span{flex:1;min-width:0}
.faq .q svg{width:18px;height:18px;flex:none;color:var(--muted);transition:transform var(--dur-fast) var(--ease-out)}
.faq .a{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--dur-fast) var(--ease-out)}
.faq .a>div{overflow:hidden}
.faq .a p{margin:0;padding:0 16px 16px;color:var(--ink-2);font-size:14.5px;line-height:1.5}
.faq .item.open .a{grid-template-rows:1fr}
.faq .item.open .q svg{transform:rotate(180deg)}

/* профиль */
.prof{display:flex;align-items:center;gap:14px}
.prof .nm{display:block;font-family:var(--cond);font-weight:700;font-size:26px;line-height:1.05;overflow-wrap:anywhere}
.ava{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;font-family:var(--cond);font-size:22px;font-weight:700;color:var(--lime-ink);background:var(--lime);flex:none}
.lvl{background:var(--plate);color:var(--on-plate);border-radius:var(--r-lg);padding:16px;margin-bottom:var(--gap)}
.lvl .k{color:var(--plate-mut)}
.lvl .nm{display:block;font-family:var(--cond);font-weight:700;font-size:25px;line-height:1.1}
.lvl .pts{font-family:var(--cond);font-weight:700;font-size:32px;line-height:1}
.lvl .bar{height:8px;border-radius:4px;background:rgba(247,247,242,.16);overflow:hidden;margin-top:12px}
.lvl .bar i{display:block;height:100%;border-radius:4px;background:var(--lime);transform-origin:left;animation:grow .8s var(--ease-out) both}
@keyframes grow{from{transform:scaleX(0)}}
.lvl .to{font-size:12.5px;color:var(--plate-mut);margin-top:8px}
.badges{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:14px}
.badge{border-radius:14px;padding:10px 8px;text-align:center;font-size:11.5px;font-weight:600;line-height:1.3;box-shadow:inset 0 0 0 1px rgba(247,247,242,.2)}
.badge svg{width:20px;height:20px;display:block;margin:0 auto 6px;color:var(--lime)}
.badge.off{opacity:.45}
.field{display:block;padding:10px 16px;border-bottom:1px solid var(--line)}
.field:last-child{border-bottom:0}
.field span{display:block;font-size:12px;color:var(--muted);margin-bottom:2px;font-weight:600}
.field input{width:100%;border:0;background:none;outline:none;font-size:16px;font-weight:600;padding:0}
.check{display:flex;gap:12px;align-items:flex-start;width:100%;padding:14px 16px;font-size:13.5px;color:var(--ink-2);text-align:left}
.check .bx{width:22px;height:22px;border-radius:7px;box-shadow:inset 0 0 0 1.5px var(--line-2);flex:none;display:grid;place-items:center;transition:background-color var(--dur-quick) var(--ease-out),box-shadow var(--dur-quick)}
.check .bx svg{width:14px;height:14px;opacity:0;color:var(--lime);transition:opacity var(--dur-quick)}
.check.on .bx{background:var(--ink);box-shadow:none}
.check.on .bx svg{opacity:1}
[data-theme=dark] .check.on .bx svg{color:var(--lime-ink)}
[data-theme=dark] .check.on .bx{background:var(--lime)}
.lang-seg{width:132px;flex:none}

/* чат */
.who{display:flex;gap:12px;align-items:center;margin:2px 0 14px}
.who .ava{width:44px;height:44px;font-size:19px}
.who .ava.m{background:var(--sand2);color:var(--ink)}
.who .ava.d{background:var(--pl-soft);color:var(--pl)}
.who b{font-family:var(--cond);font-weight:700;font-size:22px;line-height:1.1}
.chat{display:flex;flex-direction:column;gap:8px;padding-bottom:70px}
.msg{max-width:82%;padding:9px 13px;border-radius:18px;font-size:15px;line-height:1.4;animation:viewIn var(--dur-fast) var(--ease-out)}
.msg.them{background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);border-bottom-left-radius:6px;align-self:flex-start}
.msg.me{background:var(--pri);color:var(--on-pri);border-bottom-right-radius:6px;align-self:flex-end}
.msg small{display:block;font-size:11px;opacity:.6;margin-top:3px}
.typing{display:inline-flex;gap:4px}
.typing i{width:6px;height:6px;border-radius:50%;background:var(--muted);animation:blink 1s infinite}
.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}
@keyframes blink{0%,80%,100%{opacity:.25}40%{opacity:1}}
.quick{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0 4px}
.composer{position:fixed;left:0;right:0;bottom:0;z-index:7;display:flex;gap:8px;padding:8px var(--gutter) calc(8px + var(--safe-b));background:var(--bg);border-top:1px solid var(--line)}
.composer input{flex:1;min-width:0;height:44px;border-radius:22px;border:0;background:var(--sand);padding:0 16px;outline:none;font-size:16px;font-weight:500}
.composer input::placeholder{color:var(--muted)}
.composer button{width:44px;height:44px;border-radius:50%;background:var(--pri);color:var(--on-pri);display:grid;place-items:center;flex:none}
.composer button svg{width:20px;height:20px}

/* шторки */
.sheet-back{position:fixed;inset:0;z-index:20;background:rgba(20,20,17,.42);opacity:0;animation:fade var(--dur-fast) var(--ease-out) both}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:21;max-width:var(--maxw);margin:0 auto;max-height:86vh;overflow:auto;background:var(--bg);border-radius:24px 24px 0 0;padding:8px 16px calc(18px + var(--safe-b));animation:up var(--dur-slow) var(--ease-drawer)}
[data-theme=dark] .sheet{background:var(--surface)}
[data-theme=dark] .sheet .list.flat{background:var(--sand)}
[data-theme=dark] .sheet .list.flat .li .ic{background:var(--sand2)}
.sheet.closing{animation:down 200ms var(--ease-out) forwards}
.sheet-back.closing{animation:fadeOut 200ms var(--ease-out) forwards}
@keyframes up{from{transform:translateY(100%)}}
@keyframes down{to{transform:translateY(100%)}}
@keyframes fadeOut{from{opacity:1}to{opacity:0}}
.sheet .grab{width:38px;height:4px;border-radius:2px;background:var(--line-2);margin:0 auto 14px}
.sheet h3{margin:0 0 12px;font-family:var(--cond);font-weight:700;font-size:28px;line-height:1.05}
.sheet .lead{margin:-4px 0 14px}
.stepper{display:flex;align-items:center;justify-content:center;gap:20px;margin:12px 0 18px}
.stepper button{width:48px;height:48px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--stroke);font-size:24px;font-weight:500;flex:none}
.stepper b{font-family:var(--cond);font-weight:700;font-size:54px;line-height:1;min-width:150px;text-align:center}
.stepper b small{font-size:22px;color:var(--muted);font-weight:600}

/* заявка принята */
.success{text-align:center;padding:30px 12px 8px}
.success .ok{width:76px;height:76px;border-radius:50%;background:var(--lime);color:var(--lime-ink);display:grid;place-items:center;margin:0 auto 18px;animation:pop var(--dur-emph,500ms) var(--ease-out)}
.success .ok svg{width:36px;height:36px}
.success .ok path{stroke-dasharray:40;stroke-dashoffset:40;animation:chk .4s var(--ease-out) .25s forwards}
@keyframes pop{from{transform:scale(.8);opacity:0}}
@keyframes chk{to{stroke-dashoffset:0}}
.success h2{margin:0 0 8px;font-family:var(--cond);font-weight:700;font-size:40px;line-height:1}
.success p{color:var(--ink-2);margin:0 auto 22px;max-width:320px}
.zhead{display:flex;align-items:center;gap:12px}
.zhead .ic{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;flex:none}
.zhead .ic svg{width:20px;height:20px}
.zhead b{display:block;font-family:var(--cond);font-weight:700;font-size:24px;line-height:1.1}

.note{font-size:12px;color:var(--muted);text-align:center;margin:18px 12px 0;line-height:1.5}
.intro{margin:2px 2px 14px;color:var(--ink-2)}
.toast{position:fixed;left:50%;bottom:calc(72px + var(--safe-b));z-index:30;transform:translateX(-50%);max-width:calc(100vw - 32px);background:var(--pri);color:var(--on-pri);padding:10px 16px;border-radius:14px;font-size:14px;font-weight:600;text-align:center;animation:toastIn var(--dur-medium) var(--ease-out)}
.toast.kz{font-family:var(--cond);font-size:16px;font-weight:600}
@keyframes toastIn{from{opacity:0;transform:translate(-50%,8px)}}
.press{transition:transform var(--dur-quick) var(--ease-out)}
.press:active{transform:scale(.98)}
.shake{animation:shake .35s}
@keyframes shake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}

/* ---------- адаптив 320–880 ---------- */
@media (max-width:374px){
  .hero{min-height:180px}
  .hero .ttl{font-size:36px}
  .hero .of{font-size:19px}
  .squares{grid-template-columns:repeat(6,minmax(0,18px));gap:4px}
  .shot-h h4{font-size:26px}
  .big{font-size:44px}
  .top .greet h1{font-size:24px}
  .top h1{font-size:25px}
  .write{font-size:19px}
  .btns .btn{font-size:14.5px;padding-left:10px;padding-right:10px}
  .stepper{gap:12px}
  .stepper b{min-width:120px;font-size:46px}
  .seg button{font-size:12.5px}
  .card{padding:14px}
  .li{padding:10px 14px}
  .tile b{font-size:18px}
}
@media (max-width:340px){.btns .btn{flex-basis:100%}.tabs button{font-size:10px}.prog h4{font-size:34px}}
@media (min-width:600px){
  .tiles{grid-template-columns:repeat(4,1fr)}
  .tabs button{flex-direction:row;gap:8px;font-size:13px;padding:10px 0}
  .hero{min-height:220px}
}
@media (hover:hover) and (pointer:fine){
  .tile:hover,.hero:hover{filter:brightness(.98)}
  .li:is(button):hover,.food:hover,.faq .q:hover{background:color-mix(in srgb,var(--ink) 4%,transparent)}
}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:1ms!important;animation-delay:0s!important;transition-duration:1ms!important}.chart .ln{stroke-dashoffset:0}.chart .ar{opacity:.06}}
/* цветные значки в списках сильнее фона плоских списков и шторок */
.list .li.ok .ic,.list .li .ic.lime{background:var(--lime);color:var(--lime-ink)}
.list .li .ic.pl{background:var(--pl-soft);color:var(--pl)}
.list .li .ic.ves{background:var(--ves-soft);color:var(--ves)}
.list .li .ic.she{background:var(--she-soft);color:var(--she)}
.field input::placeholder{color:var(--muted);font-weight:500}
[data-theme=dark] .cal .d.today{color:var(--bg)}
[data-theme=dark] .mood.on .face{color:inherit}
.mz{color:var(--muted);margin-left:4px}
.toast{width:max-content}
@media (max-width:374px){.ring .in span{font-size:9.5px}.ring .in b{font-size:24px}}
@media (max-width:359px){.top h1{font-size:22px}.top .greet h1{font-size:23px}}
[data-theme=dark] .sheet .list.flat .li.ok .ic,[data-theme=dark] .sheet .list.flat .li .ic.lime{background:var(--lime);color:var(--lime-ink)}
[data-theme=dark] .sheet .list.flat .li .ic.pl{background:var(--pl-soft);color:var(--pl)}
