*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  font-family: var(--font); font-size: var(--fs-base); line-height: 1.4;
  color: var(--ink); background: #fff; overflow-x: hidden;
}
h1, h2, h3 { color: var(--heading); margin: 0; font-weight: var(--strong); }
h1 { font-size: var(--fs-title); line-height: var(--lh-title); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); color: var(--ink-strong); }
html[data-type="makro"] h2 { color: var(--heading); }
p { margin: 0; }
a { color: var(--blue-link); }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* header (same as registration prototype) */
.hdr { background: var(--navy); height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--hdr-pad); position: relative; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 22px; font-weight: 500; text-decoration: none; }
.logo { font-size: 38px; font-weight: 800; letter-spacing: -1.5px; color: var(--yellow); line-height: 1; }
.hdr-actions { display: flex; align-items: center; gap: 28px; color: #fff; font-size: 14px; font-weight: 600; position: relative; }
.hdr-actions .login { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: #fff; font-weight: 600; padding: 0; }
.hdr-actions .login .ico-building { width: 24px; height: 24px; filter: brightness(0) invert(1); }
.hdr-actions .login:hover { text-decoration: underline; text-underline-offset: 4px; }
.hdr button:focus-visible { outline-color: var(--yellow); }
html[data-type="makro"] .hdr-actions { font-size: 16px; }
.pop { position: absolute; right: 0; top: 40px; width: 300px; background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(0,0,0,.25); padding: 16px; z-index: 30; font-weight: 400; }
.pop .co { font-weight: var(--strong); color: var(--ink-strong); }
.pop .ico { font-size: var(--fs-small); color: var(--muted); margin-bottom: 12px; }
.pop a.item { display: block; padding: 8px 0; color: var(--ink); text-decoration: none; }
.pop a.item:hover { color: var(--blue); }
.pop hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }

/* layout (registration: 1128 column = 280 sidebar + 40 gap + 800 content) */
.page { max-width: 1128px; margin: 72px auto 80px; padding: 0 16px; }
/* breadcrumbs (same as makro.cz category pages: inline, blue links, chevron separators) */
.crumbs { margin: 0 0 24px; font-size: 16px; line-height: 24px; }
.crumbs ul { list-style: none; margin: 0; padding: 0; }
.crumbs li { display: inline; }
.crumbs a { color: #0064fe; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { display: inline-block; width: 14px; height: 14px; margin: 0 3px; vertical-align: -2px; background: #0064fe; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M5 2.5 9.5 7 5 11.5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M5 2.5 9.5 7 5 11.5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.shell { display: grid; grid-template-columns: 280px minmax(0, 800px); gap: 40px; align-items: start; }
.shell.in-crumbs { margin-top: -0px; }
.side { align-self: start; }
.side .who-box, .nav-group { background: var(--panel); padding: 8px; }
.side .who-box { padding: 16px 8px 8px; }
.side .who { padding: 0 10px 12px; }
.side .who b { color: var(--ink-strong); display: block; font-weight: var(--strong); }
.side .who span { font-size: var(--fs-small); color: var(--muted); }
.side .btn.soft { margin: 0 10px 8px; width: calc(100% - 20px); }
.nav-group { margin-top: 12px; }
.nav-group h3 { font-size: var(--fs-small); font-weight: 400; color: var(--muted); padding: 6px 10px 4px; }
.nav-a { display: flex; align-items: center; gap: 12px; padding: 10px; color: var(--ink-strong); text-decoration: none; font-weight: var(--strong); transition: background-color .15s; }
.nav-a svg, .nav-a > img { width: 18px; height: 18px; color: var(--navy); flex: none; }
.nav-a:hover { background: #fff; }
.nav-a[aria-current="page"] { background: #fff; box-shadow: inset 4px 0 0 var(--blue); }
.nav-a .lock { margin-left: auto; color: var(--muted); }
.nav-a .lock svg { width: 14px; height: 14px; color: var(--muted); }
.content { max-width: 800px; min-width: 0; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 24px; flex-wrap: wrap; }
.head h1 { margin: 0 0 8px; }
.back { display: none; align-items: center; gap: 12px; background: none; border: 0; color: var(--ink); padding: 0; margin-bottom: 20px; font-size: var(--fs-lbl); text-decoration: none; }
.back i { width: 32px; height: 32px; border-radius: 50%; background: var(--info); color: var(--navy); display: grid; place-items: center; font-style: normal; font-size: 16px; }
.menu-list { display: none; }

/* scenarios box (same look as registration "Prototype scenarios") */
.scn { position: fixed; right: 12px; bottom: 12px; z-index: 40; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 12px rgba(0,0,0,.12); width: 230px; font-size: 12px; }
.scn > button { width: 100%; text-align: left; padding: 8px 10px; background: none; color: var(--muted); border: 0; font-weight: 600; font-size: 12px; }
.scn-body { padding: 4px 10px 10px; display: flex; flex-direction: column; gap: 8px; }
.scn label { display: flex; flex-direction: column; gap: 3px; color: var(--muted); }
.scn select { font: inherit; padding: 4px; }

@media (max-width: 768px) {
  .page { margin: 24px auto 120px; }
  .shell { display: block; }
  .side { display: none; }
  .crumbs { display: none; }
  .brand { font-size: 26px; font-weight: 700; gap: 7px; }
  .logo { font-size: 26px; letter-spacing: -.5px; }
  .hdr-actions { gap: 12px; }
  .hdr-actions .login span { display: none; }
  .back { display: flex; }
  .on-hub .back { display: none; }
  .menu-list { display: block; }
  .on-hub .content > :not(.menu-list) { display: none; }
  .pop { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; padding-bottom: 24px; }
  .scn { right: 8px; bottom: 8px; }
}
@media (max-width: 400px) { .brand, .logo { font-size: 22px; } }
