/* Společný vzhled stránek Náhled, Pokladna a Hotovo (úvodní stránka má styly přímo v sobě). */
:root {
  --ink: #0F1728; --muted: #4B5768; --line: #D9DFE8; --bg: #F5F7FA; --card: #ffffff;
  --blue: #1F4FFF; --blue-dark: #0F2FB8; --blue-soft: #E9EEFF; --green: #0B7A3B;
  --warn-bg: #FFF4D6; --warn-ink: #4A3200; --err-bg: #FFE3E0; --err-ink: #7A1408;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); }
h1, h2, h3 { margin: 0; }
h1 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.01em; line-height: 1.15; }
h2 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
a { color: var(--blue); } a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid #FFC24A; outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 14px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }

.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1280px; margin: 0 auto; padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; padding: 10px 0; }
.addr { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 15px; }
.addr span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr .state { margin-left: auto; color: var(--muted); white-space: nowrap; }
.toplink { color: var(--ink); font-weight: 500; padding: 10px 0; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 28px 24px 64px; }
.wrap.narrow { max-width: 1080px; }
.cols { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.card.dark .muted { color: #B6C0D0; }
.price { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 36px; line-height: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--ink); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { color: var(--ink); background: var(--bg); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; font-size: 18px; min-height: 56px; }
.btn.primary:hover { background: var(--blue-dark); color: #fff; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.seg { display: flex; flex-wrap: wrap; background: #E7EBF1; border-radius: 10px; padding: 4px; gap: 2px; }
.seg button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--card); font-weight: 600; box-shadow: 0 1px 3px rgba(15,23,40,0.15); }

.frame { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #E7EBF1; box-shadow: 0 16px 40px rgba(15,23,40,0.08); display: flex; justify-content: center; }
.frame iframe { display: block; width: 100%; height: 72vh; min-height: 480px; border: 0; background: #fff; }
.frame.mobile iframe { width: 390px; max-width: 100%; }

label { font-weight: 500; font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; min-width: 0; }
input[type="text"], input[type="email"] { height: 48px; border: 1px solid #8996A8; border-radius: 10px; padding: 0 14px; font: inherit; color: var(--ink); background: #fff; min-width: 0; width: 100%; }
input[type="radio"], input[type="checkbox"] { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 20px; accent-color: var(--blue); }
.choice { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400; font-size: 16px; }
.choice:has(input:checked) { border-color: var(--blue); }
.choice .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; cursor: pointer; }

.note { border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.note.warn { background: var(--warn-bg); color: var(--warn-ink); }
.note.err { background: var(--err-bg); color: var(--err-ink); }
.note.ok { background: #DDF5E6; color: #06512A; }
.list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.list li { display: flex; gap: 10px; }
.list li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230B7A3B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10l4 4 8-8'/%3E%3C/svg%3E"); }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; counter-reset: s; }
.steps li { display: flex; gap: 14px; counter-increment: s; }
.steps li::before { content: counter(s); flex: 0 0 32px; height: 32px; border-radius: 50%; background: #E3E9FF; color: var(--blue-dark); font-weight: 700; display: flex; align-items: center; justify-content: center; }
dl.sum { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
dl.sum div { display: flex; justify-content: space-between; gap: 12px; }
dl.sum dt { color: var(--muted); } dl.sum dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.total { border-top: 1px solid var(--line); padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.total b { font-family: 'Space Grotesk', sans-serif; font-size: 28px; }
.code { display: inline-block; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; overflow-wrap: anywhere; }

.progress { max-width: 640px; margin: 48px auto; text-align: center; align-items: center; padding: 40px 28px; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--blue-soft); border-top-color: var(--blue); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.plist { margin: 0; padding: 0; list-style: none; text-align: left; display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 420px; }
.plist li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.plist li::before { content: ""; flex: 0 0 12px; height: 12px; border-radius: 50%; border: 2px solid #8996A8; }
.plist li.done { color: var(--ink); } .plist li.done::before { background: var(--green); border-color: var(--green); }
.plist li.now { color: var(--ink); font-weight: 600; } .plist li.now::before { border-color: var(--blue); background: var(--blue-soft); }
.hero-done { background: var(--ink); color: #fff; border-radius: 16px; padding: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.hero-done .muted { color: #B6C0D0; }
.okline { color: #7FE0A6; font-weight: 600; font-size: 15px; }
