/* =====================================================================
   EMER group s.r.o. – static site stylesheet
   Brand: navy #01305e + yellow #f2d000 (from original logo)
   Plain CSS, no framework. Mobile-first.
   ===================================================================== */

/* ---------- tokens ---------- */
:root {
  --navy-900: #01203d;
  --navy-800: #01305e;
  --navy-700: #01427f;
  --navy-600: #0a4f92;
  --accent: #f2d000;
  --accent-deep: #d9b900;
  --accent-soft: #fbf3cd;
  --ink: #16233a;
  --muted: #51617a;
  --bg: #ffffff;
  --bg-soft: #f3f6fb;
  --line: #dfe6f0;

  --radius: 14px;
  --radius-s: 10px;
  --shadow-s: 0 1px 3px rgba(16, 35, 58, 0.08);
  --shadow-m: 0 10px 30px -12px rgba(1, 48, 94, 0.25);

  --container: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}

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

a { color: var(--navy-700); }
a:hover { color: var(--navy-600); }

h1, h2, h3, h4 { line-height: 1.25; color: var(--navy-900); margin: 0 0 0.6rem; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }

/* ---------- utilities ---------- */
.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }

.section { padding: 4rem 0; }
.section-soft { background: var(--bg-soft); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.section-head h2 { margin: 0; }
.link-more { font-weight: 600; white-space: nowrap; }
.link-more:hover { color: var(--accent-deep); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-s) var(--radius-s); text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.7rem 1.35rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 0.9rem 1.7rem; font-size: 1.1rem; }

.btn-accent { background: var(--accent); color: var(--navy-900); }
.btn-accent:hover { background: var(--accent-deep); color: var(--navy-900); box-shadow: var(--shadow-m); }

.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-700); color: #fff; box-shadow: var(--shadow-m); }

.btn-outline-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-outline-light:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }

.brand img { width: 178px; height: auto; }

.main-nav { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
.main-nav a {
  text-decoration: none; font-weight: 600; font-size: 0.98rem; color: var(--ink);
  padding: 0.35rem 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--navy-700); }
.main-nav a[aria-current="page"] { color: var(--navy-800); border-bottom-color: var(--accent); }
.main-nav .nav-phone { display: none; }

.header-phone { margin-left: 0.5rem; padding: 0.55rem 1.2rem; font-size: 0.98rem; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 0; padding: 0.5rem; cursor: pointer;
}
.nav-toggle-box { display: flex; flex-direction: column; gap: 5px; }
.nav-toggle-box span {
  width: 26px; height: 3px; border-radius: 2px; background: var(--navy-800);
  transition: transform 0.2s, opacity 0.2s;
}
body.nav-open .nav-toggle-box span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle-box span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-box span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
  .header-phone { display: none; }
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0.2rem;
    background: #fff; padding: 1rem 1.4rem 1.4rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-m);
  }
  .main-nav.open { display: flex; }
  .main-nav a { font-size: 1.1rem; padding: 0.6rem 0; border-bottom: none; }
  .main-nav a[aria-current="page"] { border-left: 3px solid var(--accent); padding-left: 0.6rem; }
  .main-nav .nav-phone { display: inline-flex; margin-top: 0.8rem; justify-content: center; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 480px at 88% -12%, rgba(242, 208, 0, 0.16), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(10, 79, 146, 0.55), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent, #000 40%, transparent 90%);
}

.hero-inner { position: relative; z-index: 1; padding: clamp(4rem, 10vw, 7rem) 0; max-width: 720px; }

.hero-kicker {
  display: inline-block; margin: 0 0 1rem;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.hero-title { color: #fff; font-size: clamp(2.1rem, 5.5vw, 3.5rem); margin-bottom: 1.1rem; }
.hero-title .accent { color: var(--accent); }
.hero-text { font-size: 1.15rem; color: #ccd9ea; max-width: 58ch; margin: 0 0 2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.25rem; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.hero-chips li {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.92rem; font-weight: 600; color: #e9f0fa;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px; padding: 0.45rem 0.95rem;
}
.hero-chips .icon { color: var(--accent); width: 1.15em; height: 1.15em; }

/* ---------- cards / services ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.3rem; }

.card {
  display: flex; flex-direction: column; gap: 0.4rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-s);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--navy-600); color: var(--ink); }
.card h3 { margin: 0.4rem 0 0.1rem; font-size: 1.12rem; }
.card p { margin: 0 0 0.8rem; color: var(--muted); font-size: 0.95rem; flex-grow: 1; }
.card-more { font-weight: 700; font-size: 0.92rem; color: var(--navy-700); }
.card:hover .card-more { color: var(--accent-deep); }

.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-soft); color: var(--navy-800);
}
.card-icon .icon { width: 26px; height: 26px; }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.3rem; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-s);
}
.feature h3 { font-size: 1.05rem; margin: 0.7rem 0 0.3rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--navy-800); color: var(--accent);
}

/* ---------- about / stats (home) ---------- */
.about-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 3rem; align-items: start; }
.about-grid .prose { max-width: none; }

.stats { display: grid; gap: 1rem; position: sticky; top: 96px; }
.stat {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.5rem; text-align: center;
}
.stat strong { display: block; font-size: 2.1rem; font-weight: 800; color: var(--navy-800); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .stats { position: static; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
}

/* ---------- generic page ---------- */
.page-header {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
  padding: 2.75rem 0 2.1rem;
}
.page-header .lead { margin: 0.4rem 0 0; font-size: 1.15rem; color: var(--muted); max-width: 68ch; }

.breadcrumbs { margin-bottom: 1.1rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; list-style: none; font-size: 0.88rem; }
.breadcrumbs li { color: var(--muted); display: flex; gap: 0.45rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy-700); text-decoration: underline; }
.breadcrumbs [aria-current] { font-weight: 600; color: var(--navy-800); }

/* ---------- prose (markdown body) ---------- */
.prose { max-width: 76ch; padding: 2.5rem 0 3.5rem; }
.prose h2 { margin: 2.4rem 0 0.8rem; }
.prose h3 { margin: 1.8rem 0 0.5rem; }
.prose p { margin: 0.85rem 0; }
.prose ul, .prose ol { margin: 0.85rem 0; padding-left: 1.4rem; }
.prose li { margin: 0.35rem 0; }
.prose li::marker { color: var(--navy-700); font-weight: 700; }
.prose a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--navy-700); }
.prose strong { color: var(--navy-900); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2rem 0; }

.prose blockquote {
  margin: 1.5rem 0; padding: 0.4rem 1.3rem;
  border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: 0 var(--radius-s) var(--radius-s) 0;
  color: var(--muted);
}

.prose table {
  width: 100%; border-collapse: collapse; margin: 1.6rem 0;
  font-size: 0.97rem; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden;
}
.prose th {
  text-align: left; background: var(--navy-800); color: #fff;
  padding: 0.65rem 0.9rem; font-size: 0.92rem;
}
.prose td { padding: 0.6rem 0.9rem; border-top: 1px solid var(--line); vertical-align: top; }
.prose tbody tr:nth-child(even) { background: var(--bg-soft); }

@media (max-width: 640px) {
  .prose table { display: block; overflow-x: auto; white-space: nowrap; }
}

.note {
  background: var(--accent-soft); border: 1px solid #edda86;
  border-radius: var(--radius-s); padding: 1rem 1.3rem; margin: 1.5rem 0; font-size: 0.97rem;
}
.note strong { color: var(--navy-900); }

/* reference list – multi column */
.ref-columns {
  list-style: none; margin: 1.5rem 0; padding: 0;
  columns: 260px 3; column-gap: 2.5rem; font-size: 0.97rem;
}
.ref-columns li {
  margin: 0; padding: 0.45rem 0; break-inside: avoid;
  border-bottom: 1px solid var(--line);
}

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--accent) 0%, #ffdf3d 100%); padding: 3.2rem 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-copy h2 { color: var(--navy-900); margin-bottom: 0.3rem; }
.cta-copy .accent { color: var(--navy-700); }
.cta-copy p { margin: 0; color: #3d4a63; font-weight: 500; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
@media (max-width: 700px) {
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #b7c6dc; font-size: 0.95rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}
.footer-grid h2 {
  color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.footer-brand p { margin: 1rem 0; max-width: 34ch; }
.footer-fb { display: inline-flex; align-items: center; gap: 0.5rem; color: #dce6f5; text-decoration: none; font-weight: 600; }
.footer-fb:hover { color: var(--accent); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 0.4rem 0; }
.footer-grid a { color: #b7c6dc; text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid address { font-style: normal; }
.footer-grid address p { margin: 0 0 0.7rem; }
.footer-grid address a { color: #fff; font-weight: 600; text-decoration: none; }
.footer-grid address a:hover { color: var(--accent); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 1.4rem 0; }
.footer-bottom p { margin: 0; font-size: 0.88rem; color: #8fa2bf; }

@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- contact page extras (raw HTML in kontakt.md) ---------- */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin: 1.5rem 0; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-s); }
.info-card h3 { display: flex; align-items: center; gap: 0.55rem; font-size: 1rem; margin-bottom: 0.5rem; }
.info-card .icon { color: var(--navy-700); }
.info-card p { margin: 0.25rem 0; }
.info-card a { font-weight: 700; text-decoration: none; }
.map-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1.8rem 0; box-shadow: var(--shadow-s); }
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 6rem 0; }
.error-page .code { font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; color: var(--navy-800); line-height: 1; }
.error-page .code span { color: var(--accent); }
.error-page p { color: var(--muted); max-width: 48ch; margin: 1rem auto 2rem; }

/* ---------- motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
  body { font-size: 11pt; }
}
