  /* ═══════════════════════════════════════════════
     SELF-CONTAINED STYLES — light theme, matches /subjekt
  ═══════════════════════════════════════════════ */

  :root {
    --blue:   #1a6fa8;
    --blue-dk:#0d4f7c;
    --bg:     #eef2f6;
    --card:   #ffffff;
    --text:   #1a202c;
    --muted:  #64748b;
    --border: #e2e8f0;
    --sh:     0 4px 20px rgba(0,0,0,.08);
    --sh-md:  0 8px 32px rgba(0,0,0,.10);
  }

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

  html { font-size: 16px; overflow-x: hidden; scroll-behavior: smooth; }

  body {
    margin: 0; padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* ── PAGE SHELL ───────────────────────────────── */
  #shell {
    max-width: 960px; margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
  }

  /* ── HERO CARD ────────────────────────────────── */
  #hero-card {
    background: var(--card);
    border-radius: 20px;
    box-shadow: var(--sh-md);
    padding: 6.5rem 3rem 7rem;
    text-align: center;
    margin: 0 auto 1.25rem;
    position: relative; z-index: 5;
    animation: fadeUp .5s ease-out .1s both;
  }

  .eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .7rem; font-weight: 500; letter-spacing: .14em;
    text-transform: uppercase; color: var(--blue); margin-bottom: .9rem;
  }

  .eyebrow-line {
    display: block; width: 20px; height: 1px;
    background: var(--blue); opacity: .35;
  }

  #page-title {
    font-size: clamp(2rem, 4.8vw, 3.4rem);
    font-weight: 800; line-height: 1.12; color: var(--text);
    letter-spacing: -.035em; margin: 0 0 .75rem; padding: 0;
  }

  .hero-tagline {
    font-size: 1.1rem; font-weight: 500; color: var(--muted);
    margin: 0 0 2.25rem; line-height: 1.5;
  }

  #page-subtitle {
    text-align: center; margin: 0 0 1rem; padding: 0;
    opacity: 0; animation: claimFadeIn .5s ease .5s forwards;
  }
  @keyframes claimFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .claim-row { display: inline-flex; align-items: center; gap: .35rem; }
  .claim-text { font-size: .9rem; font-weight: 700; color: #166534; }
  .claim-arrow { flex-shrink: 0; overflow: visible; }
  .claim-arrow-line, .claim-arrow-head { stroke: #16a34a; }
  body.dark-mode .claim-text { color: #4ade80; }
  body.dark-mode .claim-arrow-line, body.dark-mode .claim-arrow-head { stroke: #4ade80; }

  #page-title em {
    font-style: normal; font-weight: 300; color: var(--blue);
  }

  /* ── SEARCH BOX ───────────────────────────────── */
  #search-area {
    width: 100%; max-width: 660px; position: relative; margin: 0 auto;
  }

  #search-row { position: relative; display: flex; align-items: center; }

  .ico-search {
    position: absolute; left: 1.3rem; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px; color: var(--muted);
    pointer-events: none; z-index: 2; flex-shrink: 0;
  }

  #searchInput {
    all: unset; display: block; box-sizing: border-box; width: 100%;
    padding: 1.2rem 3.2rem 1.2rem 3.2rem;
    font-family: 'Inter', sans-serif; font-size: 1.05rem; font-weight: 400;
    color: var(--text); background: var(--bg);
    border: 2px solid var(--border); border-radius: 12px; outline: none;
    transition: border-color .2s, box-shadow .2s; cursor: text;
    -webkit-appearance: none; caret-color: var(--blue);
  }

  #searchInput::placeholder { color: #94a3b8; font-weight: 400; }

  #searchInput:focus,
  #searchInput.active {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26,111,168,.12);
    background: #fff;
  }

  #searchInput.blob { animation: none; }

  /* Close X button */
  #close-btn {
    position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px; transition: background .2s;
    z-index: 3; flex-shrink: 0; background: transparent;
  }

  #close-btn:hover { background: var(--bg); }

  #close-btn svg {
    width: 14px; height: 14px; stroke: var(--muted); stroke-width: 2;
    stroke-linecap: round; display: block; opacity: 0;
    transition: opacity .2s, stroke .2s;
  }

  #close-btn.visible svg { opacity: 1; }
  #close-btn:hover svg { stroke: var(--blue); }

  /* ── RESULTS DROPDOWN ─────────────────────────── */
  #result {
    display: none; width: 100%;
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: var(--sh-md); border: 1px solid var(--border);
    max-height: 420px; overflow-y: auto;
    position: absolute; top: calc(100% + .5rem); left: 0; right: 0; z-index: 50;
  }

  #result::-webkit-scrollbar { width: 4px; }
  #result::-webkit-scrollbar-thumb { background: rgba(26,111,168,.25); border-radius: 10px; }

  .r-item {
    display: flex; align-items: center; padding: .8rem 1.2rem;
    border-bottom: 1px solid var(--border); text-decoration: none;
    color: var(--text); gap: 0; transition: background .15s;
  }

  .r-item:last-of-type { border-bottom: none; }
  .r-item:hover { background: #f8fafc; }

  .r-dot {
    width: 26px; height: 26px; border-radius: 0; background: transparent;
    flex-shrink: 0; margin-right: .75rem;
    display: flex; align-items: center; justify-content: center;
  }
  .r-dot::after {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--border); transition: background .15s; flex-shrink: 0;
  }
  .r-item:hover .r-dot::after { background: var(--blue); }

  .r-name {
    font-size: .88rem; font-weight: 500; color: var(--text);
    flex: 1; min-width: 0; text-align: left;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  .r-meta {
    font-size: .75rem; color: var(--muted);
    white-space: nowrap; flex-shrink: 0; margin-left: 1rem; text-align: right;
  }

  @media (max-width: 700px) {
    .r-item { flex-direction: column; align-items: flex-start; gap: .3rem; padding: .8rem 1rem; }
    .r-dot { display: none; }
    .r-name { font-size: .92rem; white-space: normal; overflow: visible; line-height: 1.3; }
    .r-meta { margin-left: 0; font-size: .7rem; text-align: left; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
  }

  /* ── OVĚŘENO / NEOVĚŘENO BADGE ─────────────────── */
  .r-badge {
    display: inline-flex; align-items: center; gap: .25rem;
    font-size: .63rem; font-weight: 600; letter-spacing: .03em;
    padding: .13rem .4rem; border-radius: 4px;
    white-space: nowrap; margin-left: .5rem; flex-shrink: 0; vertical-align: middle;
  }
  .r-badge-overeno-img {
    width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; margin-right: .75rem;
  }
  .r-badge-overeno {
    background: rgba(26,111,168,.1); color: var(--blue); border: 1px solid rgba(26,111,168,.2);
  }
  .r-badge-neovereno {
    background: rgba(148,163,184,.08); color: #94a3b8; border: 1px solid rgba(148,163,184,.2);
  }
  .r-badge-proverit {
    background: var(--blue); color: #fff; border: 1px solid var(--blue);
    cursor: pointer; transition: background .15s, box-shadow .15s, transform .1s;
  }
  .r-badge-proverit:hover {
    background: #0d4f7c; border-color: #0d4f7c;
    box-shadow: 0 2px 8px rgba(13,79,124,.4);
  }
  .r-badge-proverit:active { transform: scale(.95); }

  @media (max-width: 700px) {
    .r-badge { margin-left: 0; margin-top: .2rem; font-size: .6rem; }
  }

  .r-count {
    padding: .5rem 1.2rem; font-size: .73rem; color: var(--muted);
    background: #f8fafc; border-top: 1px solid var(--border);
    position: sticky; bottom: 0;
  }

  .r-empty { padding: 2rem 1.5rem; text-align: center; color: var(--muted); font-size: .88rem; }

  .r-empty-hint {
    display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 2rem 1.5rem;
  }
  .r-empty-hint .r-empty-icon { font-size: 1.5rem; line-height: 1; margin-bottom: .15rem; }
  .r-empty-hint strong { color: var(--text); font-size: .88rem; font-weight: 600; }
  .r-empty-hint span { color: var(--muted); font-size: .8rem; }

  .r-loading {
    padding: 1.75rem 1.5rem; display: flex; align-items: center;
    justify-content: center; gap: .65rem; color: var(--muted); font-size: .83rem;
  }

  .spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(26,111,168,.15); border-top-color: var(--blue);
    border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0;
  }

  @keyframes spin { to { transform: rotate(360deg); } }

  /* ── HERO META (stats + feature chips) ────────── */
  #hero-meta {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem;
  }

  /* Stats – prostý text, žádný border/pill */
  .s-pill {
    font-size: .75rem; color: var(--muted); white-space: nowrap;
  }
  .s-pill strong { font-weight: 700; color: var(--text); }

  /* separator tečka mezi stat položkami */
  .hero-sep {
    width: 3px; height: 3px; border-radius: 50%;
    background: var(--border); flex-shrink: 0;
  }

  /* Feature chips řádek */
  #feature-chips {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: .4rem; margin-top: 1rem;
  }

  /* Chipsy – bordery = jasně klikatelné */
  .fchip {
    display: inline-flex; align-items: center; gap: .28rem;
    padding: .3rem .75rem; background: #fff; border: 1px solid var(--border);
    border-radius: 100px; font-size: .75rem; color: var(--text);
    text-decoration: none; white-space: nowrap; font-weight: 500;
    transition: border-color .15s, color .15s;
  }
  .fchip:hover { border-color: var(--blue-lt); color: var(--blue-lt); }

  /* ── CTA SECTION ──────────────────────────────── */
  #cta-section {
    margin: 2.25rem auto 0;
    animation: fadeUp .5s ease-out .3s both;
  }

  .cta-card {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dk) 100%);
    border-radius: 20px; padding: 3rem 3.5rem;
    display: flex; align-items: center;
    justify-content: space-between; gap: 2rem;
    box-shadow: 0 16px 48px -8px rgba(26,111,168,.55), 0 0 0 1px rgba(255,255,255,.06) inset;
  }

  .cta-card-body h2 {
    font-size: 1.75rem; font-weight: 800; color: #fff;
    margin: 0 0 .65rem; letter-spacing: -.01em; line-height: 1.25;
  }

  .cta-card-body p s { opacity: .65; }

  .cta-card-body p {
    font-size: 1.05rem; color: rgba(255,255,255,.82);
    margin: 0; line-height: 1.6; max-width: 520px;
  }

  .cta-right {
    display: flex; flex-direction: column; align-items: center;
    gap: 1.1rem; flex-shrink: 0;
  }

  .cta-badge-img {
    width: 92px; height: 92px; object-fit: contain; display: block;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.25));
  }

  .cta-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: 1.05rem 2.2rem; background: #fff; color: var(--blue);
    font-family: 'Inter', sans-serif; font-size: 1.05rem; font-weight: 800;
    border-radius: 12px; text-decoration: none; white-space: nowrap;
    flex-shrink: 0; border: none; outline: none; cursor: pointer;
    box-shadow: 0 6px 18px -4px rgba(0,0,0,.35);
    transition: opacity .2s, transform .15s, box-shadow .2s;
    animation: ctaPulse 2.2s ease-in-out infinite;
  }

  .cta-btn:hover {
    opacity: .95; transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 24px -4px rgba(0,0,0,.4);
    animation-play-state: paused;
  }

  @keyframes ctaPulse {
    0%, 100% { box-shadow: 0 6px 18px -4px rgba(0,0,0,.35), 0 0 0 0 rgba(255,255,255,.5); }
    50%      { box-shadow: 0 6px 18px -4px rgba(0,0,0,.35), 0 0 0 8px rgba(255,255,255,0); }
  }

  /* ── PROVĚŘIT SEKCE (jednorázová kontrola registrů, sekundární k odznaku) ── */
  #overit-section {
    margin: 1.25rem auto 0;
    animation: fadeUp .5s ease-out .35s both;
  }

  .overit-card {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    display: flex; align-items: center;
    gap: 1.5rem;
    box-shadow: var(--sh);
  }

  .overit-icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(26,111,168,.1); color: var(--blue-lt, var(--blue));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; flex-shrink: 0;
  }

  .overit-body { flex: 1; min-width: 0; }

  .overit-body h2 {
    font-size: 1.2rem; font-weight: 800; color: var(--text);
    margin: 0 0 .4rem; letter-spacing: -.01em; line-height: 1.3;
  }

  .overit-body p {
    font-size: .9rem; color: var(--muted);
    margin: 0; line-height: 1.55; max-width: 560px;
  }

  .overit-action {
    display: flex; flex-direction: column; align-items: center;
    gap: .4rem; flex-shrink: 0;
  }

  .overit-btn {
    position: relative; display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 1.6rem; background: var(--blue); color: #fff;
    font-family: 'Inter', sans-serif; font-size: .92rem; font-weight: 700;
    border: none; border-radius: 10px; cursor: pointer; white-space: nowrap;
    transition: background .15s, transform .15s;
  }
  .overit-btn:hover { background: var(--blue-dk); transform: translateY(-1px); }

  .overit-price { font-size: .76rem; color: var(--muted); white-space: nowrap; }

  /* ── PRŮVODCE KARTY ───────────────────────────── */
  #guide-section {
    max-width: 860px; margin: 1.25rem auto 0;
    animation: fadeUp .5s ease-out .35s both;
  }

  .guide-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: .75rem;
  }

  #guide-section .guide-label {
    font-size: .62rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--muted);
    margin-bottom: 0;
  }

  .guide-all-link {
    font-size: .75rem; font-weight: 600; color: var(--blue-lt);
    text-decoration: none; transition: color .15s;
  }
  .guide-all-link:hover { color: var(--blue-dk); }

  .guide-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem;
  }

  .guide-card {
    background: var(--card); border-radius: 14px;
    border: 1px solid var(--border);
    padding: 1.25rem 1.4rem;
    text-decoration: none;
    display: flex; flex-direction: column; gap: .35rem;
    transition: border-color .15s, box-shadow .15s;
  }

  .guide-card:hover {
    border-color: var(--blue-lt);
    box-shadow: 0 4px 16px rgba(26,111,168,.1);
  }

  .guide-card-icon { font-size: 1.3rem; line-height: 1; }
  .guide-card-badge-img { width: 30px; height: auto; display: block; }

  .guide-card-title {
    font-size: .9rem; font-weight: 700; color: var(--text);
    margin: 0; letter-spacing: -.01em;
  }

  .guide-card-desc {
    font-size: .78rem; color: var(--muted);
    margin: 0; line-height: 1.5;
  }

  .guide-card-link {
    font-size: .75rem; font-weight: 600; color: var(--muted);
    margin-top: auto; padding-top: .35rem;
  }

  .guide-more {
    margin: .75rem 0 0; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap;
  }
  .guide-more-label {
    font-size: .7rem; color: var(--muted); font-weight: 500; white-space: nowrap;
    margin-right: .1rem;
  }
  .guide-more-chip {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .75rem; font-weight: 500; color: var(--text);
    background: var(--card); border: 1px solid var(--border); border-radius: 20px;
    padding: .22rem .7rem; text-decoration: none;
    transition: border-color .15s, color .15s;
    white-space: nowrap;
  }
  .guide-more-chip:hover { border-color: var(--blue-lt); color: var(--blue-lt); }
  .guide-more-chip-badge { height: 16px; width: auto; display: block; }

  /* ── FOOTER ───────────────────────────────────── */
  #site-footer {
    max-width: 860px; margin: 1rem auto 0;
    padding: 1rem 1.5rem 2.5rem;
    display: flex; align-items: center; justify-content: center;
    gap: .2rem .85rem; flex-wrap: wrap; font-size: .72rem;
  }

  #site-footer a {
    color: var(--muted); text-decoration: none;
    transition: color .2s; white-space: nowrap;
  }

  #site-footer a:hover { color: var(--blue); }
  #site-footer .dot { color: var(--border); }
  #site-footer .lbl { color: #94a3b8; }

  /* ── ANIMATIONS ───────────────────────────────── */
  @keyframes fadeUp {
    from { opacity:0; transform:translateY(16px); }
    to   { opacity:1; transform:translateY(0); }
  }

  /* ── RESPONSIVE ───────────────────────────────── */
  @media (max-width: 700px) {
    #shell { padding: 1.25rem 1rem 2rem; }
    #hero-card { padding: 1.75rem 1.25rem 1.5rem; border-radius: 16px; }
    #page-title { font-size: 1.7rem; margin-bottom: .5rem; }
    .hero-tagline { font-size: .92rem; margin-bottom: 1.5rem; }
    #page-subtitle { margin-bottom: .75rem; }
    .claim-text { font-size: .78rem; }
    .claim-arrow { width: 22px; height: 19px; }
    #search-area { max-width: 100%; }
    .guide-grid { grid-template-columns: 1fr; }
    .cta-card { flex-direction: column; align-items: center; padding: 1.5rem; text-align: center; }
    .cta-card-body p { max-width: 100%; }
    .cta-btn { width: 100%; justify-content: center; }
    .overit-card { flex-direction: column; align-items: center; padding: 1.5rem; text-align: center; }
    .overit-body p { max-width: 100%; }
    .overit-btn { width: 100%; justify-content: center; }
    #site-footer { padding: .75rem 1rem 1.5rem; gap: .1rem .55rem; }
    #hero-meta { gap: .35rem; margin-top: .9rem; }
    #hero-meta .s-pill:last-of-type { display: none; }
  }

  @media (max-width: 480px) {
    #page-title { font-size: 1.45rem; }
    .cta-card-body p { font-size: .82rem; }
  }

  /* ── DARK MODE ─────────────────────────────────── */
  body.dark-mode {
    --bg:     #0f172a;
    --card:   #1e293b;
    --text:   #e2e8f0;
    --muted:  #94a3b8;
    --border: #334155;
    --sh:     0 4px 20px rgba(0,0,0,.3);
    --sh-md:  0 8px 32px rgba(0,0,0,.35);
    --blue-lt: #60a5fa;
  }

  /* Prvky s hardcoded bílým pozadím */
  body.dark-mode #result { background: #1e293b; }
  body.dark-mode .r-item:hover { background: #334155; }
  body.dark-mode .r-count { background: #0f172a; }
  body.dark-mode #searchInput:focus,
  body.dark-mode #searchInput.active { background: #1e293b; }
  body.dark-mode .fchip { background: #1e293b; }
  body.dark-mode #odkazy a { background: #1e293b; }
  body.dark-mode #odkazy a:hover { background: #334155; }

  /* ═══════════════════════════════════════════════
     REDESIGN 2026-10 — vyhledávání jako hlavní prvek, čisté karty ve stylu stránky subjektu
  ═══════════════════════════════════════════════ */
  #shell { max-width: 960px; padding-top: 1rem; }

  /* HERO bez karty */
  #hero { text-align: center; padding: 4.5rem 0 3rem; position: relative; z-index: 5; animation: fadeUp .5s ease-out .1s both; }
  #hero .eyebrow { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: .75rem; }
  #hero #page-title { margin-bottom: .6rem; }
  /* Jen nadpis + jedna věta s vizí → klidný hero, pozornost na vyhledávání */
  #hero .hero-vize { margin: 0 auto 2.25rem; max-width: 640px; text-wrap: balance; font-size: 1.15rem; font-weight: 400; color: var(--muted); line-height: 1.5; }
  #hero .hero-tagline { margin: 0 auto 2rem; max-width: 600px; text-wrap: balance; font-size: .98rem; line-height: 1.55; }
  @media (max-width: 700px) { #hero .hero-vize { font-size: 1rem; margin-bottom: 1.5rem; } }
  #hero #search-area { max-width: 680px; }
  #hero #searchInput, #hero #searchInput::placeholder { text-align: left; }
  #hero #searchInput { background: #fff; border: 1.5px solid var(--border); border-radius: 14px; padding: 1.25rem 3.4rem; font-size: 1.08rem;
    box-shadow: 0 10px 30px rgba(15,23,42,.08), 0 1px 3px rgba(15,23,42,.06); }
  #hero #searchInput:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26,111,168,.12), 0 10px 30px rgba(15,23,42,.08); }
  #hero .ico-search { left: 1.3rem; color: var(--blue); }
  #close-btn { border: 0; background: transparent; padding: 0; }
  /* Nápověda pod polem (po kliknutí na Prověřit / Aktivovat OVĚŘENO): výrazná bublina se šipkou k poli
     + krátké rozsvícení pole, aby si jí člověk všiml */
  .search-hint { position: relative; display: inline-flex; align-items: center; gap: .5rem; margin: 1rem auto 0; padding: .65rem 1rem;
    background: #fff; border: 1px solid var(--border); border-radius: 10px; color: #475569; font-size: .88rem; font-weight: 500;
    line-height: 1.45; text-align: left; box-shadow: 0 4px 14px rgba(15,23,42,.06); animation: hintIn .45s ease-out; }
  .search-hint[hidden] { display: none; } /* jinak by display:inline-flex přebil skrytí → prázdná bublina */
  .search-hint::before { content: ""; position: absolute; top: -7px; left: 2rem; width: 12px; height: 12px; background: #fff;
    border-left: 1px solid var(--border); border-top: 1px solid var(--border); transform: rotate(45deg); }
  .search-hint svg { flex-shrink: 0; width: 16px; height: 16px; color: #16a34a; }
  @keyframes hintIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  #searchInput.is-hinted { animation: inputGlow 1.4s ease-out 1; }
  @keyframes inputGlow { 0% { box-shadow: 0 0 0 0 rgba(26,111,168,.25); } 100% { box-shadow: 0 0 0 10px rgba(26,111,168,0); } }
  body.dark-mode .search-hint, body.dark-mode .search-hint::before { background: #1e293b; border-color: #334155; color: #cbd5e1; }
  body.dark-mode .search-hint svg { color: #4ade80; }
  .hero-examples { margin: 1rem 0 0; font-size: .82rem; color: var(--muted); }
  .hero-example { border: 0; background: none; padding: 0; font: inherit; color: var(--blue); font-weight: 600; cursor: pointer; }
  .hero-example:hover { text-decoration: underline; }
  .hero-example { transition: opacity .35s ease, transform .35s ease; }
  .hero-example.is-out { opacity: 0; transform: translateY(4px); }

  /* Výsledky: jeden řádek (název vlevo, IČO · obec · rok vpravo), aktivní řádek jemně do modra */
  #result { text-align: left; border-radius: 14px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .r-item { gap: .75rem; padding: .7rem 1.1rem; }
  .r-item.is-active { background: rgba(26,111,168,.08); box-shadow: inset 3px 0 0 var(--blue); }
  .r-item.is-active .r-name { color: var(--blue-dk); }
  .r-badge-overeno-img { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
  .r-name { flex: 1; min-width: 0; }
  .r-meta { margin-left: auto; white-space: nowrap; }

  /* Karty sekcí */
  .home-card { background: var(--card); border-radius: 14px; box-shadow: var(--sh); padding: 1.4rem 1.6rem; margin-top: .9rem; }
  .home-label { font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem; }
  .home-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
  .home-all-link { font-size: .8rem; font-weight: 600; color: var(--blue); text-decoration: none; white-space: nowrap; }
  .home-all-link:hover { text-decoration: underline; }

  /* Jak to funguje */
  .how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .how-steps li { display: flex; gap: .8rem; align-items: flex-start; }
  .how-num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: rgba(26,111,168,.1); color: var(--blue); font-weight: 700; font-size: .88rem; display: flex; align-items: center; justify-content: center; }
  .how-steps strong { display: block; font-size: .92rem; color: var(--text); margin-bottom: .2rem; }
  .how-steps span { font-size: .84rem; color: var(--muted); line-height: 1.5; }
  .how-free { font-style: normal; font-size: .68rem; font-weight: 700; background: #fef3c7; color: #92400e; padding: .1rem .45rem; border-radius: 999px; margin-left: .25rem; vertical-align: 1px; }
  .how-link { display: block; margin-top: .5rem; border: 0; background: none; padding: 0; font: inherit; font-size: .84rem; font-weight: 600; color: var(--blue); cursor: pointer; text-align: left; }
  .how-link:hover { text-decoration: underline; }

  /* Průvodce — řádky jako na stránce subjektu */
  .pruvodce-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .pruvodce-item { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--border); text-decoration: none; min-width: 0; }
  .pruvodce-texts { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
  .pruvodce-title { font-size: .88rem; font-weight: 600; color: var(--text); line-height: 1.3; transition: color .15s; }
  .pruvodce-desc { font-size: .78rem; color: var(--muted); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pruvodce-chevron { flex-shrink: 0; font-size: 1.15rem; line-height: 1; color: #94a3b8; transition: transform .15s, color .15s; }
  .pruvodce-item:hover .pruvodce-title, .pruvodce-item:hover .pruvodce-chevron { color: var(--blue); }
  .pruvodce-item:hover .pruvodce-chevron { transform: translateX(2px); }

  /* Odznak OVĚŘENO — stejná karta jako na stránce subjektu (fotka u pravého a horního okraje) */
  .bp2 { --bp2-pt: 1.4rem; --bp2-px: 1.6rem; padding: var(--bp2-pt) var(--bp2-px); overflow: hidden; }
  .bp2-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; align-items: stretch; }
  .bp2-main { align-self: center; padding: 1rem .5rem 1rem 0; }
  .bp2-title { font-size: 1.3rem; font-weight: 700; color: var(--text); line-height: 1.3; letter-spacing: -.01em; margin: 0 0 .75rem; }
  .bp2-lead { font-size: .92rem; color: var(--muted); line-height: 1.65; margin: 0 0 1.2rem; }
  .bp2-benefits { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; }
  .bp2-benefits li { position: relative; padding-left: 1.5rem; font-size: .9rem; color: var(--text); }
  .bp2-benefits li::before { content: ""; position: absolute; left: .1rem; top: .32em; width: .8rem; height: .45rem; border-left: 2px solid #16a34a; border-bottom: 2px solid #16a34a; transform: rotate(-45deg); }
  .bp2-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.5rem; border: 0; border-radius: 8px; background: var(--blue); color: #fff; cursor: pointer; font-family: inherit; font-size: .92rem; font-weight: 700; transition: background .15s, transform .15s; }
  .bp2-cta:hover { background: var(--blue-dk); transform: translateY(-1px); }
  .bp2-cta-note { font-weight: 500; opacity: .8; }
  .bp2-escape { font-size: .8rem; color: var(--muted); margin: .9rem 0 0; }
  /* Pravý sloupec (fotka, citace, miniatury) na jemně modrém podkladu až k okrajům karty */
  .bp2-proof { min-width: 0; margin: calc(-1 * var(--bp2-pt)) calc(-1 * var(--bp2-px)) calc(-1 * var(--bp2-pt)) 0;
    padding-bottom: var(--bp2-pt); background: #f1f6fb; border-left: 1px solid rgba(26,111,168,.08); display: flex; flex-direction: column; }
  .bp2-proof .bp2-quotes { flex: 1; }
  .bp2-proof .bp2-quote-body, .bp2-proof .bp2-people { padding-right: var(--bp2-px); padding-left: .5rem; }
  .bp2-quotes { display: grid; }
  .bp2-quote { grid-area: 1 / 1; margin: 0; display: flex; flex-direction: column; align-items: stretch; text-align: center; gap: .8rem; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
  .bp2-quote.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease, visibility 0s; }
  .bp2-quote-face { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #f1f5f9; border-radius: 0 14px 0 0; }
  .bp2-quote-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
  .bp2-quote-photo--badge { object-fit: contain; padding: 18%; }
  .bp2-quote-badge { position: absolute; right: 14px; top: 12px; width: 64px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
  .bp2-quote-body { min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
  /* Citace max. 3 řádky (nižší sekce, bez prázdného místa); celá se rozbalí odkazem "Číst celou" */
  .bp2-quote blockquote { margin: 0 0 .5rem; font-size: .86rem; line-height: 1.55; color: var(--text); font-style: italic;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
  .bp2-quote.is-expanded blockquote { -webkit-line-clamp: unset; line-clamp: unset; display: block; }
  .bp2-more { display: none; margin: -.2rem auto .45rem; border: 0; background: none; padding: 0; font: inherit; font-size: .78rem; font-weight: 600; color: var(--blue); cursor: pointer; }
  .bp2-more:hover { text-decoration: underline; }
  .bp2-quote.has-more .bp2-more { display: inline-block; }
  .bp2-quote.is-expanded .bp2-more { display: none; }
  .bp2-quote-who { display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
  .bp2-quote-who strong { font-size: .84rem; color: var(--text); }
  .bp2-quote-who a { font-size: .76rem; color: var(--blue); text-decoration: none; }
  .bp2-quote-who a:hover { text-decoration: underline; }
  .bp2-people { display: flex; justify-content: center; margin-top: .8rem; }
  .bp2-avatars { display: inline-flex; }
  .bp2-avatar { position: relative; width: 44px; height: 44px; padding: 0; margin-left: -10px; border: 2px solid #fff; border-radius: 50%; background: #fff; cursor: pointer; overflow: hidden; box-shadow: 0 1px 4px rgba(15,23,42,.18); transition: transform .15s ease, box-shadow .15s ease; }
  .bp2-avatar:first-child { margin-left: 0; }
  .bp2-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .bp2-avatar img.bp2-avatar-badge { object-fit: contain; padding: 5px; }
  .bp2-avatar:hover { transform: translateY(-2px); z-index: 2; }
  /* Reference bez fotky: menší ikonka s odznakem na konci řady (navazuje bez mezery) */
  .bp2-avatar--sm { width: 32px; height: 32px; align-self: center; margin-left: -8px; }
  .bp2-avatar--sm img.bp2-avatar-badge { padding: 4px; }
  .bp2-avatar.is-active { z-index: 3; box-shadow: 0 0 0 2px var(--blue), 0 2px 6px rgba(15,23,42,.2); }

  /* Časté otázky */
  .faq-item { border-top: 1px solid var(--border); }
  .faq-item:first-child { border-top: 0; }
  .faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; font-size: .92rem; font-weight: 600; color: var(--text); }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after { content: "›"; color: #94a3b8; font-size: 1.2rem; line-height: 1; transition: transform .2s; }
  .faq-item[open] summary::after { transform: rotate(90deg); }
  .faq-item summary:hover { color: var(--blue); }
  .faq-item p { margin: 0 0 1rem; font-size: .88rem; color: var(--muted); line-height: 1.65; max-width: 720px; }

  /* Patička (zatím jen homepage) */
  #site-footer { display: none; }
  #home-footer { margin-top: 3rem; background: var(--card); border-top: 1px solid var(--border); }
  .hf-inner { max-width: 960px; margin: 0 auto; padding: 2.5rem 1.5rem 1.5rem; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
  .hf-logo { font-weight: 800; font-size: 1rem; color: var(--text); text-decoration: none; }
  .hf-brand p { margin: .5rem 0 0; font-size: .82rem; color: var(--muted); line-height: 1.55; }
  .hf-col { display: flex; flex-direction: column; gap: .45rem; align-items: flex-start; }
  .hf-col h3 { font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 .25rem; }
  .hf-col a, .hf-col button { font-size: .84rem; color: var(--text); text-decoration: none; border: 0; background: none; padding: 0; font-family: inherit; cursor: pointer; text-align: left; }
  .hf-col a:hover, .hf-col button:hover { color: var(--blue); text-decoration: underline; }
  .hf-note { font-size: .76rem; color: var(--muted); }
  .hf-col .hf-gap { margin-top: .35rem; }
  .hf-bottom { max-width: 960px; margin: 0 auto; padding: 1rem 1.5rem 1.75rem; border-top: 1px solid var(--border); font-size: .76rem; color: var(--muted); }

  @media (max-width: 860px) {
    .hf-inner { grid-template-columns: 1fr 1fr; }
    .hf-brand { grid-column: 1 / -1; }
  }
  @media (max-width: 700px) {
    #hero { padding: 2.25rem 0 1.75rem; }
    #hero #searchInput { padding: 1.05rem 3rem; font-size: 1rem; }
    .home-card { padding: 1.2rem 1.15rem; }
    .how-steps { grid-template-columns: 1fr; gap: 1rem; }
    .pruvodce-list { grid-template-columns: 1fr; }
    .r-item { flex-direction: row; align-items: center; }
    .r-meta { font-size: .7rem; }
    .bp2 { --bp2-px: 1.15rem; --bp2-pt: 1.2rem; }
    .bp2-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .bp2-main { padding: .25rem 0 0; }
    .bp2-title { font-size: 1.15rem; }
    .bp2-proof { margin: .25rem calc(-1 * var(--bp2-px)) calc(-1 * var(--bp2-pt)); border-left: 0; }
    .bp2-proof .bp2-quote-body, .bp2-proof .bp2-people { padding: 0 var(--bp2-px); }
    .bp2-quote-face { border-radius: 0; max-height: 440px; width: 100%; }
    .bp2-quote-photo { object-position: center 20%; }
  }
  @media (max-width: 480px) {
    .bp2-cta { width: 100%; }
    .bp2-quote-badge { width: 52px; }
    /* úzký displej: výsledek pod sebou (název, pod ním IČO · obec · rok) */
    .r-item { flex-direction: column; align-items: flex-start; gap: .2rem; }
    .r-meta { margin-left: 0; white-space: normal; }
  }
  @media (min-width: 481px) and (max-width: 700px) {
    .bp2-proof { margin: .5rem calc(-1 * var(--bp2-px)) calc(-1 * var(--bp2-pt)); padding-top: 1.25rem; }
    .bp2-proof .bp2-quote-body, .bp2-proof .bp2-people { padding: 0; }
    .bp2-quote-face { max-width: 380px; margin: 0 auto; border-radius: 14px; }
  }

  body.dark-mode #hero #searchInput { background: #1e293b; }
  body.dark-mode .r-item.is-active { background: rgba(96,165,250,.14); }
  body.dark-mode .r-item.is-active .r-name { color: #bfdbfe; }
  body.dark-mode .how-num { background: rgba(96,165,250,.15); color: #60a5fa; }
  body.dark-mode .bp2-quote-face { background: #0f172a; }
  body.dark-mode .bp2-proof { background: #172234; border-left-color: rgba(255,255,255,.05); }
  body.dark-mode .bp2-avatar { border-color: #1e293b; background: #1e293b; }
  body.dark-mode .hero-example, body.dark-mode .home-all-link, body.dark-mode .how-link,
  body.dark-mode .bp2-quote-who a { color: #60a5fa; }
  body.dark-mode .bp2-cta { background: #2563eb; }
