/* Connect Driving. Palette and layout follow David's master design notes:
   navy header and footer, white-to-light-blue CONNECT, light sky hero with a warm horizon. */
@font-face{font-family:"Poppins";src:url(fonts/pop-700.woff) format("woff");font-weight:700;font-display:swap}
@font-face{font-family:"Poppins";src:url(fonts/pop-500.woff) format("woff");font-weight:500;font-display:swap}
@font-face{font-family:"Inter";src:url(fonts/int-400.woff) format("woff");font-weight:400;font-display:swap}
@font-face{font-family:"Inter";src:url(fonts/int-600.woff) format("woff");font-weight:600;font-display:swap}

:root{
  --navy:#0A1E3F;--navy2:#002D6E;--blue:#0056B3;--electric:#1368DB;
  --sky:#E3F2FD;--ice:#B3E5FC;--warm:#FFD180;--red:#D21F2B;
  --ink:#1A2A4A;--mute:#4D5B72;--line:#D5E0EC;--mist:#F4F8FC;--white:#fff;
  --display:"Poppins","Montserrat","Segoe UI",Arial,sans-serif;
  --body:"Inter","Segoe UI",Roboto,Arial,sans-serif;
  --wrap:1160px;--gut:20px;--r:12px;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;font-family:var(--body);font-size:1.0625rem;line-height:1.6;color:var(--ink);background:var(--white);padding-bottom:0}
img,svg{max-width:100%}
h1,h2,h3{font-family:var(--display);font-weight:700;line-height:1.12;letter-spacing:-.015em;margin:0;color:var(--navy);text-wrap:balance}
p{margin:0 0 1rem}
a{color:var(--blue);text-underline-offset:.18em}
a:hover{color:var(--navy2)}
:focus-visible{outline:3px solid var(--warm);outline-offset:3px;box-shadow:0 0 0 6px var(--navy)}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--gut)}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-999px;top:0;background:var(--warm);color:var(--navy);padding:.8rem 1.2rem;font-weight:600;z-index:100}
.skip:focus{left:0}
.ph{background:#FFF1C9;color:#3A2E00;box-shadow:0 0 0 2px #FFF1C9;border-radius:2px}
.draftbar{background:#FFF1C9;color:#3A2E00;font-size:.875rem;padding:.45rem 0;text-align:center}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;min-height:52px;padding:.7rem 1.5rem;border-radius:10px;border:2px solid var(--blue);background:var(--blue);color:#fff;font-family:var(--display);font-weight:500;font-size:1rem;line-height:1.2;text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.btn:hover{background:var(--navy2);border-color:var(--navy2);color:#fff}
.btn:active{transform:translateY(1px)}
.btn.alt{background:#fff;color:var(--blue)}
.btn.alt:hover{background:var(--sky);color:var(--navy2);border-color:var(--navy2)}
.btn.electric{background:var(--electric);border-color:var(--electric)}
.btn.electric:hover{background:#fff;border-color:#fff;color:var(--navy)}
.btn.ghost{background:transparent;border-color:rgba(255,255,255,.55);color:#fff}
.btn.ghost:hover{background:#fff;border-color:#fff;color:var(--navy)}
.btn svg{width:20px;height:20px;flex:none}

/* ---------- header ---------- */
.navtop{background:#fff;border-bottom:1px solid var(--line)}
.navtop ul{list-style:none;margin:0;padding:0;display:flex;justify-content:space-between;gap:.5rem}
.navtop a{display:block;padding:.8rem .35rem;color:var(--ink);font-family:var(--display);font-weight:500;font-size:.95rem;text-decoration:none;border-bottom:3px solid transparent}
.navtop a:hover{color:var(--blue);border-bottom-color:var(--ice)}
.navtop a[aria-current="page"]{font-weight:700;border-bottom-color:var(--navy)}
.masthead{background:linear-gradient(90deg,var(--navy) 0%,var(--navy2) 100%);color:#fff;position:relative;z-index:5}
.masthead .wrap{display:flex;align-items:center;gap:1.25rem;min-height:92px}
.logo{display:flex;align-items:center;gap:.8rem;text-decoration:none;color:#fff;margin-right:auto}
.logo svg{width:58px;height:58px;flex:none}
.logo span{display:flex;flex-direction:column;line-height:1}
.logo b{font-family:var(--display);font-weight:700;font-size:1.9rem;letter-spacing:.035em;color:#fff;background:linear-gradient(90deg,#fff 0%,var(--ice) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.logo small{font-family:var(--display);font-weight:500;font-size:.8rem;letter-spacing:.46em;margin-top:.35rem;color:#fff}
.call{min-height:46px;justify-content:center;color:#fff;text-decoration:none;font-family:var(--display);font-weight:700;font-size:1.25rem;line-height:1.15;display:flex;flex-direction:column;align-items:flex-end}
.call small{font-family:var(--body);font-weight:400;font-size:.8rem;color:#C9DAF2}
.call:hover{color:var(--ice)}
.menu-btn{display:none}
.drawer{display:none;background:var(--navy);border-top:1px solid rgba(255,255,255,.15)}
.drawer.open{display:block}
.drawer ul{list-style:none;margin:0;padding:.5rem var(--gut) 1.2rem}
.drawer a{display:block;padding:.85rem 0;color:#fff;text-decoration:none;font-family:var(--display);font-weight:500;font-size:1.1rem;border-bottom:1px solid rgba(255,255,255,.12)}

/* ---------- home hero ---------- */
.hero{position:relative;overflow:hidden;background:#F3D9A4;isolation:isolate}
.hero-pic{position:absolute;inset:0;z-index:-2}
.hero-pic img{width:100%;height:100%;object-fit:cover;object-position:70% 62%;display:block}
.hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(255,255,255,.93) 0%,rgba(255,255,255,.86) 30%,rgba(255,255,255,.35) 52%,rgba(255,255,255,0) 66%)}
.hero .wrap{min-height:clamp(520px,46vw,680px);display:flex;align-items:center;padding-top:3.4rem;padding-bottom:3.8rem}
.hero-text{max-width:46rem}
.hero .lede{max-width:33rem}
.hero h1{font-size:clamp(2.05rem,4.9vw,4rem);line-height:1.04;letter-spacing:-.025em}
.hero .lede{font-size:clamp(1.08rem,1.5vw,1.25rem);line-height:1.5;margin:1.3rem 0 1.8rem;color:var(--ink)}
.hero .lede strong{font-weight:600}
.ctas{display:flex;flex-wrap:wrap;gap:.8rem}

/* town picker: one blue road-sign bar */
.townbar{background:var(--blue);border-top:5px solid #fff;border-bottom:5px solid #fff;box-shadow:0 0 0 5px var(--blue);position:relative;z-index:2;margin:5px 0}
.townbar .wrap{display:grid;grid-template-columns:auto repeat(4,minmax(0,1fr));align-items:stretch}
.tb-head{display:flex;align-items:center;font-family:var(--display);font-weight:500;color:#DCEBFF;padding-right:1.6rem;font-size:1rem}
.townbar a{display:flex;align-items:center;justify-content:space-between;gap:.6rem;min-height:76px;padding:.6rem 1.2rem;color:#fff;text-decoration:none;font-family:var(--display);font-weight:500;font-size:clamp(1.15rem,1.9vw,1.6rem);border-left:2px solid rgba(255,255,255,.35)}
.townbar a svg{width:28px;height:28px;flex:none;transition:transform .15s}
.townbar a:hover{background:var(--navy2);color:#fff}
.townbar a:hover svg{transform:translateX(5px)}
.townbar a:focus-visible{outline-offset:-4px;box-shadow:none}

/* ---------- facts strip ---------- */
.facts{background:var(--navy);color:#fff}
.facts ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr)}
.facts li{padding:1.35rem 1.4rem;border-left:2px dashed rgba(255,255,255,.28);font-size:1rem;line-height:1.4;color:#D6E4F7}
.facts li:first-child{border-left:0;padding-left:0}
.facts b{display:block;font-family:var(--display);font-weight:700;font-size:1.12rem;color:#fff;margin-bottom:.1rem}

/* ---------- sections ---------- */
section.s{padding:clamp(3.4rem,7vw,5.6rem) 0}
section.s.mist{background:var(--mist)}
section.s.dusk{background:linear-gradient(180deg,var(--sky) 0%,#EDF6FE 45%,#FFF0D6 100%);border-top:4px dashed #BBD3EC}
.sec-head{max-width:40em;margin-bottom:2.2rem}
.sec-head h2{font-size:clamp(1.75rem,3.3vw,2.6rem)}
.sec-head p{margin:.8rem 0 0;color:var(--mute);font-size:1.1rem}
.two{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(2rem,5vw,4.5rem);align-items:start}

/* prices */
.price{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;max-width:820px}
.tile{background:#fff;border:2px solid var(--line);border-radius:16px;padding:1.6rem 1.7rem 1.5rem}
.tile h2,.tile h3{font-size:1.05rem;font-weight:500;letter-spacing:0;color:var(--mute)}
.tile .amt{font-family:var(--display);font-weight:700;font-size:clamp(3.2rem,6vw,4.4rem);line-height:1;letter-spacing:-.03em;color:var(--navy);margin:.5rem 0 .6rem}
.tile .amt span{font-size:1.05rem;font-weight:500;letter-spacing:0;color:var(--mute);margin-left:.35rem}
.tile p{margin:0;color:var(--mute)}
.tile.main{background:var(--navy);border-color:var(--navy);position:relative}
.tile.main h2,.tile.main h3,.tile.main p{color:#C9DAF2}
.tile.main .amt{color:#fff}
.tile.main .amt span{color:#C9DAF2}
.save{position:absolute;top:1.3rem;right:1.3rem;background:var(--warm);color:var(--navy);font-family:var(--display);font-weight:700;font-size:.92rem;padding:.3rem .7rem;border-radius:6px}
.price-note{margin:1.4rem 0 0;color:var(--mute);max-width:46em}

/* lessons */
.lessons{list-style:none;margin:0;padding:0;border-top:2px solid var(--navy)}
.lessons li{display:grid;grid-template-columns:64px minmax(0,13rem) minmax(0,1fr);gap:1.4rem;align-items:center;padding:1.15rem 0;border-bottom:1px solid var(--line)}
.lessons h3{font-size:1.3rem}
.lessons p{margin:0;color:var(--mute)}
.pic{width:64px;height:64px;border-radius:12px;background:var(--blue);display:grid;place-items:center;flex:none}
.pic svg{width:40px;height:40px}
.pic.l{background:#fff;border:2px solid var(--line)}

/* meet */
.meet h2{font-size:clamp(1.75rem,3.3vw,2.6rem);margin-bottom:1.1rem}
.meet p{max-width:36em}
.checks{list-style:none;margin:1.4rem 0 0;padding:0}
.checks li{position:relative;padding:.5rem 0 .5rem 2.1rem;border-top:1px solid var(--line)}
.checks li::before{content:"";position:absolute;left:.45rem;top:.72rem;width:.5rem;height:.95rem;border-right:3px solid var(--blue);border-bottom:3px solid var(--blue);transform:rotate(45deg)}
.card{background:linear-gradient(135deg,var(--navy),var(--navy2));color:#fff;border-radius:18px;padding:2rem 2rem 2.1rem}
.card h3{color:#fff;font-size:1.35rem}
.card p{color:#D6E4F7;margin:.6rem 0 0}
.card .num{display:block;font-family:var(--display);font-weight:700;font-size:clamp(1.9rem,3.4vw,2.5rem);letter-spacing:-.01em;color:#fff;text-decoration:none;margin:1rem 0 1.2rem;background:linear-gradient(90deg,#fff,var(--ice));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.card .ctas .btn{flex:1 1 9rem}

/* steps */
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;counter-reset:s}
.steps li{position:relative;counter-increment:s;padding-top:4.4rem}
.steps li::before{content:counter(s);position:absolute;top:0;left:0;width:52px;height:52px;border-radius:50%;background:var(--navy);color:#fff;font-family:var(--display);font-weight:700;font-size:1.3rem;display:grid;place-items:center;z-index:1}
.steps li::after{content:"";position:absolute;top:24px;left:64px;right:-1.4rem;border-top:4px dashed #9DB8D8}
.steps li:last-child::after{display:none}
.steps h3{font-size:1.25rem;margin-bottom:.4rem}
.steps p{margin:0;color:var(--mute)}

/* M5 route */
.route{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:auto repeat(4,minmax(0,1fr)) auto;align-items:start;position:relative}
.route::before{content:"";position:absolute;left:0;right:0;top:21px;height:10px;background:var(--blue);border-radius:5px}
.route li{position:relative;padding:0 .6rem;text-align:center}
.route .end{font-size:.875rem;color:var(--mute);padding-top:3.1rem;white-space:nowrap}
.route .end:first-child{text-align:left;padding-left:0}
.route .end:last-child{text-align:right;padding-right:0}
.route .m5{position:absolute;top:8px;left:0;background:var(--blue);color:#fff;font-family:var(--display);font-weight:700;font-size:1rem;padding:.2rem .55rem;border-radius:6px;border:2px solid #fff;line-height:1.3}
.route .end:last-child .m5{left:auto;right:0}
.route .jn{position:relative;z-index:1;display:inline-block;min-width:52px;background:#0A0F18;color:#fff;font-family:var(--display);font-weight:700;font-size:1.05rem;line-height:1;padding:.72rem .5rem;border-radius:8px;border:3px solid #fff;box-shadow:0 0 0 2px #0A0F18}
.route a{display:block;margin-top:.35rem;padding:.55rem .3rem .3rem;min-height:44px;font-family:var(--display);font-weight:700;font-size:clamp(1.15rem,2vw,1.5rem);color:var(--navy);text-decoration:none;line-height:1.2}
.route a:hover{color:var(--blue);text-decoration:underline}
.route .co{display:block;color:var(--mute);font-size:.95rem;margin-top:0}
.route-note{margin:2rem 0 0;color:var(--mute);max-width:46em}

/* closing band */
.close{display:grid;grid-template-columns:minmax(0,1.2fr) auto;gap:2rem;align-items:center}
.close h2{font-size:clamp(1.75rem,3.3vw,2.6rem)}
.close p{margin:.8rem 0 0;max-width:34em;font-size:1.1rem}
.close .ctas{justify-content:flex-end}

/* ---------- inner pages ---------- */
.page-hero{background:linear-gradient(180deg,var(--sky),#F1F8FE);border-bottom:4px dashed #BBD3EC;padding:2.6rem 0 2.8rem}
.page-hero h1{font-size:clamp(2rem,4.4vw,3.2rem);max-width:18em}
.page-hero p.lede{font-size:1.15rem;color:var(--ink);margin:.9rem 0 0;max-width:38em}
.crumbs{font-size:.92rem;color:var(--mute);margin:0 0 .9rem}
.crumbs a{color:var(--mute)}
.prose{max-width:44em}
.prose h2{font-size:1.5rem;margin:2.2rem 0 .7rem}
.prose h2:first-child{margin-top:0}
.prose h3{font-size:1.15rem;margin:1.5rem 0 .4rem}
.prose ul{padding-left:1.2rem;margin:0 0 1rem}
.prose li{margin:.35rem 0}
.callout{background:var(--sky);border-left:6px solid var(--blue);border-radius:0 10px 10px 0;padding:1.1rem 1.3rem;margin:1.5rem 0}
.callout p{margin:0}
.lesson-full{list-style:none;margin:0;padding:0}
.lesson-full li{display:grid;grid-template-columns:64px minmax(0,1fr);gap:1.4rem;padding:1.7rem 0;border-bottom:1px solid var(--line)}
.lesson-full li:first-child{padding-top:0}
.lesson-full h2{font-size:1.5rem;margin-bottom:.5rem}
.lesson-full p{margin:0 0 .6rem;max-width:42em}
.lesson-full p:last-child{margin:0;color:var(--mute)}
.towns-links{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:.8rem}
.towns-links a{display:inline-flex;align-items:center;min-height:46px;padding:.4rem 1rem;border:2px solid var(--line);border-radius:8px;text-decoration:none;font-family:var(--display);font-weight:500;color:var(--navy);background:#fff}
.towns-links a:hover{border-color:var(--blue);color:var(--blue)}
.faq{max-width:46em;border-top:2px solid var(--navy)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:60px;padding:.8rem 0;font-family:var(--display);font-weight:500;font-size:1.12rem;color:var(--navy)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";flex:none;width:12px;height:12px;border-right:3px solid var(--blue);border-bottom:3px solid var(--blue);transform:rotate(45deg);margin:0 .4rem .3rem 0;transition:transform .15s}
.faq details[open] summary::after{transform:rotate(-135deg);margin-bottom:-.3rem}
.faq details p{margin:0 0 1.2rem;color:var(--ink);max-width:40em}

/* ---------- enquiry ---------- */
.enquire{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(2rem,5vw,4rem);align-items:start}
.enquire .side h2{font-size:1.5rem;margin-bottom:.8rem}
form{background:#fff;border:2px solid var(--line);border-radius:18px;padding:clamp(1.3rem,3vw,2.2rem)}
.f{margin-bottom:1.3rem}
label,legend{display:block;font-family:var(--display);font-weight:500;font-size:1.02rem;color:var(--navy);margin-bottom:.4rem;padding:0}
.hint{font-family:var(--body);font-weight:400;color:var(--mute);font-size:.94rem}
input[type=text],select,textarea{width:100%;font:inherit;color:var(--ink);background:#fff;border:2px solid #8A9BB3;border-radius:10px;padding:.75rem .9rem;min-height:52px}
textarea{min-height:110px;resize:vertical}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--warm);outline-offset:0;border-color:var(--navy);box-shadow:none}
fieldset{border:0;margin:0 0 1.3rem;padding:0}
.radios{display:flex;flex-wrap:wrap;gap:.6rem}
.radios label{display:flex;align-items:center;gap:.6rem;min-height:52px;padding:.5rem 1.1rem .5rem .9rem;border:2px solid #8A9BB3;border-radius:10px;margin:0;font-family:var(--body);font-weight:400;cursor:pointer;background:#fff}
.radios input{width:22px;height:22px;accent-color:var(--blue);margin:0}
.radios label:has(input:checked){border-color:var(--blue);background:var(--sky)}
.radios label:has(input:focus-visible){outline:3px solid var(--warm);outline-offset:2px}
.err{color:#A3121C;font-weight:600;margin:.4rem 0 0;font-size:.98rem}
.errsum{background:#FDECEE;border-left:6px solid #A3121C;color:#6E0C13;padding:1rem 1.2rem;border-radius:0 10px 10px 0;margin-bottom:1.4rem;font-weight:600}
.send{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:.4rem}
.send .btn{flex:1 1 12rem}
.btn.wa{background:#0B6B3A;border-color:#0B6B3A}
.btn.wa:hover{background:#084D2A;border-color:#084D2A}
.fine{font-size:.94rem;color:var(--mute);margin:1.1rem 0 0}
#confirm{background:#fff;border:2px solid var(--blue);border-radius:18px;padding:clamp(1.3rem,3vw,2.2rem)}
#confirm h2{font-size:1.5rem;margin-bottom:.7rem}
#confirm pre{white-space:pre-wrap;font:inherit;background:var(--mist);border-radius:10px;padding:1rem;margin:1rem 0}

/* ---------- footer ---------- */
footer{background:var(--navy);color:#C9DAF2;padding:3.4rem 0 2.2rem;font-size:1rem}
footer .grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:2rem}
footer h2{font-size:1.02rem;color:#fff;letter-spacing:0;margin-bottom:.8rem;font-weight:700}
footer ul{list-style:none;margin:0;padding:0}
footer li{margin:.15rem 0}
footer a{color:#fff;display:inline-block;padding:.32rem 0}
footer a:hover{color:var(--ice)}
footer .big{font-family:var(--display);font-weight:700;font-size:1.5rem;text-decoration:none}
.legal{border-top:1px solid rgba(255,255,255,.18);margin-top:2.4rem;padding-top:1.4rem;font-size:.92rem;display:flex;flex-wrap:wrap;gap:.4rem 1.6rem;justify-content:space-between}
.bar{display:none}

/* ---------- responsive ---------- */
@media (max-width:1020px){
  .townbar .wrap{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tb-head{grid-column:1/-1;padding:.9rem 0 .5rem}
  .townbar a{border-left:0;border-top:2px solid rgba(255,255,255,.35);padding:.6rem .2rem;min-height:62px}
  .townbar a:nth-of-type(odd){padding-right:1.1rem}
  .townbar a:nth-of-type(even){padding-left:1.1rem;border-left:2px solid rgba(255,255,255,.35)}
  .lessons li{grid-template-columns:64px minmax(0,1fr);row-gap:.2rem}
  .lessons li .pic{grid-row:span 2;align-self:start}
  .two,.enquire,.close{grid-template-columns:1fr}
  .close .ctas{justify-content:flex-start}
  footer .grid{grid-template-columns:1fr 1fr}
}
@media (max-width:860px){
  .navtop,.call,.masthead .btn.electric{display:none}
  .masthead .wrap{min-height:72px}
  .logo svg{width:46px;height:46px}
  .logo b{font-size:1.5rem}
  .logo small{font-size:.68rem;letter-spacing:.42em}
  .menu-btn{display:inline-flex;min-height:46px;padding:.4rem 1.1rem}
  .hero{background:var(--sky)}
  .hero-pic{position:relative;inset:auto;display:block;order:2}
  .hero-pic img{height:auto;aspect-ratio:800/560;object-position:50% 60%}
  .hero::after{display:none}
  .hero{display:flex;flex-direction:column}
  .hero .wrap{min-height:0;padding-top:2.2rem;padding-bottom:2rem;width:100%}
  .facts ul{grid-template-columns:1fr}
  .facts li{border-left:0;border-top:2px dashed rgba(255,255,255,.28);padding:1rem 0}
  .facts li:first-child{border-top:0}
  .price{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr;gap:0}
  .steps li{padding:0 0 1.8rem 4.4rem;min-height:70px}
  .steps li::after{top:58px;bottom:6px;left:24px;right:auto;border-top:0;border-left:4px dashed #9DB8D8}
  .route{grid-template-columns:1fr;gap:0}
  .route::before{left:29px;right:auto;top:0;bottom:0;width:10px;height:auto}
  .route li{text-align:left;padding:0 0 1.5rem 0;display:grid;grid-template-columns:68px 1fr;column-gap:1.1rem;align-items:center}
  .route .jn{grid-row:span 2;min-width:0;white-space:nowrap;font-size:1rem;padding:.72rem .2rem;text-align:center}
  .route a{margin-top:0;padding:0;display:flex;align-items:flex-end;min-height:44px}
  .route li.end,.route li.end:first-child,.route li.end:last-child{display:block;text-align:left;padding:.55rem 0 1.5rem 5.2rem;min-height:56px}
  .route li.end:last-child{padding-bottom:.4rem}
  .route li.end .m5,.route li.end:last-child .m5{top:.3rem;left:8px;right:auto}
  body{padding-bottom:72px}
  .bar{position:fixed;left:0;right:0;bottom:0;z-index:20;display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:.5rem;padding:.6rem .7rem calc(.6rem + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid var(--line);box-shadow:0 -8px 24px -16px rgba(10,30,63,.5)}
  .bar .btn{min-height:50px;padding:.4rem .5rem;font-size:.98rem}
  footer .grid{grid-template-columns:1fr 1fr;gap:1.8rem 1.2rem}
  footer .grid>div:first-child,footer .grid>div:last-child{grid-column:1/-1}
  .lesson-full li{grid-template-columns:1fr;gap:.9rem}
}
@media (max-width:380px){
  .logo b{font-size:1.3rem}
  .logo svg{width:40px;height:40px}
  .bar .btn{font-size:.9rem}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .btn,.townbar a svg{transition:none}
}
@media print{.bar,.navtop,.menu-btn{display:none}}
