.hb-gym{--hb-yellow:#fff600;--hb-night:#11110f;--hb-coal:#181815;--hb-edge:#3e3c31;--hb-soft:#c5c2b4}
.hb-gym.page{padding-top:25px}
.hb-gym-hero{min-height:169px;display:flex;align-items:center;padding:21px clamp(20px,3vw,45px);border:1px solid var(--hb-edge);border-radius:18px;position:relative;isolation:isolate;overflow:hidden;background:#12120f}
.hb-gym-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(13,13,10,.98) 0%,rgba(13,13,10,.96) 29%,rgba(13,13,10,.42) 76%,rgba(13,13,10,.12) 100%),url("assets/strength.webp") 76% 54%/cover no-repeat}
.hb-gym-copy{display:grid;gap:7px;color:#f7f5e9;max-width:745px}
.hb-kicker{font-size:12px;line-height:1.25;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.hb-gym-copy .hb-kicker{display:flex;align-items:center;gap:11px;color:var(--hb-yellow)}
.hb-gym-copy .hb-kicker::before{content:"";width:19px;height:2px;background:currentColor}
.hb-gym-copy h1{font:400 clamp(30px,4vw,55px)/1.07 var(--display);letter-spacing:-.04em;text-wrap:balance}
.hb-gym-copy p:not(.hb-kicker){color:#e4e1d1;font-size:clamp(14px,1.5vw,17px);line-height:1.45;max-width:43ch}
.hb-hero-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.hb-gym .hb-hero-links .button{border-color:#717061;background:#191915cf}
.hb-gym .hb-hero-links .button:hover{border-color:var(--hb-yellow)}
.hb-workbench{display:grid;grid-template-columns:minmax(0,1fr) minmax(232px,25%);align-items:start;gap:20px;margin-top:16px}
.hb-schedule{min-width:0}
.hb-schedule-controls{padding:12px;background:var(--hb-coal);border:1px solid var(--hb-edge);border-radius:14px}
.hb-schedule-controls .fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.hb-schedule-controls .field{font-size:12px;color:var(--hb-soft);gap:5px}
.hb-schedule-controls select{color:#f4f2e7;background:#141410;border-color:var(--hb-edge);font-size:14px}
.hb-schedule-controls .days{margin-top:8px;gap:6px}
.hb-gym .day-button{background:#1e1e18;border-color:#49473a;border-radius:8px;min-height:56px}
.hb-gym .day-button:hover,.hb-gym .day-button[aria-pressed="true"]{border-color:var(--hb-yellow)}
.hb-gym .day-button[aria-pressed="true"]{background:var(--hb-yellow);color:#141300}
.hb-session-heading{display:flex;justify-content:space-between;align-items:end;gap:10px;margin:15px 0 9px}
.hb-session-heading h2{font-size:clamp(24px,2.55vw,34px);font-weight:700;letter-spacing:-.048em}
.hb-session-heading p,.hb-session-heading>span{font-size:13px;color:var(--hb-soft)}
.hb-sessions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hb-sessions .hb-session.record{display:flex;align-items:stretch;flex-direction:column;justify-content:flex-start;gap:9px;padding:13px;border-radius:12px;background:#1b1b16;border:1px solid #454334;min-width:0}
.hb-sessions .hb-session.record:hover{border-color:#797445}
.hb-sessions .hb-session--last.record{background:linear-gradient(151deg,#292810,#1c1b13 67%);border:1px solid #8f8917}
.hb-session-top{display:flex;justify-content:space-between;align-items:flex-start;gap:4px}
.hb-session-top time{font-size:clamp(25px,3.15vw,40px);line-height:1.02;font-weight:700;letter-spacing:-.075em;font-variant-numeric:tabular-nums}
.hb-session--last .hb-session-top time{color:var(--hb-yellow)}
.hb-duration{display:inline-flex;align-items:center;white-space:nowrap;font-size:11px;color:var(--hb-soft);border:1px solid #545041;border-radius:99px;padding:1px 6px}
.hb-session-text{display:grid;gap:7px;min-height:61px}
.hb-session-text h3{font-size:clamp(16px,1.7vw,21px);letter-spacing:-.035em;font-weight:700;line-height:1.12}
.hb-person{display:flex;align-items:center;gap:6px;font-size:12px;line-height:1.1;color:var(--hb-soft)}
.hb-avatar{display:inline-grid;place-items:center;flex:0 0 auto;width:26px;height:26px;border:1px solid #595746;border-radius:50%;background:#2b2a21;color:#f8f6ed;font:700 10px/1 var(--body);letter-spacing:-.02em}
.hb-session-state{display:grid;align-content:end;gap:6px;min-height:36px;margin-top:auto}
.hb-session-state .status{line-height:1.15;min-width:0;font-size:13px}
.hb-capacity{display:flex;gap:7px;align-items:center}
.hb-capacity>span{height:4px;flex:1;border-radius:99px;background:#494738;overflow:hidden}
.hb-capacity i{display:block;height:100%;width:var(--hb-bar);border-radius:inherit;background:#a5a18b;transition:width .22s ease}
.hb-session--last .hb-capacity i{background:#e5db42}
.hb-capacity small{font-size:11px;color:var(--hb-soft);font-variant-numeric:tabular-nums}
.hb-sessions .hb-session .button{white-space:normal;min-height:43px;font-size:12px;padding:6px 8px}
.hb-path{align-self:stretch;border:1px solid var(--hb-edge);border-radius:14px;padding:17px;background:#151511}
.hb-path>h2{font-size:clamp(20px,2vw,25px);margin-bottom:13px}
.hb-path>p{font-size:12px;line-height:1.45;color:var(--hb-soft);padding-top:10px}
.hb-track{padding:11px;border:1px solid #3e3c32;border-radius:9px;background:#1b1b15}
.hb-track+.hb-track{margin-top:8px}
.hb-track h3{font-size:14px}
.hb-track ol{list-style:none;padding:0 0 0 5px;margin:8px 0 0;display:grid;gap:9px}
.hb-track li{position:relative;padding-left:13px;color:var(--hb-soft);font-size:12px;line-height:1.3}
.hb-track li::before{content:"";position:absolute;width:6px;height:6px;border-radius:50%;background:#aba795;left:0;top:5px}
.hb-track li:not(:last-child)::after{content:"";position:absolute;left:2px;top:13px;height:calc(100% - 6px);width:1px;background:#474536}
.hb-track--new{border-color:#716c19;background:#252410}
.hb-track--new h3{color:var(--hb-yellow)}
.hb-track--new li{color:#ece8cf}
.hb-track--new li::before{background:var(--hb-yellow)}
.hb-training-team{margin-top:27px}
.hb-training-team>div:nth-child(2){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hb-trainer{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:11px;align-items:center;padding:15px;border:1px solid var(--hb-edge);border-radius:12px;background:#181813}
.hb-trainer .hb-avatar{width:43px;height:43px;font-size:15px}
.hb-trainer h3{margin-bottom:3px;font-size:17px}
.hb-trainer p{font-size:12px;color:var(--hb-soft)}
.hb-trainer .button{font-size:12px}
.hb-data-note{color:var(--muted);font-size:12px;line-height:1.42;margin-top:13px}

.hb-beauty{--hb-paper:#f6f0e5;--hb-linen:#fffbf4;--hb-copper:#795237;--hb-bronze:#62432e;--hb-text:#2d211a;--hb-soft:#665146;--hb-seam:#dcc9b7;--hb-serif:Georgia,Cambria,"Times New Roman",serif;color:var(--hb-text)}
.hb-beauty-hero{display:grid;grid-template-columns:minmax(0,1fr) 49%;min-height:288px;overflow:hidden;border:1px solid var(--hb-seam);border-radius:0 0 36px 0;background:#eadaca}
.hb-beauty-copy{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:9px;padding:22px clamp(20px,4.1vw,56px)}
.hb-beauty-copy .hb-kicker{color:var(--hb-bronze)}
.hb-beauty-copy h1,.hb-beauty-title h2,.hb-appointment h2,.hb-beauty-footer h2{font-family:var(--hb-serif);font-weight:400;letter-spacing:-.052em}
.hb-beauty-copy h1{font-size:clamp(38px,6vw,85px);line-height:.93;max-width:10ch;text-wrap:balance}
.hb-beauty-copy p:not(.hb-kicker){color:#4f3b2f;font-size:16px;line-height:1.4}
.hb-beauty .hb-hero-links .button{background:#f7ecde;border-color:#9f7d62;color:#402c1f}
.hb-studio{display:block;width:100%;height:100%;min-height:100%;max-height:355px;object-fit:cover;object-position:62% 52%;background:#d4b69c}
.hb-beauty-booking{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.79fr);align-items:start;gap:clamp(16px,2.4vw,29px);margin-top:25px}
.hb-beauty-selection{min-width:0}
.hb-beauty-title{display:flex;justify-content:space-between;align-items:end;gap:11px;margin-bottom:12px}
.hb-beauty-title h2,.hb-appointment h2,.hb-beauty-footer h2{font-size:clamp(29px,3.15vw,44px);line-height:1}
.hb-fast-select{max-width:49%;min-width:124px}
.hb-fast-select .field{font-size:11px;line-height:1.15;color:var(--hb-soft);gap:4px}
.hb-fast-select select{font-size:13px;min-height:41px;color:var(--hb-text);background:var(--hb-linen);border-color:#b9a08b;border-radius:3px;padding:5px 8px}
.hb-categories{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.hb-category{border:1px solid #b69b86;background:transparent;color:var(--hb-bronze);border-radius:999px;padding:5px 11px;min-height:38px;font-size:12px;font-weight:700;transition:background-color .18s ease}
.hb-category:hover,.hb-category[aria-pressed="true"]{color:#fff9ed;background:var(--hb-bronze);border-color:var(--hb-bronze)}
.hb-services,.hb-masters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.hb-service,.hb-master{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;min-width:0;min-height:72px;color:var(--hb-text);background:var(--hb-linen);border:1px solid var(--hb-seam);border-radius:4px;padding:10px}
.hb-service:hover,.hb-master:hover,.hb-service[aria-pressed="true"],.hb-master[aria-pressed="true"]{border-color:#886044;background:#fff8ec;box-shadow:inset 3px 0 0 #ac7e5e}
.hb-service strong,.hb-master strong{display:block;font-size:14px;line-height:1.25;font-weight:700}
.hb-service small,.hb-master small{display:block;color:var(--hb-soft);font-size:11px;line-height:1.37;margin-top:3px}
.hb-service-length{font-size:11px;white-space:nowrap;color:var(--hb-bronze);font-variant-numeric:tabular-nums}
.hb-masters-title{margin-top:18px}
.hb-master{justify-content:flex-start}
.hb-master .hb-avatar{width:33px;height:33px;font-size:11px;background:#f0e0cf;color:#69462f;border-color:#ddc0a8}
.hb-appointment{background:var(--hb-linen);border:1px solid var(--hb-seam);border-radius:4px 4px 28px 4px;padding:clamp(13px,2.3vw,24px);min-width:0;box-shadow:0 10px 28px #3920110c}
.hb-appointment header p{margin-top:6px;font-size:13px;color:var(--hb-bronze)}
.hb-appointment .days{gap:4px;margin:12px 0}
.hb-appointment .day-button{border-color:#d2b89f;border-radius:3px;background:#fcf5e9;color:var(--hb-text);min-height:50px}
.hb-appointment .day-button small{font-size:11px;color:var(--hb-soft)}
.hb-appointment .day-button:hover{border-color:var(--hb-copper)}
.hb-appointment .day-button[aria-pressed="true"]{color:#fffaf0;background:var(--hb-bronze);border-color:var(--hb-bronze)}
.hb-appointment .day-button[aria-pressed="true"] small{color:inherit}
.hb-appointment h3{margin:11px 0 8px;font-size:13px}
.hb-appointment .salon-times{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:0}
.hb-appointment .hb-time.button{border-radius:3px;min-height:50px;padding:5px 2px;line-height:1.1;border:1px solid #ba9e85}
.hb-appointment .hb-time.button strong{font-size:15px}
.hb-appointment .hb-time.button small{font-size:10px;color:inherit}
.hb-time--free{background:#f1e6d6;color:#4b3020}
.hb-time--free:hover{background:#643f29;color:#fff9ec}
.hb-time--occupied{border-style:dashed!important;background:transparent;color:#6d5547}
.hb-time--occupied:hover{background:#f3e9dd}
.hb-beauty-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px;padding:16px 0 0;border-top:1px solid var(--hb-seam)}
.hb-beauty-footer h2{font-size:clamp(22px,3vw,34px)}
.hb-beauty-footer p{color:var(--hb-soft);font-size:13px;line-height:1.4;margin-top:6px}
.hb-beauty-footer .button{min-height:41px;font-size:12px;border-color:#b89477}

body[data-route="gym"] .action-dialog[open],body[data-route="beauty"] .action-dialog[open]{animation:hb-dialog-in .22s ease-out both;padding:clamp(16px,3vw,30px);border-radius:15px}
body[data-route="gym"] .action-dialog[open]{border-color:#797325;border-top:3px solid #fff600}
body[data-route="beauty"] .action-dialog[open]{border-color:#b49576;background:#fffaf1}
body[data-route="beauty"] .action-dialog .dialog-head h2{font-family:Georgia,Cambria,"Times New Roman",serif;font-weight:400;font-size:32px;letter-spacing:-.05em}
body[data-route="gym"] .action-dialog .dialog-head h2{font-size:clamp(23px,3vw,32px);letter-spacing:-.045em}
body[data-route="gym"] .action-dialog::backdrop,body[data-route="beauty"] .action-dialog::backdrop{background:#0c0b07b3;backdrop-filter:blur(4px)}
body[data-route="gym"] .toast[data-kind="success"]:not([data-outcome="confirmed"]):not(:empty),body[data-route="beauty"] .toast[data-kind="success"]:not([data-outcome="confirmed"]):not(:empty){animation:hb-dialog-in .24s ease-out both}
@keyframes hb-dialog-in{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}

@media(min-width:881px){
  .hb-gym .hb-hero-links{position:absolute;right:18px;bottom:15px}
}
@media(min-width:1100px) and (max-height:840px){
  .hb-gym.page,.hb-beauty.page{padding-top:14px}
  .hb-gym-hero{min-height:143px;padding-block:15px}
  .hb-schedule-controls{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:end;gap:11px}
  .hb-schedule-controls .fields{gap:6px}
  .hb-schedule-controls .days{margin:0}
  .hb-schedule-controls .day-button{min-height:44px}
  .hb-beauty-hero{min-height:247px}
  .hb-beauty-copy h1{font-size:clamp(38px,5.1vw,72px)}
  .hb-studio{max-height:280px}
}
@media(max-width:1100px){
  .hb-workbench{grid-template-columns:minmax(0,1fr) minmax(180px,24%);gap:12px}
  .hb-sessions .hb-session.record{padding:11px;gap:10px}
}
@media(max-width:880px){
  .hb-workbench{grid-template-columns:minmax(0,1fr)}
  .hb-path{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .hb-path>h2,.hb-path>p{grid-column:1/-1;margin:0;padding:0}
  .hb-track+.hb-track{margin-top:0}
  .hb-beauty-hero{min-height:245px}
  .hb-beauty-booking{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:590px){
  .hb-gym-hero{min-height:235px;padding:16px;border-radius:12px}
  .hb-gym-copy h1{max-width:13ch}
  .hb-gym-hero::before{background:linear-gradient(90deg,#0c0c09f2,#0c0c094a),linear-gradient(0deg,#0c0c09dd,transparent 65%),url("assets/strength.webp") 62% center/cover no-repeat}
  .hb-schedule-controls{padding:11px}
  .hb-schedule-controls .fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .hb-schedule-controls .field:last-child{grid-column:span 2}
  .hb-schedule-controls .days{gap:4px}
  .hb-sessions{grid-template-columns:minmax(0,1fr)}
  .hb-sessions .hb-session.record{display:grid;grid-template-columns:minmax(65px,.35fr) minmax(0,1fr);gap:7px 12px;padding:12px;align-items:start}
  .hb-session-top{display:grid;gap:3px;justify-items:start}
  .hb-session-text{min-height:0;gap:5px}
  .hb-session-state{min-height:0;grid-column:span 2}
  .hb-sessions .hb-session .button{grid-column:span 2}
  .hb-training-team>div:nth-child(2){grid-template-columns:minmax(0,1fr)}
  .hb-trainer{grid-template-columns:auto minmax(0,1fr)}
  .hb-trainer .button{grid-column:span 2}
  .hb-beauty-hero{grid-template-columns:minmax(0,1fr);border-radius:0 0 22px 0}
  .hb-beauty-copy{padding:18px 15px}
  .hb-studio{height:145px;max-height:145px;min-height:145px;object-position:60% 53%}
  .hb-beauty-booking{margin-top:16px}
  .hb-service,.hb-master{padding:8px}
  .hb-appointment .salon-times{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hb-beauty-footer{align-items:flex-start;flex-direction:column}
}
@media(prefers-reduced-motion:reduce){
  .hb-capacity i,.hb-category{transition:none}
  body[data-route="gym"] .action-dialog[open],body[data-route="beauty"] .action-dialog[open],
  body[data-route="gym"] .toast[data-kind="success"]:not([data-outcome="confirmed"]),body[data-route="beauty"] .toast[data-kind="success"]:not([data-outcome="confirmed"]){animation:none}
}
