/* Pivovarska x Svornosti - objemova studie. Vizualni jazyk dle ebmgroup.cz:
   bila/cerna, tenky grotesk, ostre hrany, velkorysy prostor. */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #0a0a0a;
  --ink-soft: #4a4a4a;
  --paper: #ffffff;
  --paper-alt: #fafafa;
  --dark: #303132;
  --line: #e3e3e0;
  --maxw: 1200px;
}

html { scroll-behavior: smooth; }
body {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 64px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 14px; }
.brand-mark { font-weight: 600; font-size: 20px; letter-spacing: .28em; }
.brand-tag { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-size: 12px;
  letter-spacing: .18em; text-transform: uppercase; padding: 8px 14px;
  border: 1px solid transparent; transition: border-color .2s;
}
.site-nav a:hover { border-color: var(--ink); }
@media (max-width: 720px) { .site-nav a { padding: 8px 7px; letter-spacing: .1em; } .brand-tag { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.68) 100%); }
.hero-content { position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px 72px; color: #fff; }
.hero-eyebrow { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 18px; opacity: .85; }
.hero-title { font-weight: 200; font-size: clamp(52px, 9vw, 118px); line-height: .98; letter-spacing: .01em; text-transform: uppercase; }
.hero-sub { margin-top: 20px; font-size: clamp(16px, 2vw, 20px); font-weight: 300; max-width: 560px; }
.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 28px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.35); }
.hero-meta li { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; opacity: .92; }
.hero-meta strong { display: block; font-size: 24px; font-weight: 400; letter-spacing: 0; text-transform: none; }

/* ---------- sections ---------- */
section { padding: 96px 32px; }
.section-head { max-width: var(--maxw); margin: 0 auto 48px; }
.eyebrow { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
h2 { font-weight: 200; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.08; letter-spacing: .005em; }
.lede { margin-top: 18px; max-width: 640px; color: var(--ink-soft); }
h3 { font-weight: 400; font-size: 20px; margin-bottom: 14px; }

/* ---------- 3D viewer ---------- */
.viewer-section { background: var(--dark); color: #fff; }
.viewer-section .eyebrow { color: rgba(255,255,255,.55); }
.viewer-section .lede { color: rgba(255,255,255,.65); }
.viewer-wrap { max-width: 1400px; margin: 0 auto; position: relative; }
#viewer { position: relative; height: min(74vh, 780px); background: #23272b; overflow: hidden; cursor: grab; }
#viewer:active { cursor: grabbing; }
#viewer canvas { display: block; }

#viewer-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px;
  align-items: center; justify-content: center; background: #23272b; z-index: 5;
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7);
  transition: opacity .4s; pointer-events: none;
}
#viewer-loading.done { opacity: 0; }
#viewer-loading .bar { width: 220px; height: 2px; background: rgba(255,255,255,.15); }
#viewer-progress { width: 0%; height: 100%; background: #fff; transition: width .2s; }

.viewer-controls {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  padding: 18px 0 0;
}
.views { display: flex; flex-wrap: wrap; gap: 8px; }
.viewer-controls button {
  font-family: inherit; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35);
  padding: 10px 18px; cursor: pointer; transition: all .2s;
}
.viewer-controls button:hover { border-color: #fff; }
.viewer-controls button.active { background: #fff; color: var(--dark); border-color: #fff; }
.switches { display: flex; align-items: center; gap: 18px; }
.switch { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.switch input { accent-color: #fff; width: 15px; height: 15px; }
#walk-btn { border-color: rgba(255,255,255,.7); }
#walk-hint {
  display: none; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 86px; z-index: 6; background: rgba(0,0,0,.72); color: #fff;
  font-size: 13px; letter-spacing: .05em; padding: 10px 18px; pointer-events: none;
}
.viewer-wrap.walking #walk-hint { display: block; }

/* popisky v 3D */
.lbl {
  font-family: "Inter", sans-serif; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: #fff; background: rgba(20,21,22,.78);
  border-left: 2px solid #fff; padding: 5px 10px; white-space: nowrap;
  pointer-events: none; user-select: none;
}
.lbl.minor { color: rgba(255,255,255,.85); background: rgba(20,21,22,.55); border-left-color: rgba(255,255,255,.5); }

/* ---------- porovnavaci slidery ---------- */
.compare-section { background: var(--paper); }
.compare { max-width: var(--maxw); margin: 0 auto 64px; }
.compare-box { position: relative; overflow: hidden; user-select: none; }
.compare-box img { display: block; width: 100%; height: auto; pointer-events: none; }
.compare-top { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.compare-box input[type=range] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 0; pointer-events: none;
}
.compare-handle i {
  position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,.4);
}
.compare-handle span {
  position: absolute; top: 16px; font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: #fff; background: rgba(0,0,0,.55); padding: 4px 8px;
}
.compare-handle span:first-child { right: 10px; }
.compare-handle span:last-child { left: 10px; }
figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }

/* ---------- bilance ---------- */
.stats-section { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid {
  max-width: var(--maxw); margin: 0 auto 64px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.stat { background: var(--paper); padding: 28px 22px; }
.stat .num { display: block; font-weight: 200; font-size: 40px; line-height: 1.1; }
.stat .unit { display: block; margin-top: 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.two-col { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.two-col p + p { margin-top: 14px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }
.ctx-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ctx-table th, .ctx-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.ctx-table th { font-weight: 400; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.table-note { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }

/* ---------- vztah k lokalite ---------- */
.relation-section { background: var(--dark); color: #fff; }
.relation-section .eyebrow { color: rgba(255,255,255,.55); }
.relation-body { max-width: 760px; margin: 0 auto; font-size: clamp(17px, 2vw, 21px); font-weight: 300; line-height: 1.75; }
.relation-body p + p { margin-top: 22px; }

/* ---------- footer ---------- */
.site-footer { padding: 48px 32px 56px; max-width: var(--maxw); margin: 0 auto; color: var(--ink-soft); font-size: 13px; }
.site-footer p + p { margin-top: 10px; }
