/* ══════════════════════════════════════════════════════════════
   Gen-Editor – veřejná landing page (naserody.cz).
   Vizuální styl převzatý z naserody.cz: paleta se zlatým akcentem
   (#d4af37), font Inter, tmavý hero, tlačítka s radius 8 px a
   hover-zdvihem. Samostatná stránka na `/` (bez app bundlu),
   responsivní, bez externích zdrojů.
   ══════════════════════════════════════════════════════════════ */

:root {
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #d4af37;
  --accent-dark: #b8941f;
  --bg: #fff;
  --bg-soft: #f7f8fa;
  --bg-dark: #2c2c2c;
  --radius: 8px;
  --wrap: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; background: var(--bg); }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); text-decoration-thickness: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; width: 100%; }

/* ── Header / nav ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 80px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-right: auto;
  text-decoration: none;
  transition: transform .3s ease;
}
.brand:hover { transform: translateY(-1px); color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.brand span small { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: .3px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: .9rem;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all .3s ease;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  min-width: 140px;
  border: 2px solid transparent;
  transition: all .3s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(184, 148, 31, .4);
}
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; min-width: 160px; }
.nav-links .btn { padding: 9px 18px; min-width: 0; font-size: .9rem; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--ink); }

/* ── Hero (fotka z naserody.cz, stejný gradient jako originál) ── */
.hero {
  height: 70vh;
  min-height: 500px;
  background: linear-gradient(135deg, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .6) 50%, rgba(0, 0, 0, .75) 100%),
    url('/img/pages/hist-01-mid.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  text-align: center;
}
@media (max-width: 768px) {
  .hero {
    height: 60vh;
    min-height: 400px;
    background-image: linear-gradient(135deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .7) 100%),
      url('/img/pages/hist-02-small.webp');
  }
}
.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  color: #fff;
  background: rgba(0, 0, 0, .3);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .1);
}
.hero-content img.hero-logo { width: 56px; height: 56px; margin-bottom: 14px; image-rendering: auto; }
.hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 16px;
  color: #fff;
}
.hero p.lead {
  font-size: clamp(.95rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, .85);
  margin: 0 auto 28px;
  max-width: 640px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.construction-service-cta {
  max-width: 620px;
  margin: 26px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.construction-service-cta p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
}
.construction-service-cta strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
}
.construction-service-cta .btn {
  color: #fff;
  border-color: rgba(255, 255, 255, .65);
}
.construction-service-cta .btn:hover {
  border-color: var(--accent);
}
.construction-page {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
}
.construction-page .construction-hero {
  flex: 1 0 auto;
  height: auto;
  min-height: auto;
  padding: 40px 0;
}
.construction-page .site-footer {
  flex: 0 0 auto;
}

.section { padding: 70px 0; }
.section-alt { background: var(--bg-soft); }
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  text-align: center;
  margin: 0 0 12px;
  color: var(--ink);
}
.section .sub {
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 48px;
}

/* ── Feature grid ─────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.feature .ico {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(212, 175, 55, .14);
  margin-bottom: 14px;
}
.feature .ico svg { width: 24px; height: 24px; stroke: var(--accent-dark); }
.feature h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--ink); }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ── Steps ────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.step { text-align: center; padding: 10px; }
.step .num {
  width: 48px; height: 48px; margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.25rem;
}
.step h3 { margin: 0 0 6px; color: var(--ink); }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ── Pricing ──────────────────────────────────────────────── */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; align-items: stretch; }
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 26px;
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.plan:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.plan.featured { border: 2px solid var(--accent); box-shadow: 0 8px 30px rgba(184, 148, 31, .18); }
.plan .tag {
  align-self: flex-start;
  font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--accent-dark);
  background: rgba(212, 175, 55, .14);
  padding: 4px 12px; border-radius: 999px;
  margin-bottom: 12px;
}
.plan h3 { margin: 0 0 6px; font-size: 1.4rem; color: var(--ink); }
.plan .price { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 4px 0 2px; }
.plan .price small { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: flex; flex-direction: column; gap: 10px; }
.plan ul li { position: relative; padding-left: 26px; font-size: .93rem; color: var(--ink); }
.plan ul li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 16px; height: 9px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; }
.pricing-note {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  margin: 26px auto 0;
  max-width: 760px;
}

/* ── Contact ──────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}
.contact-card h3 { margin: 0 0 16px; color: var(--ink); font-size: 1.25rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.contact-list li { font-size: .95rem; }
.contact-list .k { color: var(--muted); display: inline-block; min-width: 118px; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 2rem 0;
  font-size: .9rem;
}
.site-footer a { color: var(--accent-dark); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.footer-brand img { width: 24px; height: 24px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .84rem; }

/* ── Cookie banner ────────────────────────────────────────── */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 640px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
  padding: 16px 18px;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.cookie-bar p { margin: 0; flex: 1; font-size: .88rem; color: var(--ink); min-width: 220px; }
.cookie-bar .btn { min-width: 0; padding: 9px 18px; font-size: .9rem; }
.cookie-bar.hidden { display: none; }

/* ── Legal pages (Zásady…) ────────────────────────────────── */
.legal { max-width: 820px; margin: 0 auto; padding: 40px 20px 20px; }
.legal h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); color: var(--ink); margin: 0 0 6px; }
.legal .updated { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.legal .disclaimer {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 16px;
  font-size: .9rem; color: var(--ink); margin: 18px 0 8px;
}
.legal h2 { color: var(--ink); margin: 34px 0 8px; font-size: 1.28rem; text-align: left; }
.legal h3 { color: var(--ink); margin: 20px 0 6px; font-size: 1.06rem; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .92rem; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--bg-soft); }
.legal .back { display: inline-block; margin: 8px 0 0; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 760px) {
  .nav { height: 68px; }
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--bg-soft); border-radius: 0; }
  .nav-links .btn { margin-top: 10px; border-bottom: none; }
  .nav-toggle { display: block; }
  .hero-content { padding: 1.5rem 1rem; margin: 0 16px; }
  .contact-grid { grid-template-columns: 1fr; }
}
