:root {
  --ink: #1b1e23;
  --ink-soft: #3a3f47;
  --grey: #6b7280;
  --silver: #b8bdc6;
  --silver-light: #e7e9ee;
  --line: #e0e3e9;
  --bg: #eef0f3;
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --text: #1f242b;
  --muted: #737b86;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(27, 30, 35, 0.07);
  --shadow-lg: 0 20px 50px rgba(27, 30, 35, 0.12);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

*, *::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.7;
  font-weight: 400;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--grey); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.hidden { display: none !important; }

/* ── Horní lišta ── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 2rem;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.35rem;
  letter-spacing: -0.02em; color: var(--ink);
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a { color: var(--ink-soft); font-size: 0.86rem; font-weight: 500; letter-spacing: 0.01em; }
.nav-links a:hover { color: var(--grey); }
.nav-cta {
  background: var(--ink); color: #fff !important;
  padding: 0.55rem 1.3rem; border-radius: var(--radius);
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--grey); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--ink); cursor: pointer; }

/* ── Hero (bloky) ── */
.hero { padding-top: 68px; background: var(--bg); }
.hero-grid {
  max-width: 1160px; margin: 0 auto; padding: 3.5rem 2rem 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch;
}
.hero-text {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 3.5rem 3rem;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: var(--shadow);
}
.eyebrow {
  display: inline-block; align-self: flex-start;
  background: var(--silver-light); color: var(--ink-soft);
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.4rem 0.85rem; border-radius: 3px; margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1.02;
  letter-spacing: -0.03em; color: var(--ink); margin-bottom: 1.2rem;
}
.hero-desc { font-size: 1.05rem; color: var(--muted); margin-bottom: 2.2rem; max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-media {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; min-height: 420px; box-shadow: var(--shadow);
}
.hero-bg {
  width: 100%; height: 100%; min-height: 420px;
  background: linear-gradient(135deg, #d6dae1 0%, #a9afb9 45%, #6b7280 100%);
  background-size: cover; background-position: center;
}
.hero-strip {
  max-width: 1160px; margin: 2rem auto 0; padding: 0 2rem 3.5rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.strip-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem 1.4rem;
}
.strip-item strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.strip-item span { font-size: 0.82rem; color: var(--muted); }

/* ── Tlačítka ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.7rem; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.01em; border: 1px solid transparent; cursor: pointer;
  transition: all 0.22s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--grey); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; border-color: var(--silver); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn-secondary { background: var(--silver-light); color: var(--ink); }
.btn-secondary:hover { background: var(--silver); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.82rem; }
.btn-icon { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); }

/* ── Sekce / bloky ── */
.section { padding: 5rem 0; }
.block-head { margin-bottom: 2rem; }
.block-label {
  display: block; font-family: var(--font-display);
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--grey); margin-bottom: 0.7rem;
}
.block-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.02em;
  color: var(--ink); line-height: 1.1;
}
.block-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* O nás */
.about { background: var(--surface); }
.about-block {
  background: var(--surface-2); border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: var(--radius); padding: 2.5rem;
}
.about-text { color: var(--ink-soft); font-size: 1.12rem; line-height: 1.9; }

/* Galerie — rovnoměrné bloky */
.gallery-section { background: var(--bg); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item {
  position: relative; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius);
  aspect-ratio: 4/3; background: var(--surface); box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 0.9rem;
  background: linear-gradient(transparent, rgba(27,30,35,0.75));
  color: #fff; font-size: 0.82rem;
}
.gallery-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 2rem; }

/* Tým — bloky */
.team-section { background: var(--surface); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.team-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  animation: fadeUp 0.5s ease backwards; animation-delay: calc(var(--i) * 0.07s);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.team-photo { aspect-ratio: 1/1; background: var(--silver-light); overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--silver-light), var(--silver)); }
.team-body { padding: 1.25rem; }
.team-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--ink); margin-bottom: 0.3rem; }
.team-role { color: var(--grey); font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.8rem; }
.team-desc { font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); margin-bottom: 1rem; }
.team-hours { width: 100%; font-size: 0.83rem; border-collapse: collapse; }
.team-hours td { padding: 0.3rem 0; border-bottom: 1px solid var(--line); }
.team-hours td:first-child { color: var(--muted); width: 42%; }
.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(--line); border-radius: 8px; padding: 1rem; margin-bottom: 1rem; background: var(--surface-2); }
.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(--line); padding: 0.35rem 0.5rem; text-align: left; }
.admin-rozvrh input[type="time"] { width: 100%; padding: 0.25rem; border: 1px solid var(--line); border-radius: 6px; font-family: inherit; }

/* Ceník — bloky */
.pricing { background: var(--bg); }
.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.price-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  box-shadow: var(--shadow); transition: border-color 0.2s, transform 0.2s;
}
.price-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.price-name { font-size: 1.02rem; font-weight: 500; color: var(--ink); }
.price-value { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--grey); white-space: nowrap; }

/* Novinky */
.news { background: var(--surface); }
.news-list { display: flex; flex-direction: column; gap: 1.1rem; }
.news-card {
  display: flex; flex-direction: row; align-items: center; gap: 1.75rem;
  background: var(--surface-2); padding: 1.5rem;
  border: 1px solid var(--line); border-left: 4px solid var(--grey);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.news-card-body { flex: 1; min-width: 0; }
.news-card time { font-size: 0.75rem; color: var(--grey); font-weight: 600; }
.news-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin: 0.4rem 0; color: var(--ink); }
.news-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.7; }
.news-card-media { flex-shrink: 0; width: 240px; margin: 0; }
.news-card-media img { width: 100%; height: auto; display: block; border-radius: 4px; object-fit: contain; }
@media (max-width: 700px) {
  .news-card { flex-direction: column; align-items: stretch; }
  .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(--surface-2); 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: #fbeceb; color: #a33; border: none; padding: 0.4rem 0.7rem; border-radius: 6px; font-size: 0.8rem; cursor: pointer; }

/* Kontakt */
.contact { background: var(--bg); }
.contact-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info { padding: 2rem; }
.contact-list { list-style: none; }
.contact-list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: none; }
.contact-icon { font-size: 1.2rem; }
.contact-list strong { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.hours-card { padding: 2rem; }
.hours-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--ink); }
.hours-card table { width: 100%; }
.hours-card td { padding: 0.5rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.hours-card td:last-child { text-align: right; font-weight: 500; }
.zavreno { color: var(--muted); font-style: italic; }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,0.65); padding: 2.5rem 0; text-align: center; }
.footer p:first-child { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: #fff; letter-spacing: -0.01em; }

/* 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(--line); border-top-color: var(--ink); 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(20,22,26,0.92); 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 */
.admin-fab { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90; width: 52px; height: 52px; border-radius: 12px; background: var(--ink); color: #fff; border: none; font-size: 1.3rem; cursor: pointer; box-shadow: 0 4px 20px rgba(27,30,35,0.35); }
.admin-panel { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(20,22,26,0.42); }
.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(--line); }
.admin-header h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.admin-body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }
.admin-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--line); }
.admin-hint { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.admin-hint.success { color: var(--ink); }
.admin-hint.error { color: #c0392b; }
.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(--ink); }
.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(--line); border-radius: 8px; 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: 6px; border: 1px solid var(--line); background: transparent; font-size: 0.78rem; cursor: pointer; font-family: inherit; }
.admin-tabs .tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.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: 8px; overflow: hidden; background: var(--surface-2); 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(--line); border-radius: 8px; }
.gallery-edit-item img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.btn-delete-img { background: #fbeceb; color: #a33; 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(--line); }
.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; }

/* Responsivita */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 260px; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 0.5rem 1.5rem 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 0.6rem; border-bottom: none !important; }
  .nav-toggle { display: block; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 1.25rem; }
  .hero-text { padding: 2.5rem 1.5rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-strip { padding-left: 1.25rem; padding-right: 1.25rem; }
}

.creator-bar {
  --creator-bar-bg: var(--ink);
  --creator-bar-border: var(--grey);
  --creator-bar-muted: rgba(255,255,255,0.7);
  --creator-bar-link-hover: #fff;
}
