/*
 * The PUBLIC pages (landing, order form, news, contact): the same light green brand as the driver app, on a wide web layout.
 * Here 1rem = 10px on a computer and shrinks a little on a phone (like the admin panel).
 */
html.pubhtml{font-size:10px}
@media (max-width:760px){html.pubhtml{font-size:clamp(8.8px,calc(100vw / 38),11px)}}
html.pubhtml,html.pubhtml body{height:auto}
body.pub{min-height:100vh;display:flex;flex-direction:column;background:linear-gradient(180deg,var(--bg) 0,var(--bg) 60%,var(--bg-deep) 100%) fixed;overflow-x:hidden}
body.pub>main{flex:1}
.pub-wrap{width:100%;max-width:120rem;margin:0 auto;padding:0 2.4rem}
@media (max-width:760px){.pub-wrap{padding:0 1.6rem}}

/* ---------------- header ---------------- */
.pub-top{position:sticky;top:0;z-index:50;background:rgba(243,248,244,.82);backdrop-filter:blur(1.4rem);-webkit-backdrop-filter:blur(1.4rem);border-bottom:1px solid transparent;transition:border-color .2s,box-shadow .2s}
.pub-top.scrolled{border-color:var(--outline);box-shadow:0 .6rem 2rem -1.2rem rgba(127,156,136,.6)}
.pub-top .pub-wrap{display:flex;align-items:center;gap:2rem;min-height:7.4rem}
.pub-logo img{height:4.4rem;width:auto}
.pub-nav{display:flex;align-items:center;gap:.4rem;margin-left:auto}
.pub-nav a{display:flex;align-items:center;gap:.7rem;height:4.4rem;padding:0 1.4rem;border-radius:1.4rem;font-weight:600;font-size:1.5rem;color:var(--text-mid);transition:background .2s,color .2s}
.pub-nav a .mi{font-size:2rem;display:none}
.pub-nav a:hover{background:var(--surface-hi);color:var(--text-hi)}
.pub-nav a.on{color:var(--taxi);background:var(--green-soft)}
.pub-nav a.pub-driver{margin-left:.8rem;background:var(--gradient);color:#fff;box-shadow:0 .8rem 1.6rem -.6rem rgba(22,163,74,.6)}
.pub-nav a.pub-driver .mi{display:inline-block}
.pub-nav a.pub-driver:hover{filter:brightness(1.06);color:#fff}
.pub-lang{display:flex;gap:.4rem;padding:.3rem;border-radius:1.4rem;background:var(--surface);border:1px solid var(--outline)}
.pub-lang button{height:3.4rem;padding:0 1.1rem;border-radius:1.1rem;font-weight:600;font-size:1.3rem;color:var(--text-mid);transition:background .2s,color .2s}
.pub-lang button.on{background:var(--gradient);color:#fff}
.pub-burger{display:none;width:4.4rem;height:4.4rem;border-radius:1.4rem;align-items:center;justify-content:center;background:var(--surface);border:1px solid var(--outline)}
@media (max-width:900px){
  .pub-top .pub-wrap{flex-wrap:wrap;gap:1rem;min-height:6.4rem}
  .pub-logo img{height:3.8rem}
  .pub-lang{margin-left:auto}
  .pub-burger{display:flex}
  .pub-nav{display:none;order:5;flex-basis:100%;flex-direction:column;align-items:stretch;gap:.4rem;margin:0;padding:.6rem 0 1.4rem}
  .pub-top.open .pub-nav{display:flex;animation:sg-fade .2s}
  .pub-nav a{height:5rem}
  .pub-nav a .mi{display:inline-block;color:var(--taxi)}
  .pub-nav a.pub-driver{margin:.6rem 0 0;justify-content:center}
  .pub-nav a.pub-driver .mi{color:#fff}
}

/* ---------------- footer ---------------- */
.pub-foot{margin-top:6rem;background:#fff;border-top:1px solid var(--outline);padding:4.4rem 0 2.4rem}
.pub-foot-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:3rem}
.pub-foot-grid p{margin-top:1.2rem;max-width:30rem;font-size:1.4rem;line-height:2rem;color:var(--text-mid)}
.pub-foot-grid h4{font-weight:700;font-size:1.4rem;letter-spacing:.06rem;text-transform:uppercase;color:var(--text-lo);margin-bottom:1.2rem}
.pub-foot-grid a{display:block;padding:.5rem 0;font-weight:500;font-size:1.5rem;color:var(--text-mid)}
.pub-foot-grid a:hover{color:var(--taxi)}
.pub-foot-grid a.pub-tel{display:flex;align-items:center;gap:.8rem;font-weight:700;font-size:1.9rem;color:var(--taxi)}
.pub-copy{margin-top:3rem;padding-top:2rem;border-top:1px solid var(--outline);font-size:1.3rem;color:var(--text-lo)}
@media (max-width:900px){.pub-foot-grid{grid-template-columns:1fr 1fr;gap:2.4rem}}
@media (max-width:520px){.pub-foot-grid{grid-template-columns:1fr}}

/* ---------------- shared blocks ---------------- */
.pub-section{padding:5.6rem 0 0}
.pub-head{max-width:64rem;margin:0 auto 3.4rem;text-align:center}
.pub-head .kicker{display:inline-flex;align-items:center;gap:.6rem;padding:.5rem 1.2rem;border-radius:2rem;background:var(--green-soft);color:var(--taxi);font-weight:700;font-size:1.2rem;letter-spacing:.08rem;text-transform:uppercase}
.pub-head h2{margin-top:1.2rem;font-weight:800;font-size:3.4rem;line-height:4rem;letter-spacing:-.06rem}
.pub-head p{margin-top:1rem;font-size:1.6rem;line-height:2.4rem;color:var(--text-mid)}
@media (max-width:760px){.pub-section{padding-top:4rem}.pub-head h2{font-size:2.6rem;line-height:3.1rem}}
.pub-card{background:var(--surface);border:1px solid var(--outline);border-radius:2.6rem;box-shadow:0 .3rem 1rem rgba(127,156,136,.25),0 1rem 2.4rem -1.4rem rgba(127,156,136,.35)}
.reveal{opacity:0;transform:translateY(2.4rem);transition:opacity .6s var(--ease),transform .6s var(--ease);transition-delay:calc(var(--i,0) * 80ms)}
.reveal.in{opacity:1;transform:none}
.btn-xl{height:6rem;padding:0 3rem;font-size:1.7rem;border-radius:2rem}
.btn-xl .mi{font-size:2.4rem}
a.btn{display:inline-flex;align-items:center;justify-content:center;gap:.8rem}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none}}

/* ---------------- news cards + the news dialog (landing and the news page) ---------------- */
.news-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(32rem,1fr));gap:2rem}
.news-card{overflow:hidden;cursor:pointer;display:flex;flex-direction:column;transition:transform .2s var(--ease),box-shadow .2s}
.news-card:hover,.news-card:focus-visible{transform:translateY(-.5rem);box-shadow:0 1.8rem 3.6rem -1.4rem rgba(40,90,60,.5);outline:0}
.news-card img{width:100%;height:20rem;object-fit:cover}
.news-card .body{padding:2rem;display:flex;flex-direction:column;flex:1}
.news-card .when{font-weight:600;font-size:1.3rem;color:var(--taxi)}
.news-card h3{margin-top:.6rem;font-weight:700;font-size:2rem;line-height:2.6rem}
.news-card p{margin-top:.8rem;font-size:1.5rem;line-height:2.2rem;color:var(--text-mid);flex:1}
.news-card .more{display:inline-flex;align-items:center;gap:.5rem;margin-top:1.4rem;font-weight:700;font-size:1.4rem;color:var(--taxi)}
.news-card .more .mi{font-size:1.8rem;transition:transform .2s}
.news-card:hover .more .mi{transform:translateX(.4rem)}
.all-news{display:flex;justify-content:center;margin-top:2.6rem}

/* the news dialog (shared look of the dialogs of the app, a wide one) */
.news-dlg{max-width:64rem;padding:0;overflow:hidden;text-align:left}
.news-dlg img{width:100%;max-height:30rem;object-fit:cover}
.news-dlg .in{padding:2.4rem}
.news-dlg .when{font-weight:600;font-size:1.3rem;color:var(--taxi)}
.news-dlg h2{margin-top:.6rem;text-align:left;font-size:2.6rem;line-height:3.1rem}
.news-dlg .txt{margin-top:1.4rem;font-size:1.6rem;line-height:2.5rem;color:var(--text-mid);white-space:pre-wrap;overflow-wrap:anywhere}
.news-dlg .d-actions{margin-top:2rem}
