/* Veřejný web Můj dispečink (fáze 6) — vizuální styl.
 * Žádné externí fonty ani CDN — systémová písma jsou nejrychlejší
 * a neposílají IP návštěvníků třetím stranám. Vše je čisté CSS,
 * pro návštěvníka se nespouští žádný JavaScript. */

:root {
  /* Barvy */
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-deep: #1e3a8a;
  --indigo: #4f46e5;
  --sky: #0ea5e9;
  --text: #0f172a;
  --muted: #52627a;
  --bg: #f6f8fc;
  --card: #ffffff;
  --border: #e6ebf3;
  --border-strong: #d3dbe8;
  --ok: #15803d;
  --ok-bg: #ecfdf3;
  --warn: #b45309;

  /* Přechody / akcenty */
  --grad-brand: linear-gradient(135deg, #2563eb 0%, #4f46e5 55%, #0ea5e9 100%);
  --grad-hero: radial-gradient(1200px 600px at 15% -10%, #e8efff 0%, rgba(232, 239, 255, 0) 60%),
    radial-gradient(1000px 500px at 100% 0%, #e6f6ff 0%, rgba(230, 246, 255, 0) 55%);

  /* Poloměry a stíny */
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 18px 44px rgba(15, 23, 42, 0.12), 0 6px 14px rgba(15, 23, 42, 0.07);
  --shadow-blue: 0 10px 24px rgba(37, 99, 235, 0.28);

  /* Rytmus */
  --section-y: 4.5rem;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', Ubuntu, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Přístupnost: skok na obsah pro klávesnici */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

a {
  color: var(--blue-dark);
  text-underline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Hlavička ── */

.site-header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.site-header nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}

.site-header nav a:hover {
  background: #eef2fb;
  color: var(--text);
}

.site-header nav a[aria-current='page'] {
  font-weight: 700;
  color: var(--blue-dark);
}

.site-header nav .btn {
  margin-left: 0.25rem;
}

/* Přepínač jazyků (CS | EN) — nenápadný, vpravo za tlačítky */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.5rem;
  padding-left: 0.6rem;
  border-left: 1px solid var(--border, #e2e8f0);
  font-size: 0.85rem;
}

.lang-switch a,
.lang-switch span {
  padding: 0.3rem 0.4rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
}

.lang-switch span[aria-current='true'] {
  font-weight: 700;
  color: var(--blue-dark);
}

/* ── Tlačítka ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.15rem;
  text-decoration: none;
  font-weight: 650;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease;
}

.btn-primary {
  background-image: var(--grad-brand);
  background-color: var(--blue);
  color: #fff !important;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.36);
}

.btn-secondary {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--blue-dark) !important;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--blue);
  background: #f3f7ff;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text) !important;
}

.btn-ghost:hover {
  background: #eef2fb;
}

.btn-big {
  font-size: 1.1rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius);
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* ── Sekce obsahu ── */

section {
  padding: var(--section-y) 0;
}

section.alt {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Malý štítek nad nadpisem sekce */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.6rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  font-weight: 820;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  font-weight: 780;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
  font-weight: 720;
}

.lead {
  font-size: 1.24rem;
  color: var(--muted);
  max-width: 46rem;
  margin: 0 0 0.5rem;
}

.muted {
  color: var(--muted);
}

/* ── Hero ── */

.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  background: var(--grad-hero);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  max-width: 40rem;
}

.hero h1 {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero .actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

/* Řádek s rychlými přednostmi pod CTA */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 1.6rem;
  padding: 0;
  list-style: none;
}

.trust-row li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
}

.trust-row li::before {
  content: '✓';
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 0.85rem;
  font-weight: 800;
}

.hero-price {
  margin-top: 1.7rem;
  font-size: 1.02rem;
}

.hero-price strong {
  color: var(--blue-deep);
}

/* Obrázek produktu v hero */
.hero-visual {
  position: relative;
}

.hero-visual .frame {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.3s ease;
}

.hero-visual .frame:hover {
  transform: perspective(1400px) rotateY(0deg) rotateX(0deg);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 8px);
}

/* jemný barevný „obláček“ za obrázkem */
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -12% -8% -8% -6%;
  background: var(--grad-brand);
  filter: blur(60px);
  opacity: 0.16;
  z-index: -1;
  border-radius: 50%;
}

/* ── Karty a mřížky ── */

.grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

/* ikonka nad kartou funkce */
.card .card-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 13px;
  background: linear-gradient(135deg, #eef2ff, #e0f2fe);
  font-size: 1.5rem;
  margin-bottom: 0.9rem;
}

.card ul {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.card li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.55rem;
}

.card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.85rem;
  height: 0.5rem;
  border-left: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: rotate(-45deg);
  border-radius: 1px;
}

/* Obecný seznam s odškrtnutím (obce, bezpečnost) */
.check-list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  display: grid;
  gap: 0.7rem;
  max-width: 52rem;
}

.check-list li {
  position: relative;
  padding-left: 2.1rem;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.05em;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  font-weight: 800;
  font-size: 0.9rem;
}

/* Seznam problémů („Poznáváte se?“) s křížky */
.problem-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.problem-list li {
  position: relative;
  padding: 1rem 1.15rem 1rem 3rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.problem-list li::before {
  content: '✕';
  position: absolute;
  left: 1rem;
  top: 1rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #fef2f2;
  color: #dc2626;
  font-weight: 800;
  font-size: 0.82rem;
}

.section-outro {
  margin-top: 1.4rem;
  font-size: 1.1rem;
  font-weight: 500;
  max-width: 48rem;
}

/* ── Cena ── */

.price-box {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.price-box::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--grad-brand);
}

.price {
  font-size: 3.4rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.05;
  margin: 0.4rem 0;
}

.price small {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}

/* ── Časté dotazy ── */

details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

details:hover {
  border-color: var(--border-strong);
}

details[open] {
  box-shadow: var(--shadow-md);
}

summary {
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue);
  line-height: 1;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details[open] summary {
  margin-bottom: 0.6rem;
}

/* ── Formulář ── */

form.poptavka {
  max-width: 580px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.8rem 1.6rem;
  box-shadow: var(--shadow-md);
  margin-top: 1.5rem;
}

.form-field {
  margin-bottom: 1.05rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.form-field textarea {
  min-height: 7rem;
  resize: vertical;
}

.checkbox-field {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}

.checkbox-field input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--blue);
}

/* Past na roboty — lidem se pole nikdy nezobrazí */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button[type='submit'] {
  font: inherit;
  font-weight: 700;
  background-image: var(--grad-brand);
  background-color: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  box-shadow: var(--shadow-blue);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}

button[type='submit']:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.36);
}

.notice-ok,
.notice-err,
.notice-info {
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  margin: 1.2rem 0;
  box-shadow: var(--shadow-sm);
}

/* Neutrální sdělení (např. které jazykové znění dokumentu je závazné) */
.notice-info {
  background: #f1f5f9;
  border: 1px solid var(--border, #e2e8f0);
  color: var(--text);
  font-size: 0.95rem;
}

.notice-ok {
  background: var(--ok-bg);
  border: 1px solid #a7f3c8;
  color: #14532d;
}

.notice-err {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #7f1d1d;
}

/* ── Snímky obrazovky ── */

figure {
  margin: 0;
}

.screenshot {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

figure:hover .screenshot {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

figcaption {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

/* ── Obsahové stránky (právní texty) ── */

.prose {
  max-width: 48rem;
}

.prose h2 {
  margin-top: 2rem;
}

.prose h3 {
  margin-top: 1.4rem;
}

mark {
  background: #fef08a;
  padding: 0.05rem 0.25rem;
  border-radius: 4px;
}

/* ── Blog ── */
.blog-uvod {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 1.5rem;
}
.blog-list {
  display: grid;
  gap: 1.5rem;
}
.blog-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.blog-card-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}
.blog-card-body {
  padding: 1rem 1.3rem 1.3rem;
}
.blog-card-body h2 {
  margin: 0 0 0.3rem;
}
.blog-card-body h2 a {
  text-decoration: none;
}
.blog-datum {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0 0 0.6rem;
}
.blog-article .blog-zpet {
  margin-bottom: 0.5rem;
}
.blog-hero {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0.5rem 0 1.5rem;
}
.blog-article p {
  line-height: 1.7;
}
.blog-cta {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

th,
td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: #f2f6fd;
  font-weight: 700;
}

tr:last-child td {
  border-bottom: none;
}

/* ── Patička ── */

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 2.75rem 0 2.25rem;
  margin-top: 3rem;
  font-size: 0.96rem;
}

.site-footer strong {
  color: #fff;
}

.site-footer p {
  margin: 0.4rem 0;
}

.site-footer nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.site-footer nav a {
  color: #93c5fd;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer .muted {
  color: #7e8da3;
  font-size: 0.9rem;
}

/* ── Responsivita ── */

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

  .hero-visual {
    order: -1;
    max-width: 520px;
  }

  .hero-visual .frame {
    transform: none;
  }
}

@media (max-width: 640px) {
  :root {
    --section-y: 3rem;
  }

  .site-header nav {
    gap: 0.1rem;
  }

  .site-header nav a {
    padding: 0.4rem 0.55rem;
    font-size: 0.95rem;
  }

  .hero .actions .btn {
    flex: 1 1 auto;
  }
}
