/* Direkt Invest – vzhled „Granát“ podle návrhu A+ v Claude Design:
   lněný papír (#F3EEE5), inkoust (#1E1B18), český granát (#8C1D2F); Fraunces pro nadpisy, Instrument Sans pro text.
   Fonty: self-hosting kvůli GDPR. Soubory .woff2 nahrát do /static/fonts/ (viz README tam); do té doby systémové písmo. */

@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #1E1B18;
  --ink-soft: #3F3A34;
  --muted: #5E574F;
  --linen: #F3EEE5;
  --paper: #FFFDF9;
  --line: #D9D1C4;
  --line-strong: #C9C0B2;
  --warm-grey: #E3DCCF;
  --accent: #8C1D2F;
  --accent-hover: #6E1524;
  --accent-soft: #F1DFE1;
  --accent-soft-line: #E2BEC3;
  --on-accent: #FFFDF9;
  --error: #B3261E;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--linen); line-height: 1.5; font-size: 16px; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.5vw, 40px); }
h3 { font-size: 22px; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.eyebrow { font-size: 15px; color: var(--muted); }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-soft); }
.muted { color: var(--muted); }
.link-muted { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.link-muted:hover { color: var(--ink); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack--lg { gap: 24px; }
.section-head { max-width: 720px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }

/* Tlačítka: hranatá, jako v návrhu */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px; padding: 15px 24px;
  border: 1.5px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; text-align: center; min-height: 44px;
}
.btn--primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn--outline { border-color: var(--line-strong); color: var(--ink); background: var(--paper); }
.btn--outline:hover { border-color: var(--ink); }
.btn--outline-light { border-color: rgba(255, 253, 249, 0.6); color: var(--on-accent); background: transparent; }
.btn--outline-light:hover { border-color: var(--on-accent); color: var(--on-accent); }
.btn--sm { padding: 12px 18px; font-size: 15px; }
.arrow-link { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 16px; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.arrow-link:hover { color: var(--accent); }

/* Hlavička */
.site-header { background: var(--linen); border-bottom: 1px solid var(--line); }
.site-header__inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: flex-start; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 14px; height: 14px; margin-top: 7px; background: var(--accent); display: inline-block; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; gap: 2px; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.15; letter-spacing: -0.01em; }
.brand__tagline { font-size: 13px; line-height: 1.35; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.site-nav > a:not(.btn) { text-decoration: none; color: var(--ink); font-size: 15px; }
.lang-switch { color: var(--muted); font-size: 14px; display: inline-flex; gap: 6px; }
.lang-switch a { color: var(--muted); text-decoration: none; }
.lang-switch a.is-active { color: var(--ink); font-weight: 600; }

/* Sekce: výchozí len, --tint papír, --dark granát */
.section { padding: 88px 0; }
.section--tint { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--accent); color: var(--on-accent); }
.section--dark h1, .section--dark h2 { color: var(--on-accent); }
.section--dark .lead { color: rgba(255, 253, 249, 0.85); }

/* Hero */
.hero { padding: 64px 0 48px; }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; align-items: center; }
.hero__copy { grid-column: span 6; display: flex; flex-direction: column; gap: 28px; }
.hero__copy .lead { max-width: 520px; }
.hero__aside { grid-column: span 6; position: relative; display: flex; justify-content: center; }
.hero__meta { font-size: 15px; color: var(--muted); }
.hero__meta .dot { color: var(--accent); padding: 0 6px; }
.hero__actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.hero__note { font-size: 14px; color: var(--muted); }

/* Mapa a razítko */
.map { width: 100%; max-width: 520px; height: auto; display: block; }
.map__de { fill: var(--warm-grey); stroke: var(--linen); stroke-width: 2; stroke-linejoin: round; }
.map__cz { fill: var(--accent); stroke: var(--linen); stroke-width: 2; stroke-linejoin: round; }
.map__route { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-dasharray: 4 4; }
.map__city-de { fill: var(--ink); font-family: var(--font-body); font-size: 11px; }
.map__city-cz { fill: var(--paper); font-family: var(--font-body); font-size: 11px; font-weight: 600; }
.map__label { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: 2px; }
.map__label--de { fill: var(--muted); }
.map__label--cz { fill: var(--accent); }
.stamp { position: absolute; top: -8px; right: -8px; transform: rotate(-12deg); width: 132px; height: 132px; }
.stamp__ring { font-family: var(--font-body); font-size: 10.5px; font-weight: 600; fill: var(--accent); letter-spacing: 1.5px; }
.stamp__center { font-family: var(--font-display); font-size: 26px; font-weight: 600; fill: var(--accent); }

/* Pruh Schnittstelle */
.bridge { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bridge__inner { padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: 1fr 120px 1fr; gap: 0; align-items: center; }
.bridge__side { display: flex; flex-direction: column; gap: 8px; }
.bridge__side--left { padding-right: 32px; text-align: right; }
.bridge__side--right { padding-left: 32px; }
.bridge__label { font-size: 13px; letter-spacing: 0.12em; color: var(--muted); }
.bridge__text { font-family: var(--font-display); font-size: 24px; font-weight: 500; line-height: 1.25; }
.bridge__seam { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bridge__line { width: 1px; height: 28px; background: var(--accent); }
.bridge__mark { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 24px; }
.bridge__caption { font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: 0.08em; }

/* Karty */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; background: var(--paper); }
.section--tint .card { background: var(--linen); }
.card__title { font-weight: 600; font-size: 17px; }
.card__text { font-size: 15px; color: var(--muted); }
.service { padding: 26px; gap: 14px; }
.service__icon { color: var(--accent); }
.service ul { padding-left: 18px; font-size: 15px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.card--cta, .section--tint .card--cta { background: var(--accent); color: var(--on-accent); border-color: var(--accent); justify-content: space-between; gap: 14px; }
.card--cta .card__text { color: rgba(255, 253, 249, 0.85); }
.card--cta .btn { align-self: flex-start; background: var(--paper); color: var(--accent); border-color: var(--paper); }
.card--cta .btn:hover { background: var(--linen); border-color: var(--linen); color: var(--accent-hover); }

/* Postup */
.step { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 2px solid var(--accent); }
.step__num { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--accent); letter-spacing: 0.08em; }
.step__title { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.step__text { font-size: 15px; color: var(--muted); }

/* Proč my + profil */
.two-col { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; align-items: start; }
.two-col__main { grid-column: span 7; display: flex; flex-direction: column; gap: 20px; }
.two-col__aside { grid-column: span 5; }
.check-list { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; font-size: 16px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.icon-check { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.profile { background: var(--linen); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.profile__head { display: flex; gap: 18px; align-items: center; }
.avatar { width: 88px; height: 88px; border-radius: 50%; background: var(--warm-grey); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; text-align: center; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 56px; height: 56px; font-size: 11px; }
.profile__name { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
/* Jméno jako obrysy písmen (fragments/person.html): velikost z font-size, barva z color */
.person-name { display: flex; flex-wrap: wrap; column-gap: 0.28em; }
.person-name svg { display: block; max-width: 100%; height: auto; }
.profile__role { font-size: 15px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 13px; font-weight: 500; padding: 6px 10px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }

/* Nabídka za pevnou cenu */
.offer { border: 1.5px solid var(--accent); background: var(--paper); padding: 36px 40px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: center; }
.offer__copy { grid-column: span 8; display: flex; flex-direction: column; gap: 12px; }
.offer__copy h2 { font-size: 30px; }
.offer__price { grid-column: span 4; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; border-left: 1px solid var(--line); padding-left: 32px; }
.offer__amount { font-family: var(--font-display); font-weight: 600; font-size: 34px; }

/* CTA */
.cta__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: center; }
.cta__copy { grid-column: span 7; display: flex; flex-direction: column; gap: 14px; }
.cta__side { grid-column: span 5; display: flex; flex-direction: column; gap: 14px; }
.cta__contact { display: flex; flex-direction: column; gap: 6px; color: rgba(255, 253, 249, 0.85); }
.cta__contact a { color: var(--on-accent); }
.section--dark .btn--primary { background: var(--paper); color: var(--accent); border-color: var(--paper); }
.section--dark .btn--primary:hover { background: var(--linen); border-color: var(--linen); color: var(--accent-hover); }

/* Patička */
.site-footer { background: var(--ink); color: #B8B0A5; font-size: 14px; }
.site-footer__inner { padding-top: 32px; padding-bottom: 32px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer__company { color: var(--paper); font-weight: 600; }
.site-footer__links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: #B8B0A5; text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.site-footer .lang-switch, .site-footer .lang-switch a { color: #B8B0A5; }
.site-footer .lang-switch a.is-active { color: var(--paper); }

/* Veřejný formulář */
.page--tint { background: var(--linen); min-height: 100vh; }
.form-layout { padding-top: 56px; padding-bottom: 80px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; align-items: start; }
.form-layout__intro { grid-column: span 5; display: flex; flex-direction: column; gap: 28px; }
.form-layout__intro h1 { font-size: clamp(30px, 4vw, 40px); }
.form-layout__main { grid-column: span 7; }
.panel { background: var(--paper); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.panel__title { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.next-step { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.next-step strong { color: var(--ink); font-weight: 500; }
.chain__num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); }
.contact-card__name { font-weight: 600; font-size: 16px; }
.contact-card__meta { font-size: 14px; color: var(--muted); }

.form { background: var(--paper); border: 1px solid var(--line); padding: 36px; display: flex; flex-direction: column; gap: 26px; }
.notice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; }
.notice--info { background: var(--accent-soft); border: 1px solid var(--accent-soft-line); color: var(--accent-hover); }
.notice--error { background: #FBEAE9; border: 1px solid #F0B9B5; color: var(--error); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: span 2; }
.field label, .field__label { font-size: 14px; font-weight: 600; }
.field .optional { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line-strong); font-size: 16px; font-family: inherit;
  color: var(--ink); background: var(--paper); padding: 0 14px; min-height: 46px; border-radius: 0;
}
.textarea { padding: 12px 14px; resize: vertical; min-height: 120px; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--error); }
.field__error { font-size: 13px; color: var(--error); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip label {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; font-size: 15px; font-weight: 500; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 1.5px solid var(--line-strong);
}
/* "~", ne "+": th:field vkládá u checkboxu za input skrytý <input name="_goals">, takže label není hned za ním. */
.chip input:checked ~ label { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible ~ label { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; background: var(--linen); border: 1px solid var(--line); }
.consent label { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.consent__note { font-size: 13px; color: var(--muted); }
.form__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form__hint { font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Děkovná stránka */
.thanks { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; display: flex; flex-direction: column; gap: 28px; }
.thanks__badge { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; color: var(--on-accent); }
.thanks h1 { font-size: clamp(30px, 4vw, 40px); }
.panel--row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; padding: 28px; }
.panel--row > :first-child { grid-column: span 8; }
.panel--row > :last-child { grid-column: span 4; display: flex; justify-content: flex-end; }

/* Textové stránky (Impressum, Datenschutz) */
.prose { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; display: flex; flex-direction: column; gap: 20px; }
.prose h2 { font-size: 24px; margin-top: 12px; }
.prose p, .prose li { color: var(--ink-soft); }

/* Admin: pracovní nástroj, stejné barvy a písma jako web, bez ozdob */
.admin { max-width: 1240px; margin: 0 auto; padding: 16px 24px 48px; }
.admin-nav { display: flex; gap: 6px 18px; align-items: center; padding: 8px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; font-size: 15px; }
.admin-nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.admin-nav a.is-active { color: var(--accent); }
.admin-nav__right { margin-left: auto; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.admin-nav__right form { margin: 0; }
.admin-nav__search .input { min-height: 36px; width: 220px; font-size: 14px; padding: 0 10px; }
.nav-count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; font-size: 11px; line-height: 18px; font-weight: 700; background: var(--accent); color: var(--on-accent); text-align: center; vertical-align: 1px; }
.admin h1 { font-size: 30px; margin: 0; }
.admin h2 { font-size: 21px; margin: 24px 0 10px; }
.admin h3 { font-size: 16px; font-family: var(--font-body); font-weight: 600; margin: 0 0 8px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head__meta { margin-top: 6px; display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.box { background: var(--paper); border: 1px solid var(--line); padding: 16px 18px; margin-bottom: 16px; }
.box > h2 { font-size: 19px; margin: 0 0 12px; }
.box--accent { border-color: var(--accent-soft-line); background: var(--accent-soft); }
.box--warn { border-color: #F0B9B5; background: #FBEAE9; }
details.box > summary { cursor: pointer; font-weight: 600; list-style-position: inside; }
details.box[open] > summary { margin-bottom: 12px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--paper); }
.table th, .table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 600; color: var(--muted); font-size: 13px; }
.table th a { color: var(--muted); }
.table--compact th, .table--compact td { padding: 6px 8px; }
.table tr.is-overdue td:first-child { border-left: 3px solid var(--error); }
.badge { display: inline-block; padding: 2px 7px; font-size: 12px; font-weight: 600; background: var(--warm-grey); color: var(--ink); white-space: nowrap; }
.badge--sent, .badge--stage-IN_OUTREACH, .badge--letter-PLANNED { background: #F1E3C4; color: #6B4A00; }
.badge--responded, .badge--stage-INQUIRY, .badge--inquiry-open { background: var(--accent-soft); color: var(--accent-hover); }
.badge--stage-CLIENT, .badge--inquiry-WON { background: var(--ink); color: var(--paper); }
.badge--stage-DORMANT, .badge--inquiry-POSTPONED, .badge--letter-CANCELED, .badge--muted { background: transparent; border: 1px solid var(--line-strong); color: var(--muted); padding: 1px 6px; }
.badge--stage-QUALIFIED { background: #E2E8DF; color: #2F4A2A; }
.badge--declined, .badge--flag, .badge--letter-RETURNED, .badge--inquiry-LOST { background: #FBEAE9; color: var(--error); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { border: 1px solid var(--line); background: var(--paper); padding: 14px 16px; text-decoration: none; color: var(--ink); display: block; }
a.kpi:hover { border-color: var(--ink); color: var(--ink); }
.kpi__num { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.1; }
.kpi__label { font-size: 13px; color: var(--muted); }
.kpi--alert .kpi__num { color: var(--error); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; background: var(--paper); border: 1px solid var(--line); padding: 12px; }
.filters label, .stack-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.filters label.check, .stack-form label.check { flex-direction: row; align-items: center; gap: 6px; color: var(--ink); font-size: 14px; font-weight: 500; }
.input--sm, .select--sm { min-height: 36px; font-size: 14px; padding: 0 8px; width: auto; }
.textarea--sm { min-height: 70px; font-size: 14px; padding: 8px; }
.btn--xs { padding: 6px 10px; font-size: 13px; min-height: 32px; }
.btn--link { background: none; border: 0; padding: 0; min-height: 0; color: var(--accent); font-weight: 500; font-size: 14px; text-decoration: underline; cursor: pointer; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 8px 12px; text-decoration: none; color: var(--ink); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.is-active { border-bottom-color: var(--accent); color: var(--accent); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.timeline__time { color: var(--muted); font-size: 13px; }
.timeline__type { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.timeline__detail { white-space: pre-line; color: var(--ink-soft); margin-top: 4px; font-size: 13px; }
.meta { font-size: 13px; color: var(--muted); }
.dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 12px; font-size: 14px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; }
.stack-form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.stack-form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.list-plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.list-plain > li { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.list-plain > li:last-child { border-bottom: 0; padding-bottom: 0; }
.review-list { gap: 16px; }
.review-list > li { padding-bottom: 16px; }
.pager { display: flex; gap: 14px; align-items: center; margin-top: 12px; font-size: 14px; }
.overdue { color: var(--error); font-weight: 600; }
.flash { padding: 10px 14px; margin-bottom: 16px; font-size: 14px; background: #E2E8DF; border: 1px solid #C3D1BE; color: #2F4A2A; }
.flash--error { background: #FBEAE9; border-color: #F0B9B5; color: var(--error); }
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pipeline__col:target { border-color: var(--accent); }
.now-step { margin: 2px 0 4px; }
.now-more { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px; align-items: baseline; }
.now-more form { margin-top: 8px; }
.now-more > form { margin-top: 0; }
.question { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; }
.filters__more { flex-basis: 100%; }
.filters__more-body { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 10px; }
.pipeline__col { background: var(--paper); border: 1px solid var(--line); padding: 12px; min-height: 120px; }
.pipeline__col h3 { display: flex; justify-content: space-between; }
.pipeline__card { border-top: 1px solid var(--line); padding: 8px 0; font-size: 14px; }
.letter-text { white-space: pre-line; font-size: 14px; background: var(--linen); border: 1px solid var(--line); padding: 12px; }
.admin .fields { max-width: 820px; }
.admin .form { padding: 22px; gap: 18px; }
.qr-box { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: start; }
.qr-box img { width: 150px; height: 150px; border: 1px solid var(--line); background: #fff; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--warm-grey); padding: 1px 6px; font-size: 13px; }
.status-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.login { max-width: 380px; margin: 80px auto; }

/* Nápověda v adminu */
.help-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 18px; }
.help-nav { position: sticky; top: 16px; font-size: 14px; }
.help-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.help-nav a { color: var(--ink); text-decoration: none; }
.help-nav a:hover { color: var(--accent); }
.help { min-width: 0; }
.help p { margin-bottom: 10px; }
.help .box p:last-child { margin-bottom: 0; }
.help-section { margin-top: 34px; scroll-margin-top: 12px; }
.help-section--first { margin-top: 0; }
.help-story { list-style: none; margin: 12px 0 0; padding: 0; background: var(--paper); border: 1px solid var(--line); }
.help-story li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.help-story li:last-child { border-bottom: 0; }
.help-story .badge { justify-self: start; }
.help-term { position: relative; color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.help-term--below::after { bottom: auto !important; top: calc(100% + 6px); }
.help-term::after { content: attr(data-tip); display: none; position: absolute; left: var(--tip-left, 0); bottom: calc(100% + 6px); z-index: 20; width: max-content; max-width: min(300px, 70vw); padding: 8px 10px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 400; line-height: 1.35; white-space: normal; }
.help-term:hover::after, .help-term:focus-visible::after { display: block; }
.help-section > h2 { font-size: 24px; margin: 0 0 8px; }
.help-section .table-wrap { margin-top: 14px; }
.help-section > .meta { margin-top: 6px; }
.help-subhead { margin: 22px 0 10px; }
.help-steps { list-style: none; counter-reset: help-step; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.help-steps > li { counter-increment: help-step; position: relative; padding-left: 38px; font-size: 15px; }
.help-steps > li::before { content: counter(help-step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.help-note { margin-top: 14px; font-size: 14px; }
.help-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-top: 14px; }
.help-compare .box { margin: 0; }
.check-plain, .help-list { margin: 0; padding-left: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.help-dl { grid-template-columns: 170px minmax(0, 1fr); gap: 8px 14px; background: var(--paper); border: 1px solid var(--line); padding: 16px 18px; }
.help-dl dt { color: var(--ink); font-weight: 600; }
.dg-wrap { overflow-x: auto; margin: 12px 0; background: var(--paper); border: 1px solid var(--line); padding: 10px; }
.dg { display: block; width: 100%; min-width: 760px; height: auto; font-family: var(--font-body); }
.dg text { fill: var(--ink); }
.dg .dg-t { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.dg .dg-m { font-size: 14px; font-weight: 600; }
.dg .dg-s { font-size: 12.5px; fill: var(--ink-soft); }
.dg .dg-l { font-size: 12px; fill: var(--muted); }
.dg .dg-c { text-anchor: middle; }
.dg .dg-on-dark { fill: var(--paper); }
.dg-box { fill: var(--paper); stroke: var(--line-strong); stroke-width: 1; }
.dg-found { fill: var(--warm-grey); }
.dg-qualified { fill: #E2E8DF; }
.dg-outreach { fill: #F1E3C4; }
.dg-interest { fill: var(--accent-soft); stroke: var(--accent-soft-line); }
.dg-client { fill: var(--ink); stroke: var(--ink); }
.dg-dormant { fill: var(--paper); stroke-dasharray: 5 4; }
.dg-flag { fill: #FBEAE9; stroke: #F0B9B5; }
.dg-ask { stroke: var(--ink); stroke-width: 1.5; }
.dg a:hover .dg-box { stroke: var(--ink); stroke-width: 2; }
.dg-count rect { fill: var(--accent); stroke: var(--paper); stroke-width: 2; }
.dg .dg-count text { fill: var(--on-accent); font-size: 12.5px; font-weight: 600; text-anchor: middle; font-variant-numeric: tabular-nums; }
.dg-line { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.dg-line--dash { stroke: var(--muted); stroke-dasharray: 5 4; }
.dg-head { fill: var(--ink); }
.dg-head--muted { fill: var(--muted); }
.dg-dot { fill: var(--accent); stroke: var(--paper); stroke-width: 2; }
.dg-btn { fill: var(--accent); }
.dg .dg-btn-t { fill: var(--on-accent); font-size: 12.5px; font-weight: 600; text-anchor: middle; }

/* Responzivita */
@media (max-width: 1200px) {
  /* Užší okno: podtitul na dva řádky, aby menu zůstalo vedle názvu */
  .brand__tagline { max-width: 240px; }
  .site-nav { gap: 18px; }
}
@media (max-width: 960px) {
  .hero__copy, .hero__aside, .two-col__main, .two-col__aside, .cta__copy, .cta__side,
  .offer__copy, .offer__price, .form-layout__intro, .form-layout__main { grid-column: span 12; }
  /* Všechno je pod sebou: bez mezer mezi 12 sloupci (11 × 40 px by na telefonu přetékalo) */
  .hero__grid, .two-col, .offer, .cta__grid, .form-layout { column-gap: 0; }
  .offer__price { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qr-box { grid-template-columns: 1fr; }
  .admin-grid, .pipeline { grid-template-columns: 1fr; }
  .help-layout { grid-template-columns: 1fr; gap: 16px; }
  .help-nav { position: static; }
  .help-nav ul { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .admin-nav__right { margin-left: 0; }
  .bridge__inner { grid-template-columns: 1fr; gap: 20px; }
  .bridge__side--left { text-align: left; padding-right: 0; }
  .bridge__side--right { padding-left: 0; }
  .bridge__seam { flex-direction: row; justify-content: flex-start; }
  .bridge__line { width: 28px; height: 1px; }
  .stamp { top: -16px; right: 0; width: 104px; height: 104px; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 32px; }
  .grid-3, .grid-5, .check-list, .fields { grid-template-columns: 1fr; }
  .field--full { grid-column: span 1; }
  .form { padding: 22px; }
  .offer { padding: 24px; }
  .panel--row > :first-child, .panel--row > :last-child { grid-column: span 12; justify-content: flex-start; }
  .site-header__inner { justify-content: center; }
  .admin { padding: 12px 16px 40px; }
  .timeline li, .dl { grid-template-columns: 1fr; gap: 2px; }
  .help-story li { grid-template-columns: 1fr; gap: 6px; }
  .admin-nav__search .input { width: 100%; }
}
