/* ============================================
   TRUHLÁŘSTVÍ - CSS STYLY
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #faf8f5;
  --color-bg-warm: #f5f0eb;
  --color-bg-card: #ffffff;
  --color-dark: #2c1810;
  --color-brown: #3d2b1f;
  --color-gold: #c8a96e;
  --color-gold-light: #d4bc8a;
  --color-text: #4a3f35;
  --color-text-light: #7a6f63;
  --color-border: #e8e0d8;
  --color-white: #ffffff;
  --color-danger: #c0392b;
  --color-success: #27ae60;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1200px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(44, 24, 16, 0.06);
  --shadow-md: 0 4px 20px rgba(44, 24, 16, 0.1);
  --shadow-lg: 0 8px 40px rgba(44, 24, 16, 0.15);
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-light);
  margin-bottom: 48px;
}

.text-center {
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}

.btn-primary:hover {
  background-color: var(--color-brown);
  border-color: var(--color-brown);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-brown);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-brown);
  background-color: var(--color-bg-warm);
}

.btn-danger {
  background-color: var(--color-danger);
  color: var(--color-white);
}

.btn-danger:hover {
  opacity: 0.9;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

/* --- Section --- */
.section {
  padding: 80px 0;
}

/* ============================================
   NAVIGACE
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo-icon {
  color: var(--color-gold);
  font-size: 1.2rem;
}

.nav-menu {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 20px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-text);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-dark);
  background-color: var(--color-bg-warm);
}

.nav-link.active {
  font-weight: 500;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--color-dark);
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Admin nav */
.nav-admin-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-admin-info .btn-small {
  padding: 6px 14px;
  font-size: 0.8rem;
  line-height: 1;
}

.admin-badge {
  padding: 6px 12px;
  background-color: var(--color-gold);
  color: var(--color-white);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3d2b1f 0%, #5a3e2b 50%, #7a5c40 100%);
  background-image: url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44, 24, 16, 0.75) 0%, rgba(61, 43, 31, 0.65) 100%);
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 0 24px;
  max-width: 720px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-title span {
  color: var(--color-gold-light);
  font-weight: 400;
  font-size: 0.7em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn-primary {
  padding: 16px 40px;
  font-size: 1rem;
}

/* ============================================
   O NÁS
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--color-bg-warm) 0%, #e8ddd3 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.6;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ============================================
   SLUŽBY / SPECIALIZACE
   ============================================ */
.services {
  background-color: var(--color-bg-warm);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: block;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8ddd3 0%, #d4c8bc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
}

.service-image-placeholder svg {
  width: 48px;
  height: 48px;
}

.service-content {
  padding: 24px;
}

.service-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.service-content p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

.service-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-gold);
  transition: color var(--transition);
}

.service-card:hover .service-link {
  color: var(--color-brown);
}

/* ============================================
   CTA
   ============================================ */
.cta {
  background: linear-gradient(135deg, #3d2b1f 0%, #5a3e2b 100%);
  color: var(--color-white);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 16px;
}

.cta-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  padding: 120px 0 48px;
  background: linear-gradient(135deg, #3d2b1f 0%, #5a3e2b 100%);
  text-align: center;
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-white);
  margin-bottom: 12px;
}

.page-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
}

/* ============================================
   GALERIE
   ============================================ */
.gallery-section {
  padding: 48px 0 80px;
}

.gallery-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 24px;
  border: 1px solid var(--color-border);
  border-radius: 30px;
  background: var(--color-bg-card);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.filter-btn.active {
  background-color: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-warm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 24, 16, 0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-title {
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Gallery states */
.gallery-loading,
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--color-text-light);
}

.gallery-empty svg {
  margin: 0 auto 16px;
  opacity: 0.4;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-caption {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  padding: 16px 0;
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.8rem;
  padding: 16px 20px;
  cursor: pointer;
  border-radius: var(--radius);
  opacity: 0.7;
  transition: all var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* ============================================
   KONTAKT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.contact-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.contact-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background-color: var(--color-bg-warm);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-dark);
  margin-bottom: 0;
}

.contact-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-card a {
  color: var(--color-gold);
  transition: color var(--transition);
}

.contact-card a:hover {
  color: var(--color-brown);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: var(--color-bg-warm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--color-text-light);
  border-radius: var(--radius-lg);
}

.map-placeholder svg {
  opacity: 0.4;
}

.map-placeholder small {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ============================================
   PATIČKA
   ============================================ */
.footer {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer h4 {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer p,
.footer li {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer a {
  transition: color var(--transition);
}

.footer a:hover {
  color: var(--color-gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ============================================
   ADMIN - LOGIN
   ============================================ */
.admin-login {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding-top: 72px;
}

.login-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.login-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.login-subtitle {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-error {
  background-color: #fdf2f2;
  color: var(--color-danger);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* ============================================
   ADMIN - PANEL
   ============================================ */
.admin-panel {
  padding-top: 100px;
}

.admin-upload-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.admin-upload-card h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-dark);
  margin-bottom: 24px;
}

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 20px;
  position: relative;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--color-gold);
  background-color: rgba(200, 169, 110, 0.05);
}

.upload-zone-content {
  color: var(--color-text-light);
}

.upload-zone-content svg {
  margin: 0 auto 12px;
  color: var(--color-gold);
}

.upload-zone-content p {
  margin-bottom: 8px;
}

.upload-zone-content strong {
  color: var(--color-gold);
}

.upload-zone-content small {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Upload preview */
.upload-preview {
  position: relative;
  display: inline-block;
}

.upload-preview img {
  max-height: 200px;
  border-radius: var(--radius);
}

.upload-preview-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  background: var(--color-danger);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Progress */
.upload-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: var(--color-bg-warm);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color-gold);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--color-text-light);
  min-width: 36px;
}

/* Admin gallery */
.admin-gallery {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.admin-gallery h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.admin-filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-tab {
  padding: 8px 20px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}

.admin-tab:hover {
  border-color: var(--color-gold);
}

.admin-tab.active {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.admin-gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-warm);
  aspect-ratio: 4 / 3;
}

.admin-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-gallery-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
}

.admin-gallery-item-info > div:first-child {
  min-width: 0;
  overflow: hidden;
}

.admin-gallery-item-title {
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  display: block;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-gallery-item-category {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  display: block;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-delete-btn {
  background: rgba(192, 57, 43, 0.9);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.admin-delete-btn:hover {
  background: var(--color-danger);
  transform: scale(1.1);
}

.admin-gallery-item-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.admin-edit-btn {
  background: rgba(200, 169, 110, 0.9);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.admin-edit-btn:hover {
  background: var(--color-gold);
  transform: scale(1.1);
}

/* --- Edit modal --- */
.modal-content-edit {
  max-width: 480px;
  text-align: left;
}

.modal-content-edit h3 {
  text-align: center;
}

.edit-modal-preview {
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.edit-modal-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Správa kategorií --- */
.category-form .form-row-inline {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.form-group-btn {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-end;
}

.form-group-btn .btn {
  height: 46px;
  white-space: nowrap;
}

.form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

.form-optional {
  font-weight: 400;
  color: var(--color-text-light);
  font-size: 0.8rem;
}

.category-list {
  margin-top: 16px;
}

.category-empty {
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-style: italic;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--color-bg);
}

.category-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-item-name {
  font-weight: 500;
  color: var(--color-dark);
}

.category-item-slug {
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-family: monospace;
}

.category-item-actions {
  display: flex;
  gap: 6px;
}

.category-item-actions .btn-small {
  padding: 4px 8px;
  font-size: 0.75rem;
  min-width: auto;
}

.category-item-actions .btn-danger {
  background: rgba(192, 57, 43, 0.9);
  color: white;
  border: none;
}

.category-item-actions .btn-danger:hover {
  background: var(--color-danger);
}

@media (max-width: 768px) {
  .category-form .form-row-inline {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   MODAL
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-content {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.modal-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.modal-content p {
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ============================================
   TOAST / NOTIFIKACE
   ============================================ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 4000;
  padding: 16px 24px;
  border-radius: var(--radius);
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  background-color: var(--color-success);
}

.toast.error {
  background-color: var(--color-danger);
}

/* ============================================
   ANIMACE
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONZIVITA
   ============================================ */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 12px 16px;
  }

  .hero {
    min-height: 80vh;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .stat {
    flex: 1;
    min-width: 100px;
  }

  .section {
    padding: 60px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 32px 24px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
  }

  .lightbox-prev,
  .lightbox-next {
    padding: 12px 16px;
    font-size: 1.4rem;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .gallery-item {
    border-radius: var(--radius);
  }

  .admin-gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .upload-zone {
    padding: 24px;
  }
}

/* ============================================
   Skrytí popisků v galerii (detail i dlaždice)
   ============================================ */
.lightbox-caption,
.gallery-item-overlay {
  display: none !important;
}
