:root {
  --navy-950: #0b1220;
  --navy-900: #0f172a;
  --navy-700: #1d4ed8;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-300: #cbd5e1;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  --container: min(1120px, calc(100% - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy-900);
}

.section-intro {
  margin: 0;
  color: var(--gray-700);
  max-width: 760px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.18);
}

.nav {
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand small {
  display: block;
  font-size: 0.78rem;
  color: #cbd5e1;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #334155;
  color: #f1f5f9;
  background: #111827;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.menu-toggle:hover {
  border-color: #64748b;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1.2rem;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #1f2937;
}

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

.btn-secondary {
  border: 1px solid #93c5fd;
  color: #dbeafe;
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--white);
  color: var(--white);
}

.hero {
  padding: 5.8rem 0 4.5rem;
  color: var(--white);
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0) 58%, #ffffff 100%),
    linear-gradient(125deg, rgba(11, 18, 32, 0.95), rgba(30, 58, 138, 0.82)),
    radial-gradient(circle at 90% 20%, rgba(245, 158, 11, 0.2), transparent 45%),
    var(--navy-900);
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}

.hero h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.15;
}

.hero p {
  margin: 0;
  color: #dbeafe;
  max-width: 760px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.trust-note {
  margin-top: 2rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(15, 23, 42, 0.36);
  border-radius: 8px;
}

.hero p.trust-note {
  margin-top: 2rem;
}

.about {
  background: var(--gray-50);
}

.services-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.5rem;
  color: var(--navy-900);
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--gray-700);
}

.card .icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #1d4ed8;
  margin-bottom: 0.8rem;
}

.card .icon i {
  font-size: 1.1rem;
}

.why {
  background: var(--white);
}

.why-grid {
  margin-top: 1.6rem;
  display: grid;
  gap: 1rem;
}

.benefit {
  display: flex;
  gap: 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
}

.benefit i {
  color: var(--accent);
  font-size: 1.2rem;
  margin-top: 0.15rem;
}

.benefit h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.benefit p {
  margin: 0;
  color: var(--gray-700);
}

.gallery {
  background: var(--gray-50);
}

.certs {
  background: var(--white);
}

.certs-grid {
  margin-top: 1.4rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.cert-item {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}

.cert-item img {
  height: clamp(320px, 44vw, 540px);
  object-fit: contain;
  background: #e2e8f0;
}

.gallery-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.9rem;
}

.gallery-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #dbeafe;
}

.gallery-item button {
  all: unset;
  cursor: zoom-in;
  display: block;
  width: 100%;
}

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

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

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(11, 18, 32, 0.84), rgba(11, 18, 32, 0));
  color: var(--white);
  padding: 0.8rem;
  font-size: 0.92rem;
}

.cta-strip {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.contact-wrap {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.contact-card {
  background: var(--navy-950);
  color: #e2e8f0;
  border-radius: var(--radius);
  padding: 1.2rem;
}

.contact-card h3 {
  margin-top: 0;
  color: var(--white);
}

.contact-card a {
  color: #fde68a;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

footer {
  background: #0b1220;
  color: #cbd5e1;
  padding: 2rem 0;
}

footer p {
  margin: 0.2rem 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-height: 90vh;
  max-width: min(1100px, 95vw);
  border-radius: 10px;
}

.lightbox button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  background: #fff;
  font-size: 1.25rem;
}

@media (min-width: 720px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .contact-wrap {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /*Pocet sloupcu */
  }

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

@media (max-width: 720px) {
  .topbar {
    padding: 0.5rem 0;
  }

  .nav {
    min-height: 58px;
    position: relative;
  }

  .brand {
    max-width: calc(100% - 95px);
  }

  .brand small {
    font-size: 0.72rem;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.65rem 0.7rem;
    border-radius: 8px;
  }

  .nav-links a.btn {
    margin-top: 0.25rem;
  }

  .section {
    padding: 3.8rem 0;
  }

  .hero {
    padding: 4.5rem 0 3.4rem;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .cta-strip .btn {
    width: 100%;
  }
}
