/* Bumbálek – nový web (implementace design handoffu, hi-fi) */

:root {
  --ink: #0f172a;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--ink);
  font-family: 'Inter', sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

button { font-family: inherit; }

.only-mobile { display: none; }
.only-desktop { display: block; }
@media (max-width: 699.98px) {
  .only-mobile { display: flex; }
  .only-desktop { display: none; }
}

/* ===================== Desktop – fasáda ===================== */

#stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--ink);
}

#hero {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(100vw, 150vh);
  height: min(100vh, 66.667vw);
  background-image: url('hero-bumbalek.png');
  background-size: cover;
  background-position: center;
}

.hint {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
  letter-spacing: 1px;
  background: rgba(15, 23, 42, 0.55);
  padding: 8px 16px;
  border-radius: 20px;
  pointer-events: none;
  white-space: nowrap;
}

/* Hotspoty nápisů (levý sloupec ikon, horní nápis, pravý sloupec) */
.hs {
  position: absolute;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.hs:hover, .hs:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Levý horní panel (KONTAKTY / O FIRMĚ / FACEBOOK) */
.hs-soft {
  position: absolute;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.hs-soft:hover, .hs-soft:focus-visible { background: rgba(255, 255, 255, 0.16); }

.corner {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e8e6e0;
}
.corner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #e8e6e0;
}
.corner-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
}

/* Dveře a výlohy – klikací plochy */
.door-hs, .win-hs {
  position: absolute;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.door-hs:hover, .door-hs:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.55);
}

/* Glow výloh (jen vizuální vrstva) */
.win-glow {
  position: absolute;
  pointer-events: none;
  transition: box-shadow 0.3s;
  box-shadow: none;
}
.win-glow.on {
  box-shadow: inset 0 0 0 3px rgba(245, 158, 11, 0.85), 0 0 28px rgba(245, 158, 11, 0.55);
}

/* Zavírací křížky panelů */
.panel-close {
  position: absolute;
  top: 6px;
  right: 6px;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}
.panel-close-light { color: #fff; }

/* Levá výloha – panel */
#left-panel {
  position: absolute;
  left: 13.15%;
  top: 39.06%;
  width: 21.22%;
  height: 36.62%;
  clip-path: polygon(2.15% 0.00%, 80.44% 5.97%, 84.16% 6.43%, 87.48% 7.19%, 90.40% 8.27%, 92.93% 9.66%, 95.07% 11.36%, 96.81% 13.37%, 98.15% 15.69%, 99.11% 18.33%, 99.66% 21.28%, 99.83% 24.53%, 99.08% 97.33%, 19.62% 99.47%, 15.90% 99.40%, 12.57% 98.98%, 9.65% 98.21%, 7.12% 97.08%, 5.00% 95.60%, 3.27% 93.77%, 1.95% 91.59%, 1.02% 89.06%, 0.49% 86.17%, 0.37% 82.94%);
  background: radial-gradient(ellipse 95% 90% at center, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.5) 45%, rgba(15, 23, 42, 0) 90%);
  backdrop-filter: blur(4px);
  padding: 35px 24px 32px 24px;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}
.left-title {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1.55vw, 18px);
  color: var(--accent);
  transform: skewY(3.35deg);
  transform-origin: 0 0;
}
.left-text {
  font-size: clamp(11px, 1vw, 13px);
  line-height: 1.3;
  white-space: pre-line;
  transform: skewY(3.35deg);
  transform-origin: 0 0;
}
.left-btn {
  margin-top: auto;
  align-self: flex-end;
  transform: skewY(-0.75deg);
  transform-origin: 0 0;
  background: var(--accent);
  color: var(--ink);
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  font-weight: 400;
  font-size: clamp(9px, 0.85vw, 11px);
  cursor: pointer;
}

/* Pravá výloha – panel */
#right-panel {
  position: absolute;
  left: 69.21%;
  top: 46.78%;
  width: 20.38%;
  height: 27.25%;
  clip-path: polygon(0.64% 0.00%, 86.62% 7.49%, 89.04% 7.85%, 91.21% 8.47%, 93.13% 9.35%, 94.79% 10.50%, 96.20% 11.91%, 97.36% 13.59%, 98.27% 15.53%, 98.92% 17.73%, 99.32% 20.20%, 99.47% 22.94%, 100.00% 94.98%, 12.77% 99.36%, 10.34% 99.34%, 8.17% 99.02%, 6.26% 98.40%, 4.61% 97.48%, 3.21% 96.26%, 2.08% 94.74%, 1.19% 92.92%, 0.57% 90.80%, 0.20% 88.38%, 0.09% 85.66%);
  background: radial-gradient(ellipse 95% 90% at center, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.5) 45%, rgba(15, 23, 42, 0) 90%);
  backdrop-filter: blur(4px);
  padding: 26px 18px;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 5;
}
.right-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(14px, 1.55vw, 17px);
  letter-spacing: 0.4px;
  color: var(--accent);
  transform: skewY(3deg);
  transform-origin: 0 0;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.18);
}
.right-text {
  font-size: clamp(10px, 0.9vw, 12px);
  line-height: 1.4;
  width: 100%;
  white-space: pre-line;
  transform: skewY(2.3deg);
  transform-origin: 0% 100%;
}

/* Dveřní panel (Kontakty / O nás) */
#door-panel {
  position: absolute;
  left: 40.18%;
  top: 40.62%;
  width: 25.13%;
  height: 36.14%;
  clip-path: polygon(0.8% 0.0%, 100.0% 9.9%, 99.2% 95.6%, 0.0% 100.0%);
  background: radial-gradient(ellipse 100% 100% at center, #0f172a 0%, #0f172a 25%, rgba(15, 23, 42, 0) 100%);
  backdrop-filter: blur(4px);
  padding: 50px 24px 24px 24px;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
}
#door-panel.contact { padding-top: 80px; }
.door-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(15px, 1.7vw, 19px);
  letter-spacing: 0.5px;
  color: var(--accent);
  transform: skewY(3.62deg);
  transform-origin: 0 0;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.door-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  transform-origin: 0 0;
}
.door-row .ico {
  font-size: 11px;
  color: var(--accent);
  flex-shrink: 0;
  width: 14px;
}
.door-row .txt {
  font-size: clamp(9px, 0.85vw, 11px);
  line-height: 1.3;
}
.door-note {
  font-size: clamp(8px, 0.75vw, 10px);
  line-height: 1.3;
  font-style: italic;
  color: #cbd5e1;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  transform: skewY(1.2deg);
  transform-origin: 0 0;
}

/* Přepínač poboček nad dveřmi */
#branch-switch {
  position: absolute;
  z-index: 9;
}
.branch-pill {
  position: absolute;
  transform: translate(-50%, -50%) skewY(5.37deg);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  white-space: nowrap;
  padding: 2px 5px;
  border-radius: 4px;
}
.branch-pill:hover, .branch-pill.active {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}
.branch-pill.active { background: #fff; }

/* ===================== Modály ===================== */

#modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#modal-card {
  position: relative;
  background: #fff;
  border-radius: 10px;
  max-width: 760px;
  width: 100%;
  max-height: 85vh;
  overflow: auto;
  padding: clamp(20px, 5vw, 40px);
  color: var(--ink);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.kicker {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
#modal-card h1 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 32px;
  margin: 0 0 24px;
}

/* O nás */
.lead { font-size: 16px; line-height: 1.7; color: #334155; margin: 0 0 32px; }
.timeline { display: flex; gap: 0; border-top: 2px solid var(--ink); padding-top: 20px; }
.tl-col { flex: 1; padding-right: 20px; border-right: 1px solid #e2e6ea; }
.tl-col:last-child { border-right: none; }
.tl-year { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 24px; color: var(--accent); }
.tl-text { font-size: 13px; color: #334155; margin-top: 8px; line-height: 1.5; }

/* Sortiment */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.svc-card { background: #f4f6f8; border: 1px solid #e2e6ea; border-radius: 8px; padding: 18px; }
.svc-tag { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 12px; color: var(--accent); margin-bottom: 10px; }
.svc-name { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.svc-desc { font-size: 13px; line-height: 1.5; color: #4b5867; }
.svc-extra { background: var(--ink); border-radius: 8px; padding: 24px 28px; color: #fff; }
.svc-extra-title { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.svc-extra-list { display: flex; gap: 24px; flex-wrap: wrap; }
.svc-extra-item { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* Pobočky */
.branch-card { background: #f4f6f8; border: 1px solid #e2e6ea; border-radius: 8px; margin-bottom: 24px; padding: 24px; }
.branch-card h2 { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 20px; margin: 0 0 14px; }
.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e6ea;
}
.b-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; margin-bottom: 6px; }
.b-val { font-size: 13px; color: #1e293b; line-height: 1.4; }
.branch-note { font-size: 13px; color: #4b5867; margin: 0 0 16px; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.staff { display: flex; gap: 10px; align-items: flex-start; }
.ini {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}
.s-name { font-weight: 700; font-size: 13px; color: #1e293b; }
.s-role { font-size: 11px; color: var(--accent); }
.s-tel { font-size: 11px; color: #4b5867; }
.s-mail { font-size: 11px; }

/* Aktuality + potvrzení formuláře */
.news-empty {
  background: #f4f6f8;
  border: 1px solid #e2e6ea;
  border-radius: 8px;
  padding: 36px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}
.sent-title { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 18px; margin-bottom: 8px; color: var(--accent); }
.sent-sub { font-size: 13px; color: #4b5867; }

/* Kontaktní formulář */
#contact-form { display: flex; flex-direction: column; gap: 14px; }
.f-row label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-bottom: 6px;
}
.f-row input, .f-row select, .f-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}
.f-row select { background: #fff; }
.f-row textarea { resize: vertical; }
.f-submit {
  background: var(--accent);
  color: var(--ink);
  border: none;
  border-radius: 4px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  align-self: flex-start;
}
.form-error { font-size: 13px; color: #dc2626; }

/* Skryté počítadlo návštěv – průhledný text v rohu, zviditelní se označením myší */
#pocitadlo {
  position: fixed;
  bottom: 4px;
  left: 6px;
  z-index: 60;
  min-width: 80px;
  min-height: 14px;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: transparent;
  cursor: default;
  user-select: text;
}
#pocitadlo::selection { color: #fff; background: rgba(15, 23, 42, 0.9); }

/* Statistika návštěvnosti (modál) */
.stats-big { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 44px; color: var(--accent); }
.stats-sub { font-size: 13px; color: #4b5867; margin: 4px 0 24px; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stats-table td { padding: 6px 0; border-bottom: 1px solid #e2e6ea; color: #1e293b; }
.stats-table td:last-child { text-align: right; font-weight: 700; }

/* ===================== Mobil (< 700px) ===================== */

#mobile {
  min-height: 100vh;
  background: var(--ink);
  color: #fff;
  padding: 28px 20px 40px;
  flex-direction: column;
  gap: 22px;
}
.m-head { display: flex; flex-direction: column; gap: 6px; }
.m-logo {
  height: 72px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left;
  align-self: flex-start;
  filter: brightness(0) invert(1);
}
.m-sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
}
.m-acc { display: flex; flex-direction: column; gap: 8px; }
.m-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
}
.m-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
}
.m-item-head .chev { color: var(--accent); }
.m-item-text { font-size: 14px; line-height: 1.5; color: #cbd5e1; margin-top: 10px; }
.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
}
.m-btn-accent { background: var(--accent); color: var(--ink); border: none; }
.m-btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }
