
.bemc-app{--b-bg:#eeeae0;--b-card:#fffdf8;--b-text:#151515;--b-muted:#716c63;--b-line:#c9c3b8;--b-road:#aaa49a;color:var(--b-text);font-family:Arial,Helvetica,sans-serif}
.bemc-map-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,.65fr);gap:18px}
.bemc-map-canvas{background:var(--b-bg);border:1px solid var(--b-line);overflow:hidden}
.bemc-svg{width:100%;height:auto;display:block}
.bemc-road{stroke:var(--b-road);stroke-width:14;fill:none;stroke-linecap:round}
.bemc-road-main{stroke-width:21}
.bemc-road-label{font-size:12px;font-weight:700;letter-spacing:.12em;fill:#6e6a62}
.bemc-point{cursor:pointer}
.bemc-point .halo{fill:none;stroke:#111;stroke-width:2;opacity:.22}
.bemc-point .dot{fill:#111;stroke:#fff;stroke-width:4}
.bemc-point text{fill:#fff;font-weight:800;font-size:11px;text-anchor:middle;dominant-baseline:middle;pointer-events:none}
.bemc-point.selected .halo{stroke-width:4;opacity:.8}
.bemc-point-label{font-size:13px!important;font-weight:800!important;fill:#111!important;text-anchor:start!important;paint-order:stroke;stroke:var(--b-bg);stroke-width:5px;stroke-linejoin:round}
.bemc-card{background:var(--b-card);border-top:3px solid var(--b-text);padding:18px}
.bemc-image{width:100%;aspect-ratio:16/10;background:#e8e4da;display:flex;align-items:center;justify-content:center;overflow:hidden;margin-bottom:14px}
.bemc-image img{width:100%;height:100%;object-fit:cover}
.bemc-image span{font-size:11px;letter-spacing:.08em;color:var(--b-muted)}
.bemc-kicker{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--b-muted)}
.bemc-number{font-size:52px;font-weight:900;line-height:.9;letter-spacing:-.06em;margin-top:7px}
.bemc-place-name{font-size:20px!important;line-height:1.1!important;margin:8px 0!important}
.bemc-place-desc{font-size:14px;line-height:1.5;color:var(--b-muted)}
.bemc-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.bemc-btn{border:1px solid var(--b-text);background:transparent;color:var(--b-text);font-size:12px;font-weight:700;min-height:42px;padding:9px 13px;text-decoration:none;cursor:pointer}
.bemc-qr{display:none;background:#fff;padding:10px;width:max-content;margin-top:10px}
.bemc-qr.active{display:block}
.bemc-qr canvas{display:block}

/* ===== HOMEPAGE / WGW ===== */
.bemc-home{width:100%;font-family:Arial,Helvetica,sans-serif}
.bemc-home *{box-sizing:border-box}
.bemc-home .bemc-app{margin:0}
.bemc-home .bemc-banner-mini{display:none}

/* Kamienice Warszawskie: editorial / architectural */
.bemc-home-kamienice{
  background:#efede7;
  color:#111;
  padding:clamp(36px,6vw,82px) 0;
  border-top:1px solid #111;
  border-bottom:1px solid #111
}
.bemc-kw-frame{width:min(1320px,calc(100% - 36px));margin:0 auto}
.bemc-kw-top{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:clamp(35px,6vw,78px)}
.bemc-kw-kicker{font-size:11px;letter-spacing:.18em;font-weight:800}
.bemc-kw-date{font-size:12px;margin-top:8px;opacity:.65}
.bemc-kw-mark{font-size:12px;letter-spacing:.14em;font-weight:800;border:1px solid currentColor;padding:10px 12px}
.bemc-kw-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(480px,1.1fr);gap:clamp(28px,6vw,88px);align-items:end}
.bemc-kw-copy h2{font-size:clamp(54px,8.5vw,132px)!important;line-height:.78!important;letter-spacing:-.065em!important;margin:0!important;color:inherit!important;font-weight:800!important}
.bemc-kw-copy h2 span{font-weight:300}
.bemc-kw-copy p{max-width:540px;font-size:16px;line-height:1.55;margin:28px 0 22px}
.bemc-kw-copy a{display:inline-block;color:inherit;text-decoration:none;font-size:12px;font-weight:800;letter-spacing:.08em;border-bottom:1px solid currentColor;padding-bottom:6px}
.bemc-kw-poster{position:relative;border:1px solid #111;padding:18px;background:#e7e4dd;overflow:hidden}
.bemc-kw-numbers{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.bemc-kw-numbers span{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border:1px solid #111;font-size:17px;font-weight:800}
.bemc-kw-poster .bemc-map-grid{grid-template-columns:1fr}
.bemc-kw-poster .bemc-card{display:none}
.bemc-kw-poster .bemc-map-canvas{border:0;background:#e7e4dd}
.bemc-kw-caption{display:flex;justify-content:flex-end;font-size:10px;letter-spacing:.12em;font-weight:700;margin-top:12px}

/* Form Space: gallery / fashion-art */
.bemc-home-formspace{background:#10100f;color:#f3efe6;padding:0}
.bemc-fs-frame{min-height:640px;display:grid;grid-template-columns:minmax(0,.82fr) minmax(520px,1.18fr)}
.bemc-fs-copy{padding:clamp(34px,5vw,74px);display:flex;flex-direction:column;min-width:0}
.bemc-fs-topline{display:flex;justify-content:space-between;gap:20px;font-size:10px;letter-spacing:.16em;text-transform:uppercase;opacity:.65}
.bemc-fs-index{font-size:11px;letter-spacing:.15em;margin-top:auto;margin-bottom:15px;opacity:.55}
.bemc-fs-copy h2{font-size:clamp(72px,10vw,158px)!important;line-height:.73!important;letter-spacing:-.07em!important;margin:0!important;color:inherit!important;font-weight:700!important}
.bemc-fs-route{font-size:12px;letter-spacing:.11em;margin:24px 0 0;max-width:520px}
.bemc-fs-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-top:auto;padding-top:60px}
.bemc-fs-bottom p{font-size:16px;line-height:1.4;max-width:260px;margin:0;opacity:.72}
.bemc-fs-bottom a{color:inherit;text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:5px;font-size:11px;letter-spacing:.1em;font-weight:800;white-space:nowrap}
.bemc-fs-visual{background:#e8e4da;color:#111;position:relative;padding:26px;display:flex;flex-direction:column}
.bemc-fs-tag{font-size:10px;letter-spacing:.16em;font-weight:800;margin-bottom:16px}
.bemc-fs-visual .bemc-app{margin:auto 0}
.bemc-fs-visual .bemc-map-grid{grid-template-columns:1fr}
.bemc-fs-visual .bemc-card{display:none}
.bemc-fs-visual .bemc-map-canvas{border:0;background:#e8e4da}
.bemc-fs-dates{text-align:right;font-size:11px;letter-spacing:.12em;margin-top:14px}

@media(max-width:900px){
  .bemc-kw-grid,.bemc-fs-frame{grid-template-columns:1fr}
  .bemc-kw-grid{align-items:start}
  .bemc-fs-frame{min-height:0}
  .bemc-fs-visual{min-height:430px}
  .bemc-fs-copy{min-height:520px}
}
@media(max-width:560px){
  .bemc-home-kamienice{padding:28px 0}
  .bemc-kw-frame{width:min(100% - 24px,1320px)}
  .bemc-kw-top{margin-bottom:36px}
  .bemc-kw-copy h2{font-size:54px!important}
  .bemc-kw-poster{padding:10px}
  .bemc-kw-numbers span{width:44px;height:44px;font-size:14px}
  .bemc-fs-copy{padding:28px 20px;min-height:470px}
  .bemc-fs-visual{padding:16px;min-height:350px}
  .bemc-fs-copy h2{font-size:76px!important}
  .bemc-fs-topline{flex-direction:column;gap:5px}
  .bemc-fs-bottom{align-items:flex-start;flex-direction:column;padding-top:44px}
}

.bemc-road-label-horizontal{font-size:13px;font-weight:800;letter-spacing:.14em}


/* ===== MOBILE FIX 3.6 ===== */
.bemc-app,
.bemc-map-grid,
.bemc-map-canvas,
.bemc-card{min-width:0;max-width:100%}
.bemc-map-canvas{width:100%}
.bemc-svg{max-width:100%;overflow:visible}
.bemc-card{overflow-wrap:anywhere}
.bemc-image img{max-width:100%}

@media(max-width:850px){
  .bemc-map-grid{grid-template-columns:minmax(0,1fr);gap:14px;width:100%}
  .bemc-map-canvas{overflow:hidden}
  .bemc-card{width:100%;padding:16px;border-top-width:2px}
  .bemc-number{font-size:42px}
  .bemc-place-name{font-size:18px!important}
  .bemc-actions{display:grid;grid-template-columns:1fr 1fr}
  .bemc-btn{width:100%;min-width:0;text-align:center}
  .bemc-qr{max-width:100%;overflow:auto}
}

@media(max-width:560px){
  .bemc-app{width:100%;max-width:100%;overflow:hidden}
  .bemc-map-grid{display:block}
  .bemc-map-canvas{margin:0 0 12px;width:100%;max-width:100%}
  .bemc-svg{width:100%;height:auto}
  .bemc-road{stroke-width:11}
  .bemc-road-main{stroke-width:17}
  .bemc-road-label{font-size:11px;letter-spacing:.08em}
  .bemc-road-label-horizontal{font-size:11px;letter-spacing:.1em}
  .bemc-point-label{font-size:11px!important;stroke-width:4px}
  .bemc-card{padding:14px}
  .bemc-image{aspect-ratio:16/9;margin-bottom:12px}
  .bemc-number{font-size:38px}
  .bemc-place-desc{font-size:13px}
  .bemc-actions{gap:8px}
}

@media(max-width:390px){
  .bemc-road-label{font-size:10px;letter-spacing:.05em}
  .bemc-road-label-horizontal{font-size:10px;letter-spacing:.07em}
  .bemc-point-label{font-size:10px!important}
  .bemc-card{padding:12px}
  .bemc-number{font-size:34px}
}

/* v3.7 readability */
.bemc-road-label{font-size:16px!important;font-weight:800!important;letter-spacing:.12em!important}
.bemc-road-label-horizontal{font-size:17px!important;font-weight:800!important}
.bemc-point circle{r:23px}
.bemc-point text{font-size:14px!important;font-weight:800!important}
.bemc-point-name,.bemc-point-label{font-size:15px!important;font-weight:800!important}
.bemc-point-name-link{color:inherit!important;text-decoration:none!important;border-bottom:1px solid currentColor}
.bemc-point-name-link:hover{opacity:.62}
@media(max-width:560px){
.bemc-road-label{font-size:17px!important}.bemc-road-label-horizontal{font-size:18px!important}
.bemc-point circle{r:25px}.bemc-point text{font-size:15px!important}
.bemc-point-name,.bemc-point-label{font-size:16px!important}
}

/* v3.8 — prowadź zamiast QR */
.bemc-route{font-weight:800!important}
@media(max-width:560px){
  .bemc-actions{grid-template-columns:1fr 1fr!important}
  .bemc-actions .bemc-btn{min-height:48px}
}

/* v3.9 mobile map refinement */
.bemc-map-canvas svg{display:block;width:100%;height:auto;overflow:visible}
.bemc-image{
  width:70%!important;
  max-width:70%!important;
  margin-left:0!important;
}
.bemc-image img{width:100%!important;height:auto!important;display:block}

/* vertical street names must remain readable on narrow screens */
@media(max-width:560px){
  .bemc-map-canvas{overflow:visible!important}
  .bemc-map-canvas svg{min-width:0!important;width:100%!important;overflow:visible!important}
  .bemc-road-label:not(.bemc-road-label-horizontal){
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    font-size:19px!important;
    font-weight:900!important;
    letter-spacing:.04em!important;
  }
  .bemc-road-label-horizontal{
    font-size:17px!important;
    font-weight:900!important;
  }
  .bemc-point-label{font-size:16px!important;font-weight:900!important}
    .bemc-image{width:70%!important;max-width:70%!important}
}

/* v3.10 fixes */
.bemc-place-name-link{
  color:inherit!important;
  text-decoration:underline;
  text-underline-offset:4px;
}
.bemc-place-name-link:hover{opacity:.65}

/* eliminate the stray bottom rule/line after the shortened SVG */
.bemc-map-canvas{
  border-bottom:0!important;
}
.bemc-map-canvas svg{
  border:0!important;
  outline:0!important;
}
@media(max-width:560px){
  .bemc-map-canvas{
    overflow:hidden!important;
    border-bottom:0!important;
    padding-bottom:0!important;
    margin-bottom:0!important;
  }
  .bemc-map-canvas svg{
    display:block!important;
    overflow:hidden!important;
    border-bottom:0!important;
    margin-bottom:-1px!important;
  }
}

/* v3.11 event header */
.bemc-event-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:end;margin:0 0 24px;padding:0 0 20px;border-bottom:1px solid currentColor}
.bemc-event-head-date{margin-bottom:10px;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;opacity:.68}
.bemc-event-head h1{margin:0!important;font-size:clamp(34px,5vw,72px)!important;line-height:.92!important;letter-spacing:-.045em!important;font-weight:800!important;color:inherit!important}
.bemc-event-head p{max-width:760px;margin:14px 0 0!important;font-size:16px;line-height:1.45;opacity:.76}
.bemc-event-head-link{display:inline-block;color:inherit!important;text-decoration:none!important;font-size:12px;font-weight:800;letter-spacing:.08em;white-space:nowrap;border-bottom:1px solid currentColor;padding-bottom:6px}
@media(max-width:700px){
.bemc-event-head{grid-template-columns:1fr;gap:18px;margin-bottom:18px;padding-bottom:18px}
.bemc-event-head h1{font-size:42px!important}
.bemc-event-head p{font-size:15px}
.bemc-event-head-link{width:max-content}
}

/* v3.12 — event header mobile typography */
.bemc-event-head,
.bemc-event-head-copy{
  min-width:0;
}
.bemc-event-head-copy{
  overflow:visible;
}
.bemc-event-head-eyebrow{
  margin-bottom:7px;
  font-size:11px;
  line-height:1.25;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
  opacity:.72;
  overflow-wrap:anywhere;
}
.bemc-event-head-date{
  overflow-wrap:anywhere;
  word-break:normal;
}
.bemc-event-head h1{
  overflow-wrap:anywhere;
  word-break:normal;
}
.bemc-event-head p{
  overflow-wrap:anywhere;
  word-break:normal;
}
.bemc-event-head-link{
  max-width:100%;
  white-space:normal;
  overflow-wrap:anywhere;
}

@media(max-width:700px){
  .bemc-event-head{
    width:100%;
    min-width:0;
    overflow:visible;
  }
  .bemc-event-head-copy{
    width:100%;
    min-width:0;
  }
  .bemc-event-head-eyebrow{
    font-size:10px;
    letter-spacing:.13em;
    margin-bottom:6px;
  }
  .bemc-event-head-date{
    font-size:11px;
    line-height:1.3;
    letter-spacing:.10em;
    margin-bottom:8px;
  }
  .bemc-event-head h1{
    font-size:24px!important;
    line-height:1.05!important;
    letter-spacing:-.025em!important;
    margin:0!important;
  }
  .bemc-event-head p{
    max-width:none;
    width:100%;
    font-size:18px!important;
    line-height:1.28!important;
    margin-top:8px!important;
  }
  .bemc-event-head-link{
    width:auto;
    max-width:100%;
    font-size:11px;
    line-height:1.35;
  }
}
@media(max-width:390px){
  .bemc-event-head h1{
    font-size:22px!important;
  }
  .bemc-event-head p{
    font-size:17px!important;
  }
}

/* v3.13 — hard mobile override for eyebrow + title */
@media(max-width:700px){
  .bemc-event-head .bemc-event-head-eyebrow{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    position:static!important;
    margin:0 0 8px!important;
    padding:0!important;
    font-size:10px!important;
    line-height:1.25!important;
    font-weight:800!important;
    letter-spacing:.14em!important;
    text-transform:uppercase!important;
    color:inherit!important;
  }

  .bemc-event-head .bemc-event-head-date{
    display:block!important;
    margin:0 0 7px!important;
    font-size:10px!important;
    line-height:1.3!important;
    letter-spacing:.09em!important;
  }

  .bemc-event-head .bemc-event-head-copy h1{
    font-size:20px!important;
    line-height:1.12!important;
    letter-spacing:-.01em!important;
    font-weight:700!important;
    margin:0!important;
    padding:0!important;
    max-width:100%!important;
  }

  .bemc-event-head .bemc-event-head-copy p{
    font-size:17px!important;
    line-height:1.28!important;
    margin:7px 0 0!important;
    max-width:100%!important;
  }
}

@media(max-width:390px){
  .bemc-event-head .bemc-event-head-copy h1{
    font-size:19px!important;
  }
  .bemc-event-head .bemc-event-head-copy p{
    font-size:16px!important;
  }
}
