/*
 * zapaltesvicku.css – stránka domén zapaltesvicku.cz / zapaltesviecku.sk
 * (pages/zapaltesvicku.php). Tokeny z v2-base.css (body.v2), svíčka
 * a animace plamene z memorial-candles.css (stejná kresba jako na webu).
 * Obsah v orámovaném rámečku jako stránky webu (.page-frame).
 */
body.zsv {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--paper-2) 100%);
  color: var(--ink); font: 400 var(--fs-body)/var(--lh-body) var(--sans);
}
body.zsv a { color: var(--accent); }
.zsv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Horní lišta ── */
.zsv-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 880px; width: 100%; margin: 0 auto; padding: 18px var(--gutter); box-sizing: border-box;
}
.zsv-brand img { display: block; height: 44px; width: auto; }
.zsv-part { font-size: .9rem; color: var(--ink-2) !important; text-decoration: none; text-align: right; }
.zsv-part:hover { color: var(--accent) !important; text-decoration: underline; }

/* ── Rámeček obsahu ── */
.zsv-main {
  flex: 1 0 auto; width: calc(100% - 2 * var(--gutter)); max-width: 880px; margin: 0 auto 32px; box-sizing: border-box;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md);
  padding: clamp(28px, 5vw, 56px) clamp(18px, 5vw, 56px);
}

/* ── Hlavička se svíčkou a hledáním ── */
.zsv-hero { text-align: center; position: relative; }
.zsv-hero::before {   /* teplé světlo svíčky */
  content: ""; position: absolute; left: 50%; top: -10px; width: 420px; height: 300px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 214, 140, .28), rgba(255, 214, 140, 0)); pointer-events: none;
}
.zsv-candle { position: relative; display: flex; justify-content: center; margin-bottom: 6px; }
.zsv-candle svg { width: 70px; height: 172px; overflow: visible; }
.zsv-hero h1 {
  position: relative; margin: 6px 0 18px; font-family: 'Cormorant Garamond', 'Lora', Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1.08; font-weight: 700; color: #2b241d;
}
.zsv-lead { position: relative; margin: 0 auto 28px; max-width: 36em; font-family: 'Lora', Georgia, serif; color: #4a4038; font-size: 1.06rem; line-height: 1.7; }
.zsv-lead p { margin: 0 0 12px; }
.zsv-lead .zsv-lead-last { margin-bottom: 0; color: #6b5d4f; font-size: .98rem; }

.zsv-search {
  display: flex; gap: 8px; max-width: 560px; margin: 0 auto;
  padding: 6px; background: var(--paper); border: 1px solid #cfc6b6; border-radius: 999px; box-shadow: var(--shadow-md);
}
.zsv-search:focus-within { border-color: #a08453; box-shadow: 0 0 0 3px rgba(160, 132, 83, .18), var(--shadow-md); }
.zsv-search input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 1.05rem; color: var(--ink); padding: 10px 16px;
}
.zsv-search button {
  flex: 0 0 auto; border: 0; border-radius: 999px; padding: 10px 22px; cursor: pointer;
  background: var(--accent); color: #fff; font: 600 1rem var(--sans);
}
.zsv-search button:hover { background: var(--accent-hi); }
.zsv-hint { margin: 12px auto 0; max-width: 36em; font-size: .88rem; color: var(--ink-3); }

/* ── Výsledky ── */
.zsv-results { max-width: 640px; margin: 22px auto 0; text-align: left; }
.zsv-results.is-loading { opacity: .6; }
.zsv-msg { margin: 10px 0; text-align: center; color: var(--ink-2); font-size: .95rem; }
.zsv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.zsv-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper);
  text-decoration: none; color: var(--ink) !important; transition: border-color .15s ease, box-shadow .15s ease;
}
.zsv-item:hover, .zsv-item:focus-visible { border-color: #a08453; box-shadow: var(--shadow-md); }
.zsv-item-text { display: flex; flex-direction: column; min-width: 0; }
.zsv-item-type { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.zsv-item-text strong { font-size: 1.02rem; overflow-wrap: anywhere; }
.zsv-item-note { font-size: .86rem; color: var(--ink-2); overflow-wrap: anywhere; }
.zsv-item-cta {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  color: #5b4a2c; background: #f6efe2; border: 1px solid #e2d3b6; white-space: nowrap;
}
.zsv-item:hover .zsv-item-cta { background: #efe3cc; }

/* ── Statistiky ── */
.zsv-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
  margin: 40px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); text-align: center;
}
.zsv-stat strong { display: block; font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.zsv-stat span { font-size: .86rem; color: var(--ink-2); }

/* ── Jak to funguje ── */
/* ── Sekce prezentace (společný rytmus) ── */
.zsv-sec { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.zsv-sec h2 {
  margin: 0 0 18px; text-align: center; line-height: 1.15; color: #2b241d;
  font-family: 'Cormorant Garamond', 'Lora', Georgia, serif; font-size: clamp(1.6rem, 3.2vw, 2rem); font-weight: 700;
}
.zsv-sec p { margin: 0 0 12px; color: var(--ink-2); }

/* Proč na dálku + ukázka svíčky */
.zsv-meaning { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.zsv-meaning h2 { text-align: left; }
.zsv-demo {   /* jako ukázka na landing /svicka-na-pamatku */
  margin: 0; padding: 18px 18px 20px; text-align: center; border-radius: var(--r-xl);
  background: #DEDEDE; border: 1.5px solid #a08453; color: #3d342b; font-family: 'Lora', Georgia, serif;
  box-shadow: var(--shadow-md);
}
.zsv-demo figcaption { font-size: .78rem; color: #7a6c5c; margin: 0 0 6px; }
.zsv-demo-candle svg { width: 84px; height: 172px; overflow: visible; }
.zsv-demo-switch {
  display: inline-flex; margin: 8px 0 12px; padding: 3px; gap: 3px;
  border: 1.5px solid #a08453; border-radius: 20px; background: rgba(255, 255, 255, .35);
}
.zsv-demo-switch button {
  border: 0; background: transparent; color: #3d342b; cursor: pointer;
  font: inherit; font-size: .88rem; padding: 6px 14px; border-radius: 16px;
}
.zsv-demo-switch button.is-on { background: #a08453; color: #fff; font-weight: 700; }
.zsv-demo-info { display: flex; flex-direction: column; gap: 2px; font-size: .95rem; min-height: 66px; }
.zsv-demo-info[hidden] { display: none; }
.zsv-demo-line { display: flex; flex-direction: column; gap: 2px; transition: opacity .45s ease; }
.zsv-demo-line.is-fading { opacity: 0; }
.zsv-demo-msg { font-style: italic; color: #7a6c5c; }
.zsv-demo-left { margin-top: 4px; font-weight: 700; color: #a08453; }
.zsv-demo-out { justify-content: center; color: #7a6c5c; }

/* Kde všude */
.zsv-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.zsv-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.zsv-card strong { display: block; margin-bottom: 4px; }
.zsv-card span { font-size: .92rem; color: var(--ink-2); }

/* Odrážky s fajfkou */
.zsv-checks { list-style: none; margin: 0 auto; padding: 0; max-width: 36em; display: grid; gap: 8px; }
.zsv-checks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.zsv-checks li::before {
  content: ""; position: absolute; left: 4px; top: .35em; width: 12px; height: 7px;
  border-left: 2px solid #a08453; border-bottom: 2px solid #a08453; transform: rotate(-45deg);
}

/* O projektu + aplikace */
.zsv-about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.zsv-about-box { padding: 22px; border-radius: var(--r-xl); background: var(--tint-1); }
.zsv-about-box h2 { text-align: left; font-size: 1.55rem; margin-bottom: 10px; }
.zsv-about-box .zsv-checks { margin: 0 0 12px; max-width: none; }
.zsv-by { font-size: .86rem; color: var(--ink-3) !important; }
.zsv-btn {
  display: inline-block; margin-top: 4px; padding: 10px 20px; border-radius: 999px;
  background: var(--accent); color: #fff !important; font-weight: 600; text-decoration: none;
}
.zsv-btn:hover { background: var(--accent-hi); }
.zsv-btn--ghost {
  background: transparent; color: #5b4a2c !important; border: 1.5px solid #a08453; padding: 9px 20px;
}
.zsv-btn--ghost:hover { background: #f6efe2; }
.zsv-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.zsv-badges img { display: block; height: 40px; width: auto; }

/* Časté otázky */
.zsv-faq details { max-width: 40em; margin: 0 auto; border-bottom: 1px solid var(--line); }
/* Stejná ikona a chování jako .lp-faq na ostatních stránkách (landing-v2.css) */
.zsv-faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px; padding: 8px 0; font-weight: 700; line-height: 1.35; color: var(--ink);
}
.zsv-faq summary:hover { color: var(--accent); }
.zsv-faq summary::-webkit-details-marker { display: none; }
.zsv-faq-icon {
  flex: 0 0 22px; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; color: var(--accent); transition: transform .18s ease;
}
.zsv-faq details[open] .zsv-faq-icon { transform: rotate(180deg); }
.zsv-faq details p { margin: 0 0 14px; }
.zsv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.zsv-steps li {
  display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--r-lg); background: var(--tint-1);
}
.zsv-step-num {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px;
  background: var(--paper); border: 1px solid #e2d3b6; color: #5b4a2c; font-weight: 700; font-size: .9rem;
}
.zsv-steps strong { font-size: 1rem; }
.zsv-steps span:not(.zsv-step-num) { font-size: .92rem; color: var(--ink-2); }
.zsv-more { margin: 22px 0 0; text-align: center; }

/* ── Patička ── */
.zsv-foot { max-width: 880px; width: 100%; margin: 0 auto; padding: 0 var(--gutter) 28px; box-sizing: border-box; text-align: center; }
.zsv-foot p { margin: 0 0 8px; font-size: .86rem; color: var(--ink-2); }
.zsv-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: .86rem; }
.zsv-foot a { color: var(--ink-2) !important; }

@media (max-width: 640px) {
  .zsv-top { padding-top: 14px; padding-bottom: 14px; }
  .zsv-brand img { height: 36px; }
  .zsv-part { font-size: .8rem; }
  .zsv-search { border-radius: 18px; flex-direction: column; }
  .zsv-search button { width: 100%; }
  .zsv-steps { grid-template-columns: 1fr; }
  .zsv-meaning, .zsv-about, .zsv-cards { grid-template-columns: 1fr; }
  .zsv-candle svg { width: 56px; height: 138px; }
  .zsv-lead { font-size: .98rem; line-height: 1.6; margin-bottom: 22px; }
  .zsv-meaning h2, .zsv-about-box h2 { text-align: center; }
  .zsv-item { flex-direction: column; align-items: flex-start; }
}
