@import url('/css/tokens.css');

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--ink-inverse); padding: 8px 12px; border-radius: 6px; z-index: 99; }
.skip:focus { top: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); transition: background var(--t-fast), transform var(--t-fast), border-color var(--t-fast); }
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--ink-inverse); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 85%, var(--bg)); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }

/* hlavička */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color var(--t); }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.logo svg { width: 28px; height: 28px; }
.site-nav { display: none; gap: 28px; margin-left: 20px; }
.site-nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }
.head-cta { margin-left: auto; display: flex; gap: 8px; }
.head-cta .login { display: none; }
@media (min-width: 860px) { .site-nav { display: flex; } .head-cta .login { display: inline-flex; } }

/* úvod */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 88px 0 104px; } .hero .wrap { grid-template-columns: 1.15fr 0.85fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 22px; }
.eyebrow b { font-family: var(--mono); font-weight: 600; font-size: 12.5px; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-text); }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--brand-text); }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--ink-2); margin-top: 22px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.fine { margin-top: 16px; font-size: 14.5px; color: var(--ink-3); }

/* účtenka v úvodu */
.paper-stage { position: relative; display: flex; justify-content: center; }
.paper {
  width: min(330px, 100%); background: #fffdf8; color: #17181a; font-family: var(--mono); font-size: 13px; line-height: 1.55;
  padding: 26px 24px 30px; position: relative; transform: rotate(1.2deg);
  box-shadow: 0 1px 0 rgb(0 0 0 / 4%), 0 24px 48px -24px rgb(22 24 27 / 35%);
  --tooth: 10px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
  padding-bottom: 40px;
}
.paper .c { text-align: center; } .paper .b { font-weight: 600; font-size: 14.5px; }
.paper hr { border: 0; border-top: 1px dashed #b9b4a8; margin: 10px 0; }
.paper .r { display: flex; justify-content: space-between; gap: 10px; }
.paper .s { color: #5f6369; font-size: 12px; }
.paper .t { font-weight: 600; font-size: 17px; }
.paper .pok { word-break: break-all; font-size: 11.5px; color: #5f6369; }
.stamp {
  position: absolute; right: max(0px, calc(50% - 236px)); bottom: -18px; transform: rotate(-3deg);
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-pop); font-size: 14px;
}
.stamp i { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; }
.stamp svg { width: 16px; height: 16px; }
.stamp b { display: block; font-weight: 600; } .stamp span { color: var(--ink-3); font-size: 13px; }

/* pruh se čísly */
.ledger { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.ledger .wrap { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .ledger .wrap { grid-template-columns: repeat(4, 1fr); } }
.ledger div.cell { padding: 26px 20px 24px 0; border-right: 1px solid var(--line); }
.ledger div.cell:last-child { border-right: 0; }
@media (max-width: 859px) { .ledger div.cell:nth-child(2) { border-right: 0; } .ledger div.cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .ledger div.cell:nth-child(even) { padding-left: 20px; } }
@media (min-width: 860px) { .ledger div.cell + div.cell { padding-left: 24px; } }
.ledger .v { font-family: var(--mono); font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -0.03em; }
.ledger .k { color: var(--ink-2); font-size: 15px; margin-top: 2px; }

section.block { padding: 88px 0; }
@media (max-width: 700px) { section.block { padding: 64px 0; } }
.block h2 { font-size: clamp(30px, 4vw, 44px); max-width: 18ch; }
.block .sub { color: var(--ink-2); margin-top: 14px; max-width: 40em; font-size: 18px; }

/* kroky */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 0; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { position: relative; padding: 28px 28px 28px 0; border-top: 2px solid var(--ink); counter-increment: s; }
@media (min-width: 860px) { .steps li + li { padding-left: 28px; border-left: 1px solid var(--line); } }
.steps li::before { content: '0' counter(s); font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--ink-3); display: block; margin-bottom: 18px; }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: var(--ink-2); }
.steps .time { font-family: var(--mono); font-size: 13px; color: var(--brand-text); margin-top: 14px; display: block; }

/* funkce */
.features { display: grid; gap: 0; margin-top: 48px; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; } }
.feat { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .feat:nth-child(odd) { border-right: 1px solid var(--line); } .feat:nth-child(even) { padding-left: 28px; } }
.feat svg { width: 22px; height: 22px; color: var(--ink); margin-top: 3px; }
.feat h3 { font-size: 18px; letter-spacing: -0.01em; }
.feat p { color: var(--ink-2); margin-top: 4px; font-size: 16px; }

/* EET fakta */
.facts { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; gap: 40px; margin-top: 40px; }
@media (min-width: 960px) { .facts-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }
.fact-list { list-style: none; margin: 0; padding: 0; }
.fact-list li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fact-list li:first-child { border-top: 1px solid var(--line); }
.fact-list dt, .fact-list .k { font-weight: 600; }
.fact-list .v { color: var(--ink-2); }
@media (max-width: 560px) { .fact-list li { grid-template-columns: 1fr; gap: 2px; } }
.note-card { padding: 28px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); }
.note-card h3 { font-size: 20px; margin-bottom: 10px; }
.note-card p + p { margin-top: 12px; }
.note-card p { color: var(--ink-2); }
.src { font-size: 14px; color: var(--ink-3); margin-top: 18px; }

/* srovnání */
.cmp { width: 100%; border-collapse: collapse; margin-top: 40px; font-size: 16px; }
.cmp th, .cmp td { padding: 16px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp th { font-weight: 500; color: var(--ink-3); font-size: 14px; }
.cmp td:first-child { font-weight: 500; padding-left: 0; }
.cmp .us { background: var(--brand-soft); font-weight: 600; color: var(--brand-text); }
.cmp th.us { color: var(--brand-text); }
@media (max-width: 640px) { .cmp { font-size: 14.5px; } .cmp th, .cmp td { padding: 12px 8px; } }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform var(--t); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .a { padding: 0 0 22px; color: var(--ink-2); max-width: 44em; }
.faq .a p + p { margin-top: 10px; }

/* závěrečná výzva */
.final { background: #16181b; color: #ecebe6; }
[data-theme='dark'] .final, .final { --ink-2: #b9bdc3; }
.final .wrap { padding: 88px 0; display: grid; gap: 28px; }
@media (min-width: 860px) { .final .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.final h2 { font-size: clamp(32px, 4.5vw, 52px); max-width: 16ch; color: #fff; }
.final p { color: #b9bdc3; margin-top: 14px; max-width: 36em; }
.final .btn-primary { background: #3fbf83; border-color: #3fbf83; color: #06150d; }
.final .btn-primary:hover { background: #5bcf97; }

.site-foot { padding: 40px 0 56px; color: var(--ink-3); font-size: 14.5px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }

/* textové stránky */
.doc { max-width: 760px; padding: 56px 0 80px; }
.doc h1 { font-size: 40px; margin-bottom: 24px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.todo { padding: 14px 16px; border-radius: 10px; background: var(--warn-soft); color: var(--ink); margin-bottom: 24px; font-size: 15px; }
.doc .meta { color: var(--ink-3); font-size: 14.5px; margin: -12px 0 28px; font-family: var(--mono); }
.doc .lede { font-size: 19px; color: var(--ink); padding: 18px 20px; border-left: 3px solid var(--brand); background: var(--surface); border-radius: 0 10px 10px 0; margin-bottom: 8px; }
.doc ul { padding-left: 22px; } .doc li + li { margin-top: 6px; }
.doc .party { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin: 12px 0; line-height: 1.7; }
.fill { background: var(--warn-soft); color: var(--warn); padding: 0 4px; border-radius: 4px; font-weight: 500; }
.toc { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; background: var(--surface); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; font-size: 15.5px; }
.toc li { break-inside: avoid; margin: 0 0 4px; }
.toc a { color: var(--ink-2); text-decoration: none; } .toc a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.doc h2 { scroll-margin-top: 84px; }
.dtable { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.dtable th, .dtable td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.dtable th { color: var(--ink-3); font-weight: 500; font-size: 13.5px; }
.dtable td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
@media (max-width: 600px) { .dtable td:first-child { white-space: normal; } }
.site-foot a[aria-current='page'] { color: var(--ink); font-weight: 500; }

/* patička s identifikací provozovatele (§ 435 OZ) */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.foot-grid { display: grid !important; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.foot-co, .foot-col { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.foot-co b, .foot-col b { color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.foot-co address { font-style: normal; }
.foot-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; display: block !important; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); text-align: left; cursor: pointer; }
.linklike:hover { text-decoration: underline; color: var(--ink); }

/* helpdesk */
.hd-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 20px 0 16px; border-radius: 25px; border: 0; background: var(--ink); color: var(--ink-inverse); font: 600 15px/1 var(--font); box-shadow: var(--shadow-pop); cursor: pointer; transition: transform var(--t-fast); }
.hd-fab:hover { transform: translateY(-1px); }
.hd.is-open .hd-fab { display: none; }
.hd-panel { position: fixed; right: 20px; bottom: 20px; z-index: 61; width: min(400px, calc(100vw - 24px)); max-height: min(680px, calc(100dvh - 40px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-pop), 0 24px 60px -20px rgb(0 0 0 / 30%); animation: hd-in var(--t) var(--ease-out); overflow: hidden; }
.hd-panel[hidden] { display: none; }
@keyframes hd-in { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 520px) { .hd-panel { right: 12px; left: 12px; bottom: 12px; width: auto; } .hd-fab { right: 14px; bottom: 14px; } }
.hd-head { display: flex; justify-content: space-between; gap: 12px; padding: 18px 18px 14px 20px; background: #16181b; color: #fff; }
.hd-head h2 { font-size: 18px; letter-spacing: -0.01em; }
.hd-head p { font-size: 14px; color: #b9bdc3; margin-top: 4px; }
.hd-x { width: 36px; height: 36px; flex: none; border: 0; border-radius: 8px; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.hd-x:hover { background: rgb(255 255 255 / 10%); }
.hd-body { overflow-y: auto; padding: 18px 20px 20px; }
.hd-form { display: flex; flex-direction: column; gap: 12px; }
.hd-quick { font-size: 14px; color: var(--ink-2); padding: 10px 12px; background: var(--bg); border-radius: 8px; }
.hd-f { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.hd-f input, .hd-f select, .hd-f textarea { font: 400 16px/1.4 var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; min-height: 44px; width: 100%; }
.hd-f textarea { resize: vertical; }
.hd-f :focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.hd-hp { position: absolute; left: -9999px; }
.hd-err { color: var(--danger); font-size: 14px; }
.hd-send { width: 100%; min-height: 48px; }
.hd-legal { font-size: 12.5px; color: var(--ink-3); }
.hd-done { text-align: center; padding: 18px 4px 6px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hd-done i { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; }
.hd-done h3 { font-size: 19px; }
.hd-done p { color: var(--ink-2); font-size: 15px; }

/* oznámení */
.ann { font-size: 14.5px; border-bottom: 1px solid var(--line); background: var(--info-soft); }
.ann-warn { background: var(--warn-soft); } .ann-ok { background: var(--brand-soft); }
.ann .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.ann button { border: 0; background: none; color: var(--ink-2); cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; flex: none; }
.ann button:hover { background: rgb(0 0 0 / 6%); }
.hd-form[hidden], .hd-done[hidden] { display: none; }

/* články a vstupní stránky */
.article { padding: 28px 0 80px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-3); margin-bottom: 28px; }
.crumbs a { color: var(--ink-2); text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.article-head { max-width: 860px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: clamp(34px, 5vw, 56px); max-width: 18ch; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15.5px; color: var(--ink-2); }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before { content: ''; width: 16px; height: 16px; flex: none; background: var(--brand-soft); border-radius: 50%; box-shadow: inset 0 0 0 4px var(--brand-soft), inset 0 0 0 8px var(--brand); }
.article-body { max-width: 760px; padding-top: 12px; }
.article-body h2 { font-size: 26px; margin: 44px 0 12px; }
.article-body p, .article-body li { color: var(--ink-2); font-size: 17.5px; line-height: 1.7; }
.article-body p + p { margin-top: 12px; }
.article-body ul, .article-body ol { padding-left: 22px; } .article-body li + li { margin-top: 6px; }
.article-body b { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--ink); text-underline-offset: 3px; }
.article-body .src { font-size: 14px; color: var(--ink-3); margin-top: 28px; }
.cta-box { margin: 56px 0 0; padding: 28px; border-radius: 16px; background: #16181b; color: #fff; display: grid; gap: 18px; align-items: center; }
@media (min-width: 720px) { .cta-box { grid-template-columns: 1fr auto; } }
.cta-box h2 { margin: 0 0 6px; font-size: 24px; color: #fff; }
.cta-box p { color: #b9bdc3 !important; font-size: 16px !important; }
.cta-box .btn-primary { background: #3fbf83; border-color: #3fbf83; color: #06150d; }
.related { margin-top: 56px; }
.related ul { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
@media (min-width: 720px) { .related ul { grid-template-columns: 1fr 1fr; } }
.related li + li { margin-top: 0 !important; }
.related a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; height: 100%; }
.related a:hover { border-color: var(--ink-3); }
.related a b { font-size: 17px; } .related a span { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
@media (min-width: 1000px) { .foot-grid-4 { grid-template-columns: 1.5fr 1fr 1fr 1fr !important; } }
.guides { display: grid; gap: 12px; margin-top: 36px; }
@media (min-width: 760px) { .guides { grid-template-columns: repeat(3, 1fr); } }
.guides a { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; }
.guides a:hover { border-color: var(--ink-3); }
.guides b { font-size: 18px; } .guides span { color: var(--ink-2); font-size: 15px; }
