body:has(#jam-fitness-hub) .entry-header > .entry-title,body:has(#jam-fitness-hub) .page-header > .page-title{display:none}
.jamfh{--y:#ffcb00;--yd:#e7b900;--bg:#08090b;--panel:#14161b;--panel2:#1b1e25;--line:rgba(255,255,255,.09);--text:#fff;--muted:#aeb2bc;--r:26px;color:var(--text);font-family:Montserrat,Arial,sans-serif;position:relative;width:100%;overflow:hidden}.jamfh *{box-sizing:border-box}.jamfh button,.jamfh input,.jamfh select,.jamfh textarea{font:inherit}.jamfh-shell{width:calc(100% - 32px);max-width:1380px;margin:0 auto;padding:8px 0 42px}.jamfh-hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:26px;align-items:stretch;margin:8px 0 18px;padding:clamp(28px,4vw,58px);border-radius:34px;background:radial-gradient(circle at 82% 18%,rgba(255,203,0,.22),transparent 25%),linear-gradient(135deg,#050506,#101217 68%,#15150d);box-shadow:0 24px 70px rgba(0,0,0,.34);overflow:hidden}.jamfh-eyebrow{display:flex;align-items:center;gap:10px;margin-bottom:20px;color:rgba(255,255,255,.66);font-size:12px;font-weight:800;letter-spacing:.13em}.jamfh-eyebrow span{width:8px;height:8px;border-radius:50%;background:var(--y);box-shadow:0 0 0 7px rgba(255,203,0,.1)}.jamfh-hero h1{margin:0;font-size:clamp(52px,6vw,96px);line-height:.88;letter-spacing:-.065em;font-weight:950;white-space:nowrap}.jamfh-hero h1 span,.jamfh-hero h1 em{display:inline}.jamfh-hero h1 em{color:var(--y);font-style:normal}.jamfh-hero__copy>p{max-width:760px;margin:24px 0 0;color:#d6d8dd;font-size:clamp(18px,1.7vw,25px);line-height:1.5}.jamfh-hero__actions,.jamfh-calc__actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.jamfh-btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 20px;border:1px solid transparent;border-radius:16px;text-decoration:none;font-weight:850;cursor:pointer;transition:.18s}.jamfh-btn:hover{transform:translateY(-1px)}.jamfh-btn--yellow{background:var(--y);color:#111}.jamfh-btn--yellow:hover{background:var(--yd)}.jamfh-btn--dark{background:#242731;color:#fff;border-color:rgba(255,255,255,.08)}.jamfh-btn--ghost{background:transparent;color:var(--y);border-color:rgba(255,203,0,.38)}.jamfh-hero__metric{align-self:center;padding:28px;border:1px solid rgba(255,255,255,.1);border-radius:28px;background:rgba(18,20,24,.68);backdrop-filter:blur(10px)}.jamfh-hero__metric>span{color:var(--y);font-size:12px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.jamfh-hero__metric strong{display:block;margin:10px 0 2px;font-size:clamp(54px,5vw,78px);line-height:1}.jamfh-hero__metric strong small{font-size:.28em;color:#fff}.jamfh-hero__metric p{margin:10px 0 0;color:var(--muted);line-height:1.5}.jamfh-jump{display:flex;gap:8px;overflow:auto;padding:2px 0 12px;scrollbar-width:none}.jamfh-jump::-webkit-scrollbar{display:none}.jamfh-jump button{flex:0 0 auto;min-height:42px;padding:8px 15px;border:0;border-radius:999px;background:#20242c;color:#e8eaf0;font-size:13px;font-weight:800;cursor:pointer}.jamfh-section{margin-top:24px}.jamfh-section__head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:16px;padding:0 4px}.jamfh-section__head h2,.jamfh-methods h2{margin:4px 0 0;font-size:clamp(30px,3vw,46px);line-height:1}.jamfh-section__head>p{max-width:470px;margin:0;color:var(--muted);line-height:1.5}.jamfh-kicker{color:var(--y);font-size:11px;font-weight:900;letter-spacing:.14em}.jamfh-calc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.jamfh-calc,.jamfh-panel,.jamfh-progress-card,.jamfh-methods,.jamfh-safety,.jamfh-login-panel{border:1px solid var(--line);border-radius:var(--r);background:linear-gradient(180deg,#15171d,#111318);box-shadow:0 18px 50px rgba(0,0,0,.18)}.jamfh-calc{padding:24px;min-width:0}.jamfh-calc--featured{grid-column:1/-1}.jamfh-calc__head{display:flex;gap:14px;align-items:flex-start;margin-bottom:18px}.jamfh-calc__num{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:14px;background:rgba(255,203,0,.12);color:var(--y);font-weight:950}.jamfh-calc h3,.jamfh-panel h3,.jamfh-login-panel h3{margin:0;color:#fff;font-size:24px;line-height:1.1}.jamfh-calc__head p{margin:5px 0 0;color:var(--muted);font-size:14px;line-height:1.45}.jamfh-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.jamfh-form-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}.jamfh-span-2{grid-column:1/-1}.jamfh label{display:grid;gap:7px;color:#d8dbe1;font-size:12px;font-weight:800}.jamfh input,.jamfh select,.jamfh textarea{width:100%;min-width:0;border:1px solid rgba(255,255,255,.11);border-radius:14px;outline:none;background:#22252d;color:#fff;padding:12px 13px}.jamfh input,.jamfh select{min-height:48px}.jamfh textarea{resize:vertical}.jamfh input:focus,.jamfh select:focus,.jamfh textarea:focus{border-color:rgba(255,203,0,.72);box-shadow:0 0 0 3px rgba(255,203,0,.08)}.jamfh select option{background:#fff;color:#111}.jamfh-result{margin-top:16px;min-height:78px;padding:16px;border-radius:17px;background:#20232a;color:#d8dbe1;line-height:1.5}.jamfh-result>span{color:var(--muted)}.jamfh-result__big{color:#fff;font-size:34px;font-weight:950;line-height:1}.jamfh-result__big small{font-size:14px;color:var(--muted);font-weight:700}.jamfh-result__cols,.jamfh-result__zones{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.jamfh-result__cols span,.jamfh-result__zones span{padding:8px 10px;border-radius:11px;background:#2a2e37;color:#bec2cb;font-size:12px}.jamfh-result__cols b,.jamfh-result__zones b{display:block;color:#fff;font-size:14px}.jamfh-result p{margin:12px 0 0;color:var(--muted);font-size:12.5px}.jamfh-result__warn{color:#ffd77a!important}.jamfh-fineprint{margin-top:10px;color:#858a95;font-size:11px;line-height:1.45}.jamfh-mini-progress,.jamfh-progress{height:8px;margin-top:12px;border-radius:999px;background:#2a2e36;overflow:hidden}.jamfh-mini-progress i,.jamfh-progress i{display:block;height:100%;border-radius:999px;background:var(--y)}.jamfh-diary{scroll-margin-top:20px}.jamfh-login-panel{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;padding:24px}.jamfh-login-panel__icon{display:grid;place-items:center;width:56px;height:56px;border-radius:18px;background:rgba(255,203,0,.12);color:var(--y);font-size:28px}.jamfh-login-panel p{margin:7px 0 0;color:var(--muted);line-height:1.5}.jamfh-login-panel__actions{display:flex;gap:9px}.jamfh-dashboard{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:12px}.jamfh-progress-card{padding:20px}.jamfh-progress-card--wide{grid-column:span 2}.jamfh-progress-card__head{display:flex;justify-content:space-between;gap:12px}.jamfh-progress-card span{display:block;color:var(--muted);font-size:12px}.jamfh-progress-card strong{display:block;margin-top:5px;font-size:25px}.jamfh-progress-card b{color:var(--y);font-size:24px}.jamfh-progress-card small{display:block;margin-top:8px;color:#868b95}.jamfh-diary-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:12px}.jamfh-panel{padding:22px;margin-bottom:12px}.jamfh-panel__head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:17px}.jamfh-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:9px!important}.jamfh-check input{width:20px;height:20px;min-height:0}.jamfh-bars{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px;height:180px;align-items:end}.jamfh-bar{display:grid;grid-template-rows:1fr auto;gap:7px;height:100%;text-align:center}.jamfh-bar>div{position:relative;height:100%;border-radius:11px;background:#20232a;overflow:hidden}.jamfh-bar i{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(180deg,#ffd93d,#ffcb00);border-radius:9px 9px 0 0}.jamfh-bar span{font-size:10px;color:#878c96}.jamfh-history{display:grid;gap:8px}.jamfh-history__row{display:grid;grid-template-columns:62px 1fr 40px;gap:12px;align-items:start;padding:13px;border-radius:16px;background:#1d2027}.jamfh-history__date strong{display:block;color:var(--y);font-size:20px}.jamfh-history__date span,.jamfh-history__main span{color:#8e939d;font-size:11px}.jamfh-history__main strong{display:block;color:#fff}.jamfh-history__main p{margin:5px 0 0;color:#b8bcc5;font-size:12px;line-height:1.45}.jamfh-delete{width:34px;height:34px;border:0;border-radius:10px;background:#2b2f38;color:#b8bcc4;font-size:20px;cursor:pointer}.jamfh-empty{padding:24px;text-align:center;color:var(--muted)}.jamfh-methods{margin-top:18px;padding:26px}.jamfh-methods__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px}.jamfh-methods article{padding:16px;border-radius:16px;background:#1d2027}.jamfh-methods strong{color:var(--y)}.jamfh-methods p{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.5}.jamfh-safety{margin-top:12px;padding:18px 20px;color:#aeb2bb;font-size:12px;line-height:1.55}.jamfh-toast{position:fixed;left:50%;bottom:20px;z-index:999999;transform:translate(-50%,20px);padding:12px 18px;border-radius:13px;background:#20232a;color:#fff;opacity:0;pointer-events:none;transition:.2s;box-shadow:0 15px 50px rgba(0,0,0,.35)}.jamfh-toast.is-show{opacity:1;transform:translate(-50%,0)}
@media(max-width:980px){.jamfh-hero{grid-template-columns:1fr}.jamfh-form-grid--3{grid-template-columns:repeat(2,minmax(0,1fr))}.jamfh-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}.jamfh-diary-grid{grid-template-columns:1fr}.jamfh-methods__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.jamfh-shell{width:calc(100% - 20px)}.jamfh-hero{padding:24px 16px;border-radius:26px}.jamfh-hero h1{font-size:clamp(38px,12vw,60px);letter-spacing:-.075em}.jamfh-hero__copy>p{font-size:17px}.jamfh-hero__metric{padding:20px}.jamfh-section__head{display:block}.jamfh-section__head>p{margin-top:10px}.jamfh-calc-grid{grid-template-columns:1fr}.jamfh-calc--featured{grid-column:auto}.jamfh-calc{padding:18px;border-radius:20px}.jamfh-form-grid,.jamfh-form-grid--3{grid-template-columns:1fr}.jamfh-span-2{grid-column:auto}.jamfh-calc__actions .jamfh-btn{flex:1 1 140px}.jamfh-login-panel{grid-template-columns:1fr;padding:20px}.jamfh-login-panel__actions{display:grid;grid-template-columns:1fr}.jamfh-dashboard{grid-template-columns:1fr 1fr}.jamfh-progress-card--wide{grid-column:1/-1}.jamfh-progress-card{padding:16px}.jamfh-panel{padding:18px}.jamfh-methods__grid{grid-template-columns:1fr}.jamfh-bars{gap:5px;height:150px}.jamfh-history__row{grid-template-columns:52px 1fr 34px}.jamfh-jump{margin-right:-10px;padding-right:10px}}
@media(max-width:430px){.jamfh-dashboard{grid-template-columns:1fr}.jamfh-progress-card--wide{grid-column:auto}.jamfh-hero h1{font-size:clamp(35px,11.2vw,43px)}.jamfh-hero__actions{display:grid;grid-template-columns:1fr}.jamfh-result__big{font-size:30px}.jamfh-bars{grid-template-columns:repeat(8,44px);overflow-x:auto}.jamfh-weeks{overflow:hidden}.jamfh-history__row{grid-template-columns:48px 1fr 32px}}


/* v1.1.0 — встроенный вход и регистрация */
body.jamfh-auth-open{overflow:hidden}
.jamfh-auth[hidden]{display:none!important}
.jamfh-auth{position:fixed;inset:0;z-index:1000000;display:grid;place-items:center;padding:18px;font-family:Montserrat,Arial,sans-serif}
.jamfh-auth__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.78);backdrop-filter:blur(8px)}
.jamfh-auth__dialog{position:relative;z-index:1;width:min(100%,500px);max-height:calc(100vh - 36px);overflow:auto;padding:30px;border:1px solid rgba(255,255,255,.11);border-radius:28px;background:radial-gradient(circle at 90% 0,rgba(255,203,0,.12),transparent 30%),linear-gradient(180deg,#181a20,#0f1115);box-shadow:0 30px 90px rgba(0,0,0,.55);color:#fff}
.jamfh-auth__close{position:absolute;top:14px;right:14px;display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:#252830;color:#fff;font-size:24px;line-height:1;cursor:pointer}
.jamfh-auth__brand{display:flex;align-items:center;gap:9px;padding-right:44px;color:#aeb2bc;font-size:11px;font-weight:900;letter-spacing:.12em}
.jamfh-auth__brand span{width:8px;height:8px;border-radius:50%;background:var(--y);box-shadow:0 0 0 6px rgba(255,203,0,.10)}
.jamfh-auth__dialog h3{margin:18px 0 0;font-size:clamp(28px,5vw,38px);line-height:1;letter-spacing:-.035em}
.jamfh-auth__lead{margin:12px 0 20px;color:#aeb2bc;font-size:14px;line-height:1.55}
.jamfh-auth__tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:5px;border-radius:15px;background:#20232a}
.jamfh-auth__tabs button{min-height:42px;border:0;border-radius:11px;background:transparent;color:#b9bdc6;font-weight:850;cursor:pointer}
.jamfh-auth__tabs button.is-active{background:var(--y);color:#111}
.jamfh-auth__form{display:none;gap:13px;margin-top:18px}
.jamfh-auth__form.is-active{display:grid}
.jamfh-auth__form label{display:grid;gap:7px;color:#d8dbe1;font-size:12px;font-weight:800}
.jamfh-auth__form input[type="text"],.jamfh-auth__form input[type="email"],.jamfh-auth__form input[type="password"]{width:100%;min-height:50px;padding:12px 14px;border:1px solid rgba(255,255,255,.11);border-radius:14px;outline:0;background:#23262e;color:#fff;font-size:16px}
.jamfh-auth__form input:focus{border-color:rgba(255,203,0,.72);box-shadow:0 0 0 3px rgba(255,203,0,.08)}
.jamfh-auth__remember{display:flex!important;grid-template-columns:none!important;align-items:flex-start;gap:9px!important;font-weight:650!important;line-height:1.45}
.jamfh-auth__remember input{width:19px!important;height:19px!important;min-height:0!important;flex:0 0 19px;margin-top:1px;padding:0!important}
.jamfh-auth__remember a{color:var(--y)}
.jamfh-auth__submit{width:100%;margin-top:2px}
.jamfh-auth__message{min-height:20px;margin-top:12px;color:#ffd77a;font-size:12.5px;line-height:1.45;text-align:center}
.jamfh-auth__message.is-success{color:#dff7b0}
.jamfh-auth__hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
@media(max-width:560px){.jamfh-auth{padding:0;align-items:end}.jamfh-auth__dialog{width:100%;max-height:92vh;padding:24px 18px 22px;border-radius:26px 26px 0 0}.jamfh-auth__dialog h3{font-size:30px}.jamfh-auth__tabs{position:sticky;top:0}.jamfh-auth__close{top:12px;right:12px}}

/* =========================================================
   JAM FITNESS HUB 2.0 — БЖУ, ПРОЦЕНТЫ, ТАЙМЕР, ПИТАНИЕ
   ========================================================= */
.jamfh-macro-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.jamfh-macro-grid>span{display:grid;gap:3px;padding:14px;border-radius:15px;background:#2a2e37}.jamfh-macro-grid small{color:#aeb3bd;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.jamfh-macro-grid b{color:#fff;font-size:25px;line-height:1}.jamfh-macro-grid em{color:var(--y);font-size:12px;font-style:normal;font-weight:900}
.jamfh-percent-direction[hidden]{display:none!important}

.jamfh-timer,.jamfh-food{border:1px solid var(--line);border-radius:var(--r);background:linear-gradient(180deg,#15171d,#111318);box-shadow:0 18px 50px rgba(0,0,0,.18);padding:24px}.jamfh-timer__presets{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.jamfh-timer__presets button{min-height:42px;padding:8px 14px;border:1px solid rgba(255,255,255,.08);border-radius:999px;background:#20242c;color:#e8eaf0;font-size:12px;font-weight:850;cursor:pointer}.jamfh-timer__presets button:hover{border-color:rgba(255,203,0,.42);color:var(--y)}.jamfh-timer__presets button:disabled{opacity:.45;cursor:not-allowed}.jamfh-timer__layout{display:grid;grid-template-columns:minmax(280px,.82fr) minmax(0,1.18fr);gap:18px;align-items:stretch}.jamfh-timer__display{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:340px;padding:26px;border:1px solid rgba(255,203,0,.18);border-radius:24px;background:radial-gradient(circle at 50% 45%,rgba(255,203,0,.10),transparent 46%),#0d0f13;text-align:center}.jamfh-timer__display>span{color:var(--y);font-size:13px;font-weight:950;letter-spacing:.16em}.jamfh-timer__display>strong{display:block;margin:14px 0 8px;color:#fff;font-size:clamp(72px,9vw,128px);line-height:.85;letter-spacing:-.07em;font-variant-numeric:tabular-nums}.jamfh-timer__round{color:#b5bac4;font-size:15px;font-weight:750}.jamfh-timer__progress{width:min(100%,420px);height:9px;margin-top:24px;border-radius:999px;background:#282c34;overflow:hidden}.jamfh-timer__progress i{display:block;width:0;height:100%;border-radius:inherit;background:var(--y);transition:width .12s linear}.jamfh-timer__settings{display:flex;flex-direction:column;justify-content:center;padding:4px}.jamfh-timer__summary{margin-top:12px;padding:12px 14px;border-radius:14px;background:#1e2229;color:#bfc3cc;font-size:12px;line-height:1.45}.jamfh-timer__actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}.jamfh-timer__actions .jamfh-btn{flex:1 1 130px}.jamfh-timer__log{width:100%;min-height:50px;margin-top:10px;border:1px solid rgba(255,203,0,.42);border-radius:16px;background:rgba(255,203,0,.08);color:var(--y);font-weight:900;cursor:pointer}.jamfh-timer__log:hover{background:rgba(255,203,0,.14)}

.jamfh-food__controls{display:grid;grid-template-columns:1.1fr 1.4fr .55fr auto;gap:10px;align-items:end}.jamfh-food__controls .jamfh-btn{min-height:48px;white-space:nowrap}.jamfh-food__preview{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;padding:14px 16px;border-radius:16px;background:#20232a;color:#aeb3bd}.jamfh-food__preview strong{color:#fff}.jamfh-food__preview span{font-size:12px}.jamfh-food__meal{margin-top:14px;padding:18px;border:1px solid rgba(255,255,255,.07);border-radius:20px;background:#121419}.jamfh-food__meal-head{display:flex;justify-content:space-between;align-items:end;gap:14px}.jamfh-food__meal-head h3{margin:4px 0 0;font-size:24px}.jamfh-food__meal-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.jamfh-food__meal-head .jamfh-btn{min-height:42px}.jamfh-food__totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0}.jamfh-food__totals span{padding:13px;border-radius:14px;background:#20232a;color:#9fa4ae;font-size:11px}.jamfh-food__totals b{display:block;margin-bottom:2px;color:#fff;font-size:23px;line-height:1.05}.jamfh-food__list{display:grid;gap:7px}.jamfh-food__row{display:grid;grid-template-columns:minmax(0,1fr) auto 34px;gap:12px;align-items:center;padding:12px 13px;border-radius:14px;background:#1c1f26}.jamfh-food__row strong{display:block;color:#fff;font-size:13px}.jamfh-food__row span{display:block;margin-top:3px;color:#888e99;font-size:11px}.jamfh-food__row-macros{color:#c8cbd2;font-size:11px;white-space:nowrap}.jamfh-food__row button{width:34px;height:34px;border:0;border-radius:10px;background:#292d35;color:#c0c4cc;font-size:20px;cursor:pointer}.jamfh-food__row button:hover{background:#333842;color:#fff}

/* чуть больше воздуха у новых секций при переходе по якорю */
#timer,#nutrition,#calc-macros,#calc-percent{scroll-margin-top:22px}

@media(max-width:980px){.jamfh-timer__layout{grid-template-columns:1fr}.jamfh-timer__display{min-height:280px}.jamfh-food__controls{grid-template-columns:1fr 1fr}.jamfh-food__controls .jamfh-btn{width:100%}.jamfh-food__totals{grid-template-columns:repeat(2,minmax(0,1fr))}.jamfh-methods__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.jamfh-timer,.jamfh-food{padding:18px;border-radius:20px}.jamfh-timer__display{min-height:250px;padding:20px}.jamfh-timer__display>strong{font-size:clamp(64px,22vw,92px)}.jamfh-timer__presets{display:grid;grid-template-columns:1fr 1fr}.jamfh-food__controls{grid-template-columns:1fr}.jamfh-food__preview{display:grid}.jamfh-food__row{grid-template-columns:1fr 34px}.jamfh-food__row-macros{grid-column:1/-1;grid-row:2;white-space:normal}.jamfh-food__row button{grid-column:2;grid-row:1}.jamfh-macro-grid{grid-template-columns:1fr 1fr 1fr}.jamfh-macro-grid b{font-size:21px}.jamfh-methods__grid{grid-template-columns:1fr}}
@media(max-width:430px){.jamfh-timer__presets{grid-template-columns:1fr}.jamfh-timer__actions{display:grid;grid-template-columns:1fr 1fr}.jamfh-timer__actions .jamfh-btn{width:100%;min-width:0}.jamfh-food__totals{grid-template-columns:1fr 1fr}.jamfh-macro-grid{grid-template-columns:1fr}.jamfh-food__meal-head{align-items:flex-start;flex-direction:column}.jamfh-food__meal-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.jamfh-food__meal-head .jamfh-btn{width:100%;padding-left:13px;padding-right:13px}}


/* =========================================================
   v2.0.1 — MOBILE NAV + TIMER AUDIO CONTROLS
   ========================================================= */
.jamfh-timer__volume{margin-top:2px}
.jamfh-timer__volume>span{justify-self:end;color:var(--y);font-size:11px;font-weight:900}
.jamfh-timer__volume input[type="range"]{min-height:0;height:34px;padding:0;border:0;background:transparent;accent-color:var(--y);cursor:pointer}
.jamfh-timer__volume input[type="range"]:focus{box-shadow:none}

@media(max-width:720px){
  .jamfh-jump{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    width:100%;
    margin:0;
    padding:2px 0 12px;
    overflow:visible;
  }
  .jamfh-jump button{
    width:100%;
    min-width:0;
    min-height:44px;
    padding:8px 7px;
    white-space:normal;
    line-height:1.15;
    text-align:center;
    font-size:12px;
  }
}
@media(max-width:360px){
  .jamfh-jump{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* =========================================================
   v2.0.2 — MOBILE ONE-COLUMN NAV + REAL AUDIO TIMER
   ========================================================= */
.jamfh #jamfh-timer-warning + small{
  color:#8f949e;
  font-size:10px;
  font-weight:650;
  line-height:1.35;
}
@media(max-width:720px){
  .jamfh-jump{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:8px !important;
    width:100% !important;
    overflow:visible !important;
  }
  .jamfh-jump button{
    width:100% !important;
    min-height:48px !important;
    padding:10px 14px !important;
    border-radius:16px !important;
    white-space:normal !important;
    font-size:13px !important;
  }
}

/* =========================================================
   v2.0.3 — ГЛАВНАЯ НАВИГАЦИЯ + ИЕРАРХИЯ ТАЙМЕРА
   ========================================================= */
.jamfh-jump{
  flex-wrap:wrap;
  overflow:visible;
  align-items:flex-start;
}
.jamfh-jump > button{
  min-height:48px;
}
.jamfh-jump__toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.jamfh-jump__toggle span{
  display:inline-block;
  transition:transform .18s ease;
}
.jamfh-jump__toggle.is-open span{
  transform:rotate(180deg);
}
.jamfh-jump__menu{
  flex:0 0 100%;
  width:100%;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  padding:10px 0 2px;
}
.jamfh-jump__menu[hidden]{
  display:none !important;
}
.jamfh-jump__menu button{
  width:100%;
  min-height:46px;
  padding:9px 12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:15px;
  background:#1b1e25;
  color:#eef0f4;
  font-weight:800;
  cursor:pointer;
}
.jamfh-jump__menu button:hover{
  border-color:rgba(255,203,0,.4);
  color:var(--y);
}

/* Таймер: маленькая служебная подпись + крупный основной заголовок */
#timer .jamfh-section__head .jamfh-kicker{
  display:block;
  margin-bottom:8px;
  color:var(--y);
  font-size:11px;
  font-weight:900;
  line-height:1.25;
  letter-spacing:.12em;
  text-transform:uppercase;
}
#timer .jamfh-section__head h2{
  margin:0;
  font-size:clamp(40px,4.2vw,62px);
  line-height:.98;
  letter-spacing:-.04em;
}

@media(max-width:900px){
  .jamfh-jump__menu{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:720px){
  .jamfh-jump > button{
    width:100% !important;
  }
  .jamfh-jump__menu{
    grid-template-columns:1fr;
    gap:7px;
    padding-top:2px;
  }
  .jamfh-jump__menu button{
    min-height:46px;
    font-size:13px;
  }
  #timer .jamfh-section__head .jamfh-kicker{
    margin-bottom:7px;
    font-size:10px;
    letter-spacing:.09em;
  }
  #timer .jamfh-section__head h2{
    font-size:clamp(34px,10vw,44px);
    line-height:1;
  }
}


/* =========================================================
   v2.0.4 — КАЛЬКУЛЯТОРЫ ПОД ОДНИМ РАСКРЫВАЕМЫМ БЛОКОМ
   ========================================================= */
.jamfh-calculators-panel[hidden]{
  display:none !important;
}
.jamfh-calculators-panel{
  margin-top:10px;
}
.jamfh-jump__menu:not([hidden]) + *{
  min-width:0;
}
@media(max-width:720px){
  .jamfh-calculators-panel{
    margin-top:8px;
  }
}

/* v2.0.5 — пользовательские режимы таймера */
.jamfh-timer__save-row{display:flex;justify-content:flex-start;gap:9px}.jamfh-timer__save-row .jamfh-btn{min-width:180px}.jamfh-preset-modal[hidden]{display:none!important}.jamfh-preset-modal{position:fixed;inset:0;z-index:1000001;display:grid;place-items:center;padding:18px;font-family:Montserrat,Arial,sans-serif}.jamfh-preset-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.78);backdrop-filter:blur(8px)}.jamfh-preset-modal__dialog{position:relative;z-index:1;width:min(100%,500px);max-height:calc(100vh - 36px);overflow:auto;padding:30px;border:1px solid rgba(255,255,255,.11);border-radius:28px;background:radial-gradient(circle at 90% 0,rgba(255,203,0,.12),transparent 30%),linear-gradient(180deg,#181a20,#0f1115);box-shadow:0 30px 90px rgba(0,0,0,.55);color:#fff}.jamfh-preset-modal__close{position:absolute;top:14px;right:14px;display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:#252830;color:#fff;font-size:24px;line-height:1;cursor:pointer}.jamfh-preset-modal__brand{display:flex;align-items:center;gap:9px;padding-right:44px;color:#aeb2bc;font-size:11px;font-weight:900;letter-spacing:.12em}.jamfh-preset-modal__brand span{width:8px;height:8px;border-radius:50%;background:var(--y);box-shadow:0 0 0 6px rgba(255,203,0,.10)}.jamfh-preset-modal__dialog h3{margin:18px 0 0;font-size:clamp(28px,5vw,38px);line-height:1;letter-spacing:-.035em}.jamfh-preset-modal__dialog>p{margin:12px 0 20px;color:#aeb2bc;font-size:14px;line-height:1.55}.jamfh-preset-modal__dialog form{display:grid;gap:14px}.jamfh-preset-modal__dialog label{display:grid;gap:7px;color:#d8dbe1;font-size:12px;font-weight:800}.jamfh-preset-modal__dialog input{width:100%;min-height:50px;padding:12px 14px;border:1px solid rgba(255,255,255,.11);border-radius:14px;outline:0;background:#23262e;color:#fff;font-size:16px}.jamfh-preset-modal__dialog input:focus{border-color:rgba(255,203,0,.72);box-shadow:0 0 0 3px rgba(255,203,0,.08)}.jamfh-preset-modal__preview{padding:12px 14px;border:1px solid rgba(255,255,255,.07);border-radius:14px;background:#20232a;color:#bfc3cc;font-size:12px;line-height:1.5}.jamfh-preset-modal__dialog .jamfh-btn{width:100%}@media(max-width:560px){.jamfh-preset-modal{padding:0;align-items:end}.jamfh-preset-modal__dialog{width:100%;max-height:92vh;padding:24px 18px 22px;border-radius:26px 26px 0 0}.jamfh-preset-modal__dialog h3{font-size:30px}.jamfh-preset-modal__close{top:12px;right:12px}.jamfh-timer__save-row .jamfh-btn{width:100%;min-width:0}}

/* =========================================================
   v2.0.6 — ЧИСТЫЙ ТАЙМЕР + НАСТРОЙКИ ПОД КНОПКОЙ
   ========================================================= */
#timer .jamfh-section__head--timer{
  margin-bottom:14px;
}
#timer .jamfh-section__head--timer h2{
  margin:0;
  font-size:clamp(40px,4.1vw,58px);
  line-height:1;
  letter-spacing:-.04em;
}

.jamfh-timer{
  display:block;
}

.jamfh-timer__display{
  width:100%;
  min-height:360px;
  padding:clamp(22px,3.2vw,42px);
}

.jamfh-timer__actions--primary{
  width:min(100%,680px);
  margin-top:28px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.jamfh-timer__actions--primary .jamfh-btn{
  width:100%;
  min-width:0;
  min-height:54px;
}

.jamfh-timer__settings-toggle{
  width:min(100%,680px);
  min-height:50px;
  margin-top:10px;
  border-color:rgba(255,203,0,.32);
  color:var(--y);
}
.jamfh-timer__settings-toggle:hover{
  border-color:rgba(255,203,0,.62);
  background:rgba(255,203,0,.08);
}

.jamfh-timer__settings-panel[hidden]{
  display:none !important;
}
.jamfh-timer__settings-panel{
  margin-top:16px;
  padding:22px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:22px;
  background:linear-gradient(180deg,#181b21,#121419);
}
.jamfh-timer__sound-row{
  display:flex;
  justify-content:flex-start;
}
.jamfh-timer__sound-row .jamfh-btn{
  min-width:180px;
}

.jamfh-timer__log{
  margin-top:14px;
}

@media(max-width:720px){
  #timer .jamfh-section__head--timer h2{
    font-size:clamp(36px,11vw,46px);
  }
  .jamfh-timer__display{
    min-height:330px;
    padding:22px 14px;
  }
  .jamfh-timer__actions--primary{
    grid-template-columns:1fr;
    width:100%;
    margin-top:24px;
  }
  .jamfh-timer__actions--primary .jamfh-btn{
    min-height:54px;
  }
  .jamfh-timer__settings-toggle{
    width:100%;
  }
  .jamfh-timer__settings-panel{
    margin-top:12px;
    padding:16px;
    border-radius:18px;
  }
  .jamfh-timer__save-row .jamfh-btn,
  .jamfh-timer__sound-row .jamfh-btn{
    width:100%;
    min-width:0;
  }
}


/* =========================================================
   v2.0.7 — ПИТАНИЕ: РАСШИРЕННАЯ БАЗА + МОИ ПРОДУКТЫ
   ========================================================= */
.jamfh-food__custom{
  margin-top:14px;
}
.jamfh-food__custom-toggle{
  width:100%;
  min-height:48px;
  padding:10px 16px;
  border:1px solid rgba(255,203,0,.34);
  border-radius:16px;
  background:rgba(255,203,0,.06);
  color:var(--y);
  font-weight:900;
  cursor:pointer;
  text-align:left;
}
.jamfh-food__custom-toggle:hover{
  background:rgba(255,203,0,.10);
  border-color:rgba(255,203,0,.55);
}
.jamfh-food__custom-panel{
  margin-top:10px;
  padding:18px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:20px;
  background:#121419;
}
.jamfh-food__custom-panel[hidden]{
  display:none!important;
}
.jamfh-food__custom-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:14px;
}
.jamfh-food__custom-head h3{
  margin:4px 0 0;
  color:#fff;
  font-size:24px;
}
.jamfh-food__custom-head p{
  max-width:520px;
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}
.jamfh-food__custom-grid{
  display:grid;
  grid-template-columns:minmax(220px,1.6fr) repeat(4,minmax(90px,.65fr)) auto;
  gap:10px;
  align-items:end;
}
.jamfh-food__custom-grid .jamfh-btn{
  min-height:48px;
  white-space:nowrap;
}
.jamfh-food__custom-list{
  display:grid;
  gap:7px;
  margin-top:14px;
}
.jamfh-food__custom-empty{
  padding:12px 14px;
  border-radius:14px;
  background:#1c1f26;
  color:#8f949e;
  font-size:12px;
}
.jamfh-food__custom-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 34px;
  gap:12px;
  align-items:center;
  padding:12px 13px;
  border-radius:14px;
  background:#1c1f26;
}
.jamfh-food__custom-row strong{
  display:block;
  color:#fff;
  font-size:13px;
}
.jamfh-food__custom-row span{
  display:block;
  margin-top:3px;
  color:#8f949e;
  font-size:11px;
  line-height:1.4;
}
.jamfh-food__custom-row button{
  width:34px;
  height:34px;
  border:0;
  border-radius:10px;
  background:#292d35;
  color:#c0c4cc;
  font-size:20px;
  cursor:pointer;
}
.jamfh-food__custom-row button:hover{
  background:#333842;
  color:#fff;
}
.jamfh #jamfh-food-select optgroup{
  font-weight:900;
}
.jamfh #jamfh-food-select option{
  font-weight:600;
}
@media(max-width:1100px){
  .jamfh-food__custom-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .jamfh-food__custom-name{
    grid-column:span 2;
  }
}
@media(max-width:720px){
  .jamfh-food__custom-panel{
    padding:15px;
  }
  .jamfh-food__custom-head{
    display:block;
  }
  .jamfh-food__custom-head p{
    margin-top:8px;
  }
  .jamfh-food__custom-grid{
    grid-template-columns:1fr 1fr;
  }
  .jamfh-food__custom-name{
    grid-column:1/-1;
  }
  .jamfh-food__custom-grid .jamfh-btn{
    grid-column:1/-1;
    width:100%;
  }
}
@media(max-width:430px){
  .jamfh-food__custom-grid{
    grid-template-columns:1fr;
  }
  .jamfh-food__custom-name,
  .jamfh-food__custom-grid .jamfh-btn{
    grid-column:auto;
  }
}

/* =========================================================
   v2.0.19 — ONE MOBILE GEOMETRY, SAFE CARD EDGES
   Uses the same viewport breakout as Dance Dictionary, but keeps a
   small inner safe gutter so every rounded card edge remains visible.
   ========================================================= */

/* Standalone section headings are protected by cards on all screens. */
.jamfh-section__head--card{
  width:100%;
  min-width:0;
  max-width:100%;
  margin:0 0 14px;
  padding:24px 26px;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:linear-gradient(180deg,#15171d,#111318);
  box-shadow:0 18px 50px rgba(0,0,0,.18);
  overflow:hidden;
  box-sizing:border-box;
}
.jamfh-section__head--card > div,
.jamfh-section__head--card > p,
.jamfh-section__head--card h2,
.jamfh-section__head--card .jamfh-kicker{
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}
.jamfh-section__head--card > p{margin:10px 0 0}

@media (max-width:782px){
  /* Theme column must not crop the viewport breakout. */
  .jamfh-page #content,
  .jamfh-page .site-content,
  .jamfh-page .container,
  .jamfh-page .container-fluid,
  .jamfh-page .row,
  .jamfh-page #primary,
  .jamfh-page .content-area,
  .jamfh-page .main-content,
  .jamfh-page .site-main,
  .jamfh-page .blog-content,
  .jamfh-page .post-content,
  .jamfh-page .entry-content,
  .jamfh-page article,
  .jamfh-page .hentry{
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    overflow:visible!important;
  }

  .jamfh-page #secondary,
  .jamfh-page .widget-area,
  .jamfh-page .sidebar,
  .jamfh-page aside.sidebar,
  .jamfh-page .secondary-sidebar{
    display:none!important;
  }

  .jamfh-page #primary,
  .jamfh-page .content-area,
  .jamfh-page .main-content,
  .jamfh-page .site-main,
  .jamfh-page .blog-content,
  .jamfh-page .post-content,
  .jamfh-page .entry-content,
  .jamfh-page article,
  .jamfh-page .hentry{
    width:100%!important;
    flex:0 0 100%!important;
    float:none!important;
    margin-left:0!important;
    margin-right:0!important;
  }

  /* Same wide breakout as Dance Dictionary. */
  .jamfh{
    position:relative!important;
    width:calc(100vw - 24px)!important;
    max-width:calc(100vw - 24px)!important;
    min-width:0!important;
    margin-left:calc(50% - 50vw + 12px)!important;
    margin-right:0!important;
    left:auto!important;
    right:auto!important;
    transform:none!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }

  /* Important difference: cards live inside this safe gutter. */
  .jamfh-shell{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:8px 12px 38px!important;
    box-sizing:border-box!important;
  }

  .jamfh-shell > *{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    box-sizing:border-box!important;
  }

  .jamfh-section__head--card,
  #timer .jamfh-section__head--card,
  #nutrition .jamfh-section__head--card,
  #diary .jamfh-section__head--card{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0 0 14px!important;
    padding:20px 18px!important;
    border-radius:22px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }

  .jamfh-section__head--card > div,
  .jamfh-section__head--card > p,
  .jamfh-section__head--card h2,
  .jamfh-section__head--card .jamfh-kicker{
    display:block!important;
    width:auto!important;
    max-width:100%!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:0!important;
    transform:none!important;
    text-indent:0!important;
    text-align:left!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:break-word!important;
    box-sizing:border-box!important;
  }

  .jamfh-section__head--card .jamfh-kicker{
    margin:0 0 7px!important;
    font-size:11px!important;
    line-height:1.35!important;
    letter-spacing:.1em!important;
  }

  .jamfh-section__head--card h2,
  #timer .jamfh-section__head--card h2{
    margin:0!important;
    font-size:clamp(32px,8.8vw,42px)!important;
    line-height:1.04!important;
    letter-spacing:-.035em!important;
  }

  .jamfh-section__head--card > p{
    margin:11px 0 0!important;
    color:var(--muted)!important;
    font-size:15px!important;
    line-height:1.55!important;
  }

  /* Every real card/form must remain inside the shell gutter. */
  .jamfh-hero,
  .jamfh-calculators-panel,
  .jamfh-calc,
  .jamfh-timer,
  .jamfh-food,
  .jamfh-food__custom-panel,
  .jamfh-food__meal,
  .jamfh-login-panel,
  .jamfh-panel,
  .jamfh-progress-card,
  .jamfh-methods,
  .jamfh-safety{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    box-sizing:border-box!important;
  }

  .jamfh-calc-grid,
  .jamfh-dashboard,
  .jamfh-diary-grid,
  .jamfh-form-grid,
  .jamfh-form-grid--3,
  .jamfh-food__controls,
  .jamfh-food__custom-grid{
    grid-template-columns:1fr!important;
    min-width:0!important;
    max-width:100%!important;
  }

  .jamfh-progress-card--wide,
  .jamfh-calc--featured,
  .jamfh-span-2,
  .jamfh-food__custom-name,
  .jamfh-food__custom-grid .jamfh-btn{
    grid-column:auto!important;
  }

  .jamfh label,
  .jamfh input,
  .jamfh select,
  .jamfh textarea,
  .jamfh button,
  .jamfh .jamfh-btn{
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
  .jamfh input,
  .jamfh select,
  .jamfh textarea{
    width:100%!important;
    font-size:16px!important;
  }

  .jamfh-hero__actions,
  .jamfh-calc__actions,
  .jamfh-login-panel__actions,
  .jamfh-timer__actions--primary,
  .jamfh-food__meal-actions,
  .jamfh-timer__save-row,
  .jamfh-timer__sound-row{
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%!important;
    gap:8px!important;
  }
  .jamfh-hero__actions .jamfh-btn,
  .jamfh-calc__actions .jamfh-btn,
  .jamfh-login-panel__actions .jamfh-btn,
  .jamfh-timer__actions--primary .jamfh-btn,
  .jamfh-food__meal-actions .jamfh-btn,
  .jamfh-timer__save-row .jamfh-btn,
  .jamfh-timer__sound-row .jamfh-btn,
  .jamfh-food__controls > .jamfh-btn,
  .jamfh-food__custom-grid > .jamfh-btn{
    width:100%!important;
    margin:0!important;
    padding-left:14px!important;
    padding-right:14px!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
  }

  .jamfh-jump{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    overflow:visible!important;
  }
  .jamfh-jump > button,
  .jamfh-jump__menu,
  .jamfh-jump__menu button{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
  .jamfh-jump__menu{grid-template-columns:1fr!important;gap:7px!important;padding-top:2px!important}

  .jamfh-food__totals{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .jamfh-food__row{grid-template-columns:minmax(0,1fr) 34px!important}
  .jamfh-food__row-macros{grid-column:1/-1!important;grid-row:2!important;white-space:normal!important}
  .jamfh-food__row button{grid-column:2!important;grid-row:1!important}
  .jamfh-login-panel{grid-template-columns:1fr!important;align-items:stretch!important}
  .jamfh-methods__grid{grid-template-columns:1fr!important}
  .jamfh-food__custom-head,
  .jamfh-panel__head{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important}
  .jamfh-food__custom-head > p,
  .jamfh-panel__head > p{margin-top:10px!important}
}

@media (max-width:380px){
  .jamfh{
    width:calc(100vw - 16px)!important;
    max-width:calc(100vw - 16px)!important;
    margin-left:calc(50% - 50vw + 8px)!important;
  }
  .jamfh-shell{padding-left:8px!important;padding-right:8px!important}
  .jamfh-section__head--card,
  #timer .jamfh-section__head--card,
  #nutrition .jamfh-section__head--card,
  #diary .jamfh-section__head--card{padding:18px 16px!important}
}
