/* Легче — главная страница (v2, по макету). Подключается после styles.css, header-v2.css и ui-v2.css. */


/* ---------- кнопки ---------- */

/* ---------- первый экран ---------- */
.hh{position:relative;overflow:hidden;margin-top:-76px;padding-top:76px;background:var(--cream)}
.hh-bg{position:absolute;top:76px;right:0;bottom:0;width:64%}
.hh-bg img{width:100%;height:100%;object-fit:cover;object-position:100% 0%}
.hh-bg:before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,var(--cream) 0%,rgba(251,248,241,.82) 14%,rgba(251,248,241,0) 55%),linear-gradient(180deg,var(--cream) 0%,rgba(251,248,241,0) 9%)}
.hh-bg:after{content:"";position:absolute;left:0;right:0;bottom:0;height:26%;z-index:1;background:linear-gradient(0deg,var(--cream) 0%,rgba(251,248,241,0) 100%)}
.hh-grid{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:center;min-height:640px;padding:44px 0 26px;column-gap:40px}
.hh h1{margin:0 0 22px;font:700 clamp(34px,4.1vw,56px)/1.12 var(--serif);letter-spacing:-.015em;color:var(--g-dark);max-width:620px}
.hh-lead{margin:0 0 30px;max-width:520px;font-size:clamp(16px,1.5vw,19px);line-height:1.6;color:#2f3c26}
.hh-actions{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:34px}
.hh-stats{list-style:none;margin:0 0 20px;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,auto));gap:0;max-width:560px}
.hh-stats li{display:flex;flex-direction:column;align-items:center;text-align:center;padding:2px 22px;border-left:1px solid rgba(30,56,20,.14)}
.hh-stats li:first-child{border-left:0;padding-left:0}
.hh-stats .ico{font-size:26px;color:var(--g);margin-bottom:6px}
.hh-stats strong{font:700 24px/1.1 var(--sans);color:var(--g-dark)}
.hh-stats span{font-size:14px;color:#3d4a32}
.hh-script{margin:0;font:600 28px/1.2 'Caveat','Segoe Script','Bradley Hand',cursive;color:var(--g-dark)}
.hh-script em{font-style:normal;border-bottom:3px solid var(--g);border-radius:2px;padding-bottom:1px}

.hh-plan{grid-column:2;justify-self:end;align-self:center;margin-top:210px;width:min(268px,100%);padding:24px 22px 22px;border-radius:26px;background:rgba(255,253,248,.94);box-shadow:0 18px 44px rgba(30,56,20,.16);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);position:relative}
.hh-plan h2{margin:0 0 16px;font:700 22px/1.2 var(--serif);color:var(--g-dark)}
.hh-plan ul{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.hh-plan li{display:flex;align-items:center;gap:12px;font:500 15px/1.25 var(--sans);color:#2d3a24}
.hh-plan li i{width:42px;height:42px;border-radius:50%;background:var(--g-soft);display:grid;place-items:center;color:var(--g);font-size:21px;flex:none}
.hh-plan .branch{position:absolute;right:-8px;top:-46px;width:46px;height:62px;color:#5f8f2e;transform:rotate(18deg)}

/* ---------- заголовки секций ---------- */

/* ---------- четыре карточки ---------- */
.hf-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.hf-card{position:relative;display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:0 10px 30px rgba(60,72,30,.08);transition:transform .25s,box-shadow .25s}
.hf-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(60,72,30,.14)}
.hf-img{height:168px;position:relative;overflow:hidden;background:#eef0df}
.hf-img img{width:100%;height:100%;object-fit:cover}
.hf-body{padding:18px 70px 22px 20px}
.hf-body h3{display:flex;align-items:center;gap:10px;margin:0 0 8px;font:700 20px/1.2 var(--sans);color:#16260f}
.hf-body h3 .ico{color:var(--g);font-size:22px}
.hf-body p{margin:0;font-size:15px;line-height:1.5;color:var(--muted)}
.hf-go{position:absolute;right:18px;bottom:20px;width:40px;height:40px;border-radius:50%;background:#eef1e2;display:grid;place-items:center;color:var(--g-dark);transition:background .2s,color .2s}
.hf-card:hover .hf-go{background:var(--g);color:#fff}
.hf-go .h-arrow{width:18px;height:18px}
.hf-img.hf-phone{background:linear-gradient(160deg,#eef2e0,#dfe8c8)}
.hf-img.hf-phone .ph{position:absolute;z-index:2;left:50%;top:18px;transform:translateX(-50%);--w:128px}
.hf-img.hf-phone .branch{position:absolute;right:8px;bottom:-14px;width:60px;height:80px;color:#6f9a3a;opacity:.85}
.hf-img.hf-phone .branch.l{left:6px;right:auto;bottom:-10px;transform:scaleX(-1) rotate(8deg);width:52px;height:70px;opacity:.7}

/* ---------- большие блоки ---------- */
.hb-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.hb{position:relative;min-height:300px;border-radius:30px;overflow:hidden;background:linear-gradient(120deg,#f6f1e2 0%,#f1efdc 60%,#eaf0d9 100%);border:1px solid var(--line);box-shadow:0 10px 30px rgba(60,72,30,.06)}
.hb-copy{position:relative;z-index:2;width:50%;padding:36px 0 36px 36px;display:flex;flex-direction:column;align-items:flex-start;min-height:300px}
.hb h2{margin:0 0 12px;font:700 clamp(24px,2.5vw,32px)/1.18 var(--serif);color:var(--g-dark);letter-spacing:-.01em}
.hb-copy>p{margin:0 0 24px;font-size:16px;line-height:1.55;color:#2f3c26;max-width:300px}
.hb-copy .h-btn{margin-top:auto}
.hb-media{position:absolute;top:0;right:0;bottom:0;width:58%;z-index:1}
.hb-media img{width:100%;height:100%;object-fit:cover}
.hb-media.fade:before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,#f3f1df 0%,rgba(243,241,223,.7) 18%,rgba(243,241,223,0) 52%)}
.hb-badge{position:absolute;z-index:3;top:26px;right:26px;width:112px;height:112px;border-radius:50%;background:rgba(255,253,248,.95);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--g-dark);box-shadow:0 10px 26px rgba(30,56,20,.14);line-height:1}
.hb-badge small{font:600 15px/1 var(--sans);letter-spacing:.01em}
.hb-badge strong{font:700 40px/1 var(--serif);margin:3px 0 2px}
.hb-badge span{font:700 17px/1 var(--sans)}
.hb-badge .ico{position:absolute;left:10px;top:20px;font-size:16px;color:var(--g)}
.h-checks{list-style:none;margin:0 0 24px;padding:0;display:grid;gap:11px}
.h-checks li{display:flex;align-items:center;gap:11px;font:500 17px/1.25 var(--sans);color:#24331b}
.h-checks .ico{color:var(--g);font-size:20px;stroke-width:2.4}

.hb-day .hb-media{width:48%;background:radial-gradient(circle at 60% 40%,#f4f6e8,#e6edd2)}
.hb-day .hb-media .ph{position:absolute;z-index:2;left:44%;top:36px;transform:translateX(-50%) rotate(5deg);--w:224px}
.hb-day .hb-media .branch{position:absolute;z-index:1;color:#5f8f2e}
.hb-day .hb-media .b1{left:-8px;top:56px;width:66px;height:92px;transform:scaleX(-1) rotate(-8deg);opacity:.9}
.hb-day .hb-media .b2{right:-6px;bottom:-16px;width:96px;height:130px;transform:rotate(14deg)}
.hb-day .hb-copy{width:56%}
.hb-day .ph-note{position:absolute;left:0;right:0;bottom:8px;text-align:center;font-size:11px;color:#667058;z-index:2}

.hb-food .hb-media{width:54%}
.hb-food .hb-media.fade:before{background:linear-gradient(90deg,#f3f1df 0%,rgba(243,241,223,.55) 16%,rgba(243,241,223,0) 46%)}
.hb-food .hb-copy{width:52%}
.hb-train .hb-copy,.hb-breath .hb-copy{width:48%}
.hb-train .hb-media,.hb-breath .hb-media{width:62%}
.hb-train .hb-media img{object-position:55% 50%}
.hb-breath .hb-media{width:64%}
.hb-breath .hb-media img{object-position:100% 50%}
.hb-breath .hb-media.fade:before{background:linear-gradient(90deg,#f3f1df 0%,rgba(243,241,223,.6) 14%,rgba(243,241,223,0) 34%)}
.hb-breath .hb-badge{top:24px;right:31%}

/* ---------- телефон (рисуется кодом) ---------- */
.ph{--w:200px;width:var(--w);aspect-ratio:9/19;border-radius:calc(var(--w)*.17);background:#fff;border:calc(var(--w)*.035) solid #181c19;box-shadow:0 24px 50px rgba(20,32,10,.28),inset 0 0 0 1px rgba(255,255,255,.2);overflow:hidden;position:relative;font-size:calc(var(--w)*.062);color:#1f2d17}
.ph-notch{position:absolute;left:50%;top:calc(var(--w)*.03);transform:translateX(-50%);width:28%;height:calc(var(--w)*.06);border-radius:99px;background:#181c19;z-index:3}
.ph-screen{position:absolute;inset:0;padding:calc(var(--w)*.12) calc(var(--w)*.07) calc(var(--w)*.06);display:flex;flex-direction:column;gap:calc(var(--w)*.045);background:#fff}
.ph-top{display:flex;justify-content:center;align-items:center}
.ph-top b{font:700 1.18em/1 var(--sans)}
.ph-ring{position:relative;width:62%;aspect-ratio:1;margin:0 auto}
.ph-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ph-ring circle{fill:none;stroke-width:11;stroke-linecap:round}
.ph-ring .trk{stroke:#e5ecd2}
.ph-ring .val{stroke:#7ea03d;stroke-dasharray:85 100}
.ph-ring div{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.05}
.ph-ring strong{font:700 1.55em/1 var(--serif)}
.ph-ring small{font-size:.72em;color:#667058}
.ph-list{list-style:none;margin:0;padding:0;display:grid;gap:calc(var(--w)*.032)}
.ph-list li{display:flex;align-items:center;gap:.6em;padding:.55em .7em;border-radius:.8em;background:#f5f6ec;font-weight:600;font-size:.92em}
.ph-list li .ico{color:#5a7f2c;font-size:1.25em}
.ph-list li i{margin-left:auto;width:1.3em;height:1.3em;border-radius:50%;border:1.5px solid #b9c79a;display:grid;place-items:center;color:#fff}
.ph-list li i.on{background:#6c9433;border-color:#6c9433}
.ph-list li i .ico{font-size:.9em;color:#fff;stroke-width:3}
.ph-cal{display:grid;grid-template-columns:repeat(7,1fr);gap:calc(var(--w)*.03);margin-top:calc(var(--w)*.02)}
.ph-cal span{aspect-ratio:1;border-radius:30%;background:#eef1e0}
.ph-cal span.d{background:#7ea03d}
.ph-cal span.h{background:#c9d7a5}
.ph-cal span.t{background:#fff;box-shadow:inset 0 0 0 2px #7ea03d}
.ph-bar{height:calc(var(--w)*.035);border-radius:9px;background:#e5ecd2;overflow:hidden;margin-top:calc(var(--w)*.03)}
.ph-bar i{display:block;height:100%;width:52%;border-radius:9px;background:#7ea03d}
.ph-title{font:700 1.15em/1.1 var(--sans);text-align:center}

/* ---------- 21 день ---------- */
.hw-grid{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:14px}
.hw{display:flex;align-items:center;gap:16px;padding:18px 20px;border-radius:24px;background:linear-gradient(120deg,#f1efdc,#f6efe0);border:1px solid var(--line);min-height:128px}
.hw:nth-child(3){background:linear-gradient(120deg,#eef1de,#f3efdc)}
.hw:nth-child(5){background:linear-gradient(120deg,#f6eddb,#f4ecdc)}
.hw-num{flex:none;width:68px;height:68px;border-radius:50%;background:var(--g);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
.hw-num strong{font:700 28px/1 var(--serif)}
.hw-num small{font:500 11px/1 var(--sans);margin-top:3px}
.hw-txt{flex:1;min-width:0}
.hw h3{margin:0 0 6px;font:700 19px/1.2 var(--sans);color:#16260f}
.hw p{margin:0;font-size:14px;line-height:1.45;color:var(--muted)}
.hw-img{flex:none;width:92px;height:92px;border-radius:50%;overflow:hidden;box-shadow:0 8px 18px rgba(60,72,30,.18);border:3px solid #fffdf8}
.hw-img img{width:100%;height:100%;object-fit:cover}
.hw-next{color:#2a3a20;display:grid;place-items:center}
.hw-next .ico{width:30px;height:30px;stroke-width:1.8}
.hw-cta{display:flex;justify-content:center;margin-top:26px}

/* ---------- баннер ---------- */

/* ---------- планшет ---------- */
@media(max-width:1100px){
  .hh-grid{grid-template-columns:minmax(0,1fr) minmax(0,.7fr)}
  .hh-stats li{padding:2px 14px}
  .hf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hf-img{height:190px}
  .hb-grid{grid-template-columns:1fr}
  .hb{min-height:290px}
  .hb-copy{width:52%}
  .hw-grid{grid-template-columns:1fr;gap:10px}
  .hw-next{transform:rotate(90deg);height:26px}
}

/* ---------- телефон ---------- */
@media(max-width:860px){
  .hh{margin-top:-68px;padding-top:68px}
  .hh-bg{position:relative;top:0;width:100%;height:auto;aspect-ratio:4/3.1;order:2;max-height:460px}
  .hh-bg:before{background:linear-gradient(180deg,var(--cream) 0%,rgba(251,248,241,0) 22%)}
  .hh-bg:after{height:12%}
  .hh-bg img{object-position:92% 10%}
  .hh{display:flex;flex-direction:column}
  .hh-grid{display:contents}
  .hh-copy{order:1;width:calc(100% - 32px);margin:0 auto;padding:30px 0 6px;position:relative;z-index:2}
  .hh h1{font-size:clamp(30px,8.2vw,40px);margin-bottom:16px}
  .hh-lead{font-size:16px;margin-bottom:22px}
  .hh-actions{margin-bottom:26px}
  .hh-actions .h-btn{flex:1 1 100%}
  .hh-stats{grid-template-columns:repeat(4,1fr);max-width:none;margin-bottom:16px}
  .hh-stats li{padding:2px 4px}
  .hh-stats strong{font-size:21px}
  .hh-stats span{font-size:12.5px}
  .hh-stats .ico{font-size:24px}
  .hh-script{font-size:25px}
  .hh-plan{order:3;margin:-104px 16px 0 auto;position:relative;z-index:3;width:min(250px,64%);padding:18px 16px 16px;border-radius:22px}
  .hh-plan h2{font-size:19px;margin-bottom:12px}
  .hh-plan ul{gap:10px}
  .hh-plan li{font-size:14px}
  .hh-plan li i{width:36px;height:36px;font-size:18px}
  .hh-plan .branch{display:none}
  .hb-copy{width:100%;padding:28px 24px 0;min-height:0}
  .hb-copy .h-btn{margin-top:0}
  .hb-copy>p{max-width:none;margin-bottom:20px}
  .hb{min-height:0;display:flex;flex-direction:column}
  .hb-media,.hb-train .hb-media,.hb-breath .hb-media,.hb-day .hb-media,.hb-food .hb-media{position:relative;width:100%;height:240px;order:3;margin-top:22px}
  .hb-media.fade:before,.hb-food .hb-media.fade:before,.hb-breath .hb-media.fade:before{background:linear-gradient(180deg,#f3f1df 0%,rgba(243,241,223,0) 40%)}
  .hb-breath .hb-media img{object-position:90% 50%}
  .hb-food .hb-copy,.hb-day .hb-copy,.hb-train .hb-copy,.hb-breath .hb-copy{width:100%}
  .hb-day .hb-media{height:300px;overflow:hidden}
  .hb-day .hb-media .ph{left:50%;top:22px;--w:210px}
  .hb-badge,.hb-breath .hb-badge{width:92px;height:92px;top:auto;bottom:18px;right:18px}
  .hb-badge strong{font-size:32px}
  .hb-badge small{font-size:13px}
  .hb-badge span{font-size:14px}
  .hb-badge .ico{display:none}
  .hb-train .hb-media,.hb-breath .hb-media{height:280px}
}
@media(max-width:600px){
  .hf-grid{grid-template-columns:1fr;gap:16px}
  .hf-img{height:170px}
  .hw{padding:16px}
  .hw-img{width:78px;height:78px}
  .hw-num{width:60px;height:60px}
}
@media(prefers-reduced-motion:reduce){
  .hf-card,.hf-go{transition:none}
  .hf-card:hover{transform:none}
}
