:root {
  --primary: #ff5c1a;
  --primary-dark: #cb3e09;
  --accent: #4c2c1e;
  --accent-warm: #ff8a5b;
  --bg: #141414;
  --surface: #202020;
  --text: #f7f5f2;
  --muted: #c0bbb4;
  --border: #3b3b3b;
  --hero-overlay: rgba(0, 0, 0, 0.76);
  --radius: 6px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --font-display: 'Russo One', sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;
  --font-mono: 'Barlow', 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-weight: 400;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-warm); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.hidden { display: none !important; }

/* Nav — compact top bar, always solid, angular */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(20,20,20,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0; transition: padding 0.25s;
}
.nav.scrolled { padding: 0.4rem 0; box-shadow: 0 6px 24px rgba(0,0,0,0.4); }
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem; color: #fff; letter-spacing: 0.03em;
}
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.85); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: transparent !important;
  color: var(--primary) !important;
  border: 1px solid var(--primary);
  padding: 0.45rem 1rem; border-radius: var(--radius);
}
.nav-rezervace {
  background: var(--primary) !important;
  color: #141414 !important;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 700 !important;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0% 100%);
}
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: #fff; cursor: pointer; }

/* Hero — diagonal split: text left, image right */
.hero { position: relative; padding-top: 4.2rem; background: var(--bg); overflow: hidden; }
.hero-split { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 82vh; }
.hero-text {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: 3rem 3rem 3rem 1.5rem;
}
.hero-tag {
  display: inline-flex; align-self: flex-start; padding: 0.3rem 0.8rem;
  background: var(--primary); color: #141414;
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700;
  margin-bottom: 1.5rem; clip-path: polygon(6% 0, 100% 0, 94% 100%, 0% 100%);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem); line-height: 1; margin-bottom: 1.1rem;
  text-transform: uppercase; letter-spacing: 0.01em;
}
.hero-desc { font-size: 1.05rem; color: var(--muted); margin-bottom: 2rem; max-width: 460px; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.5rem; list-style: none; }
.hero-stats dt { font-family: var(--font-display); font-size: 1.6rem; color: var(--primary); }
.hero-stats dd { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.2rem; }

.hero-media {
  position: relative; overflow: hidden;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
  background: #0a0a0a;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(150deg, #0a0a0a 0%, #2a1206 55%, #ff5c1a 130%);
  background-size: cover; background-position: center;
}
.hero-bg.has-image { animation: slowZoom 22s ease infinite alternate; }
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-media-tag {
  position: absolute; bottom: 1.5rem; right: 1.5rem;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.75); background: rgba(0,0,0,0.5);
  padding: 0.35rem 0.7rem; border: 1px solid rgba(255,255,255,0.25);
}
.hero-strip {
  position: relative; z-index: 2; display: flex; gap: 2.5rem; overflow: hidden;
  background: var(--primary); color: #141414;
  padding: 0.6rem 1.5rem; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 2rem; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  border: none; cursor: pointer; transition: all 0.2s;
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0% 100%);
}
.btn-primary { background: var(--primary); color: #141414; }
.btn-primary:hover { background: var(--accent-warm); transform: translateY(-2px); }
.btn-secondary { background: var(--border); color: var(--text); clip-path: none; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; clip-path: none; }
.btn-icon { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); }

/* Sections */
.section { padding: 5rem 0; }
.section-header { margin-bottom: 2.5rem; }
.section-label {
  display: block; text-transform: uppercase; letter-spacing: 0.18em;
  font-family: var(--font-mono);
  font-size: 0.75rem; color: var(--primary); font-weight: 700; margin-bottom: 0.6rem;
}
.section-header h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.5rem); text-transform: uppercase; }

/* About — workshop plate */
.about { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .about-grid { grid-template-columns: 1.3fr 0.7fr; align-items: center; } }
.about-panel h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.4rem); text-transform: uppercase; margin: 0.5rem 0 1.2rem; }
.about-text { color: var(--muted); font-size: 1.05rem; line-height: 1.85; }
.about-plate {
  background: #0f0f0f; border: 2px solid var(--primary); border-radius: var(--radius);
  padding: 2rem; text-align: center; position: relative;
}
.plate-row { display: block; font-family: var(--font-display); font-size: 2.2rem; color: var(--primary); letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.15; }
.plate-code { display: block; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); margin-top: 0.8rem; letter-spacing: 0.15em; }

/* Gallery — wide cinematic strips */
.gallery-section { background: var(--bg); }
.gallery { display: flex; flex-direction: column; gap: 1rem; }
.gallery-item {
  position: relative; cursor: pointer; overflow: hidden;
  aspect-ratio: 21/8; border: 1px solid var(--border);
  filter: grayscale(0.55) contrast(1.05); transition: filter 0.35s, transform 0.35s;
}
.gallery-item:hover { filter: grayscale(0) contrast(1.1); transform: scale(1.008); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item figcaption {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 0.9rem 1.2rem; background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff; font-size: 0.85rem; font-weight: 600;
}
.gallery-item::before {
  content: ""; position: absolute; top: 0; left: 0; width: 5px; height: 100%;
  background: var(--primary); z-index: 2; opacity: 0; transition: opacity 0.25s;
}
.gallery-item:hover::before { opacity: 1; }
.gallery-empty { text-align: center; color: var(--muted); padding: 2rem; }
@media (max-width: 700px) { .gallery-item { aspect-ratio: 4/3; } }

/* Personál — mechanic ID badge cards */
.team-section { background: var(--surface); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.team-card {
  background: #0f0f0f; border: 1px solid var(--border); position: relative;
  display: grid; grid-template-columns: 96px 1fr;
  animation: fadeUp 0.5s ease backwards; animation-delay: calc(var(--i) * 0.08s);
}
.team-card::before {
  content: "ID"; position: absolute; top: 0; right: 0;
  font-family: var(--font-mono); font-size: 0.65rem; color: #141414;
  background: var(--primary); padding: 0.15rem 0.5rem; letter-spacing: 0.1em;
}
.team-photo { width: 96px; height: 100%; min-height: 130px; background: var(--border); overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-placeholder { width: 100%; height: 100%; background: linear-gradient(160deg, var(--accent), #000); }
.team-body { padding: 1.1rem 1.2rem; min-width: 0; }
.team-body h3 { font-family: var(--font-display); font-size: 1.15rem; text-transform: uppercase; margin-bottom: 0.3rem; }
.team-role { font-family: var(--font-mono); color: var(--primary); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.6rem; }
.team-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.5; margin-bottom: 0.8rem; }
.team-hours { width: 100%; font-size: 0.78rem; border-collapse: collapse; font-family: var(--font-mono); }
.team-hours td { padding: 0.25rem 0; border-bottom: 1px solid var(--border); }
.team-hours td:first-child { color: var(--muted); width: 45%; }
.team-empty { margin-top: 1rem; color: var(--muted); text-align: center; }
.hours-note { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.75rem; font-style: italic; }

.personel-edit-card { border: 1px solid var(--border); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; background: var(--bg); }
.personel-edit-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.personel-edit-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.p-foto-preview { margin: 0.5rem 0; max-height: 120px; overflow: hidden; }
.p-foto-preview img { max-height: 120px; width: auto; border-radius: 8px; }
.admin-rozvrh { font-size: 0.8rem; margin: 0.5rem 0; width: 100%; border-collapse: collapse; }
.admin-rozvrh th, .admin-rozvrh td { border: 1px solid var(--border); padding: 0.35rem 0.5rem; text-align: left; }
.admin-rozvrh input[type="time"] { width: 100%; padding: 0.25rem; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; }

/* Ceník — dense technical spec sheet */
.pricing { background: var(--bg); }
.price-sheet { border: 1px solid var(--border); }
.price-sheet-head {
  display: flex; justify-content: space-between;
  padding: 0.7rem 1.2rem; background: var(--primary); color: #141414;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
}
.price-list { display: flex; flex-direction: column; }
.price-card {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 1.2rem; border-bottom: 1px dashed var(--border);
  background: var(--surface);
}
.price-card:nth-child(even) { background: #1a1a1a; }
.price-card:hover { background: #241209; }
.price-name { font-size: 0.95rem; font-weight: 500; }
.price-name::before { content: "▸ "; color: var(--primary); }
.price-value { font-family: var(--font-mono); font-size: 1.05rem; color: var(--primary); font-weight: 700; white-space: nowrap; }

/* Novinky — workshop bulletin tickets */
.news { background: var(--surface); }
.news-list { display: flex; flex-direction: column; gap: 1.25rem; max-width: 900px; margin: 0 auto; }
.news-card {
  display: flex; flex-direction: row; align-items: stretch; gap: 1.5rem;
  background: var(--bg); border: 1px solid var(--border); position: relative;
  padding: 1.4rem 1.4rem 1.4rem 1.7rem;
}
.news-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: repeating-linear-gradient(180deg, var(--primary) 0 8px, transparent 8px 16px);
}
.news-card-body { flex: 1; min-width: 0; }
.news-card time { font-family: var(--font-mono); font-size: 0.72rem; color: var(--primary); font-weight: 700; letter-spacing: 0.08em; }
.news-card h3 { font-family: var(--font-display); font-size: 1.1rem; text-transform: uppercase; margin: 0.5rem 0; }
.news-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.news-card-media { flex-shrink: 0; width: 220px; margin: 0; }
.news-card-media img { width: 100%; height: auto; display: block; object-fit: contain; filter: grayscale(0.3); }

@media (max-width: 700px) {
  .news-card { flex-direction: column; align-items: stretch; padding-left: 1.4rem; }
  .news-card-media { width: 100%; max-width: 320px; margin: 0 auto; order: -1; }
}

.novinka-img-preview { min-height: 90px; max-height: 160px; border-radius: 8px; overflow: hidden; background: var(--bg); margin: 0.5rem 0; display: flex; align-items: center; justify-content: center; }
.novinka-img-preview img { max-width: 100%; max-height: 160px; width: auto; height: auto; object-fit: contain; }
.novinka-img-preview .placeholder { font-size: 0.8rem; color: var(--muted); }
.novinka-img-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.btn-remove-novinka-img { background: #fee; color: #c0392b; border: none; padding: 0.4rem 0.7rem; border-radius: 6px; font-size: 0.8rem; cursor: pointer; }

/* Kontakt — service desk panel */
.contact { background: #0f0f0f; border-top: 1px solid var(--border); }
.contact-desk { display: grid; gap: 2rem; }
@media (min-width: 768px) { .contact-desk { grid-template-columns: 1fr 1fr; } }
.contact-info h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.8rem, 3.5vw, 2.3rem); margin: 0.5rem 0 1.5rem; }
.contact-list { list-style: none; }
.contact-list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.contact-icon { font-size: 1.1rem; color: var(--primary); }
.contact-list strong { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-family: var(--font-mono); }
.hours-card {
  background: var(--surface); padding: 1.8rem; border: 1px solid var(--primary);
}
.hours-card h3 { font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; margin-bottom: 0.4rem; color: var(--primary); }
.hours-card table { width: 100%; font-family: var(--font-mono); }
.hours-card td { padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.hours-card td:last-child { text-align: right; font-weight: 600; }
.zavreno { color: var(--muted); font-style: italic; }

/* Footer */
.footer { background: #0a0a0a; color: rgba(255,255,255,0.6); padding: 2.2rem 0; text-align: center; border-top: 1px solid var(--border); }
.footer p:first-child { font-family: var(--font-display); font-size: 1.2rem; color: var(--primary); text-transform: uppercase; }

/* Loading */
.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50vh; color: var(--muted); gap: 1rem; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.9); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.lightbox img { max-height: 90vh; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Admin - same structure, themed */
.admin-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--primary); color: #fff; border: none;
  font-size: 1.3rem; cursor: pointer;
  box-shadow: 0 4px 20px rgba(61,122,110,0.4);
}
.admin-panel { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.4); }
.admin-panel.open { display: flex; justify-content: flex-end; }
.admin-drawer {
  width: 100%; max-width: 440px; height: 100%; background: var(--surface);
  display: flex; flex-direction: column; animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.admin-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.admin-header h2 { font-family: var(--font-display); font-size: 1.4rem; }
.admin-body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }
.admin-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); }
.admin-hint { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.admin-hint.success { color: var(--primary); }
.admin-body .checkbox { flex-direction: row !important; align-items: center; color: var(--text); margin: 0.75rem 0; }
.admin-body .checkbox input { width: auto; margin-right: 0.5rem; accent-color: var(--primary); }
.admin-body label { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.75rem; font-weight: 600; }
.admin-body input, .admin-body textarea {
  width: 100%; padding: 0.6rem 0.75rem; margin-top: 0.25rem;
  border: 1px solid var(--border); border-radius: 10px; font-family: inherit;
}
.admin-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }
.admin-tabs .tab {
  padding: 0.35rem 0.7rem; border-radius: 8px; border: 1px solid var(--border);
  background: transparent; font-size: 0.78rem; cursor: pointer; font-family: inherit;
}
.admin-tabs .tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.upload-box { margin-bottom: 1.5rem; }
.upload-box h4 { font-size: 0.9rem; margin-bottom: 0.75rem; }
.hero-preview { height: 120px; border-radius: 10px; overflow: hidden; background: var(--bg); margin-bottom: 0.75rem; display: flex; align-items: center; justify-content: center; }
.hero-preview img { width: 100%; height: 100%; object-fit: cover; }
.btn-upload { cursor: pointer; display: inline-block; }
.bunny-hint { font-size: 0.8rem; color: var(--muted); margin-top: 0.75rem; }
.gallery-edit { display: grid; gap: 0.75rem; margin-bottom: 0.75rem; }
.gallery-edit-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 0.5rem; align-items: center; padding: 0.5rem; border: 1px solid var(--border); border-radius: 10px; }
.gallery-edit-item img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.btn-delete-img { background: #fee; color: #c0392b; border: none; padding: 0.35rem 0.6rem; border-radius: 6px; font-size: 0.75rem; cursor: pointer; }
.edit-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.edit-row input { flex: 1; min-width: 80px; }
.edit-block { margin-bottom: 0.75rem; }
.status-msg { margin-top: 0.75rem; font-size: 0.85rem; text-align: center; }
.status-msg.error { color: #c0392b; }
.status-msg.success { color: #27ae60; }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; min-height: auto; }
  .hero-media { clip-path: none; height: 320px; order: -1; }
  .hero-text { padding: 2.5rem 1.5rem; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; background: #141414; padding: 1rem 1.5rem; box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .team-card { grid-template-columns: 80px 1fr; }
}

.creator-bar {
  --creator-bar-bg: #0a0a0a;
  --creator-bar-border: var(--border);
  --creator-bar-muted: var(--muted);
}
