:root {
  --color-text: #221d18;
  --color-text-soft: #4a3f34;
  --color-muted: #7a6e62;
  --color-accent: #a64428;          /* warm clay/terracotta */
  --color-accent-dark: #7d3219;
  --color-bg: #fcfaf6;
  --color-bg-soft: #f1ebde;
  --color-line: #d9d0bf;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body {
  font-family: var(--sans);
  color: var(--color-text);
  font-size: 17px;
  line-height: 1.65;
  background: var(--color-bg);
}

/* ============ Typography ============ */
h1, h2, h3, .display-4, .section-title, .service-title, .brand-text {
  font-family: var(--serif);
  color: var(--color-text);
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 50;
}

.brand-text {
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.015em;
}

h1.display-4 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  font-variation-settings: "SOFT" 60;
}

.section-title {
  position: relative;
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.1;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
}
.section-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.75rem;
  height: 2px;
  background: var(--color-accent);
}
.section-title.text-center,
.text-center .section-title { text-align: center; }
.section-title.text-center:after,
.text-center .section-title:after {
  left: 50%;
  transform: translateX(-50%);
}

/* ============ Service cards (úvodní stránka kategorie) ============ */
.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  padding-top: 1.1rem;
  margin: 0 0 0.7rem 0;
  border-top: 2px solid var(--color-accent);
}
.service-block {
  height: 100%;
}
.service-block p,
.service-block .text-muted {
  color: var(--color-text-soft) !important;
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 0;
}

/* ============ Advantages / postup sekce ============ */
.advantages-block {
  font-size: 1.02rem;
  color: var(--color-text);
  line-height: 1.7;
}
.advantages-block h3,
.advantages-block ul,
.advantages-block ol { margin-top: 0; }

.check-list, .advantages-block ul {
  list-style: none;
  padding-left: 0;
}
.advantages-block ul li,
.check-list li {
  padding-left: 1.85rem;
  position: relative;
  margin-bottom: 0.85rem;
}
.advantages-block ul li:before,
.check-list li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 1rem;
  height: 2px;
  background: var(--color-accent);
}

.advantages-block ol,
ol.check-list {
  list-style: none;
  counter-reset: step;
  padding-left: 0;
}
.advantages-block ol li,
ol.check-list li {
  counter-increment: step;
  padding-left: 2.5rem;
  position: relative;
  margin-bottom: 1rem;
}
.advantages-block ol li:before,
ol.check-list li:before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.05em;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-accent);
  line-height: 1;
  width: 1.8rem;
  text-align: left;
  font-variation-settings: "SOFT" 70;
}

/* ============ Hero ============ */
.bg-light { background-color: var(--color-bg-soft) !important; }
.hero { padding-block: 4.5rem 5rem; }
.hero p.lead {
  font-size: 1.15rem;
  color: var(--color-text-soft);
}
.hero-logo {
  filter: contrast(1.05) saturate(0.95);
  opacity: 0.92;
}

/* Lead paragraph generic */
.lead {
  font-weight: 400;
  color: var(--color-text-soft);
}

/* ============ Card / item grid (realizace, vychytávky) ============ */
.card {
  border: 1px solid var(--color-line);
  border-radius: 6px;
  background: var(--color-bg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 22px rgba(60, 40, 20, 0.08);
}
.card-img-top {
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.card:hover .card-img-top { transform: scale(1.04); }
.card-img-placeholder {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-soft);
  font-size: 3rem;
  color: var(--color-muted);
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ============ Tag chips ============ */
.tag-chip {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  padding: 0.22rem 0.7rem;
  margin: 0.15rem 0.25rem 0.15rem 0;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--color-text-soft);
  cursor: pointer;
  line-height: 1.3;
  transition: all 0.15s ease;
}
.tag-chip:hover {
  background: var(--color-bg-soft);
  color: var(--color-text);
}
.tag-chip.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.tag-filter-bar { display: flex; flex-wrap: wrap; gap: 0.3rem; }

/* ============ Kontakt — step numbers ============ */
.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
  font-variation-settings: "SOFT" 60;
}

/* ============ Buttons ============ */
.btn {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 4px;
  padding: 0.6rem 1.4rem;
}
.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }
.btn-dark {
  background: var(--color-text);
  border-color: var(--color-text);
}
.btn-dark:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-outline-dark {
  color: var(--color-text);
  border-color: var(--color-text);
}
.btn-outline-dark:hover {
  background: var(--color-text);
  border-color: var(--color-text);
}
.btn-success {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-success:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

/* ============ Navbar ============ */
.navbar {
  background: var(--color-bg) !important;
  border-bottom: 1px solid var(--color-line) !important;
  padding-block: 1rem;
}
.navbar .nav-link {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--color-text-soft);
  padding-inline: 0.9rem;
}
.navbar .nav-link:hover { color: var(--color-accent); }
.navbar .nav-link.active {
  color: var(--color-text);
  position: relative;
}
.navbar .nav-link.active:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.9rem;
  right: 0.9rem;
  height: 2px;
  background: var(--color-accent);
}

/* ============ Modal (lightbox) ============ */
.modal-content { border-radius: 6px; border: 1px solid var(--color-line); }
.modal-header { border-bottom: 1px solid var(--color-line); }
.modal-title { font-family: var(--serif); font-weight: 500; }

.modal-gallery {
  background: #1a1612;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.modal-photo {
  max-height: 75vh;
  object-fit: contain;
  background: #1a1612;
}

.modal-gallery .carousel-control-prev,
.modal-gallery .carousel-control-next {
  width: 14%;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-gallery .carousel-control-prev-icon,
.modal-gallery .carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  background-size: 45% 45%;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.modal-gallery .carousel-control-prev:hover .carousel-control-prev-icon,
.modal-gallery .carousel-control-next:hover .carousel-control-next-icon {
  background-color: var(--color-accent);
  transform: scale(1.08);
}

.modal-gallery .carousel-indicators {
  margin-bottom: 0.75rem;
  z-index: 3;
}
.modal-gallery .carousel-indicators button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.45);
  border: 0;
  margin: 0 4px;
  opacity: 1;
  transition: background-color 0.2s, transform 0.2s;
}
.modal-gallery .carousel-indicators button.active {
  background-color: #fff;
  transform: scale(1.2);
}

.gallery-counter {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  z-index: 3;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-family: var(--sans);
  letter-spacing: 0.02em;
  pointer-events: none;
}

@media (max-width: 576px) {
  .modal-gallery .carousel-control-prev,
  .modal-gallery .carousel-control-next { width: 18%; }
  .modal-gallery .carousel-control-prev-icon,
  .modal-gallery .carousel-control-next-icon {
    width: 2.4rem; height: 2.4rem;
  }
}

/* ============ Footer ============ */
footer {
  background: var(--color-bg-soft) !important;
  border-top: 1px solid var(--color-line) !important;
  color: var(--color-text-soft);
}
footer a { color: var(--color-text-soft); }
footer a:hover { color: var(--color-accent); }

/* ============ Login + admin ============ */
.login-card {
  max-width: 420px;
  margin: 4rem auto;
  padding: 2.5rem 2rem;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 6px;
  box-shadow: 0 6px 22px rgba(60, 40, 20, 0.06);
}

.admin-shell { padding: 2rem 0; }
.admin-shell .card { border: 1px solid var(--color-line); }

.dropzone {
  border: 2px dashed var(--color-line);
  border-radius: 6px;
  padding: 2rem 1rem;
  text-align: center;
  background: var(--color-bg-soft);
  cursor: pointer;
  color: var(--color-muted);
  transition: all 0.15s ease;
}
.dropzone.is-dragover {
  background: var(--color-bg);
  border-color: var(--color-accent);
  color: var(--color-text);
}
.dropzone input { display: none; }

.photo-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.photo-list .photo-item {
  position: relative;
  width: 120px;
  height: 90px;
  background: var(--color-bg-soft);
  border-radius: 4px;
  overflow: hidden;
}
.photo-list img { width: 100%; height: 100%; object-fit: cover; }
.photo-list .photo-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(255,255,255,0.92);
  border: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0;
}

/* ============ Person card (kontakt — multi-person) ============ */
.person-card {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.person-card:hover {
  box-shadow: 0 6px 22px rgba(60, 40, 20, 0.08);
  transform: translateY(-2px);
}
.person-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 3px solid var(--color-bg-soft);
}
.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.01em;
}
.person-role {
  color: var(--color-accent);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.person-details {
  margin: 0;
  width: 100%;
  text-align: left;
}
.person-details dt {
  color: var(--color-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  margin-top: 0.75rem;
}
.person-details dd {
  margin: 0.1rem 0 0 0;
  font-size: 1rem;
}

/* ============ Inline images in markdown content ============ */
.content-figure {
  margin: 1.75rem 0;
  text-align: center;
}
.content-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: inline-block;
  box-shadow: 0 4px 18px rgba(60, 40, 20, 0.06);
}
.content-figure figcaption {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-top: 0.6rem;
  font-style: italic;
}

@media (max-width: 576px) {
  html, body { font-size: 16px; }
  .hero { padding-block: 2.5rem 3rem; }
  .login-card { margin: 2rem auto; padding: 1.5rem 1rem; }
  .section-title { font-size: 1.85rem; }
  .service-title { font-size: 1.3rem; }
}
