/* ============================================================
   RISE UP — Landing v3 "Athletic Precision + Studio"
   Palette: #0A0A0C bg · #101015 surface · #FF4D12 fire
   Type: Sofia Sans Extra Condensed / Sofia Sans / JetBrains Mono
   ============================================================ */

:root{
  --bg:#0A0A0C;
  --surface:#101015;
  --surface-2:#15151B;
  --surface-3:#1A1A21;
  --line:#232329;
  --line-2:#2E2E36;
  --text:#F5F5F7;
  --muted:#9C9CA8;
  --muted-2:#6C6C78;
  --fire:#FF4D12;
  --fire-hi:#FF7A45;
  --fire-soft:rgba(255,77,18,.12);
  --ok:#4ADE80;
  --warn:#FBBF24;
  --bad:#F87171;
  --radius:14px;
  --radius-lg:22px;
  --font-display:'Sofia Sans Extra Condensed',sans-serif;
  --font-body:'Sofia Sans',sans-serif;
  --font-mono:'JetBrains Mono',monospace;
  --pad-x:clamp(1rem,4.5vw,3.5rem);
  --maxw:1280px;
  --ease:cubic-bezier(.2,.75,.2,1);
  --nav-bg:rgba(10,10,12,.88);
  --nav-solid:rgba(10,10,12,.97);
  --dot-grid:#26262E;
  --wordmark:#2A2A32;
}

/* ---------- СВЕТЛА ТЕМА ---------- */
[data-theme="light"]{
  --bg:#F7F6F3;
  --surface:#FFFFFF;
  --surface-2:#F0EFEB;
  --surface-3:#E8E7E2;
  --line:#E2E0DA;
  --line-2:#D2D0C8;
  --text:#16161A;
  --muted:#5F5F6B;
  --muted-2:#93939E;
  --fire-soft:rgba(255,77,18,.09);
  --nav-bg:rgba(247,246,243,.9);
  --nav-solid:rgba(247,246,243,.98);
  --dot-grid:#DBD9D2;
  --wordmark:#DDDBD4;
}
[data-theme="light"] body{-webkit-font-smoothing:auto}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg);color:var(--text);
  font-family:var(--font-body);font-size:16.5px;line-height:1.6;
  overflow-x:hidden;-webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}
button{font:inherit;color:inherit}
.mono{font-family:var(--font-mono)}
::selection{background:var(--fire);color:#fff}
:focus-visible{outline:2px solid var(--fire);outline-offset:3px;border-radius:4px}

/* КРИТИЧНО: anchor линковете да не крият съдържание под фиксираната навигация */
[id]{scroll-margin-top:5rem}

/* ---------- прогрес индикатор ---------- */
.scroll-progress{position:fixed;top:0;left:0;right:0;height:2px;z-index:100;background:transparent}
.scroll-progress span{display:block;height:100%;width:0;background:var(--fire);transition:width .1s linear}

/* ---------- бутони ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  font-family:var(--font-body);font-weight:700;letter-spacing:.01em;
  border:1px solid transparent;border-radius:10px;cursor:pointer;
  transition:transform .18s var(--ease),background .18s,border-color .18s,color .18s,box-shadow .18s;
  white-space:nowrap;position:relative;overflow:hidden;
}
.btn:active{transform:scale(.98)}
.btn-sm{padding:.55rem 1rem;font-size:.9rem}
.btn-lg{padding:.95rem 1.7rem;font-size:1.03rem}
.btn:not(.btn-sm):not(.btn-lg){padding:.75rem 1.35rem;font-size:.96rem}
.btn-block{width:100%;white-space:normal;text-align:center}
.btn.loading{pointer-events:none;color:transparent}
.btn.loading::after{
  content:"";position:absolute;left:50%;top:50%;margin:-9px 0 0 -9px;
  width:18px;height:18px;border-radius:50%;
  border:2px solid rgba(255,255,255,.35);border-top-color:#fff;
  animation:spin .7s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}
.btn-fire{background:var(--fire);color:#fff}
.btn-fire:hover{background:var(--fire-hi);transform:translateY(-1px);box-shadow:0 10px 30px -10px rgba(255,77,18,.55)}
.btn-outline{background:transparent;color:var(--text);border-color:var(--line)}
.btn-outline:hover{border-color:var(--fire);color:var(--fire-hi);transform:translateY(-1px)}
.btn-ghost{background:var(--surface-2);color:var(--text)}
.btn-ghost:hover{background:var(--surface-3)}
.link-btn{background:none;border:none;padding:0;color:var(--fire);font-weight:600;font-size:.85rem;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.link-btn:hover{color:var(--fire-hi)}

/* ---------- НАВИГАЦИЯ ---------- */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:90;
  display:flex;align-items:center;gap:1.4rem;
  padding:.85rem var(--pad-x);
  background:transparent;border-bottom:1px solid transparent;
  transition:background .25s,border-color .25s,padding .25s;
}
.nav.scrolled{background:var(--nav-bg);backdrop-filter:blur(14px);border-color:var(--line);padding-top:.65rem;padding-bottom:.65rem}
.nav.menu-open{background:var(--nav-solid);border-color:var(--line)}
.nav-brand{display:flex;align-items:center;gap:.6rem}
.nav-brand img{height:32px}
.nav-brand span{font-family:var(--font-display);font-weight:800;font-size:1.15rem;letter-spacing:.08em}
.nav-links{display:flex;gap:1.3rem;margin-left:auto}
.nav-links a{
  display:inline-flex;align-items:baseline;gap:.4rem;
  font-weight:600;font-size:.92rem;color:var(--muted);
  padding-bottom:2px;border-bottom:2px solid transparent;
  transition:color .18s,border-color .18s;
}
.nav-links a i{font-style:normal;font-size:.66rem;color:var(--fire);opacity:.85}
.nav-links a:hover{color:var(--text)}
.nav-links a.active{color:var(--text);border-color:var(--fire)}
.nav-cta{display:flex;gap:.55rem}
.nav-burger{display:none;background:none;border:1px solid var(--line);border-radius:8px;padding:.55rem;cursor:pointer;flex-direction:column;gap:5px;margin-left:auto}
.nav-burger span{width:20px;height:2px;background:var(--text);transition:.2s}
.nav-burger[aria-expanded="true"] span:first-child{transform:translateY(3.5px) rotate(45deg)}
.nav-burger[aria-expanded="true"] span:last-child{transform:translateY(-3.5px) rotate(-45deg)}

/* ---------- ВЕРТИКАЛЕН ИНДЕКС (side) ---------- */
.side-index{
  position:fixed;left:1.2rem;top:50%;transform:translateY(-50%);z-index:60;
  opacity:0;transition:opacity .35s ease .35s;pointer-events:none;
}
.side-index.on{opacity:1;pointer-events:auto}
.side-index ul{display:grid;gap:.9rem}
.side-index li{
  display:flex;align-items:center;gap:.6rem;
  cursor:pointer;color:var(--muted-2);transition:color .2s;
}
.side-index li span{font-size:.65rem;letter-spacing:.16em;transition:color .2s}
.side-index li i{
  display:block;width:16px;height:1px;background:var(--muted-2);
  transition:width .3s var(--ease),background .3s;
}
.side-index li:hover{color:var(--muted)}
.side-index li:hover i{background:var(--muted)}
.side-index li.active{color:var(--text)}
.side-index li.active span{color:var(--fire)}
.side-index li.active i{width:38px;background:var(--fire)}

/* ---------- HERO ---------- */
.hero{
  min-height:100svh;
  padding:clamp(6rem,11vh,8rem) var(--pad-x) 4rem;
  display:flex;flex-direction:column;justify-content:center;position:relative;
  max-width:var(--maxw);margin:0 auto;
  overflow:hidden;
}

/* Фон — dot grid + меко огнено сияние */
.hero-bg{
  position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image:
    radial-gradient(circle at center,var(--dot-grid) 1px,transparent 1.2px);
  background-size:32px 32px;
  mask-image:radial-gradient(ellipse 65% 55% at 50% 45%,#000 30%,transparent 90%);
  -webkit-mask-image:radial-gradient(ellipse 65% 55% at 50% 45%,#000 30%,transparent 90%);
  opacity:.6;
}
.hero-bg::after{
  content:"";position:absolute;inset:0;
  background:radial-gradient(ellipse 45% 40% at 65% 40%,rgba(255,77,18,.09),transparent 65%);
}

/* Corner brackets */
.hero-brackets{position:absolute;inset:5rem var(--pad-x) 3rem;pointer-events:none;z-index:1}
.hb{position:absolute;width:38px;height:38px;border:1px solid var(--fire);opacity:.55;
    animation:fadeIn 1s ease .3s both}
.hb.tl{top:0;left:0;border-right:0;border-bottom:0}
.hb.tr{top:0;right:0;border-left:0;border-bottom:0}
.hb.bl{bottom:0;left:0;border-right:0;border-top:0}
.hb.br{bottom:0;right:0;border-left:0;border-top:0}

/* Вертикален странящ текст */
.hero-side-text{
  position:absolute;top:50%;left:.6rem;transform:translateY(-50%) rotate(-90deg);
  transform-origin:left center;
  font-size:.62rem;letter-spacing:.4em;color:var(--muted-2);
  white-space:nowrap;
  animation:fadeIn 1s ease .5s both;
}
@media (max-width:1200px){.hero-side-text{display:none}}

/* Двуколонов layout */
.hero-inner{
  display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(2rem,5vw,4.5rem);
  align-items:center;position:relative;z-index:2;
}
.hero-copy{min-width:0}
.hero-kicker{font-size:.72rem;letter-spacing:.3em;color:var(--fire);margin-bottom:1.6rem;display:inline-flex;align-items:center;gap:.7rem}
.hero-kicker .dot{width:6px;height:6px;background:var(--fire);border-radius:50%;box-shadow:0 0 0 4px rgba(255,77,18,.2);animation:pulse 1.6s ease-in-out infinite}
@keyframes pulse{0%,100%{box-shadow:0 0 0 4px rgba(255,77,18,.2)}50%{box-shadow:0 0 0 8px rgba(255,77,18,0)}}
.hero-title{
  font-family:var(--font-display);font-weight:800;text-transform:uppercase;
  font-size:clamp(4.5rem,13vw,11rem);line-height:.86;letter-spacing:-.005em;
  margin-bottom:1.8rem;
}
.ht-line{display:block;overflow:hidden;padding-top:.05em;padding-bottom:.05em}
.ht-line>span{display:inline-block;transform:translateY(110%);animation:htUp 1s var(--ease) forwards}
.ht-line:nth-child(2)>span{animation-delay:.11s}
.ht-line:nth-child(3)>span{animation-delay:.22s}
.hero-title em{font-style:normal;color:var(--fire)}
@keyframes htUp{to{transform:none}}
.hero-sub{max-width:520px;color:var(--muted);font-size:1.14rem;margin-bottom:2rem;opacity:0;animation:fadeIn .8s ease .55s forwards}
.hero-actions{display:flex;gap:.9rem;flex-wrap:wrap;margin-bottom:2.4rem;opacity:0;animation:fadeIn .8s ease .65s forwards}
.hero-meta{
  display:flex;gap:1.5rem;flex-wrap:wrap;
  border-top:1px solid var(--line);padding-top:1.1rem;
  font-size:.78rem;letter-spacing:.14em;color:var(--muted);
  opacity:0;animation:fadeIn .8s ease .75s forwards;
}
.hero-meta span{display:inline-flex;align-items:baseline;gap:.5rem}
.hero-meta b{color:var(--fire);font-weight:600}
@keyframes fadeIn{to{opacity:1}}

/* ---------- HERO VISUAL — Anatomy Readout ---------- */
.hero-visual{
  justify-self:end;width:min(420px,100%);
  opacity:0;transform:translateY(30px) scale(.98);
  animation:hvIn 1.1s var(--ease) .55s forwards;
}
@keyframes hvIn{to{opacity:1;transform:none}}

.hv-panel{
  position:relative;overflow:hidden;
  background:linear-gradient(180deg,var(--surface),var(--bg));
  border:1px solid var(--line);border-radius:var(--radius-lg);
  padding:1.2rem 1.3rem 1.1rem;
}
.hv-panel::before{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:
    linear-gradient(90deg,transparent 0,transparent calc(50% - 1px),rgba(255,77,18,.04) 50%,transparent calc(50% + 1px)),
    linear-gradient(0deg,transparent 0,transparent calc(50% - 1px),rgba(255,77,18,.04) 50%,transparent calc(50% + 1px));
}

.hv-head{
  display:flex;justify-content:space-between;align-items:center;
  padding-bottom:.8rem;border-bottom:1px solid var(--line);
  font-size:.66rem;letter-spacing:.2em;color:var(--muted);
}
.hv-head .hv-pulse{
  width:8px;height:8px;background:var(--fire);border-radius:50%;
  box-shadow:0 0 0 3px rgba(255,77,18,.25);animation:pulse 1.6s ease-in-out infinite;
}

.hv-anatomy{
  position:relative;padding:1rem 0 .8rem;height:230px;
  display:flex;justify-content:center;align-items:center;
}
.hv-fig{height:100%;width:auto;max-width:100%}
.hv-orbit{transform-origin:110px 150px;animation:orbitSpin 40s linear infinite}
@keyframes orbitSpin{to{transform:rotate(360deg)}}
.hv-body path,.hv-body circle{
  stroke-dasharray:300;stroke-dashoffset:300;
  animation:drawLine 1.4s var(--ease) .8s forwards;
}
.hv-line{stroke-dasharray:120;stroke-dashoffset:120;
         animation:drawLine 1s var(--ease) 1.4s forwards}
.hv-dot{opacity:0;transform-origin:center;transform-box:fill-box}
.hv-dot.d1{animation:dotIn .5s ease 1.5s forwards, dotPulse 2.4s ease-in-out 2.5s infinite}
.hv-dot.d2{animation:dotIn .5s ease 1.65s forwards, dotPulse 2.4s ease-in-out .6s infinite}
.hv-dot.d3{animation:dotIn .5s ease 1.8s forwards, dotPulse 2.4s ease-in-out .3s infinite}
.hv-dot.d4{animation:dotIn .5s ease 1.95s forwards, dotPulse 2.4s ease-in-out .9s infinite}
.hv-dot.d5{animation:dotIn .5s ease 2.1s forwards, dotPulse 2.4s ease-in-out 1.2s infinite}
@keyframes drawLine{to{stroke-dashoffset:0}}
@keyframes dotIn{to{opacity:1}}
@keyframes dotPulse{
  0%,100%{transform:scale(1);filter:drop-shadow(0 0 3px var(--fire))}
  50%{transform:scale(1.4);filter:drop-shadow(0 0 8px var(--fire))}
}

.hv-labels{
  display:grid;gap:.35rem;
  border-block:1px solid var(--line);padding:.8rem 0;margin-bottom:.9rem;
}
.hv-labels li{
  display:grid;grid-template-columns:auto 1fr auto;gap:.7rem;align-items:baseline;
  font-size:.7rem;letter-spacing:.14em;color:var(--muted);
  opacity:0;transform:translateX(-8px);
  animation:labelIn .5s var(--ease) forwards;
  position:relative;
}
.hv-labels li:nth-child(1){animation-delay:1.15s}
.hv-labels li:nth-child(2){animation-delay:1.3s}
.hv-labels li:nth-child(3){animation-delay:1.45s}
.hv-labels li:nth-child(4){animation-delay:1.6s}
.hv-labels li:nth-child(5){animation-delay:1.75s}
.hv-labels li span{color:var(--fire);font-size:.62rem;letter-spacing:.14em}
.hv-labels li b{color:var(--text);font-weight:500;letter-spacing:.2em;font-size:.7rem}
.hv-labels li em{
  font-style:normal;color:var(--ok);
  display:inline-flex;align-items:center;gap:.35rem;font-size:.6rem;letter-spacing:.14em;
}
.hv-labels li em::before{
  content:"";width:5px;height:5px;background:var(--ok);border-radius:50%;
  box-shadow:0 0 0 2px rgba(74,222,128,.2);
}
@keyframes labelIn{to{opacity:1;transform:none}}

.hv-foot{
  display:flex;justify-content:space-between;align-items:baseline;
  font-size:.62rem;letter-spacing:.2em;color:var(--muted-2);
}
.hv-foot b{color:var(--fire);font-weight:400}

/* scan линия */
.hv-scan{
  position:absolute;left:0;right:0;top:0;height:1px;
  background:linear-gradient(90deg,transparent,var(--fire),transparent);
  opacity:.6;animation:scanY 5s linear infinite;pointer-events:none;
}
@keyframes scanY{
  0%{top:0;opacity:0}
  10%{opacity:.6}
  50%{opacity:.6}
  90%{opacity:.6}
  100%{top:100%;opacity:0}
}

.hero-scroll{
  position:absolute;bottom:1.5rem;left:var(--pad-x);
  display:inline-flex;align-items:center;gap:.6rem;
  font-size:.66rem;letter-spacing:.24em;color:var(--muted);
  z-index:2;
}
.hero-scroll i{width:24px;height:1px;background:var(--muted);position:relative;overflow:hidden}
.hero-scroll i::after{content:"";position:absolute;inset:0;background:var(--fire);animation:scrollLine 2s ease-in-out infinite}
@keyframes scrollLine{0%{transform:translateX(-100%)}50%{transform:translateX(0)}100%{transform:translateX(100%)}}

/* ---------- TICKER ---------- */
.ticker{overflow:hidden;border-block:1px solid var(--line);padding:.75rem 0;background:var(--surface)}
.ticker-track{display:flex;width:max-content;align-items:center;animation:tick 40s linear infinite}
.ticker-track span{font-size:.72rem;letter-spacing:.3em;color:var(--text);padding:0 1.4rem}
.ticker-track b{color:var(--fire);font-weight:400}
@keyframes tick{to{transform:translateX(-50%)}}

/* ---------- SECTION SYSTEM ---------- */
.section{max-width:var(--maxw);margin:0 auto;padding:clamp(4.5rem,9vw,7.5rem) var(--pad-x) 0}
.sec-head{
  display:grid;grid-template-columns:1fr;gap:.8rem;
  border-bottom:1px solid var(--line);padding-bottom:1.6rem;margin-bottom:2.8rem;
  max-width:820px;
}
.sec-head-center{max-width:820px;margin-inline:auto;text-align:center}
.sec-num{font-size:.72rem;letter-spacing:.22em;color:var(--fire)}
.sec-head h2{
  font-family:var(--font-display);font-weight:800;text-transform:uppercase;
  font-size:clamp(2.4rem,6vw,4.4rem);line-height:.95;
}
.sec-head h2 em{font-style:normal;color:var(--fire)}
.sec-sub{color:var(--muted);font-size:1.02rem}

/* ---------- 01 СТЪПКИ ---------- */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem}
.step{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  padding:1.7rem 1.5rem;display:flex;flex-direction:column;gap:.9rem;
  transition:border-color .25s,transform .25s,background .25s;
  position:relative;
}
.step::before{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(180deg,var(--fire-soft),transparent 40%);
  opacity:0;transition:opacity .25s;
}
.step:hover{border-color:var(--fire);transform:translateY(-4px)}
.step:hover::before{opacity:1}
.step>*{position:relative}
.step-num{font-size:.78rem;color:var(--fire)}
.step h3{font-family:var(--font-display);font-weight:700;text-transform:uppercase;font-size:1.55rem;letter-spacing:.02em}
.step p{color:var(--muted);font-size:.97rem;flex:1}
.step-meta{font-size:.66rem;letter-spacing:.18em;color:var(--text);border-top:1px solid var(--line);padding-top:.9rem;display:block}

/* ============================================================
   02 СТУДИО ЗА ХРАНЕНЕ — централен елемент
   ============================================================ */
.studio-section{
  position:relative;
  padding-top:clamp(5rem,10vw,8.5rem);
}
.studio-section::before{
  content:"";position:absolute;left:50%;top:0;width:200%;height:100%;
  transform:translateX(-50%);pointer-events:none;z-index:-1;
  background:
    radial-gradient(ellipse 50% 40% at 50% 20%,rgba(255,77,18,.08),transparent 65%);
}

.studio{
  display:grid;grid-template-columns:1fr 1.05fr;gap:1.3rem;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);
  padding:clamp(1rem,2vw,1.4rem);overflow:hidden;
}

/* ЛЯВО */
.studio-input{
  background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);
  padding:clamp(1.2rem,2.4vw,1.8rem);display:flex;flex-direction:column;gap:1.3rem;
}
.studio-head{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.studio-tag{
  display:inline-flex;align-items:center;gap:.55rem;
  font-size:.68rem;letter-spacing:.2em;color:var(--muted);
}
.studio-tag .pulse{
  width:7px;height:7px;background:var(--fire);border-radius:50%;
  box-shadow:0 0 0 3px rgba(255,77,18,.25);animation:pulse 1.8s ease-in-out infinite;
}
.studio-tabs{display:flex;background:var(--surface-2);border:1px solid var(--line);border-radius:9px;padding:3px;gap:2px}
.studio-tab{
  background:none;border:none;cursor:pointer;
  padding:.5rem .95rem;font-weight:600;font-size:.86rem;color:var(--muted);
  border-radius:6px;transition:background .18s,color .18s;
}
.studio-tab.active{background:var(--fire);color:#fff}
.studio-panel{display:none}
.studio-panel.active{display:flex;flex-direction:column;gap:.7rem;animation:fadePanel .35s ease}
@keyframes fadePanel{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

#studioText{
  background:var(--surface-2);border:1px solid var(--line);border-radius:10px;
  color:var(--text);font-family:var(--font-body);font-size:.98rem;line-height:1.55;
  padding:.9rem 1rem;resize:vertical;min-height:200px;transition:border-color .18s;
}
#studioText:focus{outline:none;border-color:var(--fire)}
#studioText::placeholder{color:var(--muted-2);white-space:pre-line}

.studio-preset{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.studio-preset span{font-size:.66rem;letter-spacing:.18em;color:var(--muted-2)}
.preset-btn{
  background:var(--surface-2);border:1px solid var(--line);border-radius:999px;
  padding:.35rem .85rem;font-size:.82rem;color:var(--muted);cursor:pointer;
  transition:border-color .18s,color .18s,background .18s;
}
.preset-btn:hover{border-color:var(--fire);color:var(--fire-hi)}

.upload-drop{
  display:flex;flex-direction:column;align-items:center;gap:.7rem;
  min-height:220px;justify-content:center;text-align:center;
  border:1.5px dashed var(--line-2);border-radius:12px;padding:1.6rem;cursor:pointer;
  transition:border-color .2s,background .2s;
}
.upload-drop:hover,.upload-drop.drag{border-color:var(--fire);background:var(--fire-soft)}
.upload-icon{
  width:44px;height:44px;border-radius:12px;background:var(--surface-2);
  display:grid;place-items:center;color:var(--fire);
}
.upload-icon svg{width:22px;height:22px}
.upload-drop b{font-size:1.02rem}
.upload-drop small{color:var(--muted);font-size:.85rem;max-width:320px}
.upload-preview{display:flex;gap:1rem;align-items:center;padding:1rem;background:var(--surface-2);border:1px solid var(--line);border-radius:12px}
.upload-preview img{width:90px;height:90px;object-fit:cover;border-radius:8px;flex:0 0 90px}
.upload-info{display:flex;flex-direction:column;gap:.25rem;min-width:0}
.upload-info b{font-size:.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.upload-info span{font-size:.75rem;color:var(--muted)}

.studio-targets{border-top:1px solid var(--line);padding-top:1.2rem}
.target-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.9rem}
.target-head b{font-size:.85rem;letter-spacing:.06em}
.target-grid{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}

.field{display:flex;flex-direction:column;gap:.35rem}
.field>span{font-family:var(--font-mono);font-size:.65rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.field.wide{grid-column:1/-1}
.field.small input{padding:.55rem .7rem;font-size:.92rem}
.field input,.field select,.field textarea{
  background:var(--surface-2);border:1px solid var(--line);border-radius:9px;
  color:var(--text);font-family:var(--font-body);font-size:.98rem;padding:.68rem .85rem;width:100%;
  transition:border-color .18s;
}
.field textarea{resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--fire)}

/* ДЯСНО — изход */
.studio-output{
  background:linear-gradient(180deg,var(--surface-2),var(--bg));
  border:1px solid var(--line);border-radius:var(--radius);
  padding:clamp(1.2rem,2.4vw,1.8rem);display:flex;flex-direction:column;min-height:480px;
}
.output-empty{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.1rem;
  text-align:center;
}
.empty-anim{display:flex;gap:6px;align-items:end;height:60px}
.ea-bar{
  width:8px;background:var(--line-2);border-radius:2px;
  animation:emptyBar 1.4s ease-in-out infinite;
}
.ea-bar:nth-child(1){height:35%;animation-delay:0s}
.ea-bar:nth-child(2){height:60%;animation-delay:.15s}
.ea-bar:nth-child(3){height:45%;animation-delay:.3s}
@keyframes emptyBar{0%,100%{opacity:.4}50%{opacity:1;background:var(--fire)}}
.output-empty p{font-size:.72rem;letter-spacing:.24em;color:var(--muted)}
.output-empty small{color:var(--muted-2);font-size:.9rem;max-width:280px}

.output-live{display:flex;flex-direction:column;gap:1.3rem;animation:fadeIn .5s ease}
.live-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;padding-bottom:1.1rem;border-bottom:1px solid var(--line)}
.live-head .mono{font-size:.66rem;letter-spacing:.22em;color:var(--muted);display:block;margin-bottom:.4rem}
.live-head h3{font-family:var(--font-display);font-weight:800;text-transform:uppercase;font-size:1.55rem;line-height:1.05}
.score-ring{position:relative;width:66px;height:66px;flex:0 0 66px}
.score-ring svg{width:100%;height:100%;transform:rotate(0)}
.score-ring #scoreCirc{transition:stroke-dashoffset 1.2s var(--ease)}
.score-ring b{position:absolute;inset:0;display:grid;place-items:center;font-size:1.1rem;font-weight:600}

/* метрики */
.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:.9rem}
.metric{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:.9rem 1rem;display:flex;flex-direction:column;gap:.55rem}
.metric-head{display:flex;justify-content:space-between;align-items:baseline}
.metric-head span{font-size:.62rem;letter-spacing:.18em;color:var(--muted);font-family:var(--font-mono)}
.metric-head b{font-size:1.35rem;font-weight:600;font-family:var(--font-mono)}
.bar{height:5px;background:var(--surface-2);border-radius:3px;overflow:hidden}
.bar i{display:block;height:100%;width:0;background:var(--fire);border-radius:3px;transition:width 1.2s var(--ease)}
.bar i.warn{background:var(--warn)}
.bar i.bad{background:var(--bad)}
.bar i.ok{background:var(--ok)}
.metric-sub{display:flex;justify-content:space-between;font-size:.7rem;color:var(--muted)}
.metric-sub em{font-style:normal;color:var(--text)}
.metric-sub em.ok{color:var(--ok)}
.metric-sub em.warn{color:var(--warn)}
.metric-sub em.bad{color:var(--bad)}

/* блокове */
.output-block{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:1rem 1.15rem}
.block-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.7rem}
.block-head b{font-size:.9rem}
.block-head .mono{font-size:.62rem;letter-spacing:.18em;color:var(--muted)}
.items-list{display:flex;flex-direction:column;gap:.4rem}
.items-list li{
  display:grid;grid-template-columns:1fr auto auto;gap:.7rem;align-items:baseline;
  padding:.45rem 0;border-bottom:1px dashed var(--line);
  font-size:.9rem;
}
.items-list li:last-child{border-bottom:none}
.items-list .item-name{color:var(--text)}
.items-list .item-qty{color:var(--muted);font-family:var(--font-mono);font-size:.8rem}
.items-list .item-kcal{font-family:var(--font-mono);color:var(--fire);font-weight:600;font-size:.85rem}
.items-list .item-unknown .item-kcal{color:var(--warn)}

.insights-list{display:flex;flex-direction:column;gap:.6rem}
.insights-list li{
  display:grid;grid-template-columns:auto 1fr;gap:.7rem;align-items:start;
  font-size:.92rem;color:#D6D6DE;line-height:1.5;
}
.insights-list li::before{
  content:"";width:6px;height:6px;background:var(--fire);border-radius:50%;
  margin-top:.55em;flex-shrink:0;
}
.insights-list li.good::before{background:var(--ok)}
.insights-list li.warn::before{background:var(--warn)}
.insights-list li.bad::before{background:var(--bad)}

.output-cta{margin-top:auto;padding-top:.6rem}
.output-cta p{color:var(--muted);font-size:.9rem;margin-bottom:.8rem}

/* бележки под студиото */
.studio-notes{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:1.4rem}
.studio-notes>div{
  background:var(--surface);border:1px solid var(--line);border-radius:10px;
  padding:.9rem 1.1rem;display:flex;flex-direction:column;gap:.15rem;
}
.studio-notes b{font-size:.9rem}
.studio-notes span{font-size:.82rem;color:var(--muted)}

/* ---------- 03 ИНСТРУМЕНТИ ---------- */
.tool-card{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  padding:clamp(1.2rem,3vw,2rem);max-width:820px;
  transition:border-color .3s,box-shadow .3s;
}
.tool-card.flash{
  border-color:var(--fire);
  box-shadow:0 0 0 3px rgba(255,77,18,.18);
}
.tabs{display:flex;gap:.4rem;border-bottom:1px solid var(--line);margin-bottom:1.5rem}
.tab{
  background:none;border:none;cursor:pointer;
  font-family:var(--font-body);font-weight:700;font-size:.98rem;color:var(--muted);
  padding:.7rem 1rem;border-bottom:2px solid transparent;margin-bottom:-1px;
  transition:color .18s,border-color .18s;
}
.tab:hover{color:var(--text)}
.tab.active{color:var(--text);border-color:var(--fire)}
.tab-panel{display:none}
.tab-panel.active{display:block;animation:fadePanel .3s ease}

.calc-grid,.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:.9rem;margin-bottom:1.1rem}
.seg{display:flex;background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:3px;gap:3px}
.seg-btn{
  flex:1;background:transparent;border:none;border-radius:7px;padding:.55rem .4rem;
  color:var(--muted);font-family:var(--font-body);font-weight:600;font-size:.92rem;cursor:pointer;
  transition:background .18s,color .18s;
}
.seg-btn.active{background:var(--fire);color:#fff}

.calc-out{margin-top:1.3rem;border-top:1px solid var(--line);padding-top:1.3rem;animation:fadeIn .35s ease}
.out-main{display:flex;align-items:baseline;gap:.9rem;margin-bottom:1.1rem;flex-wrap:wrap}
.out-main b{font-size:3rem;font-weight:600;color:var(--fire);line-height:1}
.out-main span{color:var(--muted)}
.out-row{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem;margin-bottom:1.2rem}
.out-cell{background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:.8rem .9rem}
.out-cell span{display:block;font-size:.72rem;letter-spacing:.14em;color:var(--muted);margin-bottom:.25rem;font-family:var(--font-mono)}
.out-cell b{font-size:1.15rem;font-weight:600}
.out-note{color:var(--muted);font-size:.92rem;margin-bottom:1rem}

/* ---------- 04 ПАКЕТИ ---------- */
.plans{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem;align-items:stretch}
.plan{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  padding:2rem 1.7rem;display:flex;flex-direction:column;position:relative;
  transition:border-color .25s,transform .25s,background .25s;
}
.plan:hover{border-color:var(--line-2);transform:translateY(-4px)}
.plan-hot{
  border-color:var(--fire);
  background:linear-gradient(180deg,var(--fire-soft),transparent 40%),var(--surface);
}
.plan-hot:hover{border-color:var(--fire-hi)}
.plan-tag{font-size:.68rem;letter-spacing:.22em;color:var(--muted);margin-bottom:1rem}
.plan-hot .plan-tag{color:var(--fire)}
.plan h3{font-family:var(--font-display);font-weight:800;text-transform:uppercase;font-size:1.9rem;letter-spacing:.03em;margin-bottom:.5rem}
.plan-desc{color:var(--muted);font-size:.95rem;margin-bottom:1.6rem;min-height:3em}
.plan ul{display:grid;gap:.6rem;margin-bottom:1.8rem;flex:1;border-top:1px solid var(--line);padding-top:1.2rem}
.plan li{padding-left:1.5rem;position:relative;font-size:.95rem;color:#D6D6DE}
.plan li::before{
  content:"";position:absolute;left:0;top:.55em;width:8px;height:2px;background:var(--fire);
}

/* ---------- 05 КОУЧЪТ ---------- */
.coach-section{padding-top:clamp(5rem,10vw,8rem)}
.coach-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(2rem,5vw,4.5rem);align-items:center}

.coach-media{position:relative;aspect-ratio:1/1.15;max-width:520px}
.coach-hero{
  position:absolute;inset:0 30% 15% 0;border-radius:var(--radius);overflow:hidden;
  border:1px solid var(--line);z-index:1;
  transition:transform .4s var(--ease);
}
.coach-hero img{width:100%;height:100%;object-fit:cover}
.coach-hero figcaption{
  position:absolute;bottom:.8rem;left:.9rem;
  font-size:.62rem;letter-spacing:.2em;color:#fff;
  display:flex;align-items:center;gap:.5rem;
}
.coach-hero figcaption::before{content:"";width:20px;height:1px;background:var(--fire)}

.coach-detail{
  position:absolute;right:0;top:15%;width:38%;
  border-radius:12px;overflow:hidden;border:1px solid var(--line);
  z-index:2;
  transition:transform .4s var(--ease);
  box-shadow:0 24px 60px -20px rgba(0,0,0,.7);
}
.coach-detail img{width:100%;height:100%;object-fit:cover;aspect-ratio:1}
.coach-cert-img{
  position:absolute;right:8%;bottom:0;width:44%;
  border-radius:10px;overflow:hidden;border:1px solid var(--line);
  background:var(--surface);
  transition:transform .4s var(--ease);
  z-index:3;box-shadow:0 24px 60px -20px rgba(0,0,0,.7);
}
.coach-cert-img img{width:100%}
.cert-tag{
  position:absolute;top:.5rem;left:.5rem;
  background:var(--fire);color:#fff;font-size:.55rem;letter-spacing:.16em;
  padding:.25rem .5rem;border-radius:4px;
}
.coach-hero:hover{transform:translate(-6px,-6px)}
.coach-detail:hover{transform:scale(1.04) rotate(-1deg)}
.coach-cert-img:hover{transform:scale(1.04) rotate(1deg)}

.coach-cert{font-size:.7rem;letter-spacing:.22em;color:var(--fire);margin-bottom:1.2rem}
.coach-quote{
  font-family:var(--font-display);font-weight:700;text-transform:uppercase;
  font-size:clamp(1.6rem,3.5vw,2.6rem);line-height:1.05;
  margin-bottom:1.6rem;letter-spacing:.005em;
}
.coach-quote em{font-style:normal;color:var(--fire)}
.coach-text{color:var(--muted);font-size:1.05rem;margin-bottom:1.6rem;max-width:520px}
.coach-tags{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1.6rem}
.coach-tags span{border:1px solid var(--line);border-radius:8px;padding:.35rem .8rem;font-size:.85rem;color:var(--muted)}
.ig-link{display:inline-flex;align-items:center;gap:.55rem;font-weight:700;color:var(--fire);font-size:1.02rem}
.ig-link:hover{color:var(--fire-hi)}
.ig-link svg{width:20px;height:20px;fill:currentColor}

/* ---------- 06 FAQ ---------- */
.faq{max-width:820px;display:grid;gap:0;border-top:1px solid var(--line)}
.faq-item{border-bottom:1px solid var(--line);transition:background .2s}
.faq-item:hover{background:var(--surface)}
.faq-item summary{
  cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:1rem;
  padding:1.2rem 0;font-weight:700;font-size:1.06rem;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary i{flex:0 0 16px;height:16px;position:relative}
.faq-item summary i::before,.faq-item summary i::after{
  content:"";position:absolute;background:var(--fire);transition:transform .3s var(--ease);
}
.faq-item summary i::before{left:0;right:0;top:7px;height:2px}
.faq-item summary i::after{top:0;bottom:0;left:7px;width:2px}
.faq-item[open] summary i::after{transform:scaleY(0)}
.faq-item[open] summary i::before{background:var(--fire)}
.faq-item p{color:var(--muted);padding:0 0 1.3rem;max-width:680px}

/* ---------- 07 ЗАЯВКА ---------- */
.start-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(1.6rem,4vw,3rem);align-items:start}
.start-info{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.8rem}
.start-steps{display:grid;gap:1rem;margin-bottom:1.6rem}
.start-steps li{display:grid;grid-template-columns:auto 1fr;gap:.9rem;align-items:start}
.start-steps b.mono{color:var(--fire);font-size:.85rem;padding-top:.15rem}
.start-steps div{display:flex;flex-direction:column;gap:.15rem}
.start-steps div b{font-size:.98rem}
.start-steps div span{color:var(--muted);font-size:.9rem}
.start-alt{border-top:1px solid var(--line);padding-top:1.2rem;display:flex;flex-direction:column;gap:.4rem}
.start-alt b.mono{font-size:.66rem;letter-spacing:.2em;color:var(--muted)}
.start-alt a{color:var(--fire);font-weight:700}
.start-form{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:clamp(1.4rem,3vw,2rem)}
.attach-line{
  display:flex;justify-content:space-between;align-items:center;grid-column:1/-1;
  background:var(--fire-soft);border:1px solid var(--fire);border-radius:10px;
  padding:.65rem .9rem;
}
.attach-line span{font-size:.72rem;letter-spacing:.14em;color:var(--fire)}

/* ---------- FOOTER ---------- */
.footer{margin-top:clamp(5rem,10vw,8rem);border-top:1px solid var(--line);padding:3.5rem var(--pad-x) 6rem;overflow:hidden}
.footer-grid{max-width:var(--maxw);margin:0 auto 3rem;display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:2rem}
.footer-logo{height:38px;margin-bottom:.9rem}
.footer-col p{color:var(--muted);font-size:.95rem}
.footer-col{display:flex;flex-direction:column;gap:.55rem;align-items:flex-start}
.footer-col b.mono{font-size:.66rem;letter-spacing:.2em;color:var(--muted);margin-bottom:.4rem}
nav.footer-col a{color:var(--muted);font-weight:600;transition:color .18s}
nav.footer-col a:hover{color:var(--fire)}
.footer-wordmark{
  max-width:var(--maxw);margin:0 auto;
  font-family:var(--font-display);font-weight:800;text-transform:uppercase;
  font-size:clamp(5rem,17vw,16rem);line-height:.8;letter-spacing:.01em;
  color:transparent;-webkit-text-stroke:1px var(--wordmark);
  user-select:none;pointer-events:none;text-align:center;
  transform:translateY(18%);
}
.footer-copy{max-width:var(--maxw);margin:1rem auto 0;font-size:.66rem;letter-spacing:.2em;color:var(--muted)}

/* ---------- STICKY CTA (mobile) ---------- */
.sticky-cta{
  position:fixed;left:0;right:0;bottom:0;z-index:80;
  padding:.7rem .9rem calc(.7rem + env(safe-area-inset-bottom));
  background:var(--nav-solid);backdrop-filter:blur(12px);border-top:1px solid var(--line);
  transform:translateY(110%);transition:transform .3s ease;display:none;
}
.sticky-cta.show{transform:none}

/* ---------- REVEAL ---------- */
.reveal{opacity:0;transform:translateY(22px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
.reveal.in{opacity:1;transform:none}

/* ---------- SKIP LINK (a11y) ---------- */
.skip-link{
  position:fixed;top:-100px;left:1rem;z-index:200;
  background:var(--fire);color:#fff;font-weight:700;
  padding:.7rem 1.2rem;border-radius:0 0 10px 10px;
  transition:top .2s;
}
.skip-link:focus{top:0}

/* ---------- СТРИЙК ---------- */
.streak-badge{
  display:inline-flex;align-items:center;gap:.35rem;
  background:var(--fire-soft);border:1px solid var(--fire);border-radius:999px;
  padding:.35rem .8rem;font-size:.7rem;letter-spacing:.1em;color:var(--fire-hi);
  animation:fadeIn .5s ease;
}
.streak-badge svg{width:14px;height:14px;color:var(--fire)}
.streak-badge b{font-weight:600;font-size:.85rem;color:var(--fire)}
.streak-badge.milestone{animation:streakPop .6s var(--ease)}
@keyframes streakPop{0%{transform:scale(1)}40%{transform:scale(1.18)}100%{transform:scale(1)}}

/* ---------- OPEN FOOD FACTS ---------- */
.off-lookup{border-top:1px dashed var(--line);padding-top:1rem;display:flex;flex-direction:column;gap:.7rem}
.off-row{display:flex;gap:.6rem;align-items:flex-end}
.off-field{flex:1}
.off-field .off-net{font-style:normal;color:var(--muted-2);letter-spacing:.06em;text-transform:none}
.off-result{
  display:flex;justify-content:space-between;align-items:center;gap:1rem;
  background:var(--surface-2);border:1px solid var(--line);border-radius:10px;
  padding:.75rem 1rem;animation:fadePanel .3s ease;
}
.off-info{display:flex;flex-direction:column;gap:.15rem;min-width:0}
.off-info b{font-size:.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.off-info span{font-size:.7rem;color:var(--muted)}
.off-actions{display:flex;gap:.9rem;flex-shrink:0}
.off-status{font-size:.68rem;letter-spacing:.14em;color:var(--muted)}
.off-status.err{color:var(--bad)}
.off-status.ok{color:var(--ok)}

/* ---------- ТОП ХРАНИ ---------- */
.top-toggle{display:flex;background:var(--surface-2);border:1px solid var(--line);border-radius:8px;padding:2px;gap:2px}
.tt-btn{
  background:none;border:none;border-radius:6px;cursor:pointer;
  padding:.3rem .7rem;font-family:var(--font-body);font-weight:600;font-size:.78rem;color:var(--muted);
  transition:background .18s,color .18s;
}
.tt-btn.active{background:var(--fire);color:#fff}
.top-list{display:flex;flex-direction:column;gap:.55rem}
.top-list li{display:grid;grid-template-columns:auto 1fr auto;gap:.7rem;align-items:center;font-size:.9rem}
.top-list .tl-rank{font-family:var(--font-mono);font-size:.68rem;color:var(--fire);width:1.3rem}
.top-list .tl-name{color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.top-list .tl-bar{grid-column:2;height:4px;background:var(--surface-2);border-radius:2px;overflow:hidden;margin-top:.25rem}
.top-list .tl-bar i{display:block;height:100%;background:var(--fire);border-radius:2px;transition:width .8s var(--ease)}
.top-list .tl-val{font-family:var(--font-mono);font-size:.78rem;color:var(--muted);white-space:nowrap}
.top-list li{grid-template-rows:auto auto}
.top-list .tl-rank{grid-row:1/3;align-self:start;padding-top:.1rem}
.top-list .tl-val{grid-row:1}
.top-note{margin-top:.7rem;font-size:.62rem;letter-spacing:.16em;color:var(--muted-2)}

/* ---------- НАРЪЧНИК БАНЕР ---------- */
.guide-banner{
  display:grid;grid-template-columns:1.2fr .8fr;gap:clamp(1.5rem,4vw,3rem);align-items:center;
  background:linear-gradient(120deg,var(--fire-soft),transparent 55%),var(--surface);
  border:1px solid var(--fire);border-radius:var(--radius-lg);
  padding:clamp(1.6rem,4vw,2.8rem);
}
.guide-tag{font-size:.68rem;letter-spacing:.22em;color:var(--fire);display:block;margin-bottom:.9rem}
.guide-title{
  font-family:var(--font-display);font-weight:800;text-transform:uppercase;
  font-size:clamp(2rem,5vw,3.4rem);line-height:.95;margin-bottom:.8rem;
}
.guide-title em{font-style:normal;color:var(--fire)}
.guide-copy p{color:var(--muted);max-width:440px}
.guide-form{display:flex;flex-direction:column;gap:.8rem}
.guide-note{color:var(--muted-2);font-size:.78rem;text-align:center}

/* ---------- КОНФЕТИ ---------- */
.confetti-canvas{position:fixed;inset:0;pointer-events:none;z-index:150}

/* ---------- ГЛАСОВО ВЪВЕЖДАНЕ ---------- */
.diary-field>span{display:flex;align-items:center;justify-content:space-between}
.mic-btn{
  background:var(--surface-2);border:1px solid var(--line);border-radius:8px;
  width:30px;height:30px;display:grid;place-items:center;cursor:pointer;
  color:var(--muted);transition:color .18s,border-color .18s,background .18s;
}
.mic-btn svg{width:15px;height:15px}
.mic-btn:hover{color:var(--fire);border-color:var(--fire)}
.mic-btn.rec{background:var(--fire);border-color:var(--fire);color:#fff;animation:pulse 1.2s ease-in-out infinite}

/* ---------- СКОРОШНИ + ШАБЛОНИ ---------- */
.recents-row,.tpl-row{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.recents-row>span{font-size:.62rem;letter-spacing:.16em;color:var(--muted-2)}
.recents-chips,.tpl-chips{display:flex;gap:.4rem;flex-wrap:wrap}
.chip{
  background:var(--surface-2);border:1px solid var(--line);border-radius:999px;
  padding:.3rem .75rem;font-size:.8rem;color:var(--muted);cursor:pointer;
  transition:border-color .18s,color .18s;display:inline-flex;align-items:center;gap:.4rem;
}
.chip:hover{border-color:var(--fire);color:var(--fire-hi)}
.chip .chip-x{color:var(--muted-2);font-size:.9rem;line-height:1}
.chip .chip-x:hover{color:var(--bad)}
.preset-coach{border-color:var(--fire);color:var(--fire-hi)}

/* шаблон: inline поле вместо prompt() */
.tpl-name-row{display:inline-flex;align-items:center;gap:.5rem;animation:fadePanel .25s ease}
.tpl-name-row input{
  background:var(--surface-2);border:1px solid var(--fire);border-radius:8px;
  color:var(--text);font-family:var(--font-body);font-size:.88rem;padding:.4rem .7rem;width:200px;
}
.tpl-name-row input:focus{outline:none}
.tpl-cancel{color:var(--muted)}

/* говорител */
.speak-btn{
  display:inline-flex;align-items:center;gap:.45rem;margin-top:.5rem;
  background:var(--surface);border:1px solid var(--line);border-radius:999px;
  padding:.35rem .85rem;font-family:var(--font-body);font-size:.8rem;font-weight:600;color:var(--muted);
  cursor:pointer;transition:color .18s,border-color .18s;
}
.speak-btn svg{width:14px;height:14px}
.speak-btn:hover,.speak-btn.on{color:var(--fire);border-color:var(--fire)}

/* ---------- ТЕГЛО + МЕТАБОЛИЗЪМ ---------- */
.weight-row{display:flex;align-items:flex-end;gap:.6rem;margin-top:.9rem;flex-wrap:wrap}
.wt-field{flex:1;min-width:140px}
.wt-status{font-size:.62rem;letter-spacing:.14em;color:var(--ok)}
.metab-card{
  margin-top:1rem;background:linear-gradient(120deg,var(--fire-soft),transparent 60%),var(--surface-2);
  border:1px solid var(--fire);border-radius:10px;padding:1rem 1.1rem;
  animation:fadePanel .4s ease;
}
.mc-head{font-size:.64rem;letter-spacing:.2em;color:var(--fire);display:flex;justify-content:space-between;margin-bottom:.7rem}
.mc-head em{font-style:normal;color:var(--muted)}
.mc-num{display:flex;align-items:baseline;gap:.6rem;margin-bottom:.4rem}
.mc-num b{font-family:var(--font-mono);font-size:1.9rem;font-weight:600;color:var(--fire)}
.mc-num span{font-size:.82rem;color:var(--muted)}
.mc-note{font-size:.85rem;color:var(--muted);margin-bottom:.7rem}
.mc-actions{display:flex;gap:1.1rem}

/* ---------- ПРЕДИЗВИКАТЕЛСТВО ---------- */
.challenge-bar{display:flex;flex-direction:column;gap:.45rem}
.ch-track{height:6px;background:var(--surface-2);border:1px solid var(--line);border-radius:4px;overflow:hidden}
.ch-track i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--fire),var(--fire-hi));border-radius:4px;transition:width 1s var(--ease)}
.ch-text{font-size:.62rem;letter-spacing:.14em;color:var(--muted)}
.challenge-bar.done .ch-text{color:var(--ok)}

/* ---------- MEAL BUILDER ---------- */
.meal-builder{border-color:var(--fire)}
.mb-sub{font-size:.85rem;color:var(--muted);margin-bottom:.8rem}
.mb-out{
  background:var(--surface-2);border:1px dashed var(--line);border-radius:10px;
  padding:.9rem 1rem;margin-bottom:.8rem;animation:fadePanel .3s ease;
}
.mb-out ul{display:grid;gap:.35rem}
.mb-out li{display:flex;justify-content:space-between;font-size:.9rem;color:#D6D6DE}
.mb-out li b{font-family:var(--font-mono);font-weight:500;font-size:.8rem;color:var(--fire)}
.mb-out .mb-total{border-top:1px solid var(--line);margin-top:.5rem;padding-top:.5rem;color:var(--text);font-weight:600}
.mb-actions{display:flex;flex-direction:column;gap:.6rem;align-items:flex-start}
.mb-actions .link-btn{align-self:center}

@media (max-width:1000px){
  .guide-banner{grid-template-columns:1fr}
  .off-row{flex-direction:column;align-items:stretch}
}

/* ---------- THEME TOGGLE ---------- */
.theme-btn{
  width:38px;height:38px;border-radius:10px;
  background:var(--surface-2);border:1px solid var(--line);
  display:grid;place-items:center;cursor:pointer;color:var(--muted);
  transition:color .18s,border-color .18s,transform .18s;
}
.theme-btn:hover{color:var(--fire);border-color:var(--fire);transform:translateY(-1px)}
.theme-btn svg{width:17px;height:17px}
.theme-btn .ic-sun{display:none}
[data-theme="light"] .theme-btn .ic-sun{display:block}
[data-theme="light"] .theme-btn .ic-moon{display:none}

.nav-ext{color:var(--muted)}

/* ---------- СЕДМИЧЕН РЕЖИМ ---------- */
.week-days{display:flex;gap:.4rem;flex-wrap:wrap}
.wd-btn{
  flex:1;min-width:40px;position:relative;
  background:var(--surface-2);border:1px solid var(--line);border-radius:9px;
  padding:.55rem .3rem;font-family:var(--font-mono);font-size:.72rem;letter-spacing:.1em;
  color:var(--muted);cursor:pointer;transition:border-color .18s,color .18s,background .18s;
}
.wd-btn:hover{border-color:var(--line-2);color:var(--text)}
.wd-btn.active{background:var(--fire);border-color:var(--fire);color:#fff}
.wd-btn .wd-dot{
  position:absolute;top:5px;right:5px;width:5px;height:5px;border-radius:50%;
  background:var(--ok);opacity:0;transition:opacity .2s;
}
.wd-btn.has-data .wd-dot{opacity:1}
.wd-btn.active .wd-dot{background:#fff}
#weekText{
  background:var(--surface-2);border:1px solid var(--line);border-radius:10px;
  color:var(--text);font-family:var(--font-body);font-size:.98rem;line-height:1.55;
  padding:.9rem 1rem;resize:vertical;min-height:160px;transition:border-color .18s;width:100%;
}
#weekText:focus{outline:none;border-color:var(--fire)}
.week-hint{font-size:.62rem;letter-spacing:.18em;color:var(--muted-2)}

/* 7-дневна колонка в резултата */
.week-chart{display:flex;gap:.5rem;align-items:flex-end;height:110px;padding:.4rem .2rem 0}
.wc-col{flex:1;display:flex;flex-direction:column;align-items:center;gap:.35rem;height:100%;justify-content:flex-end}
.wc-bar{
  width:100%;max-width:34px;border-radius:5px 5px 2px 2px;min-height:4px;
  background:var(--fire);transition:height .8s var(--ease);
}
.wc-bar.ok{background:var(--ok)}
.wc-bar.warn{background:var(--warn)}
.wc-bar.bad{background:var(--bad)}
.wc-bar.empty{background:var(--line);min-height:4px}
.wc-lbl{font-family:var(--font-mono);font-size:.6rem;letter-spacing:.08em;color:var(--muted)}

/* ---------- RESPONSIVE ---------- */
@media (max-width:1200px){
  .side-index{display:none}
}
@media (max-width:1000px){
  /* HERO: тече естествено, без принудителни 100svh */
  .hero{min-height:auto;padding-top:6.5rem;padding-bottom:3rem}
  .hero-scroll{display:none}
  .hero-brackets{display:none}
  .hero-inner{grid-template-columns:1fr;gap:2.4rem}
  .hero-title{font-size:clamp(4rem,17vw,7rem)}
  .hero-visual{justify-self:stretch;width:100%;max-width:420px;margin:0 auto;animation-delay:.35s}
  .hv-anatomy{height:200px}

  /* iOS: 16px за инпутите = без автоматичен zoom при фокус */
  .field input,.field select,.field textarea,#studioText{font-size:16px}
  .field.small input{font-size:16px}

  .studio{grid-template-columns:1fr;gap:.9rem}
  .studio-output{min-height:auto}
  .studio-head{flex-direction:column;align-items:flex-start;gap:.8rem}
  .studio-tabs{width:100%}
  .studio-tab{flex:1;text-align:center}

  .steps,.plans{grid-template-columns:1fr;max-width:560px}
  .coach-grid,.start-grid{grid-template-columns:1fr}
  .coach-media{max-width:440px;margin:0 auto}
  .footer-grid{grid-template-columns:1fr 1fr;gap:1.8rem}

  .nav-links{
    display:none;position:absolute;top:100%;left:0;right:0;
    background:var(--nav-solid);backdrop-filter:blur(14px);
    flex-direction:column;align-items:stretch;
    padding:.6rem var(--pad-x) 1rem;gap:0;border-bottom:1px solid var(--line);
  }
  .nav-links.open{display:flex}
  /* по-големи tap-таргети в менюто */
  .nav-links a{padding:.9rem 0;border-bottom:1px solid var(--line);font-size:1rem}
  .nav-links a:last-child{border-bottom:none}
  .nav-links a.active{border-bottom-color:var(--line)}
  .nav-cta .btn-fire{display:none}
  .nav-burger{display:flex}
  .sticky-cta{display:block}
  .footer{padding-bottom:7.5rem}
  .studio-notes{grid-template-columns:1fr}

  /* секциите — по-стегнат ритъм на мобилно */
  .section{padding-top:3.8rem}
  .sec-head{margin-bottom:1.8rem;padding-bottom:1.1rem}
}
@media (max-width:560px){
  .calc-grid,.form-grid,.out-row,.metric-grid{grid-template-columns:1fr}
  .target-grid{grid-template-columns:1fr 1fr} /* целите остават компактни 2x2 */
  .hero-actions .btn{width:100%}
  .hero-title{font-size:clamp(3.2rem,20vw,5rem)}
  .hero-meta{gap:.7rem;flex-direction:column}
  .footer-grid{grid-template-columns:1fr}
  .hv-anatomy{height:180px}
  .live-head{flex-direction:column-reverse;align-items:flex-start;gap:.8rem}
  .items-list li{grid-template-columns:1fr auto;gap:.4rem}
  .items-list .item-qty{display:none}
  .out-main b{font-size:2.4rem}
  .ticker-track span{font-size:.64rem;padding:0 1rem}
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none}
  .ht-line>span{transform:none}
  .hero-sub,.hero-actions,.hero-meta{opacity:1;animation:none}
}
