
:root{
  --bg:#fff;
  --text:#000;
  --muted:#5f5f5f;
  --line:#000;
  --blue:#001BF9;
  --radius:20px;
  --safe-bottom:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,Helvetica,sans-serif}
body{min-height:100vh}
button,a{font:inherit}
.app{width:min(100%,980px);margin:0 auto;padding:28px 24px calc(116px + var(--safe-bottom))}
.brand-header{display:flex;align-items:center;gap:18px;margin:0 0 54px}
.brand-logo{width:56px;height:56px;object-fit:contain;display:block}
.brand-name{font-size:22px;font-weight:400;letter-spacing:-.02em}
.page-title{font-size:clamp(64px,12vw,118px);line-height:.83;letter-spacing:-.075em;margin:0 0 48px;font-weight:900}
.section{margin:0 0 28px}
.section-title{font-size:18px;font-weight:700;margin:0 0 14px;text-transform:uppercase}
.hero,.event-group,.single-card{border:1px solid var(--line);border-radius:var(--radius);background:#fff;overflow:hidden}
.hero{display:grid;grid-template-columns:120px 1fr auto;gap:26px;align-items:center;padding:30px}
.hero-label{grid-column:1/-1;font-size:18px;font-weight:700;text-transform:uppercase;margin:0 0 -8px}
.icon-box{width:110px;height:110px;border:1px solid #7d7d7d;border-radius:22px;display:grid;place-items:center;font-size:48px}
.hero h2,.event-title{margin:0;font-weight:800;letter-spacing:-.035em}
.hero h2{font-size:34px;line-height:1.08}
.meta{margin-top:12px;color:#222;display:flex;gap:14px;align-items:center;flex-wrap:wrap;font-size:18px}
.plus-btn{width:68px;height:68px;border:0;border-radius:50%;background:#000;color:#fff;font-size:48px;font-weight:200;line-height:1;display:grid;place-items:center;cursor:pointer}
.event-row{display:grid;grid-template-columns:90px 76px 1fr auto;gap:18px;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line)}
.event-row:last-child{border-bottom:0}
.event-time{font-size:28px;font-weight:800}
.event-day{font-size:18px;font-weight:800;text-transform:uppercase;line-height:1.05}
.event-icon{width:72px;height:72px;border:1px solid #8f8f8f;border-radius:18px;display:grid;place-items:center;font-size:32px}
.event-title{font-size:23px;line-height:1.1}
.event-location{font-size:17px;margin-top:6px;color:#222}
.event-meta{font-size:16px;margin-top:8px;color:#222;display:flex;gap:10px;flex-wrap:wrap}
.row-open{background:transparent;border:0;padding:8px 0 8px 12px;font-size:42px;cursor:pointer}
.loading,.error,.empty{border:1px solid #000;border-radius:var(--radius);padding:28px;font-size:18px}
.bottom-nav{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,980px);background:#fff;border-top:1px solid #aaa;display:grid;grid-template-columns:repeat(4,1fr);padding:12px 8px calc(10px + var(--safe-bottom));z-index:20}
.nav-button{border:0;background:transparent;display:grid;justify-items:center;gap:5px;font-size:14px;cursor:pointer}
.nav-icon{font-size:28px;line-height:1}
.nav-button.active{font-weight:700}
dialog{border:0;padding:0;width:min(100%,760px);max-height:92vh;margin:auto auto 0;background:transparent}
dialog::backdrop{background:rgba(0,0,0,.35)}
.sheet{background:#fff;border:1px solid #000;border-bottom:0;border-radius:28px 28px 0 0;padding:34px 26px calc(30px + var(--safe-bottom));position:relative}
.sheet-close{position:absolute;right:20px;top:16px;border:0;background:#000;color:#fff;width:42px;height:42px;border-radius:50%;font-size:28px;line-height:1}
.sheet h2{font-size:34px;line-height:1.05;margin:8px 60px 24px 0}
.sheet-section{border-top:1px solid #000;padding:18px 0}
.sheet-section h3{margin:0 0 10px;font-size:14px;text-transform:uppercase}
.sheet-section p{margin:0;white-space:pre-wrap;line-height:1.5}
.sheet-actions{display:grid;gap:10px;margin-top:22px}
.action{display:flex;align-items:center;justify-content:center;min-height:54px;border-radius:14px;text-decoration:none;font-weight:700;border:1px solid #000}
.action-primary{background:var(--blue);color:#fff;border-color:var(--blue)}
.action-secondary{background:#fff;color:#000}
@media(max-width:700px){
  .app{padding:20px 14px calc(108px + var(--safe-bottom))}
  .brand-header{gap:12px;margin-bottom:40px}
  .brand-logo{width:48px;height:48px}
  .brand-name{font-size:19px}
  .page-title{font-size:19vw;margin-bottom:34px}
  .hero{grid-template-columns:80px 1fr auto;gap:14px;padding:20px}
  .hero-label{font-size:15px}
  .icon-box{width:78px;height:78px;border-radius:18px;font-size:36px}
  .hero h2{font-size:25px}
  .meta{font-size:15px}
  .plus-btn{width:54px;height:54px;font-size:40px}
  .event-row{grid-template-columns:68px 58px 1fr auto;gap:12px;padding:17px 14px}
  .event-time{font-size:22px}
  .event-day{font-size:14px}
  .event-icon{width:56px;height:56px;border-radius:15px;font-size:26px}
  .event-title{font-size:18px}
  .event-location,.event-meta{font-size:14px}
}
