:root{--ink:#282b29;--muted:#77766d;--paper:#f7f1df;--white:#fffdf7;--green:#315f4b;--green2:#e7eee6;--red:#c45d55;--blue:#6684a2;--line:#e8e0cd;--shadow:0 14px 40px rgba(91,76,45,.09)}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:15px;-webkit-font-smoothing:antialiased}.app-shell{max-width:540px;min-height:100svh;margin:auto;background:var(--paper);padding-bottom:92px}.topbar{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid rgba(40,43,41,.06);position:sticky;top:0;background:rgba(247,241,223,.96);backdrop-filter:blur(12px);z-index:5}.brand{color:var(--ink);display:flex;gap:9px;align-items:center;text-decoration:none;font:800 17px Manrope,sans-serif;letter-spacing:-.5px}.brand-light{font-weight:500;color:var(--green)}.brand-mark{width:28px;height:28px;border-radius:9px;background:var(--green);color:white;display:grid;place-items:center;font:800 17px Manrope}.topbar-note{display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:8.5px;line-height:1.25;letter-spacing:.8px;text-transform:uppercase;color:#696b5e}main{padding:22px 20px 30px}.eyebrow{font-size:10px;letter-spacing:1.6px;text-transform:uppercase;color:var(--green);font-weight:700;margin:0 0 10px}.hero{background:#f0e3bd;color:#30362f;border-radius:24px;padding:26px 24px 22px;min-height:220px;position:relative;overflow:hidden;box-shadow:var(--shadow)}.hero:after{content:'✳';position:absolute;right:4px;top:-45px;font:200px Manrope;color:rgba(126,103,55,.08)}.hero .eyebrow{color:#4d674b}.hero h1{position:relative;z-index:1;font:700 31px/1.12 Manrope,sans-serif;letter-spacing:-1.2px;margin:0 0 13px;max-width:310px}.hero p{position:relative;z-index:1;color:#4d5048;line-height:1.55;max-width:335px;margin:0;font-size:13px}.section-head{display:flex;align-items:end;justify-content:space-between;margin:27px 2px 13px}.section-head h2{font:700 18px Manrope;margin:0;letter-spacing:-.4px}.section-head small{font-size:11px;color:var(--muted)}.cards{display:grid;gap:11px}.feature-card{border:0;text-align:left;border-radius:18px;display:flex;align-items:center;gap:14px;width:100%;padding:15px 15px;background:var(--white);color:var(--ink);box-shadow:0 4px 18px rgba(40,43,41,.035);cursor:pointer;transition:transform .18s}.feature-card:active,.pill:active{transform:scale(.985)}.card-icon{flex:none;width:46px;height:46px;border-radius:15px;display:grid;place-items:center;font-size:21px}.feature-card h3{font:700 14px Manrope;margin:0 0 4px}.feature-card p{font-size:11px;color:var(--muted);margin:0;line-height:1.45}.arrow{margin-left:auto;color:#929790;font-size:20px}.tint-green .card-icon{background:#e7eee6;color:var(--green)}.tint-blue .card-icon{background:#e9eef2;color:#5c7690}.tint-red .card-icon{background:#f5e8e4;color:#bd635a}.tint-yellow .card-icon{background:#f3eddf;color:#a47c38}.mini-note{font-size:11px;color:var(--muted);line-height:1.55;margin:16px 3px 0}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(540px,100%);height:76px;padding:8px 12px max(8px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,1fr);background:rgba(255,253,250,.96);backdrop-filter:blur(16px);border-top:1px solid var(--line);z-index:10}.nav-item{background:none;border:0;color:#969a94;font:500 10px 'DM Sans';display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer}.nav-item span{font-size:20px;line-height:1}.nav-item.active{color:var(--green);font-weight:700}.page-title{font:800 28px/1.15 Manrope;letter-spacing:-1px;margin:2px 0 8px}.lead{color:var(--muted);font-size:13px;line-height:1.55;margin:0 0 22px}.back{border:0;background:none;color:var(--green);font-weight:700;padding:6px 0 14px;cursor:pointer}.form-card,.result-card,.recipe-copy{background:var(--white);border:1px solid var(--line);border-radius:20px;padding:18px;box-shadow:var(--shadow)}.field{display:grid;gap:7px;margin:0 0 15px}.field label{font-size:12px;font-weight:700}.field input,.field select{width:100%;padding:13px 14px;border:1px solid var(--line);background:#fff;border-radius:12px;font:15px 'DM Sans';color:var(--ink);outline:none}.field input:focus,.field select:focus{border-color:var(--green)}.field-hint{font-size:10px;color:var(--muted);margin-top:-3px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.check-row{display:flex;gap:9px;align-items:flex-start;font-size:11px;color:var(--muted);line-height:1.45;margin:15px 0}.check-row input{accent-color:var(--green);margin-top:2px}.primary-button,.secondary-button{border:0;border-radius:13px;padding:14px 17px;font:700 13px Manrope;cursor:pointer;width:100%}.primary-button{background:var(--green);color:white}.secondary-button{background:#f0eee8;color:var(--ink);margin-top:9px}.error{color:#b64040;font-size:12px;margin:0 0 12px}.result-card{margin-top:15px}.result-kcal{font:800 35px Manrope;letter-spacing:-1px;color:var(--green)}.result-kcal small{font:500 12px 'DM Sans';letter-spacing:0;color:var(--muted)}.macro-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}.macro{background:#f5f3ed;border-radius:13px;padding:12px 9px;text-align:center}.macro b{display:block;font:700 19px Manrope}.macro span{font-size:10px;color:var(--muted)}.disclaimer{font-size:10px;line-height:1.5;color:var(--muted)}.pill-list{display:grid;gap:9px}.pill{display:flex;align-items:center;justify-content:space-between;width:100%;padding:15px 16px;border:1px solid var(--line);background:var(--white);border-radius:15px;text-align:left;color:var(--ink);font:700 13px Manrope;cursor:pointer}.pill span:last-child{color:var(--muted);font-size:18px}.workout-list{list-style:none;padding:0;margin:18px 0;display:grid;gap:8px}.workout-list li{padding:13px 14px;background:#f4f2ec;border-radius:12px;font-size:12px;line-height:1.5;display:flex;gap:10px;align-items:flex-start}.workout-list input{accent-color:var(--green);margin:2px 0 0}.finish{background:var(--red);color:white}.recipe-photo{width:100%;height:auto;max-height:400px;object-fit:cover;border-radius:19px;margin:14px 0 12px}.recipe-copy h2{font:700 15px Manrope;margin:0 0 10px}.recipe-copy ul,.recipe-copy ol{padding-left:20px;margin:0 0 18px;font-size:12px;line-height:1.65}.recipe-copy li{padding:2px 0}.recipe-meta{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 15px}.tag{background:#e7eee6;color:var(--green);padding:7px 10px;border-radius:30px;font-size:10px;font-weight:700}.empty-state{border:1px dashed #d7d2c8;color:var(--muted);padding:22px;border-radius:16px;font-size:12px;line-height:1.5;text-align:center}.toast{position:fixed;bottom:90px;left:50%;transform:translate(-50%,12px);opacity:0;background:#303b34;color:white;padding:12px 17px;border-radius:30px;font-size:12px;z-index:20;transition:.2s;pointer-events:none}.toast.show{opacity:1;transform:translate(-50%,0)}@media(min-width:500px){main{padding:26px 26px 36px}.hero{min-height:230px;padding:30px}.cards{gap:13px}}

/* Осенняя главная и портретный блок FitnessLife */
.hero{padding:24px;background:#f0e3bd;color:#30362f}
.hero-copy{position:relative;z-index:1}
.hero-photo-frame{margin:18px -7px -7px;overflow:hidden;border-radius:18px;background:#e8d9b1;box-shadow:0 8px 24px rgba(82,67,39,.15)}
.hero-photo{display:block;width:100%;height:auto;max-height:none;object-fit:contain;object-position:center;filter:brightness(1.15) saturate(.94)}
.hero h1{color:#30362f}
.hero p{color:#4d5048}
.hero:after{top:-64px;right:7px;color:rgba(126,103,55,.07)}

/* Убираем яркие зелёные плашки, сохраняя фото и логотип */
.brand-mark{background:transparent;color:var(--green);border-radius:0;font-size:22px}
.hero-photo-frame{background:transparent;box-shadow:none}
.hero-photo{border-radius:18px}

/* iOS renders ✳ as a bright emoji tile; use monochrome vector decorations instead. */
.hero:after{content:none}
.hero-sparkle{position:absolute;z-index:0;top:-18px;right:16px;width:190px;height:190px;fill:none;stroke:#99885c;stroke-width:6;stroke-linecap:round;opacity:.13;pointer-events:none}
.nav-sparkle{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;display:block}

/* Фото пользователя как мягкий фон главной страницы; интерфейс остаётся читаемым. */
#app.home-page{background:linear-gradient(rgba(250,247,239,.45),rgba(250,247,239,.64)),url("images/home-background.jpg") center top/cover no-repeat;border-radius:0 0 22px 22px;padding-bottom:28px}
#app.home-page .hero{background:rgba(240,227,189,.9)}
#app.home-page .feature-card{background:rgba(255,253,250,.92)}
#app.home-page .mini-note{background:rgba(255,253,250,.76);border-radius:12px;padding:10px 12px}

.recipe-pill{gap:12px;padding:10px 12px}
.pill-thumb{width:58px;height:68px;flex:none;border-radius:11px;object-fit:cover}
.pill-recipe-copy{display:grid;gap:5px;min-width:0}
.pill-recipe-copy strong{font:700 13px Manrope,sans-serif}
.pill-recipe-copy small{font:400 10px/1.4 'DM Sans',sans-serif;color:var(--muted)}
.recipe-gallery{display:grid;gap:9px;margin:12px 0}
.recipe-gallery-pair{grid-template-columns:repeat(2,minmax(0,1fr))}
.recipe-gallery img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:16px}
.recipe-video{display:block;width:100%;max-height:460px;aspect-ratio:9/16;object-fit:contain;background:#25231f;border-radius:16px;margin:15px 0}
.recipe-copy .serving-title{margin-top:22px}
.recipe-serving-photo{display:block;width:100%;max-height:460px;aspect-ratio:3/4;object-fit:cover;border-radius:16px;margin:12px 0 0}
.recipe-tip,.recipe-nutrition{background:rgba(255,253,250,.94);border:1px solid var(--line);border-radius:18px;padding:16px;margin:14px 0;box-shadow:var(--shadow)}
.recipe-tip h2,.recipe-nutrition h2{font:700 15px Manrope,sans-serif;margin:0 0 10px}
.recipe-tip p{font-size:12px;line-height:1.6;color:#55584f;margin:9px 0}
.recipe-macro-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.recipe-macro-grid .macro{padding:11px 5px}
.recipe-macro-grid .macro b{font-size:16px}
.recipe-macro-grid .macro span{font-size:9px}

/* Новый FitnessLife: приглушённые mauve/sage оттенки и округлая подача из референса. */
:root{--ink:#302c2e;--muted:#71676b;--paper:#cbb3b5;--white:#ead5d5;--green:#6e796e;--green2:#d7ddd5;--red:#a65e6b;--blue:#71808b;--line:#d1bfc0;--shadow:0 12px 28px rgba(68,53,58,.15);--sage:#bfc1bb;--rose:#d9b8bc;--rose-light:#efe0df;--charcoal:#353134}
body{background:#cbb3b5;color:var(--ink);font-family:"Avenir Next","Trebuchet MS",system-ui,sans-serif}
.app-shell{background:var(--sage)}
.topbar{background:rgba(191,193,187,.96);border-color:rgba(53,49,52,.12)}
.brand{font-family:"Avenir Next","Trebuchet MS",system-ui,sans-serif;letter-spacing:-.45px}
.brand-mark{color:#8e5a65;font-family:"Avenir Next","Trebuchet MS",system-ui,sans-serif;font-size:24px;font-weight:800}
.brand-light{color:#765e63}
.topbar-note{color:#5f5b5a;font-weight:800;letter-spacing:1px}
main{padding:18px 17px 30px}
#app.home-page{background:var(--sage);border-radius:0;padding-bottom:30px}
.hero{padding:0;background:var(--rose);border-radius:26px;color:var(--ink);box-shadow:0 12px 26px rgba(71,53,58,.13)}
.hero-copy{padding:23px 21px 0}
.hero .eyebrow,.eyebrow{color:#75535a;font-family:"Arial Narrow","Trebuchet MS",system-ui,sans-serif;font-size:10px;line-height:1.3;font-weight:900;letter-spacing:1.35px;text-transform:uppercase}
.hero h1,.page-title{font-family:"Marker Felt","Comic Sans MS","Trebuchet MS",cursive;font-weight:700;letter-spacing:-.65px;color:var(--charcoal)}
.hero h1{font-size:31px;line-height:1.12;max-width:330px;margin-bottom:11px}
.hero p{color:#554d50;max-width:360px;font-size:13px;line-height:1.55}
.hero-photo-frame{height:390px;margin:17px 11px 11px;overflow:hidden;border-radius:20px;background:#aeb4ae;box-shadow:0 9px 20px rgba(50,46,46,.14)}
.hero-photo{width:100%;height:100%;object-fit:cover;object-position:center 34%;filter:brightness(1.08) saturate(.9);border-radius:20px}
.hero-sparkle{stroke:#fff7f1;opacity:.32;top:-20px;right:8px;width:152px;height:152px}
.section-head{margin:24px 3px 12px}
.section-head h2{font-family:"Marker Felt","Comic Sans MS","Trebuchet MS",cursive;font-size:21px;letter-spacing:-.3px;color:var(--charcoal)}
.section-head small{font-family:"Arial Narrow","Trebuchet MS",system-ui,sans-serif;text-transform:uppercase;font-weight:800;letter-spacing:.8px;color:#686163;font-size:9px}
.cards{gap:10px}
.feature-card{background:#e5d0d1;border-radius:21px;padding:12px 15px;min-height:76px;box-shadow:0 7px 16px rgba(66,48,55,.09);transition:transform .18s,box-shadow .18s}
.feature-card:hover{box-shadow:0 10px 22px rgba(66,48,55,.15);transform:translateY(-1px)}
.feature-card h3{font-family:"Avenir Next","Trebuchet MS",system-ui,sans-serif;font-size:14px;font-weight:800;letter-spacing:-.15px}
.feature-card p{color:#6b6064;font-size:11px;line-height:1.4}
.card-icon{width:48px;height:48px;border-radius:17px;background:#cbb3b5!important;color:#514b4d!important;font-size:20px}
.tint-green .card-icon{background:#c6d0c7!important}.tint-blue .card-icon{background:#c6cdd0!important}.tint-red .card-icon{background:#dfc1c3!important}
.arrow{color:#665a5e}
.mini-note{color:#635b5e;line-height:1.55}
.bottom-nav{background:rgba(231,215,215,.97);border-color:#c9b5b7;backdrop-filter:blur(18px)}
.nav-item{color:#82777a;font-family:"Avenir Next","Trebuchet MS",system-ui,sans-serif;font-size:10px;font-weight:600}
.nav-item.active{color:#8d5862;font-weight:800}
.page-title{font-size:30px;line-height:1.14;margin-top:3px}
.lead{color:#655b5e;font-size:13px;line-height:1.6}
.back{display:none!important}
.back-row{margin:0 0 12px}
.back-button{display:inline-flex;align-items:center;gap:10px;min-height:50px;padding:6px 20px 6px 8px;border:1px solid rgba(105,83,88,.21);border-radius:28px;background:#ead5d5;color:#40383b;box-shadow:0 5px 13px rgba(58,43,48,.12);font:800 14px/1 "Avenir Next","Trebuchet MS",system-ui,sans-serif;cursor:pointer;touch-action:manipulation;transition:transform .15s,background .15s}
.back-button:active{transform:scale(.97);background:#f0e1e0}
.back-chevron{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#bfc1bb;color:#56494d;font:400 31px/1 "Avenir Next",system-ui,sans-serif;padding:0 0 4px}
.form-card,.result-card,.recipe-copy,.recipe-tip,.recipe-nutrition{background:#eadada;border-color:#d2bfc0;border-radius:23px;box-shadow:var(--shadow)}
.field label,.recipe-copy h2,.recipe-tip h2,.recipe-nutrition h2{color:#40383b;font-family:"Avenir Next","Trebuchet MS",system-ui,sans-serif;font-weight:800}
.field input,.field select{border:1px solid #c9b4b6;background:#f4e9e7;border-radius:16px;color:var(--ink);font-family:"Avenir Next","Trebuchet MS",system-ui,sans-serif}
.field input:focus,.field select:focus{border-color:#9b6972;box-shadow:0 0 0 3px rgba(166,94,107,.13)}
.primary-button,.secondary-button{min-height:50px;border-radius:26px;font-family:"Avenir Next","Trebuchet MS",system-ui,sans-serif;font-size:14px;font-weight:800}
.primary-button{background:#7c5961;color:#fffaf8;box-shadow:0 7px 16px rgba(80,53,62,.17)}
.secondary-button{background:#c9d0c8;color:#3c4140}
.finish{background:#a65e6b;color:#fffaf8}
.macro{background:#d9c7c8;border-radius:16px}
.result-kcal{color:#80545e}
.pill{background:#e4d0d1;border:1px solid #d1babb;border-radius:21px;min-height:56px;padding:12px 16px;font-family:"Avenir Next","Trebuchet MS",system-ui,sans-serif;font-weight:800;box-shadow:0 5px 13px rgba(66,48,55,.08)}
.pill span:last-child{color:#705e63}
.pill:active{transform:scale(.985);background:#eddede}
.tag{background:#cbd1ca;color:#4e5b51;border-radius:22px;font-family:"Arial Narrow","Trebuchet MS",system-ui,sans-serif;font-size:10px;letter-spacing:.3px;text-transform:uppercase}
.workout-list li{background:#e3d0d1;border-radius:16px}
.recipe-photo,.recipe-gallery img,.recipe-serving-photo{border-radius:22px;box-shadow:0 8px 20px rgba(61,47,52,.12)}
.recipe-video{border-radius:22px}
.toast{background:#55464b;border-radius:28px}
@media(max-width:380px){main{padding-left:14px;padding-right:14px}.hero-copy{padding:21px 18px 0}.hero h1{font-size:28px}.hero-photo-frame{height:350px}.back-button{min-height:48px}}
@media(min-width:500px){.hero-photo-frame{height:430px}.hero h1{font-size:34px}}

/* Розовый становится основным цветом поверхностей, элементы управления — серо-шалфейными. */
:root{--paper:#d8c0c3;--white:#eedcde;--rose:#e2c6c9;--rose-light:#f1e4e5;--sage:#bfc1bb;--green:#6e796e;--line:#c5b7b9;--shadow:0 12px 28px rgba(68,53,58,.13)}
body{background:#d8c0c3}
.app-shell,#app.home-page{background:#d8c0c3}
.topbar{background:rgba(216,192,195,.97)}
.hero{background:#e5cdd0}
#app.home-page .hero{background:rgba(229,205,208,.94)}
.feature-card{background:#c9cbc5;color:var(--ink);box-shadow:0 7px 16px rgba(66,58,59,.10)}
.feature-card p{color:#62635f}
.card-icon,.tint-green .card-icon,.tint-blue .card-icon,.tint-red .card-icon{background:#b7bbb5!important;color:#454946!important}
.arrow{color:#5c605c}
.bottom-nav{background:rgba(194,197,190,.98);border-color:#aeb2ac}
.nav-item{color:#686d68}
.nav-item.active{color:#77575d}
.back-button{background:#c5c8c2;border-color:#aeb2ac;color:#3d4140;box-shadow:0 5px 13px rgba(58,53,53,.12)}
.back-button:active{background:#d4d6d1}
.back-chevron{background:#aeb3ac;color:#3f4540}
.form-card,.result-card,.recipe-copy,.recipe-tip,.recipe-nutrition{background:#eedcde;border-color:#d1bfc1}
.field input,.field select{background:#f5e9ea;border-color:#cbb8bb}
.primary-button,.secondary-button,.finish{background:#aeb3ad;color:#343936;box-shadow:0 6px 14px rgba(60,62,58,.12)}
.secondary-button{background:#c2c5bf}
.finish{background:#999f99;color:#fff}
.macro{background:#d9c6c9}
.pill{background:#c9cbc5;border-color:#b1b5af;box-shadow:0 5px 13px rgba(66,58,59,.08)}
.pill:active{background:#d5d7d1}
.tag{background:#c3c7c0;color:#49514a}
.workout-list li{background:#d4c3c6}
.recipe-tip,.recipe-nutrition{background:#eedcde}
#app.home-page .feature-card{background:rgba(199,202,196,.96)}
#app.home-page .mini-note{background:rgba(238,220,222,.88)}
/* Убираем прежние жёлтые подложки с фотографии и первого экрана. */
#app.home-page{background:linear-gradient(rgba(216,192,195,.56),rgba(216,192,195,.68)),url("images/home-background.jpg") center top/cover no-repeat}
#app.home-page .hero{background:rgba(229,205,208,.94)}
.hero-photo-frame{background:#bfc1bb}
.hero-photo-frame,.hero-photo{box-shadow:0 8px 20px rgba(61,47,52,.12)}
