html { scroll-behavior: smooth; }

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #FFCC00; /* stejné pozadí jako hlavní stránky */
  color: #222;
}

/* stejné "ohraničení" jako hlavní stránky */
.content {
  width: min(100% - 2rem, 75rem);
  margin: 0 auto;
  background-color: #fff;
}

.service-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* Zpět + hláška */
.back-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0 14px;
}

.back-note {
  margin: 0;
  font-size: 14px;
  color: #555;
  white-space: nowrap;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: bold;
  color: #004aad;
  text-decoration: none;
}

.back-icon svg {
  width: 28px;
  height: 28px;
}

/* Hero */
.hero-image {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 600px;
  overflow: hidden;
  border-radius: 12px;

  box-shadow: 0 0 0 6px #FFCC00; /* žlutý rámeček */
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-fit: cover;
  object-position: center 30%; /* posune obrázek dolů */
}

.hero-image img[src*="diagnostika"] {
  object-position: center 5%;
}

.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  text-align: center;
  padding: 15px;
}

.overlay-content h1 {
  font-size: 2rem;
  margin: 0;
}

.overlay-content p {
  margin: 6px 0 0;
  font-size: 1rem;
  opacity: 0.95;
}

/* Popis */
.description {
  margin: 20px 0;
  font-size: 18px;
}

.lead {
  margin: 0 0 12px;
  font-size: 18px;
}

.checklist {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.checklist li {
  padding-left: 28px;
  position: relative;
  line-height: 1.35;
}

.checklist li::before {
  content: "✅";
  position: absolute;
  left: 0;
  top: 0;
}

/* Proč nás zvolit */
.why-us {
  background: #f8fafc;
  padding: 22px;
  border-radius: 12px;
  margin: 22px 0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.why-us h2 { margin: 0 0 10px; }

/* CTA */
.cta-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.btn-primary {
  background: #004aad;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { background: #003580; }

.btn-secondary {
  border: 2px solid #004aad;
  color: #004aad;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: #004aad;
  color: #fff;
}

/* Rozbalovací karty – layout */
.quick-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.quick-actions {
  padding: 6px 0;
}

/* Rozbalovací karty */
.quick-actions[hidden] {
  display: none !important;
}

.action-card {
  display: block;
  text-decoration: none;
  color: #111;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.action-title {
  font-weight: 800;
  font-size: 18px;
}

.action-sub {
  margin-top: 6px;
  color: #444;
  font-size: 14px;
}

/* Mobil */
@media (max-width: 768px) {
  .back-row { flex-direction: column; align-items: flex-start; }
  .back-note { white-space: normal; }

  .overlay-content h1 { font-size: 1.6rem; }
  .overlay-content p { font-size: 0.95rem; }

  .cta-buttons { flex-direction: column; gap: 10px; }
  .quick-actions { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .blog-article {
    width: 100%;
  }

  .blog-article-hero-text,
  .blog-article-body {
    max-width: 620px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .blog-article-hero-text {
    padding: 28px 26px 20px !important;
  }

  .blog-article-body {
    padding: 34px 26px 44px !important;
  }

  .blog-article-hero-text h1 {
    font-size: 2rem !important;
    line-height: 1.12 !important;
  }

  .blog-article-hero-text p,
  .blog-article-body p {
    font-size: 1.02rem !important;
    line-height: 1.9 !important;
  }

  .blog-article-body h2 {
    font-size: 1.9rem !important;
    line-height: 1.2 !important;
    margin: 42px 0 18px !important;
  }

  .blog-reklama {
    padding: 20px 22px !important;
  }

  .blog-line {
    width: calc(100% - 52px) !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 480px) {
  .blog-article-hero-text {
    padding: 24px 22px 18px !important;
  }

  .blog-article-body {
    padding: 30px 22px 40px !important;
  }

  .blog-line {
    width: calc(100% - 44px) !important;
  }
}
