:root {
  --primary: #032456;
  --secondary: #0a3d7a;
  --accent: #e8a33d;
  --bg-alt: #f4f7fb;
  --text: #1a1a1a;
  --text-2: #5a6472;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(3, 36, 86, .08);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

h1, h2, h3 { color: var(--primary); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--secondary); }

/* Tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: 10px 22px;
  border: 2px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-accent { background: var(--accent); color: var(--primary); }
.btn-accent:hover { background: #f0b45a; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--secondary); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

/* Hlavička */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--primary); box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.logo { color: #fff; font-size: 1.4rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* Hero */
.hero { background: var(--primary); color: #fff; padding: 64px 0; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.2rem; max-width: 34em; margin-bottom: 1.6em; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }

/* Placeholdery fotek */
.ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--secondary); color: #fff; border-radius: var(--radius);
  padding: 16px; font-size: .95rem;
}
.ph-hero { aspect-ratio: 4 / 3; background: var(--secondary); }
.ph-small { aspect-ratio: 4 / 3; }

/* Sekce */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.check-list li { position: relative; padding: 14px 16px 14px 48px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.check-list li::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 10px; height: 18px;
  border: solid var(--accent); border-width: 0 3px 3px 0; transform: translateY(-65%) rotate(45deg);
}

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 4px solid var(--accent); }
.card p { margin: 0; color: var(--text-2); }
.photo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: s; background: var(--bg-alt); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.steps li::before {
  content: counter(s); display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 12px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 800;
}
.steps p { margin: 0; color: var(--text-2); }

.badge { display: inline-block; margin: 8px 0 16px; min-height: 44px; }
.badge img { display: block; max-width: 100%; height: auto; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { margin-bottom: 4px; }
.link-list a { display: inline-block; padding: 10px 0; font-weight: 600; }

/* Formulář */
.form { display: grid; gap: 18px; background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--text);
  border: 1px solid #b9c3d1; border-radius: var(--radius); background: #fff;
}
.field .invalid { border-color: #b3261e; }
.error { display: block; color: #b3261e; font-size: .9rem; margin-top: 4px; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form-note { margin-top: 20px; color: var(--text-2); }
.form-status { padding: 14px 18px; border-radius: var(--radius); font-weight: 600; }
.form-status.ok { background: #e3f4e6; color: #1b5e20; }
.form-status.err { background: #fdeceb; color: #b3261e; }

/* Patička */
.site-footer { background: var(--primary); color: #fff; padding: 40px 0 48px; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px 64px; }

.mobile-call { display: none; }

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 40px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 44px 0; }
  .check-list { grid-template-columns: 1fr; }
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .photo-row { grid-template-columns: 1fr 1fr; }
  body { padding-bottom: 72px; }
  .mobile-call {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; min-height: 56px; padding: 12px;
    background: var(--accent); color: var(--primary); font-weight: 800; font-size: 1.1rem;
    text-decoration: none; box-shadow: 0 -2px 10px rgba(0, 0, 0, .2);
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .cards, .steps, .photo-row { grid-template-columns: 1fr; }
  .header-phone { padding: 8px 14px; font-size: .95rem; }
  .logo { font-size: 1.15rem; }
  .btn-row .btn { width: 100%; }
  .form { padding: 20px; }
  .form .btn { width: 100%; justify-self: stretch; }
}

/* ============ Industriálně-technický styl ============ */
:root {
  --dark: #021a40;
  --line: #d3dce9;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  --hazard: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--dark) 14px 28px);
}
html { scroll-padding-top: 72px; }

/* Hlavička + menu */
.site-header { background: var(--dark); border-bottom: 3px solid var(--accent); }
.header-inner { gap: 20px; }
.logo { gap: 10px; font-family: var(--mono); letter-spacing: .12em; }
.logo-mark { width: 14px; height: 14px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 100%, 0 100%); }
.menu { display: flex; gap: 2px; margin-left: auto; }
.menu a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px;
  color: #c9d6ea; text-decoration: none; font-family: var(--mono); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .08em; transition: color .15s;
}
.menu a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.menu a:hover, .menu a.active { color: #fff; }
.menu a:hover::after, .menu a.active::after { transform: scaleX(1); }
.header-phone { font-family: var(--mono); letter-spacing: .03em; white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid #2c4a7c; border-radius: var(--radius); background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 20px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero: technický výkres */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(ellipse at 85% 20%, #0a3d7a 0%, transparent 60%),
    var(--primary);
  padding: 80px 0 88px;
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--hazard); }
.hero h1 { letter-spacing: -.01em; }
.hero .lead { color: #d6e1f2; border-left: 3px solid var(--accent); padding-left: 16px; }

/* Placeholdery */
.ph {
  position: relative; border: 1px solid rgba(255,255,255,.25);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px),
    var(--secondary);
  font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
}
.ph::before, .ph::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--accent); }
.ph::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.ph::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.ph-hero { box-shadow: 0 20px 40px rgba(0,0,0,.35); }

/* Sekce */
.section { position: relative; }
.section.alt { background: linear-gradient(rgba(3,36,86,.035) 1px, transparent 1px) 0 0 / 100% 48px, var(--bg-alt); }
.section[data-n]::before {
  content: "SEKCE / " attr(data-n); display: block; max-width: 1140px; margin: 0 auto 10px; padding: 0 20px;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; color: var(--secondary);
}
.narrow { max-width: 1140px; }
.narrow > * { max-width: 820px; }
h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 12px; background: var(--accent); }

/* Karty a kroky */
.card, .steps li { border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(3,36,86,.04); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card { background: #fff; border-top: 4px solid var(--accent); }
.card:hover, .steps li:hover { transform: translateY(-3px); border-color: var(--secondary); box-shadow: 0 10px 24px rgba(3,36,86,.12); }
.steps li { background: #fff; }
.steps li::before { border-radius: 4px; background: var(--primary); color: var(--accent); font-family: var(--mono); content: "0" counter(s); }
.check-list li { border: 1px solid var(--line); border-left: 4px solid var(--primary); box-shadow: none; }
.check-list li::before { left: 20px; }
.form { border: 1px solid var(--line); border-top: 4px solid var(--primary); }
.field label { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(232,163,61,.35); outline: 0; }
.btn { text-transform: uppercase; letter-spacing: .05em; font-size: .95rem; }
.btn-accent { box-shadow: 0 3px 0 #b97f1f; }
.btn-accent:active { transform: translateY(2px); box-shadow: 0 1px 0 #b97f1f; }

/* Patička */
.site-footer {
  position: relative;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--dark);
  padding-top: 52px;
}
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--hazard); }

/* Šipka nahoru */
.to-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 55; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: var(--accent); border: 2px solid var(--accent); border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(0,0,0,.3);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s, background .15s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: var(--primary); }

@media (max-width: 1120px) {
  .burger { display: inline-flex; }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0;
    background: var(--dark); border-bottom: 3px solid var(--accent); padding: 8px 20px 16px;
    max-height: 0; overflow: hidden; visibility: hidden; opacity: 0; transition: opacity .2s;
  }
  .menu.open { max-height: 80vh; overflow: auto; visibility: visible; opacity: 1; }
  .menu a { min-height: 48px; font-size: .9rem; border-bottom: 1px solid #1b3566; padding: 0 4px; }
  .menu a::after { left: 4px; right: auto; width: 32px; bottom: 8px; }
  .header-phone { margin-left: auto; }
}
@media (max-width: 768px) {
  .hero { padding: 48px 0 56px; }
  .to-top { bottom: 72px; right: 14px; width: 44px; height: 44px; }
}
@media (max-width: 480px) {
  .header-inner { gap: 10px; }
  .logo-mark { display: none; }
  .header-phone { font-size: .85rem; padding: 8px 10px; }
  .menu { padding: 8px 16px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
