html {
  scroll-behavior: smooth;
}

:root {
  --bg-page: #ffcc00;
  --bg-content: #ffffff;
  --text-main: #111827;
  --text-soft: #4b5563;
  --text-muted: #6b7280;

  --brand: #004aad;
  --brand-dark: #003580;
  --brand-soft: #eef4ff;

  --card-bg: #f8fafc;
  --border-soft: rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-medium: 0 18px 45px rgba(15, 23, 42, 0.14);

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;

  --content-width: 75rem;
  --inner-width: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
}

/* hlavní bílá plocha */
.content {
  width: min(100% - 2rem, var(--content-width));
  margin: 0 auto;
  background: var(--bg-content);
}

/* vnitřní kontejner služby */
.service-container {
  max-width: var(--inner-width);
  margin: 0 auto;
  padding: 24px 24px 48px;
}

/* horní řádek */
.back-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
}

.back-link:hover {
  opacity: 0.85;
}

.back-icon {
  width: 28px;
  height: 28px;
  display: flex;
}

.back-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.back-note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* 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ů */
}

/* když budeš chtít u konkrétního obrázku doladit výřez */
.hero-image img[src*="diagnostika"] {
  object-position: center 5%;
}

.overlay {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 16px;

  background: rgba(0, 0, 0, 0.6);
  color: #fff;

  text-align: center;
}

.overlay-content {
  width: min(100%, 760px);
  text-align: center;
  color: #fff;
  text-align: center !important;
  margin: 0 auto;
}

.overlay-content h1 {
  margin: 0;
  font-size: 2rem;
}

.overlay-content p {
  margin: 6px 0 0;
  font-size: 1rem;
  opacity: 0.95;
}

/* textové sekce */
.description {
  width: min(100%, 820px);
  margin: 34px auto 0;
}

.description .lead {
  margin: 0 0 18px;
  font-size: 1.32rem;
  line-height: 1.65;
  color: var(--text-main);
}

.description p {
  margin: 0 0 18px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-soft);
}

.description h2 {
  margin: 0 0 18px;
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

/* checklist */
.checklist {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-soft);
}

.checklist li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 700;
}

/* proč nás zvolit */
.why-us {
  width: min(100%, 900px);
  margin: 34px auto 0;
  padding: 32px 28px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.why-us h2 {
  margin: 0 0 18px;
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.why-us ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.why-us li {
  position: relative;
  padding-left: 28px;
  line-height: 1.65;
  color: var(--text-soft);
}

.why-us li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 700;
}

/* CTA */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 36px auto 0;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  border: none;
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1px solid rgba(0, 74, 173, 0.18);
  background: #fff;
  color: var(--brand);
}

.btn-secondary:hover {
  background: var(--brand-soft);
  transform: translateY(-1px);
}

/* rozbalené kontaktní boxy */
.quick-actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.quick-actions[hidden] {
  display: none !important;
}

.action-card {
  display: block;
  text-decoration: none;
  color: var(--text-main);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  transition: 0.18s ease;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.action-title {
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--text-main);
}

.action-sub {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* mobil */
@media (max-width: 900px) {
  .hero-image,
  .hero-image img {
    min-height: 64vh;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .service-container {
    padding: 18px 16px 36px;
  }

  .back-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .back-note {
    white-space: normal;
  }

  .hero-image {
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 20px;
    background: #111;
  }

  .hero-image img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 75vh;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: #111;
  }

  .overlay {
    padding: 18px 14px;
  }

  .overlay-content h1 {
    font-size: 1.1rem;
    line-height: 1.15;
  }

  .overlay-content p {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .description {
    margin-top: 28px;
  }

  .description .lead {
    font-size: 1.14rem;
  }

  .description p,
  .checklist li,
  .why-us li {
    font-size: 1rem;
  }

  .why-us {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

.service-container-jobs {
  max-width: var(--inner-width);
  margin: 0 auto;
  padding: 24px 24px 48px;
  overflow: hidden;
}

.hero-jobs {
  position: relative;
  width: 100%;
  min-height: 72vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--shadow-medium);
}

.hero-jobs > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 72vh;
  object-fit: cover;
  object-position: center center;
}

.hero-jobs-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.26) 42%,
    rgba(0, 0, 0, 0.08) 100%
  );
}

.hero-jobs-content {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  width: min(100% - 32px, 760px);
  text-align: center;
  color: #fff;
  z-index: 2;
}

.hero-jobs-eyebrow {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-jobs-content h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-jobs-text {
  margin: 18px auto 0;
  max-width: 680px;
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-jobs-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}
