@font-face{font-family:Nunito;src:url(assets/nunito-400.woff2) format('woff2');font-weight:400;font-display:swap}@font-face{font-family:Nunito;src:url(assets/nunito-700.woff2) format('woff2');font-weight:700;font-display:swap}@font-face{font-family:Nunito;src:url(assets/nunito-800.woff2) format('woff2');font-weight:800;font-display:swap}
*{box-sizing:border-box}body{margin:0;background:#fff;color:#151b32;font-family:Nunito,sans-serif}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit}::selection{background:#d6ff55;color:#151b32}:focus-visible{outline:3px solid #2547ec;outline-offset:4px}.page{max-width:460px;margin:auto;padding:28px 24px 32px}.profile{text-align:center}.wordmark{display:block;width:fit-content;margin:0 auto 32px;text-decoration:none;font-size:20px;font-weight:800}.wordmark strong{color:#2547ec}.portrait{width:104px;height:104px;object-fit:cover;object-position:center 24%;border-radius:50%;display:block;margin:0 auto 18px}h1{font-size:30px;line-height:1.15;margin:0;font-weight:800;letter-spacing:-.025em}.profile p{font-size:16px;margin:10px 0 28px;color:#59657c}.primary{border:0;width:100%;padding:22px 20px;background:#2547ec;color:white;border-radius:20px;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:8px;transition:background .2s,transform .2s}.primary strong{display:block;font-size:22px;font-weight:800;letter-spacing:-.02em}.primary small{display:block;font-size:13px;margin-top:6px;color:#f0f3ff}.primary svg{width:24px;height:24px;flex:none;transition:rotate .3s}.primary[aria-expanded=true] svg{rotate:90deg}.primary:active,.submit:active{transform:scale(.985)}#signup{margin-top:18px;padding:22px 18px;background:#f5f6fa;border-radius:20px;animation:reveal .3s ease-out}.form-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.form-heading h2{font-size:21px;line-height:1.25;margin:0;font-weight:800}.form-heading button{height:44px;width:44px;flex:none;border:0;background:transparent;color:#151b32}.form-heading svg{width:24px;height:24px}.note{font-size:14px;line-height:1.5;color:#59657c;margin:8px 0 20px}label{display:block;font-size:14px;font-weight:700;margin:0 0 16px}input{display:block;width:100%;margin-top:7px;height:54px;padding:12px 14px;border:1px solid #d7dce6;border-radius:12px;background:white;color:#151b32;min-width:0;font-size:16px;caret-color:#2547ec}input::placeholder{color:#637087}input:focus{outline:2px solid #2547ec;outline-offset:2px}.phone{display:flex;align-items:center;background:white;border:1px solid #d7dce6;border-radius:12px;margin-top:7px}.prefix{padding-left:14px;font-weight:400;font-size:16px}.phone input{margin:0;border:0;background:transparent}.phone:focus-within{outline:2px solid #2547ec;outline-offset:2px}.phone input:focus{outline:0}.submit{min-height:54px;width:100%;border:0;border-radius:14px;background:#d6ff55;color:#151b32;font-weight:800;font-size:17px}.fine{font-size:12px;line-height:1.6;text-align:center;color:#59657c;margin:14px 0 0}#form-status{font-size:14px;line-height:1.5;color:#151b32;margin:16px 0 0}.socials{margin-top:26px}.social{min-height:65px;display:flex;align-items:center;gap:16px;border-bottom:1px solid #e8ebf1;text-decoration:none;font-size:17px;font-weight:700;transition:color .2s}.social:hover{color:#2547ec}.brand-icon{width:24px;height:24px;fill:#2547ec;flex:none}.arrow{margin-left:auto;width:20px;height:20px;color:#59657c}footer{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:28px;font-size:12px;color:#637087}footer a{min-height:44px;display:grid;place-items:center;font-size:14px;text-underline-offset:4px}[hidden]{display:none!important}@keyframes reveal{from{opacity:.35;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}@media(max-width:360px){.page{padding:24px 16px}.primary strong{font-size:20px}}

.social-section{margin-top:34px;text-align:center}.social-section h2{font-size:13px;line-height:1.5;letter-spacing:.16em;text-transform:uppercase;color:#686967;font-weight:800;margin:0 0 20px}.socials{display:flex;justify-content:center;gap:16px;margin:0}.social{width:60px;height:60px;min-height:60px;flex:none;display:flex;justify-content:center;align-items:center;border:3px solid #dedbd2;border-radius:50%;background:#fff;color:#232323;transition:transform .2s,border-color .2s}.social .brand-icon{width:27px;height:27px;fill:currentColor}.social span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.social:hover{color:#232323;border-color:#bdb8aa}.social:active{transform:scale(.94)}.social[aria-disabled=true]{cursor:default}@media(max-width:360px){.socials{gap:12px}.social{width:56px;height:56px;min-height:56px}}

.wordmark{width:128px;min-height:44px;margin-bottom:24px}.wordmark img{display:block;width:100%;height:auto}

/* Booking wizard, adapted from the platform reference to a white surface. */
body.booking-open{overflow:hidden}#booking-dialog{border:0;border-radius:26px;background:#fff;color:#191920;padding:0;width:min(600px,calc(100% - 24px));max-height:calc(100dvh - 32px);margin:auto;overflow:auto;overscroll-behavior:contain;box-shadow:0 24px 80px #151b3226;opacity:0;transform:translateY(16px) scale(.985);transition:opacity .22s ease,transform .22s ease}#booking-dialog.is-open{opacity:1;transform:none}#booking-dialog::backdrop{background:#151b3260;opacity:0;transition:opacity .22s ease}#booking-dialog.is-open::backdrop{opacity:1}.booking-shell{padding:26px}.booking-header{display:flex;align-items:center;gap:12px;margin-bottom:24px}.booking-header>div{flex:1;min-width:0}.booking-header h2{font-size:23px;line-height:1.15;font-weight:800;margin:3px 0 0}.booking-header h2:focus{outline:none}.booking-header #booking-step{font-size:14px;color:#666b77;font-weight:700}.booking-icon{width:44px;height:44px;flex:none;display:grid;place-items:center;background:#f5f5f7;border:1px solid #e0e1e5;border-radius:13px;color:#191920;font-size:28px}.booking-icon svg{width:22px;height:22px}.booking-progress{display:flex;justify-content:center;align-items:flex-start;margin:0 0 28px}.booking-progress button{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:100px;border:0;background:none;font-weight:800;color:#747884;font-size:14px;padding:0;min-height:66px}.booking-progress button span{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:2px solid #dedfe4;background:#f6f6f8}.booking-progress button[aria-current=step]{color:#191920}.booking-progress button[aria-current=step] span{background:#caff4f;border-color:#caff4f;color:#191920}.booking-progress button.done span{background:#2547ec;border-color:#2547ec;color:white}.booking-progress i{width:72px;height:2px;background:#dedfe4;margin-top:18px}.booking-hint{font-size:15px;color:#626878;line-height:1.5;margin:0 0 18px}.booking-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.booking-fields label{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#626878}.booking-fields select{display:block;width:100%;min-height:52px;font:800 16px Nunito,sans-serif;margin-top:7px;padding:10px 12px;background:#f6f6f8;border:1px solid #dedfe4;border-radius:14px;color:#191920}.booking-teacher{display:flex;align-items:center;gap:16px;padding:20px;border:1px solid #e2e3e7;border-radius:22px;margin:4px 0 18px}.booking-teacher img{width:68px;height:68px;border:3px solid #caff4f;border-radius:50%;object-fit:cover}.booking-teacher>div{display:flex;flex-direction:column;align-items:flex-start;gap:7px}.teacher-label{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#626878;font-weight:800}.booking-teacher strong{font-size:21px;line-height:1.15}.teacher-subject{background:#2547ec;color:#fff;border-radius:30px;padding:5px 10px;font-size:12px;font-weight:800}.booking-service{padding:0 2px 22px}.booking-service>span{display:block;color:#626878;font-size:12px;text-transform:uppercase;letter-spacing:.06em;font-weight:800;margin-bottom:6px}.booking-service strong{font-size:23px;font-weight:800}.booking-service p{margin:5px 0 0;font-size:14px;color:#626878}.booking-primary{width:100%;min-height:54px;padding:14px 20px;background:#caff4f;border:0;border-radius:16px;color:#191920;font-weight:800;font-size:18px;transition:background .18s,transform .18s}.booking-primary:active{transform:scale(.985)}.booking-primary:disabled{background:#e9ebed;color:#777b85;cursor:default}.booking-calendar{border:1px solid #e2e3e7;border-radius:20px;padding:12px}.month-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.month-header h3{font-size:18px;margin:0;text-transform:capitalize}.booking-icon:disabled{opacity:.35;cursor:default}.calendar-week,.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;text-align:center}.calendar-week{font-size:12px;color:#666b77;margin-bottom:8px}.calendar-days button{height:44px;min-width:0;border:0;border-radius:12px;background:#f5f5f7;color:#191920;font:800 15px Nunito,sans-serif;margin:2px 0}.calendar-days button:disabled{background:transparent;color:#b4b6bf;cursor:default}.calendar-days button.today{box-shadow:inset 0 0 0 2px #2547ec}.calendar-days button[aria-pressed=true],#time-options button[aria-pressed=true]{background:#caff4f;color:#191920;border-color:#caff4f}.booking-times{margin:22px 0}.booking-times h3{font-size:18px;margin:0}.booking-times p{font-size:14px;color:#626878;margin:6px 0 12px}#time-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}#time-options button{min-height:46px;border-radius:13px;border:1px solid #dedfe4;background:#f5f5f7;font:800 16px Nunito,sans-serif;color:#191920}.booking-times .booking-timezone{font-size:12px;line-height:1.5;margin-top:12px}.booking-summary{border-top:1px dashed #d8dae0;padding-top:18px;margin-bottom:20px;font-size:16px;font-weight:800;line-height:1.5}.booking-note{text-align:center;font-size:12px;color:#626878}#booking-status{font-size:14px;line-height:1.5;background:#f5f5f7;padding:14px;border-radius:12px}#booking-first,#booking-second{animation:reveal .22s ease-out}@media(max-width:480px){.booking-shell{padding:20px 14px}.booking-header{gap:8px}.booking-header h2{font-size:20px}.booking-fields{grid-template-columns:1fr}.booking-fields label{margin-bottom:10px}.booking-teacher{padding:16px 12px}.booking-calendar{padding:8px}.booking-service strong{font-size:22px}}@media(prefers-reduced-motion:reduce){#booking-dialog,#booking-dialog::backdrop{transition:none}#booking-first,#booking-second{animation:none}}
#booking-dialog{max-width:calc(100% - 24px)}
@media(max-width:380px){#booking-dialog{width:100%;max-width:100%;max-height:100dvh;border-radius:0}.booking-shell{padding:20px 6px}.booking-calendar{padding:0;border:0}.calendar-days,.calendar-week{gap:0}.calendar-days button{border-radius:10px}.booking-header{gap:6px}.booking-header h2{font-size:19px}}

/* Bottom sheet: fixed top gap, independent content scrolling, drag handle. */
#booking-dialog{inset:auto 0 0;width:100%;max-width:100%;height:calc(100dvh - max(28px,env(safe-area-inset-top)));max-height:calc(100dvh - max(28px,env(safe-area-inset-top)));margin:0;border-radius:26px 26px 0 0;overflow:hidden;opacity:1;transform:translateY(100%);transition:transform .32s cubic-bezier(.22,.8,.25,1);box-shadow:0 -12px 60px #151b3226}#booking-dialog.is-open{transform:translateY(0)}#booking-dialog.is-dragging{transition:none}#booking-dialog::backdrop{transition:opacity .32s ease}#booking-handle{display:flex;align-items:center;justify-content:center;width:100%;height:44px;padding:0;border:0;background:#fff;border-radius:26px 26px 0 0;touch-action:none;cursor:grab;color:#a8abb3}#booking-handle:active{cursor:grabbing}#booking-handle span{display:block;width:42px;height:5px;border-radius:10px;background:currentColor;pointer-events:none}.booking-scroll{height:calc(100% - 44px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.booking-shell{max-width:620px;margin:auto;padding:0 24px max(28px,env(safe-area-inset-bottom))}.booking-header{margin-bottom:22px}.booking-progress button{min-width:82px;flex-shrink:0}.booking-progress i{flex:1;max-width:70px}.booking-progress button:disabled{cursor:default}#booking-third{animation:reveal .22s ease-out}#booking-third .booking-summary{border:0;background:#f6f7f9;border-radius:14px;padding:16px;font-size:16px}#booking-next-contact{margin-bottom:6px}@media(max-width:480px){.booking-shell{padding:0 16px max(28px,env(safe-area-inset-bottom))}.booking-progress button{font-size:13px;min-width:80px}.booking-header h2{font-size:20px}}@media(max-width:380px){.booking-shell{padding-left:6px;padding-right:6px}.booking-progress button{min-width:78px}.booking-header h2{font-size:19px}}@media(prefers-reduced-motion:reduce){#booking-dialog,#booking-dialog::backdrop{transition:none}#booking-third{animation:none}}

/* Compact sheet heading and step indicator. */
#booking-handle{height:44px;align-items:flex-start;padding-top:12px}.booking-scroll{height:calc(100% - 44px)}.booking-header{gap:10px;margin-top:0;margin-bottom:12px}.booking-header #booking-step{font-size:12px;line-height:1.25}.booking-header h2{font-size:20px;margin-top:2px;line-height:1.15}.booking-progress{margin-bottom:18px}.booking-progress button{gap:4px;min-height:52px;font-size:12px}.booking-progress button span{width:30px;height:30px;font-size:13px}.booking-progress i{margin-top:15px}.booking-header .booking-icon{border-radius:12px}@media(max-width:480px){.booking-header{gap:8px}.booking-header h2{font-size:19px}.booking-progress button{font-size:12px}}

.booking-teacher{display:block;padding:18px 16px}.booking-teacher>.teacher-identity{display:flex;flex-direction:row;align-items:center;gap:16px}.teacher-identity>div{display:flex;flex-direction:column;align-items:flex-start;gap:9px}.teacher-photo{display:block;flex:none;width:80px;height:80px;border:3px solid #caff4f;border-radius:50%;overflow:hidden}.booking-teacher .teacher-photo img{display:block;width:100%;height:100%;border:0;border-radius:0;object-fit:cover;object-position:50% 30%;transform:scale(1.7);transform-origin:50% 35%}.teacher-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0 0;padding-top:16px;border-top:1px solid #eceef1}.teacher-facts dt{font-size:19px;font-weight:800;line-height:1.2}.teacher-facts dd{font-size:12px;color:#626878;margin:5px 0 0;line-height:1.35}@media(max-width:360px){.booking-teacher{padding:16px 12px}.booking-teacher>.teacher-identity{gap:12px}.teacher-facts dt{font-size:17px}}

/* Text step navigation, matching the supplied breadcrumb reference. */
.booking-progress{justify-content:flex-start;align-items:center;gap:10px;margin:0 0 18px}.booking-progress button{display:block;min-width:0;min-height:44px;padding:0;background:none;border:0;font-size:15px;font-weight:700;line-height:1.3;white-space:nowrap;color:#858995;flex-shrink:0}.booking-progress button[aria-current=step]{color:#191920;font-weight:800}.booking-progress button.done{color:#191920}.booking-progress i{display:block;flex:0 0 7px;width:7px;height:7px;margin:0 3px 0 0;border-right:1.8px solid #9498a1;border-top:1.8px solid #9498a1;background:none;transform:rotate(45deg)}@media(max-width:360px){.booking-progress{gap:8px}.booking-progress button{font-size:14px}}

/* Clear booking hierarchy and a persistent bottom action. */
#booking-dialog[open]{display:flex;flex-direction:column}#booking-handle{flex:none}.booking-scroll{flex:1;min-height:0;height:auto}.booking-shell{padding:0 24px 24px;width:100%;max-width:600px}.booking-header{align-items:flex-start;gap:14px;margin-bottom:12px}.booking-header>div{align-self:center}.booking-header h2{font-size:26px;font-weight:800;letter-spacing:-.025em;line-height:1.16;margin:0;text-wrap:balance}.booking-header .booking-icon{background:#f5f6f8;border-color:transparent;border-radius:50%}.booking-progress{gap:12px;margin-bottom:24px}.booking-progress button{font-size:14px;font-weight:700;color:#747986}.booking-progress button[aria-current=step]{color:#2547ec;font-weight:800}.booking-progress button.done{color:#191920}.booking-intro{font-size:15px;line-height:1.5;color:#626878;margin:0 0 26px}.teacher-section-title{font-size:16px;font-weight:800;line-height:1.3;margin:0 0 12px}.booking-teacher{padding:22px 18px;border:1px solid #e5e7eb;border-radius:22px;margin:0}.booking-teacher>.teacher-identity{gap:16px}.teacher-photo{width:88px;height:88px;border:2px solid #e5e7eb}.booking-teacher strong{font-size:22px;letter-spacing:-.02em}.teacher-subject{background:transparent;color:#626878;padding:0;font-size:14px;font-weight:400;border-radius:0}.teacher-facts{margin-top:22px;padding-top:20px;gap:12px}.teacher-facts dt{font-size:21px;letter-spacing:-.02em}.teacher-facts dd{font-size:12px;margin-top:6px}.booking-actions{flex:none;display:block;box-sizing:border-box;width:100%;max-width:600px;margin:0 auto;padding:16px 24px max(18px,env(safe-area-inset-bottom));background:white;border-top:1px solid #f0f1f3}.booking-actions .booking-primary{min-height:56px;border-radius:16px;font-size:17px;margin:0;display:flex;align-items:center;justify-content:center;gap:12px}.booking-actions .booking-primary:not([type=submit])::after{content:'';width:7px;height:7px;border-right:2px solid currentColor;border-top:2px solid currentColor;transform:rotate(45deg)}.booking-actions p{text-align:center;font-size:12px;line-height:1.4;color:#6b7080;margin:10px 0 0}#booking-third .booking-summary{margin-bottom:26px}#booking-time-summary{margin-bottom:0}.booking-times{margin-bottom:20px}#booking-dialog[data-step="1"] .booking-progress{margin-bottom:12px}@media(max-width:480px){.booking-shell{padding:0 20px 24px}.booking-actions{padding-left:20px;padding-right:20px}.booking-header h2{font-size:26px}.booking-teacher{padding:20px 16px}.booking-calendar{padding:4px}.calendar-days{gap:2px}}@media(max-width:360px){.booking-shell{padding-left:12px;padding-right:12px}.booking-actions{padding-left:12px;padding-right:12px}.booking-header h2{font-size:24px}.booking-teacher{padding:18px 12px}.teacher-photo{width:72px;height:72px}.booking-teacher strong{font-size:20px}.teacher-facts dt{font-size:18px}.teacher-facts dd{font-size:11px}.booking-calendar{margin-left:-6px;margin-right:-6px;padding:0;border:0}.calendar-days{gap:0}.booking-progress{gap:10px}}

.booking-header{flex-wrap:wrap;row-gap:12px;margin-bottom:8px}#booking-subtitle{flex:0 0 100%;margin:0;font-size:15px;line-height:1.5;font-weight:400;color:#626878}.booking-progress{margin-bottom:24px}#booking-dialog[data-step="1"] .booking-progress{margin-bottom:24px}

.booking-header{margin-bottom:26px}

/* Reference-style horizontal date selection and two-column time periods. */
.booking-date-strip{border-top:1px solid #e4e5e9;border-bottom:1px solid #e4e5e9;padding:8px 0 4px}.strip-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.strip-heading h3{margin:0;font-size:20px;font-weight:800;text-transform:capitalize;letter-spacing:-.02em}#date-today{padding:0 0 0 12px;border:0;background:none;color:#626878;min-height:44px;font-size:13px;font-weight:600;text-decoration:none}.date-strip{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.date-strip::-webkit-scrollbar{display:none}.date-strip button{flex:0 0 calc(100% / 7);min-width:44px;height:82px;padding:4px 0;border:0;background:transparent;color:#191920;display:flex;flex-direction:column;align-items:center;gap:8px;scroll-snap-align:start;font-family:inherit}.date-weekday{font-size:13px;font-weight:400;line-height:18px}.date-strip strong{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;font-size:19px;font-weight:800}.date-strip button[aria-pressed=true] strong{background:#caff4f;color:#191920}.date-strip button[aria-current=date]:not([aria-pressed=true]) strong{box-shadow:inset 0 0 0 1.5px #2547ec}.strip-controls{display:flex;align-items:center;justify-content:space-between;color:#757b88}.strip-controls span{font-size:11px}.strip-controls button{width:44px;height:44px;font:26px Nunito,sans-serif;border:0;background:none;color:#191920}.strip-controls button:disabled{opacity:.25;cursor:default}.schedule-zone{font-size:13px;color:#626878;line-height:1.5;margin:18px 0 26px}.booking-times{margin:0}#time-options{display:block}.time-period{margin:0 0 26px}.booking-times .time-period h3{font-size:18px;margin:0 0 14px;font-weight:800}.time-period-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#time-options button{width:100%;min-height:48px;border:1.5px solid #dfe1e7;background:#fff;border-radius:11px;color:#191920;font-size:17px;font-weight:700;transition:background .18s,border-color .18s}#time-options button[aria-pressed=true]{background:#caff4f;border-color:#caff4f}#time-options button:disabled{background:#ededf1;color:#92949f;border-color:#e2e2e8;text-decoration:line-through;cursor:default}#booking-second .booking-timezone{font-size:12px;margin:0 0 20px}#time-hint{margin:0 0 20px;color:#626878}.booking-date-strip .date-strip button:focus-visible{outline-offset:-3px}@media(max-width:360px){.booking-date-strip{margin-left:-6px;margin-right:-6px}.strip-heading h3{font-size:18px}}

/* Floating action area shared by all booking steps. */
.booking-scroll{padding-bottom:104px;box-sizing:border-box}
.booking-actions{position:absolute;left:0;right:0;bottom:0;z-index:2;border:0;background:transparent;padding-top:24px;padding-bottom:max(20px,env(safe-area-inset-bottom));isolation:isolate}
.booking-actions::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(to bottom,rgba(255,255,255,0),rgba(255,255,255,.72) 48%,rgba(255,255,255,.92));backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);mask-image:linear-gradient(to bottom,transparent,#000 38%);-webkit-mask-image:linear-gradient(to bottom,transparent,#000 38%);pointer-events:none}
.booking-actions .booking-primary{margin:0;min-height:56px}

/* Consistent heading and spacing across the three booking steps. */
.booking-header{align-items:flex-start;column-gap:14px;row-gap:12px;margin-bottom:26px}
.booking-header>div{align-self:center}
.booking-header h2{font-size:clamp(22px,6.6vw,26px);line-height:1.2;letter-spacing:-.025em;text-align:left;text-wrap:pretty}
.booking-header .booking-icon{width:44px;height:44px;min-width:44px;min-height:44px}
#booking-subtitle{font-size:15px;line-height:1.5;margin:0}
#booking-third .booking-summary{line-height:1.5;overflow-wrap:normal}

/* Selected first-step composition: offer, format, teacher. */
#booking-dialog[data-step="1"] .booking-header{margin-bottom:24px}
.lesson-count{display:inline-block;position:relative;isolation:isolate}
.lesson-count::after{content:'';position:absolute;left:-2px;right:-3px;bottom:0;height:6px;border-radius:8px;background:#caff4f;transform:rotate(-6deg);z-index:-1}
.lesson-format{display:flex;gap:6px;margin-bottom:24px}
.lesson-format>span{display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;background:#f5f5f7;border-radius:30px;padding:10px 9px;font-size:12px;line-height:20px;color:#343640}
.lesson-format svg{width:18px;height:18px;flex:none;color:#191920}
#booking-first .booking-teacher{background:#f6f6f7;border:0;border-radius:26px;padding:24px 18px}
#booking-first .teacher-photo{border:2px solid #fff}
#booking-first .teacher-facts{gap:0;margin-top:24px;padding-top:22px;border-color:#e4e5e9;text-align:center}
#booking-first .teacher-facts>div+div{border-left:1px solid #e1e2e6}
#booking-first .teacher-facts dt{font-size:21px}
#booking-first .teacher-facts dd{font-size:12px}
@media(min-width:481px){.lesson-format>span{flex:1;font-size:14px;padding:12px}.lesson-format{gap:10px}}
@media(max-width:360px){.lesson-format{gap:4px}.lesson-format>span{gap:4px;padding:9px 6px;font-size:11px}.lesson-format svg{width:16px;height:16px}#booking-first .booking-teacher{padding:20px 12px}#booking-first .teacher-facts dt{font-size:18px}#booking-first .teacher-facts dd{font-size:11px}}

/* Selected centered portrait concept, scoped to the first step. */
#booking-dialog[data-step="1"] .booking-header{position:relative;padding-top:38px;margin-bottom:24px;display:block}
#booking-dialog[data-step="1"] #booking-close{position:absolute;right:0;top:0}
#booking-dialog[data-step="1"] #booking-title{display:flex;align-items:center;gap:12px;line-height:1.08;letter-spacing:-.035em;text-wrap:initial}
#booking-dialog[data-step="1"] .lesson-count{font-size:122px;line-height:.95;font-weight:900;color:#caff4f;flex:none}
#booking-dialog[data-step="1"] .lesson-count::after{display:none}
.lesson-heading-words{font-size:clamp(28px,7.9vw,36px);max-width:320px}
.lesson-rays{position:absolute;width:5px;height:18px;background:#caff4f;border-radius:5px;right:5px;top:-14px;transform:rotate(12deg)}
.lesson-rays::before,.lesson-rays::after{content:'';position:absolute;width:5px;height:18px;background:#caff4f;border-radius:5px}
.lesson-rays::before{left:15px;top:8px;transform:rotate(32deg)}.lesson-rays::after{left:24px;top:24px;transform:rotate(65deg)}
#booking-first .lesson-format{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:0;margin:0 0 28px}
#booking-first .lesson-format>span{flex-direction:column;gap:8px;background:transparent;border-radius:0;padding:0 6px;font-size:14px;line-height:20px}
#booking-first .lesson-format>span+span{border-left:1px solid #e1e2e6}
#booking-first .lesson-format svg{width:26px;height:26px}
#booking-first .booking-teacher{padding:0;background:transparent;border:0;border-radius:0}
#booking-first .booking-teacher>.teacher-identity{flex-direction:column;gap:14px;text-align:center}
#booking-first .teacher-photo{width:150px;height:150px;border:5px solid #f4f4f6}
#booking-first .teacher-identity>div{align-items:center;gap:6px}
#booking-first .booking-teacher strong{font-size:28px;line-height:1.15}
#booking-first .teacher-subject{font-size:17px}
#booking-first .teacher-facts{background:#f4fbdf;border:0;border-radius:22px;margin-top:24px;padding:22px 10px}
#booking-first .teacher-facts dt{font-size:24px;line-height:1.2}
#booking-first .teacher-facts dd{font-size:13px;line-height:1.35;margin-top:8px}
#booking-first .teacher-facts>div+div{border-color:#dce2cf}
@media(min-width:481px){#booking-dialog[data-step="1"] .booking-shell{max-width:480px}#booking-dialog[data-step="1"] #booking-title{justify-content:center}}
@media(max-width:360px){#booking-dialog[data-step="1"] .lesson-count{font-size:104px}.lesson-heading-words{font-size:28px}#booking-first .lesson-format>span{font-size:12px;padding:0 3px}#booking-first .teacher-facts dt{font-size:21px}#booking-first .teacher-facts dd{font-size:11px}}
@media(max-height:740px){#booking-dialog[data-step="1"] .booking-header{padding-top:30px;margin-bottom:20px}#booking-dialog[data-step="1"] .lesson-count{font-size:98px}#booking-first .lesson-format{margin-bottom:20px}#booking-first .teacher-photo{width:122px;height:122px}#booking-first .teacher-facts{margin-top:18px;padding-top:18px;padding-bottom:18px}#booking-first .booking-teacher strong{font-size:25px}}

/* Compact lesson-format row. */
#booking-first .lesson-format{margin-bottom:20px}
#booking-first .lesson-format>span{gap:4px;font-size:13px;line-height:18px;padding:0 4px}
#booking-first .lesson-format svg{width:20px;height:20px}
@media(max-width:360px){#booking-first .lesson-format>span{font-size:12px}}

#booking-grade{display:block;width:100%;margin-top:7px;height:54px;padding:12px 40px 12px 14px;border:1px solid #d7dce6;border-radius:12px;background-color:#fff;color:#151b32;font:700 16px Nunito,sans-serif;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23637087' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}
#booking-grade:invalid{color:#637087}#booking-grade option{color:#151b32}#booking-grade:focus{outline:2px solid #2547ec;outline-offset:2px}

.grade-trigger{position:relative;width:100%;min-height:72px;padding:29px 48px 9px 18px;border:2px solid transparent;border-radius:12px;background:#fff;text-align:left;color:#18234b;font:400 17px/24px Nunito,sans-serif;cursor:pointer}
.grade-trigger #grade-value{opacity:0}
.grade-control:focus-within .grade-trigger #grade-value,.grade-control.has-grade .grade-trigger #grade-value{opacity:1}
.grade-trigger svg{position:absolute;right:18px;top:24px;width:20px;height:20px;fill:none;stroke:#18234b;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform 180ms}
.grade-trigger[aria-expanded=true] svg{transform:rotate(180deg)}
.grade-trigger:focus{outline:2px solid #b7ceff;outline-offset:3px;border-color:#244ce8}
.grade-trigger[aria-invalid=true]{border-color:#b92330;background:#fff6f6}
.grade-trigger:disabled{opacity:.7;cursor:wait}
.grade-options{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:12;padding:6px;background:#fff;border-radius:14px;box-shadow:0 12px 28px #071c6840;color:#18234b}
.grade-options[hidden]{display:none}
.grade-option{min-height:48px;display:flex;align-items:center;padding:10px 14px;border-radius:9px;font:600 17px/24px Nunito,sans-serif;cursor:pointer}
.grade-option.is-active{background:#eef2ff;color:#244ce8}
.grade-option[aria-selected=true]{color:#244ce8;background:#eef2ff}
.grade-option[aria-selected=true]:after{content:'';width:6px;height:12px;margin-left:auto;margin-right:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
@media(hover:hover){.grade-option:hover{background:#eef2ff;color:#244ce8}}
@media(prefers-reduced-motion:reduce){.grade-trigger svg{transition:none}}


.booking-grade-field{position:relative;margin:0 0 16px}
.booking-grade-field>label{margin:0 0 7px}
.booking-grade-field .grade-trigger{min-height:54px;padding:12px 44px 12px 14px;border:1px solid #d7dce6;font-size:16px;line-height:28px;font-weight:700;color:#151b32}
.booking-grade-field .grade-trigger #grade-value{opacity:1;color:#637087}
.booking-grade-field.has-grade .grade-trigger #grade-value{color:#151b32}
.booking-grade-field .grade-trigger svg{right:14px;top:16px}
.booking-grade-field .grade-trigger:focus{outline:2px solid #b7ceff;outline-offset:3px;border-color:#244ce8}
#booking-grade-error{font-size:13px;color:#b92330;margin:8px 0 0}

/* Approved request-summary confirmation. */
.confirmation-request{border:1px solid #e0e4eb;border-radius:14px;padding:20px 18px;background:#fff}
.confirmation-request h3{display:flex;align-items:center;gap:14px;margin:0 0 22px;font-size:20px;line-height:1.3;font-weight:800}
.request-check{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:50%;background:#caff4f;color:#191920}
.request-check svg{width:22px;height:22px}
.request-details{display:grid;gap:15px;margin:0;font-size:16px;line-height:1.45}
.request-details>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);gap:12px}
.request-details dt{color:#78808d}.request-details dd{margin:0;color:#191920;overflow-wrap:break-word}
.confirmation-reassurance{margin:22px 0 0;padding:16px 18px;background:#f5f6f8;border-radius:14px;font-size:15px;line-height:1.5;color:#626878}
#booking-finish::after{display:none}.booking-actions:has(#booking-finish:not([hidden])) .booking-primary{margin:0}
@media(max-width:360px){.confirmation-request{padding:18px 14px}.request-details{font-size:14px}.request-details>div{gap:8px}.confirmation-reassurance{padding:14px}}

/* Shared vertical header levels; Back remains before the title. */
#booking-dialog .booking-header{display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:48px auto;gap:12px 14px;align-items:center;padding-top:0;margin:0 0 26px;position:relative}
#booking-dialog[data-step="3"] .booking-header{grid-template-columns:44px minmax(0,1fr) 44px}
#booking-dialog .booking-header>div{grid-column:1;grid-row:1;align-self:center}
#booking-dialog[data-step="3"] .booking-header>div{grid-column:2}
#booking-dialog #booking-title{font-size:24px;line-height:1.2;margin:0;letter-spacing:-.025em;text-wrap:initial}
#booking-dialog #booking-back{grid-column:1;grid-row:1}
#booking-dialog #booking-close{grid-column:-2;grid-row:1;position:static}
#booking-dialog #booking-subtitle{grid-column:1 / -1;grid-row:2;font-size:15px;line-height:1.5;color:#626878;margin:0;min-height:45px}
@media(max-width:360px){#booking-dialog #booking-title{font-size:20px}#booking-dialog #booking-subtitle{min-height:67.5px}}

/* Flashcards: white game entry with a black controller tile. */


/* Same bottom-sheet motion as the booking form. */
#flash-dialog{inset:auto 0 0;width:100%;max-width:100%;height:calc(100dvh - max(28px,env(safe-area-inset-top)));max-height:calc(100dvh - max(28px,env(safe-area-inset-top)));margin:0;padding:0;border:0;border-radius:26px 26px 0 0;background:#fff;overflow:hidden;transform:translateY(100%);transition:transform .32s cubic-bezier(.22,.8,.25,1);box-shadow:0 -12px 60px #151b3226}
#flash-dialog.is-open{transform:translateY(0)}   /* closed → translateY(100dvh − gap): the box is taller than the screen (see «Одна поверхня») */
#flash-dialog::backdrop{background:rgba(12,14,32,.42);-webkit-backdrop-filter:blur(18px) saturate(1.15);backdrop-filter:blur(18px) saturate(1.15);transition:opacity .35s ease;opacity:0}   /* як .sheet-bd у грі */   /* stronger blur behind the game (Vlad 12.10.2026) */
#flash-dialog.is-open::backdrop{opacity:1}
#flash-dialog iframe{display:block;border:0;width:100%;height:calc(100dvh - var(--sheet-gap,28px));background:#fff}
@media(prefers-reduced-motion:reduce){#flash-dialog,#flash-dialog::backdrop{transition:none}}

/* Visual reference: /Users/a77/Desktop/index.html, .cta-main. Booking behavior unchanged. */
#open-form.lesson-offer{position:relative;overflow:hidden;display:flex;align-items:center;gap:14px;padding:22px;border-radius:20px;background:linear-gradient(135deg,#4747f4 0%,#2e2ee0 100%);box-shadow:0 14px 32px rgba(71,71,244,.25);color:#fff;transition:transform .2s ease,box-shadow .2s ease}
.lesson-offer-content{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.lesson-offer-tag{display:inline-flex;align-items:center;align-self:flex-start;max-width:100%;padding:5px 10px;margin-bottom:6px;border-radius:100px;background:#c7f068;color:#0a0a0a;font-size:10px;line-height:1.4;font-weight:800;letter-spacing:1.25px;text-transform:uppercase}
#open-form.lesson-offer strong{font-size:24px;font-weight:800;letter-spacing:-.4px;line-height:1.2}
#open-form.lesson-offer small{font-size:13px;line-height:1.5;font-weight:400;color:#f0f0ff;margin-top:2px}
.lesson-offer-action{display:flex;align-items:center;gap:5px;color:#c7f068;font-size:14px;font-weight:800;line-height:1.5;margin-top:8px}
#open-form .lesson-offer-action svg{width:18px;height:18px}
.lesson-offer-arrow{display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;border-radius:50%;background:#c7f068;color:#0a0a0a;box-shadow:0 4px 12px rgba(199,240,104,.35);transition:transform .2s ease}
#open-form .lesson-offer-arrow svg{width:24px;height:24px}
@media(hover:hover) and (pointer:fine){#open-form.lesson-offer:hover{transform:translateY(-2px);box-shadow:0 18px 36px rgba(71,71,244,.32)}#open-form.lesson-offer:hover .lesson-offer-arrow{transform:rotate(15deg)}}
#open-form.lesson-offer:active{transform:scale(.985)}
@media(max-width:360px){#open-form.lesson-offer{padding:20px 16px;gap:12px}#open-form.lesson-offer strong{font-size:22px}.lesson-offer-tag{font-size:9px;letter-spacing:1px}.lesson-offer-arrow{width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){#open-form.lesson-offer,.lesson-offer-arrow{transition:none}#open-form.lesson-offer:hover,#open-form.lesson-offer:active,#open-form.lesson-offer:hover .lesson-offer-arrow{transform:none}}

/* Unified teacher header — approved school-led reference. */
.page{padding-top:0}
.profile{margin:0 -24px 28px;text-align:center}
.school-masthead{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:132px;padding:20px 26px 28px;background:#4747f4;color:#fff}
.school-masthead .wordmark{width:132px;flex:0 0 132px;min-height:44px;margin:0;text-decoration:none}
.school-masthead .wordmark img{filter:invert(1) grayscale(1) brightness(2);mix-blend-mode:screen}
.school-masthead .wordmark:focus-visible{outline-color:#caff4f}
.profile .school-description{margin:0;color:#fff;text-align:left;font-size:18px;font-weight:800;line-height:1.25}
.teacher-profile{padding:0 18px}
.profile .portrait{position:relative;width:120px;height:120px;object-position:center 24%;border:5px solid #fff;margin:-30px auto 12px;background:#fff}
.profile h1{font-size:32px;line-height:1.2;margin:0;font-weight:800;letter-spacing:-.025em;overflow-wrap:anywhere;text-wrap:balance}
.profile .profile-subject{margin:5px 0 0;color:#4747f4;font-size:22px;font-weight:700;line-height:1.25}
.profile .profile-affiliation{margin:5px 0 0;color:#626b7d;font-size:16px;line-height:1.4}
.profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:25px 0 0;padding:0}
.profile-stats>div{display:flex;flex-direction:column;align-items:center;gap:5px;padding:0 8px}
.profile-stats>div+div{border-left:1px solid #d6d9e0}
.profile-stats dt{order:2;font-size:13px;line-height:1.35;color:#626b7d;text-wrap:balance}
.profile-stats dd{order:1;margin:0;font-size:25px;line-height:1.2;font-weight:700;letter-spacing:-.025em;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:360px){.profile{margin-left:-16px;margin-right:-16px}.school-masthead{min-height:120px;padding:18px 20px 28px;gap:16px}.school-masthead .wordmark{width:112px;flex-basis:112px}.profile .school-description{font-size:16px}.profile h1{font-size:29px}.profile .profile-subject{font-size:20px}.teacher-profile{padding:0 12px}.profile-stats dd{font-size:22px}.profile-stats dt{font-size:12px}.profile-stats>div{padding:0 5px}}

/* One lightweight flight scene; the school label stays still. */
.school-masthead{position:relative;isolation:isolate;overflow:hidden}
.school-masthead .wordmark{position:relative;z-index:1;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;touch-action:pan-y pinch-zoom}
.school-masthead .wordmark img{position:relative;z-index:1;filter:brightness(0) invert(1);mix-blend-mode:normal;pointer-events:none}
.logo-flight{--pull:0;display:block;transform:translate3d(calc(var(--pull)*7px),0px,0) rotate(0deg);transform-origin:60% 55%;transition:transform .65s cubic-bezier(.34,1.56,.64,1)}
.school-masthead.is-pulling .logo-flight{transition:none}
.logo-drift{position:relative;display:block;animation:logo-hover 3s ease-in-out infinite;animation-play-state:paused}
/* Rainbow palette and interleaved stepped waves adapted from cristurm/nyan-cat
   (Cristina Sturm, MIT). See assets/nyan-rainbow-LICENSE.txt. */
.logo-trail{position:absolute;right:calc(100% - 20px);top:calc(50% - 21px);width:112px;height:42px;transform:translateX(calc(var(--pull)*-6px));transform-origin:right center;transition:transform .65s cubic-bezier(.34,1.56,.64,1);pointer-events:none}
.school-masthead.is-pulling .logo-trail{transition:none}
.logo-trail i{position:absolute;inset:0;display:block;background:linear-gradient(to bottom,#f00 0 7px,#f90 7px 14px,#ff0 14px 21px,#3f0 21px 28px,#09f 28px 35px,#63f 35px 42px);-webkit-mask-image:repeating-linear-gradient(to right,#000 0 18px,transparent 18px 36px);mask-image:repeating-linear-gradient(to right,#000 0 18px,transparent 18px 36px);animation:nyan-rainbow-wave .7s steps(2,end) infinite;animation-play-state:paused}
.logo-trail i:nth-child(2){-webkit-mask-position:18px 0;mask-position:18px 0;animation-delay:-.35s}
.logo-drift{left:12px}
.flight-sparks{position:absolute;inset:0 auto auto 0;width:70%;height:100%;pointer-events:none;color:#dbe9ff}
.flight-sparks path{stroke:currentColor;stroke-width:1.5;stroke-linecap:round;animation:flight-pass 3.2s linear infinite;animation-play-state:paused;opacity:0}
.flight-sparks>svg:nth-child(2) path{animation-delay:-1.2s;stroke:#caff4f}.flight-sparks>svg:nth-child(3) path{animation-delay:-2.4s}.flight-sparks>svg:nth-child(4) path{animation-delay:-.7s}
.school-masthead[data-flight="active"] .logo-drift,.school-masthead[data-flight="active"] .logo-trail i,.school-masthead[data-flight="active"] .flight-sparks path{animation-play-state:running}
@keyframes logo-hover{0%,100%{transform:translate3d(0,2px,0) rotate(-1.5deg)}50%{transform:translate3d(2px,-3px,0) rotate(1.5deg)}}
@keyframes nyan-rainbow-wave{from{transform:translateY(2px)}to{transform:translateY(-4px)}}
@keyframes flight-pass{0%{transform:translateX(22px);opacity:0}20%,70%{opacity:.6}100%{transform:translateX(-36px);opacity:0}}
@media(prefers-reduced-motion:reduce){.logo-flight,.logo-trail{transform:none!important;transition:none!important}.logo-drift,.logo-trail i,.flight-sparks path{animation:none!important}.flight-sparks{display:none}.logo-trail i:nth-child(2){transform:translateY(-3px)}}

/* Pull, launch, caption, return: a finite, replayable header interaction. */
.school-masthead .wordmark{border:0;padding:0;background:transparent;color:inherit;cursor:grab;text-align:initial}
.school-masthead.is-pulling .wordmark{cursor:grabbing}
.logo-flight{transform:translate3d(calc(var(--pull)*7px + var(--lean,0)*12px),0px,0) rotate(0deg);}
.school-masthead.is-armed .logo-flight{transform:translate3d(calc(7px + var(--lean,0)*12px),0px,0) rotate(0deg)}
.flight-scene{position:absolute;inset:0;width:100%;height:100%;opacity:0;pointer-events:none;overflow:hidden}
.flight-caption{fill:#fff;font-family:Nunito,sans-serif;font-size:28px;font-weight:800;opacity:0}
.school-masthead[data-sequence="flying"] .logo-flight,.school-masthead[data-sequence="message"] .logo-flight,.school-masthead[data-sequence="returning"] .logo-flight{transition:none}
.school-masthead[data-sequence="flying"] .logo-drift,.school-masthead[data-sequence="message"] .logo-drift,.school-masthead[data-sequence="returning"] .logo-drift{animation:none}
.school-masthead[data-sequence="flying"] .logo-trail,.school-masthead[data-sequence="message"] .logo-trail{visibility:hidden}
.school-masthead[data-sequence="flying"] .wordmark,.school-masthead[data-sequence="message"] .wordmark,.school-masthead[data-sequence="returning"] .wordmark{cursor:default}
@media(prefers-reduced-motion:reduce){.flight-caption{font-size:15px}}

/* Tension is conveyed by angle and the trail, never by changing logo size. */
.school-masthead.is-pulling .logo-drift{animation-play-state:paused!important}
.school-masthead.is-armed .logo-trail i{animation-duration:.35s}
.school-masthead.is-pulling .logo-flight,.school-masthead[data-sequence="flying"] .logo-flight,.school-masthead[data-sequence="returning"] .logo-flight{will-change:transform}

/* Bring the calendar closer to its subtitle without moving the shared headings. */
#booking-dialog[data-step="2"] .booking-header{margin-bottom:12px}

#date-today[data-return-active="true"]{color:#191920}

.profile .portrait{overflow:hidden;background:#e8edf7}
.profile .portrait>img{position:absolute;display:block;width:100%;max-width:none;height:100%;left:0;top:0;object-fit:contain;border:0;border-radius:0;margin:0}

/* Match the browser canvas to the masthead during top rubber-band scrolling. */
html{background:#4747f4}
body{min-height:100vh;background:linear-gradient(to bottom,#4747f4 0 132px,#fff 132px);background-repeat:no-repeat}
@media(max-width:360px){body{background:linear-gradient(to bottom,#4747f4 0 120px,#fff 120px)}}

/* Pull or tap the handle to collapse; the live game iframe remains mounted. */
#flash-handle{position:absolute;z-index:5;top:0;left:50%;transform:translateX(-50%);width:112px;height:44px;padding:0;border:0;background:none;display:grid;place-items:center;touch-action:none;cursor:grab}
#flash-handle span{width:42px;height:5px;background:#acadb5;border-radius:9px;pointer-events:none}
#flash-handle:active{cursor:grabbing}
#flash-dialog[data-view=game] #flash-handle span{background:#888591}
#flash-handle:focus-visible{outline:2px solid #7060db;outline-offset:-7px;border-radius:18px}

/* Booking sheet rhythm, 08.10.2026: spacing 8/12/16/24/32, type 24/20/17/15/13, controls 56, radii 12/16, one muted ink. */
#booking-dialog{--bk-ink:#191920;--bk-muted:#626878;--bk-line:#d9dce4;--bk-fill:#f5f6f8}
#booking-dialog .booking-shell{padding:0 24px 24px}
#booking-dialog .booking-actions{padding:24px 24px max(24px,env(safe-area-inset-bottom))}
#booking-dialog .booking-actions .booking-primary{min-height:56px;margin:0;border-radius:16px;font-size:17px}
#booking-dialog #booking-next-contact{margin:0}
#booking-dialog[data-step] .booking-header{column-gap:12px;row-gap:12px;margin:0 0 24px}
#booking-dialog #booking-title{font-size:24px;line-height:1.2}
#booking-dialog #booking-subtitle{min-height:0;font-size:15px;line-height:1.5;color:var(--bk-muted)}
#booking-dialog .booking-date-strip{padding:8px 0}
#booking-dialog .strip-heading{margin-bottom:8px}
#booking-dialog .strip-heading h3{font-size:20px;line-height:1.2}
#booking-dialog #date-today{font-size:15px;font-weight:700;color:var(--bk-muted)}
#booking-dialog #date-today[data-return-active="true"]{color:var(--bk-ink)}
#booking-dialog .date-strip button{height:auto;padding:4px 0;gap:8px}
#booking-dialog .date-weekday{font-size:13px;line-height:18px;color:var(--bk-muted)}
#booking-dialog .date-strip strong{font-size:20px}
#booking-dialog .schedule-zone{margin:16px 0 24px;font-size:13px;line-height:1.5;color:var(--bk-muted)}
#booking-dialog #time-hint{margin:0 0 16px;font-size:15px;line-height:1.5;color:var(--bk-muted)}
#booking-dialog .time-period-grid{gap:12px}
#booking-dialog #time-options button{min-height:48px;border:1.5px solid var(--bk-line);border-radius:12px;font-size:17px}
#booking-dialog #time-options button[aria-pressed=true]{border-color:#caff4f}
#booking-dialog #time-options button:disabled{border-color:#e2e2e8}
#booking-dialog #booking-third .booking-summary{margin:0 0 24px;padding:16px;border-radius:16px;background:var(--bk-fill);font-size:15px;font-weight:700;line-height:1.5;text-wrap:balance}
#booking-dialog #booking-form label{margin:0 0 16px;font-size:15px;font-weight:700;line-height:1.4}
#booking-dialog #booking-form input{height:56px;margin-top:8px;padding:0 16px;border:1.5px solid var(--bk-line);border-radius:16px;font-size:17px;font-weight:700}
#booking-dialog #booking-form input::placeholder{font-weight:400;color:#637087}
#booking-dialog #booking-form .phone{height:56px;margin-top:8px;border:1.5px solid var(--bk-line);border-radius:16px}
#booking-dialog #booking-form .prefix{padding-left:16px;font-size:17px;font-weight:700;color:var(--bk-ink)}
#booking-dialog #booking-form .phone input{height:100%;margin:0;padding:0 16px 0 12px;border:0;background:transparent}
#booking-dialog .confirmation-request{padding:24px;border-radius:16px}
#booking-dialog .confirmation-request h3{gap:12px;margin:0 0 16px;font-size:20px;line-height:1.2}
#booking-dialog .request-check{width:32px;height:32px}
#booking-dialog .request-check svg{width:20px;height:20px}
#booking-dialog .request-details{gap:12px;font-size:15px;line-height:1.5}
#booking-dialog .request-details>div{gap:12px}
#booking-dialog .request-details dt{color:var(--bk-muted)}
#booking-dialog .confirmation-reassurance{margin:24px 0 0;padding:16px;border-radius:16px;background:var(--bk-fill);font-size:15px;line-height:1.5;color:var(--bk-muted);text-wrap:balance}
@media(max-width:360px){#booking-dialog .booking-shell{padding:0 12px 24px}#booking-dialog .booking-actions{padding-left:12px;padding-right:12px}#booking-dialog #booking-title{font-size:20px}#booking-dialog .confirmation-request{padding:16px}#booking-dialog .request-details>div{gap:8px}}

/* Keyboard stability (08.10.2026). iOS overlays the keyboard and pans the visual viewport, so the sheet is
   sized to what is actually visible (--vv-top/--vv-height from JS). The action bar then sits right above the
   keyboard, and a white copy of the sheet (second shadow) continues under the translucent keyboard. */
#booking-dialog{--sheet-gap:max(28px,env(safe-area-inset-top));inset:auto 0 auto 0;top:calc(var(--vv-top,0px) + var(--sheet-gap));height:calc(var(--vv-height,100dvh) - var(--sheet-gap));max-height:none;box-shadow:0 -12px 60px #151b3226,0 calc(var(--vv-height,100dvh) - 80px) 0 0 #fff}
/* The page under an open sheet is pinned, so Safari cannot scroll it while the keyboard opens. */
body.page-locked{position:fixed;top:var(--page-lock-top,0px);left:0;right:0;width:100%;overflow:hidden}
/* Overscroll: the canvas is white (bottom pull and iOS bar tint); blue lives only above the masthead (top pull). */
html{background:#fff}
body::before{content:'';position:absolute;left:0;right:0;top:-100vh;height:100vh;background:#4747f4;pointer-events:none}

/* Sheet header stays put (iOS sheet convention): title, back and close never scroll away; content passes under it.
   The white band spans the gutters, and a hairline appears only once content is scrolled. */
#booking-dialog .booking-shell{--gutter:24px}
#booking-dialog[data-step] .booking-header{position:sticky;top:0;z-index:3;background:#fff;margin:0 calc(-1 * var(--gutter)) 8px;padding:0 var(--gutter) 16px;transition:box-shadow .2s ease}
#booking-dialog.is-scrolled .booking-header{box-shadow:0 1px 0 #e4e5e9}
/* Keyboard open: drop what is already known (subtitle, chosen slot) so both fields and the button fit above it. */
#booking-dialog.kb-open #booking-subtitle,#booking-dialog.kb-open #booking-third .booking-summary{display:none}
@media(max-width:360px){#booking-dialog .booking-shell{--gutter:12px}}
/* Keyboard open: tighter header and action bar (the keyboard already covers the home-indicator area). */
#booking-dialog.kb-open[data-step] .booking-header{padding-bottom:8px;margin-bottom:0}
#booking-dialog.kb-open .booking-actions{padding-top:12px;padding-bottom:12px}
/* Flashcards sheet top zone mirrors the booking sheet: grabber 12px from the top edge; no ring on the sheet itself. */
#flash-handle{place-items:start center;padding-top:12px}
#flash-dialog:focus{outline:none}

/* Flashcards sheet (09.10.2026): dark like the game for the welcome, sign-in (since 12.10), loading and game; white for notify. */
#flash-dialog,#flash-dialog iframe{background:#16151a}
#flash-dialog #flash-handle span{background:#888591}
/* Клавіатура (переписано 14.10.2026, Vlad: «щоб більше не повертатись»). Шторка НЕ стежить за visualViewport і НЕ стискається:
   вона завжди на всю висоту вікна (top: gap, bottom: 0), а клавіатура просто накриває низ — екрани з полями тримають поле й
   кнопку у верхніх ~320 px. Так немає ні «наздоганяння» із затримкою на кадр, ні білого під клавіатурою: сторінку під шторкою
   не фарбуємо (14.10.2026): під розмиттям це читалось як другий, темніший шар. */
/* Одна поверхня (Влад 15.10.2026, «цільний екран»): коробка вікна починається на gap від верху і закінчується на gap + 32 px НИЖЧЕ
   екрана — тож коли її тягнуть угору (до gap + 28 px пружини), знизу завжди її ж фон, а не підставлений. Між шторкою й повним
   екраном не змінюється жодний розмір: лише transform (вікно їде вгору на gap, рамка гри — вниз на safe-area, тож на телефоні з
   вирізом вміст стоїть на місці, а край вікна заходить під рядок стану), радіус 38 → 0 і грабер гасне. */
#flash-dialog{--sheet-gap:max(28px,env(safe-area-inset-top));inset:var(--sheet-gap) 0 calc(-1 * var(--sheet-gap) - 32px) 0;height:auto;max-height:none;box-shadow:0 -12px 60px #151b3226;transform:translateY(calc(100dvh - var(--sheet-gap)))}
html.flash-lock{overflow:hidden;overscroll-behavior:none}

/* «Флешкартки» entry, variant B «соціальний доказ» (11.10.2026; Дизайн/…/кнопка-гри-перелінк.html):
   the game's icon (locked «Класика»: brand-blue back with eH over the game's face, night blue), «Флешкартки» first and
   «eH Easy НМТ» as a quiet signature; a social-proof row (real player count from the stats endpoint, «Нова гра» until it
   exists); a full-width blue button; the first-game facts under it. No lime on white. */
.flash-entry{display:block;margin:18px 0 26px;padding:16px;border:1px solid #dfe2eb;border-radius:22px;background:#fff;color:#191a22;text-decoration:none;transition:border-color .18s ease,transform .18s ease}
.fe-head{display:flex;align-items:center;gap:14px}
.fe-icon{display:block;flex:none;width:64px;height:64px;border-radius:22.5%;overflow:hidden;box-shadow:0 8px 18px -8px rgba(20,10,60,.55),inset 0 0 0 .5px rgba(0,0,0,.08)}
.fe-icon svg{display:block;width:100%;height:100%}
.fe-title{min-width:0;flex:1}
.fe-title strong{display:block;font-size:23px;line-height:1.15;letter-spacing:-.02em;font-weight:800}
/* Subtitle: «Easy НМТ» first, then (once, shortly after the entry is seen) it rolls up into «Готуйся до НМТ граючи». */
.fe-by{position:relative;display:block;height:1.3em;margin-top:4px;overflow:hidden;font-size:14.5px;line-height:1.3;font-weight:700;color:#626878}
.fe-by>span{position:absolute;left:0;top:0;white-space:nowrap;transition:transform .5s cubic-bezier(.22,1,.36,1),opacity .35s ease}
.fe-by-b{transform:translateY(100%);opacity:0}
.fe-by.is-swapped .fe-by-a{transform:translateY(-100%);opacity:0}
.fe-by.is-swapped .fe-by-b{transform:none;opacity:1}
@media(prefers-reduced-motion:reduce){.fe-by>span{transition:none}}
.fe-cta{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;margin-top:12px;border-radius:999px;background:#4120f8;color:#fff;font-size:16px;font-weight:800;box-shadow:0 10px 22px -12px rgba(65,32,248,.7)}
.fe-cta svg{width:20px;height:20px;flex:none}
.flash-entry:focus-visible{outline:3px solid #2f46ff;outline-offset:4px}
.flash-entry:active{transform:scale(.985)}
@media(hover:hover) and (pointer:fine){.flash-entry:hover{border-color:#191a22}.flash-entry:hover .fe-cta{background:#3415d9}}
@media(max-width:360px){.flash-entry{padding:14px}.fe-head{gap:12px}.fe-icon{width:56px;height:56px}.fe-title strong{font-size:21px}.fe-fact b{font-size:19px}.fe-fact span{font-size:12px}}
@media(prefers-reduced-motion:reduce){.flash-entry{transition:none}.flash-entry:active{transform:none}.fe-num.bump{animation:none}}

/* Facts row (11.10.2026, variant 4): players · cards · price, App Store-style. Players = 750 (base) + real e-mail
   registrations; the number counts up when the entry comes into view and ticks up as new registrations arrive. */
.fe-facts{display:grid;grid-template-columns:repeat(3,1fr);margin-top:14px;padding:10px 0;border-top:1px solid #eceef3;border-bottom:1px solid #eceef3}
.fe-fact{display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 4px}
.fe-fact+.fe-fact{border-left:1px solid #eceef3}
.fe-fact b{font-size:21px;line-height:1.2;font-weight:800;color:#191a22;font-variant-numeric:tabular-nums}
.fe-fact span{margin-top:2px;font-size:12.5px;line-height:1.3;color:#626878}
.fe-num{display:inline-block}
.fe-num.bump{animation:fe-bump .5s cubic-bezier(.34,1.5,.64,1)}
@keyframes fe-bump{35%{transform:translateY(-3px) scale(1.12);color:#4120f8}100%{transform:none}}
.fe-sub{display:block;margin-top:10px;text-align:center;font-size:13px;line-height:1.4;color:#626878}
/* Full screen (12.10.2026): pulling the handle up removes the gap above the sheet; corners square off, and the content
   starts below the status bar (safe area), so the welcome, sign-in and game keep their own top rows untouched. */
/* Стандарт аркушів (Vlad 14.10.2026): вікно гри в перелінку відкривається й закривається так само, як аркуш налаштувань у грі —
   transform .44s cubic-bezier(.22,.7,.3,1) (classic-reference .sheet), підкладка .35s ease. Орієнтир ззовні: Material 3 —
   «emphasized decelerate» ~400 мс для елементів, що входять на екран. */
#flash-dialog{transition:transform .44s cubic-bezier(.22,.7,.3,1),border-radius .44s cubic-bezier(.22,.7,.3,1)}
#flash-dialog.is-full{border-radius:0}
#flash-dialog.is-full.is-open{transform:translateY(calc(-1 * var(--sheet-gap)))}
/* Рамка гри на повному екрані (Влад 15.10.2026: «вікно повинно плавно розтягуватись і адаптуватись», без смуги знизу): рамка
   розтягується до самого низу екрана тією ж кривою .44s, якою вікно їде вгору, — низ рамки весь час на краю екрана, гра
   підлаштовується разом із нею. На телефоні з вирізом рамка ще й з'їжджає під рядок стану (safe-area), щоб вміст не заходив під нього. */
#flash-dialog iframe{transition:height .44s cubic-bezier(.22,.7,.3,1),transform .44s cubic-bezier(.22,.7,.3,1)}
#flash-dialog.is-full iframe{height:calc(100dvh - env(safe-area-inset-top));transform:translateY(env(safe-area-inset-top))}
/* full screen = the game's own screen: no handle, only «×» closes (Vlad 12.10.2026); the grabber fades with the motion instead of popping */
#flash-handle{transition:opacity .22s ease,visibility 0s .22s}
#flash-dialog.is-full #flash-handle{opacity:0;visibility:hidden;pointer-events:none}
@media(prefers-reduced-motion:reduce){#flash-dialog,#flash-dialog iframe,#flash-handle{transition:none}}

/* iOS 27 sheet (Apple UI Kit, 12.10.2026): top radius 38, grabber 60×4 #333 at 6 pt on the dark views (values in /ios-tokens.css). */
#flash-dialog:not(.is-full){border-radius:38px 38px 0 0}
#flash-handle{padding-top:6px}
#flash-dialog #flash-handle span{width:60px;height:4px;background:#333}
/* no focus rings on elements focused by the code (dialog titles, the sheets) — keyboard focus still shows (Vlad 12.10.2026) */
[tabindex="-1"]:focus,[tabindex="-1"]:focus-visible,dialog:focus{outline:none}
:focus:not(:focus-visible){outline:none}

/* Full-viewport flashcards world: the content rail remains centered, while the
   same night gradient continues behind the iframe and under the sheet gutters. */
/* Шторка дає лише темну основу світу флешкарток; світло, віньєтку й зерно малює сама сторінка флешкарток (.fx-bg),
   тож фон один — і в шторці, і на окремій сторінці (Vlad 14.10.2026). */
#flash-dialog{background:radial-gradient(125% 85% at 50% 8%,#17161b 0%,#131218 46%,#100f16 100%);background-color:#100f16}
#flash-dialog iframe{background:transparent!important}

/* Рамка фокусу — лише для клавіатури (Vlad 14.10.2026): автоматичний фокус (вікно виходу, перелінк) на телефоні малював лаймову рамку.
   Клас .kbd ставить Tab, знімає будь-який дотик чи клік; поля вводу свій фокус зберігають. */
html:not(.kbd) :focus-visible:not(input,textarea,select){outline:none!important}
