@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@1,600&display=swap");

:root {
  --ink: #171713;
  --cream: #f4eee2;
  --paper: #fffdf8;
  --yellow: #efc93e;
  --yellow-dark: #d7ae1a;
  --muted: #68665e;
  --line: rgba(23, 23, 19, 0.16);
  --white-line: rgba(255, 255, 255, 0.16);
  --green: #1d6b49;
  --red: #a3362f;
  --shadow: 0 28px 70px rgba(34, 29, 18, 0.14);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }

.section-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: 116px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header,
.admin-header {
  min-height: 82px;
  padding: 18px max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 238, 226, 0.94);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 10;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.brand span { color: var(--yellow-dark); }
.brand--light { color: white; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

.button {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button--dark { background: var(--ink); color: white; }
.button--dark:hover { background: #33332d; }
.button--small { min-height: 42px; padding-inline: 20px; font-size: 0.9rem; }
.button--full { width: 100%; border-radius: 12px; min-height: 58px; }
.button:disabled { cursor: wait; opacity: 0.68; transform: none; }

.hero {
  padding-block: 78px 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.82fr);
  gap: 78px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow > span { width: 28px; height: 2px; background: var(--yellow-dark); }
.eyebrow--light { color: rgba(255,255,255,.74); }
.hero h1,
.section-heading h2,
.final-cta h2,
.fit-section h2,
.login-card h1,
.dashboard-title h1 {
  margin: 0;
  font-size: clamp(3.15rem, 6.2vw, 6.1rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}
.hero h1 em,
.section-heading h2 em {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  color: var(--yellow-dark);
}
.hero__lead { max-width: 650px; margin: 34px 0 30px; color: #4d4b44; font-size: 1.19rem; line-height: 1.7; }
.hero__points { display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: 0.9rem; font-weight: 600; }
.hero__points span { display: flex; align-items: center; gap: 8px; }
.hero__points b { width: 22px; height: 22px; display: grid; place-items: center; background: var(--yellow); border-radius: 50%; font-size: 0.72rem; }

.form-card { padding: 32px; background: var(--yellow); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card__header { display: flex; gap: 16px; margin-bottom: 26px; align-items: flex-start; }
.step-badge { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; background: var(--ink); color: white; border-radius: 50%; font-size: 0.8rem; font-weight: 700; }
.kicker { margin: 1px 0 4px; text-transform: uppercase; font-size: .69rem; letter-spacing: .13em; font-weight: 700; }
.form-card h2 { margin: 0; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.03em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.field--wide { grid-column: 1 / -1; }
.field > span { font-size: .76rem; font-weight: 700; }
.field input,
.field select,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(23,23,19,.2);
  border-radius: 10px;
  background: rgba(255,255,255,.88);
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}
.field input:focus,
.field select:focus,
.filter-bar input:focus,
.filter-bar select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,23,19,.1); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 17px 0; font-size: .76rem; line-height: 1.45; }
.consent input { margin-top: 3px; accent-color: var(--ink); }
.form-note { margin: 12px 0 0; text-align: center; font-size: .72rem; color: rgba(23,23,19,.66); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { margin: 14px 0 0; padding: 13px 14px; border-radius: 10px; font-size: .84rem; font-weight: 600; }
.form-status--success { color: #11462f; background: #d9f2e3; border: 1px solid #9dd2b4; }
.form-status--error { color: #6d1c18; background: #fbe4e0; border: 1px solid #e1a49e; }

.proof-bar {
  padding: 28px max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--ink);
  color: white;
}
.proof-bar div { padding: 3px 30px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--white-line); text-align: center; }
.proof-bar div:last-child { border-right: 0; }
.proof-bar strong { font-size: .92rem; }
.proof-bar span { color: rgba(255,255,255,.56); font-size: .77rem; }

.split { display: grid; grid-template-columns: 1fr .75fr; gap: 100px; align-items: end; }
.section-heading h2 { font-size: clamp(2.5rem, 4.5vw, 4.65rem); }
.section-heading--center { text-align: center; }
.section-heading--center .eyebrow { justify-content: center; }
.body-copy { font-size: 1.04rem; color: var(--muted); }
.body-copy p { margin: 0 0 22px; }

.risk-section { padding-block: 96px; background: var(--ink); color: white; }
.risk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.risk-card { min-height: 290px; padding: 28px; border: 1px solid var(--white-line); border-radius: 18px; display: flex; flex-direction: column; }
.risk-card--accent { background: var(--yellow); color: var(--ink); border-color: var(--yellow); transform: translateY(18px); }
.risk-card__number { font-size: .77rem; color: rgba(255,255,255,.48); }
.risk-card--accent .risk-card__number { color: rgba(23,23,19,.56); }
.risk-card h3 { margin: auto 0 12px; font-size: 1.6rem; letter-spacing: -.03em; }
.risk-card p { margin: 0; color: rgba(255,255,255,.58); font-size: .9rem; }
.risk-card--accent p { color: rgba(23,23,19,.68); }

.steps { list-style: none; padding: 64px 0 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.steps li { padding: 0 38px; border-right: 1px solid var(--line); }
.steps li:first-child { padding-left: 0; }
.steps li:last-child { border-right: 0; padding-right: 0; }
.steps li > span { width: 46px; height: 46px; margin-bottom: 46px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-weight: 700; }
.steps li:nth-child(2) > span { background: var(--yellow); border-color: var(--yellow); }
.steps h3 { margin: 0 0 12px; font-size: 1.35rem; }
.steps p { margin: 0; color: var(--muted); font-size: .9rem; }

.fit-section { padding-block: 90px; background: var(--yellow); }
.fit-grid { display: grid; grid-template-columns: .75fr 1.15fr; gap: 90px; align-items: center; }
.fit-section h2 { font-size: clamp(2.4rem, 4vw, 4.3rem); }
.fit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fit-list span { min-height: 82px; padding: 18px; border: 1px solid rgba(23,23,19,.25); border-radius: 14px; display: flex; align-items: center; font-size: .88rem; font-weight: 600; }
.fit-list span::before { content: "✓"; width: 26px; height: 26px; margin-right: 11px; display: grid; place-items: center; flex: 0 0 auto; background: var(--ink); color: white; border-radius: 50%; font-size: .7rem; }

.faq { display: grid; grid-template-columns: .72fr 1fr; gap: 90px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; cursor: pointer; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { font-size: 1.5rem; font-weight: 400; transition: transform 160ms ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: -4px 40px 24px 0; color: var(--muted); }

.final-cta { padding-block: 100px; background: #292922; color: white; }
.final-cta__grid { display: grid; grid-template-columns: 1fr .82fr; gap: 80px; align-items: center; }
.final-cta h2 { font-size: clamp(2.7rem, 4.6vw, 4.9rem); }
.final-cta__grid > div > p:last-child { max-width: 620px; color: rgba(255,255,255,.62); font-size: 1.03rem; }
.form-card--light { background: var(--paper); color: var(--ink); }
.form-card--light .lead-form--compact .form-note { color: var(--muted); }
.site-footer { padding: 34px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; gap: 34px; background: var(--ink); color: rgba(255,255,255,.6); border-top: 1px solid var(--white-line); }
.site-footer p { margin: 0 auto 0 0; font-size: .82rem; }
.site-footer > a:last-child { font-size: .78rem; text-underline-offset: 4px; }

/* Administrace */
.admin-body { min-height: 100vh; background: #ede9df; }
.login-shell { width: min(470px, calc(100% - 32px)); min-height: 100vh; margin: 0 auto; padding-block: 72px; display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.login-shell > .brand { align-self: center; }
.login-card { padding: 36px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.login-card h1 { font-size: 2.55rem; margin-bottom: 28px; }
.login-form { display: grid; gap: 18px; }
.back-link { display: inline-block; margin-top: 22px; color: var(--muted); font-size: .82rem; text-underline-offset: 4px; }
.admin-alert { padding: 18px; background: #fff2c4; border: 1px solid #d8bd59; border-radius: 12px; font-size: .84rem; }
.admin-alert p { margin: 8px 0 0; }
code { padding: 2px 5px; background: rgba(23,23,19,.07); border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82em; }
.admin-header { position: sticky; top: 0; }
.admin-header > div { display: flex; align-items: center; gap: 14px; font-size: .82rem; }
.admin-header form { margin: 0; }
.link-button { padding: 0; border: 0; background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.dashboard-shell { width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding-block: 52px 90px; }
.dashboard-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.dashboard-title h1 { font-size: clamp(2.5rem, 5vw, 4.6rem); }
.dashboard-title .eyebrow { margin-bottom: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.stats-grid article { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; display: flex; align-items: flex-end; justify-content: space-between; }
.stats-grid span { color: var(--muted); font-size: .84rem; }
.stats-grid strong { font-size: 2.25rem; line-height: 1; }
.filter-bar { margin-bottom: 18px; padding: 14px; display: grid; grid-template-columns: minmax(240px, 1fr) 220px auto auto; gap: 10px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.filter-bar .back-link { margin: 0 8px; white-space: nowrap; }
.table-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th { padding: 15px 20px; background: rgba(23,23,19,.04); text-align: left; color: var(--muted); font-size: .69rem; letter-spacing: .08em; text-transform: uppercase; }
td { padding: 18px 20px; border-top: 1px solid var(--line); vertical-align: top; font-size: .86rem; }
td strong, td a, td small { display: block; }
td a { color: var(--muted); font-size: .82rem; }
td small { color: var(--muted); }
.type-pill { display: inline-flex; padding: 6px 10px; background: #f3dfa0; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.empty-state { padding: 72px 24px; text-align: center; }
.empty-state strong { font-size: 1.3rem; }
.empty-state p { margin: 8px 0 0; color: var(--muted); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 50px; }
  .hero__copy { max-width: 780px; }
  .split, .faq, .final-cta__grid { grid-template-columns: 1fr; gap: 52px; }
  .risk-grid, .steps { grid-template-columns: 1fr; }
  .risk-card { min-height: 220px; }
  .risk-card--accent { transform: none; }
  .steps { gap: 0; }
  .steps li, .steps li:first-child, .steps li:last-child { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; gap: 20px; }
  .steps li > span { margin: 0; }
  .fit-grid { grid-template-columns: 1fr; gap: 44px; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .section-shell, .dashboard-shell { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 70px; padding-inline: 16px; }
  .nav { display: none; }
  .site-header .button { min-height: 38px; padding-inline: 15px; }
  .hero { padding-block: 54px 62px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero__lead { font-size: 1.02rem; }
  .form-card { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .field, .field--wide { grid-column: auto; }
  .proof-bar { grid-template-columns: 1fr; padding-block: 10px; }
  .proof-bar div { padding-block: 14px; border-right: 0; border-bottom: 1px solid var(--white-line); }
  .proof-bar div:last-child { border-bottom: 0; }
  .section { padding-block: 76px; }
  .section-heading h2 { font-size: 2.65rem; }
  .risk-section { padding-block: 70px; }
  .risk-grid { gap: 12px; }
  .risk-card { min-height: 210px; }
  .fit-list { grid-template-columns: 1fr; }
  .final-cta { padding-block: 76px; }
  .site-footer { align-items: flex-start; flex-wrap: wrap; gap: 14px 24px; }
  .site-footer p { width: 100%; order: 3; }
  .admin-header { align-items: flex-start; }
  .admin-header > div { align-items: flex-end; flex-direction: column; gap: 3px; }
  .dashboard-title { align-items: flex-start; flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Instalační průvodce */
.install-shell {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding-block: 54px 80px;
}
.install-shell > .brand { display: inline-block; margin: 0 0 22px 4px; }
.install-card {
  padding: clamp(24px, 5vw, 48px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.install-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.install-heading h1,
.install-card--success h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -.055em; }
.install-heading p:last-child { max-width: 590px; margin: 18px 0 0; color: var(--muted); }
.domain-badge { padding: 9px 13px; white-space: nowrap; border-radius: 999px; background: var(--yellow); font-size: .75rem; font-weight: 700; }
.check-list { margin: 34px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-item { padding: 13px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 11px; }
.check-item > span { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: white; font-weight: 700; font-size: .77rem; }
.check-item--ok > span { background: var(--green); }
.check-item--error > span { background: var(--red); }
.check-item strong, .check-item small { display: block; }
.check-item strong { font-size: .8rem; }
.check-item small { color: var(--muted); font-size: .7rem; }
.install-form { margin-top: 28px; }
.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.install-grid .field small { color: var(--muted); font-size: .72rem; }
.install-consent { margin-block: 24px; }
.install-card .form-status ul { margin: 8px 0 0; padding-left: 20px; }
.install-card--success { text-align: center; }
.install-card--success .eyebrow { justify-content: center; }
.success-mark { width: 68px; height: 68px; margin: 0 auto 24px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); font-size: 1.8rem; font-weight: 700; }
.install-card--success > p:not(.eyebrow):not(.install-note) { max-width: 620px; margin: 22px auto; color: var(--muted); }
.install-note { margin: 22px auto; padding: 14px; border-radius: 10px; font-size: .82rem; }
.install-note--ok { color: #11462f; background: #d9f2e3; border: 1px solid #9dd2b4; }
.install-note--warning { color: #6d4b0c; background: #fff2c4; border: 1px solid #d8bd59; }
.install-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

@media (max-width: 700px) {
  .install-shell { padding-block: 30px 60px; }
  .install-heading { flex-direction: column-reverse; gap: 18px; }
  .check-list, .install-grid { grid-template-columns: 1fr; }
  .install-grid .field--wide { grid-column: auto; }
}
