/* ===== TopNájemník.cz — modern 2026 ===== */
:root {
  --ink: #0b0f1a;
  --gray: #5b6472;
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --cyan: #06b6d4;
  --accent-d: #4338ca;
  --accent-soft: #eef2ff;
  --grad: linear-gradient(100deg, #4f46e5 0%, #7c3aed 55%, #06b6d4 120%);
  --green: #0e9f6e;
  --green-soft: #e7f7f0;
  --red: #d92d20;
  --red-soft: #feeceb;
  --amber: #b54708;
  --amber-soft: #fff4e5;
  --bg: #f6f7fb;
  --line: #e8eaf1;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(11,15,26,.05), 0 10px 30px rgba(11,15,26,.07);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', Inter, 'Segoe UI', system-ui, sans-serif; color: var(--ink); line-height: 1.65; background: #fff; font-size: 16px; }
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
h1 { font-size: 2.6rem; line-height: 1.12; letter-spacing: -.035em; font-weight: 800; margin-bottom: .9rem; }
h2 { font-size: 2rem; letter-spacing: -.025em; font-weight: 800; margin-bottom: .5rem; }
h3 { font-weight: 700; margin-bottom: .35rem; letter-spacing: -.01em; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 740px; }
.center { text-align: center; }
.small { font-size: .85rem; color: var(--gray); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Reveal animace */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== Header (plovoucí sklo) ===== */
.site-header { position: sticky; top: 14px; z-index: 50; }
.site-header .nav {
  display: flex; align-items: center; gap: 26px; height: 62px; padding: 0 10px 0 20px;
  background: rgba(255,255,255,.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(11,15,26,.07); border-radius: 999px; box-shadow: 0 8px 30px rgba(11,15,26,.08); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--ink); letter-spacing: -.02em; }
.brand em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.menu { display: flex; gap: 24px; margin-left: auto; }
.menu a { color: var(--gray); font-weight: 600; font-size: .9rem; transition: color .15s; }
.menu a:hover { color: var(--ink); }

/* ===== Buttons ===== */
.btn { display: inline-block; padding: 11px 22px; border-radius: 999px; font-weight: 700; border: 0; cursor: pointer; font-size: .93rem; transition: all .18s; letter-spacing: -.01em; font-family: inherit; }
.btn-primary { background: var(--grad); background-size: 150% 100%; color: #fff; box-shadow: 0 6px 20px rgba(79,70,229,.35); }
.btn-primary:hover { background-position: 90% 0; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(79,70,229,.42); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; text-align: center; }

/* Demo banner */
.demo-banner { background: var(--amber-soft); color: var(--amber); text-align: center; padding: 8px 16px; font-size: .84rem; margin-top: 14px; }

/* ===== Hero ===== */
.hero { position: relative; padding: 92px 0 72px; overflow: hidden; background:
  radial-gradient(820px 460px at 88% -12%, rgba(124,58,237,.14) 0%, transparent 60%),
  radial-gradient(700px 420px at 4% 8%, rgba(6,182,212,.10) 0%, transparent 55%),
  radial-gradient(600px 380px at 50% 110%, rgba(79,70,229,.08) 0%, transparent 60%), #fff; }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(11,15,26,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(11,15,26,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(700px 460px at 50% 0%, #000 0%, transparent 75%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 3.1rem; }
.pill { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 7px 15px; border-radius: 999px; font-size: .79rem; font-weight: 700; color: var(--gray); margin-bottom: 24px; }
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(14,159,110,.15); }
.lead { font-size: 1.08rem; color: var(--gray); margin-bottom: 30px; max-width: 33rem; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.trust { display: flex; gap: 20px; flex-wrap: wrap; font-size: .85rem; color: var(--gray); font-weight: 600; }

/* Mock certifikát */
.hero-card { display: flex; justify-content: center; }
.mock-wrap { position: relative; transform: rotate(-2.5deg); transition: transform .35s ease; }
.mock-wrap:hover { transform: rotate(0); }
.mock-wrap::before { content: ''; position: absolute; inset: -2px; border-radius: 24px; background: var(--grad); opacity: .5; filter: blur(22px); z-index: -1; }
.mock-cert { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; width: 100%; max-width: 385px; box-shadow: 0 30px 70px rgba(11,15,26,.16); }
.mock-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--line); font-weight: 800; }
.mock-head span { color: var(--gray); font-size: .8rem; font-weight: 500; }
.mock-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; font-size: .86rem; border-bottom: 1px solid #f4f5f9; }
.mock-row:last-of-type { border-bottom: 0; }
.mock-row.ok b { color: var(--green); font-size: .68rem; letter-spacing: .05em; background: var(--green-soft); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.mock-foot { text-align: center; color: var(--gray); font-size: .78rem; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }

/* Statistiky */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 64px; position: relative; }
.stat { background: rgba(255,255,255,.8); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 26px; display: flex; align-items: baseline; gap: 14px; }
.stat b { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--gray); font-size: .88rem; line-height: 1.35; }

/* ===== Sekce ===== */
.section { padding: 92px 0; }
.section.alt { background: var(--bg); }
.sec-head { margin-bottom: 40px; }
.overline { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.section-lead { color: var(--gray); max-width: 620px; }

/* Kroky */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; transition: all .2s; }
.step:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.step-n { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; background: var(--grad); color: #fff; border-radius: 13px; font-weight: 800; margin-bottom: 16px; box-shadow: 0 6px 16px rgba(79,70,229,.3); }
.step p { color: var(--gray); font-size: .92rem; }

/* Karty kontrol */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; transition: all .22s; }
.card:hover { box-shadow: 0 18px 44px rgba(79,70,229,.12); transform: translateY(-4px); border-color: #d9ddff; }
.card-icon { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; background: var(--accent-soft); border-radius: 14px; font-size: 1.3rem; margin-bottom: 16px; }
.card h3 { font-size: 1rem; }
.card p { color: var(--gray); font-size: .88rem; margin-bottom: 16px; }
.card-price { font-size: .8rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); display: inline-block; padding: 4px 13px; border-radius: 999px; }

/* Ceník */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 820px; margin: 0 auto; }
.pricing.single { grid-template-columns: 1fr; max-width: 460px; }
.pricing.single .price-box { text-align: center; }
.pricing.single ul { display: inline-block; text-align: left; }
.order-summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--accent-soft); border-radius: 14px; padding: 16px 20px; margin-bottom: 24px; }
.order-summary .small { display: block; }
.order-price { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--accent); white-space: nowrap; }
.price-box { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 36px; position: relative; }
.price-box.featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: 0 20px 56px rgba(79,70,229,.16); }
.badge { position: absolute; top: -13px; left: 32px; background: var(--grad); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .04em; padding: 4px 15px; border-radius: 999px; }
.price { font-size: 2.7rem; font-weight: 800; letter-spacing: -.035em; margin: 6px 0 18px; }
.price-box ul { list-style: none; margin-bottom: 28px; }
.price-box li { padding: 5px 0; color: var(--gray); font-size: .92rem; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 19px 24px; margin-bottom: 10px; transition: box-shadow .2s; }
details[open] { box-shadow: var(--shadow); }
summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--accent); font-size: 1.4rem; font-weight: 400; flex-shrink: 0; transition: transform .2s; }
details[open] summary::after { content: '+'; transform: rotate(45deg); }
details p { margin-top: 12px; color: var(--gray); font-size: .92rem; }

/* CTA panel */
.cta-wrap { padding-top: 0; }
.cta-panel { position: relative; overflow: hidden; background: var(--ink); border-radius: 28px; text-align: center; padding: 68px 32px; color: #fff; }
.cta-panel::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(600px 300px at 20% 120%, rgba(79,70,229,.5) 0%, transparent 60%),
  radial-gradient(600px 300px at 85% -20%, rgba(6,182,212,.35) 0%, transparent 60%); }
.cta-panel h2, .cta-panel p, .cta-panel a { position: relative; }
.cta-panel h2 { color: #fff; }
.cta-panel p { color: #aab1c2; margin-bottom: 26px; }

/* ===== Formuláře ===== */
.order-form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 36px; box-shadow: var(--shadow); }
.order-form h3 { margin: 26px 0 14px; }
.order-form h3:first-of-type { margin-top: 0; }
label { display: block; font-size: .88rem; font-weight: 700; margin-bottom: 14px; letter-spacing: -.01em; }
label small { color: var(--gray); font-weight: 400; }
input[type=text], input[type=email], input[type=date], input[type=password], select {
  width: 100%; padding: 11px 14px; border: 1px solid #d7dbe6; border-radius: 12px; font-size: .95rem; margin-top: 5px; font-family: inherit; background: #fff; transition: border-color .15s, box-shadow .15s; font-weight: 500; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,.14); }
textarea { width: 100%; padding: 11px 14px; border: 1px solid #d7dbe6; border-radius: 12px; font-size: .92rem; margin-top: 5px; font-family: inherit; background: #fff; resize: vertical; line-height: 1.55; }
textarea.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .82rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.choice { display: flex; gap: 11px; align-items: flex-start; font-weight: 400; background: var(--bg); padding: 14px 16px; border-radius: 14px; cursor: pointer; border: 1px solid transparent; transition: all .15s; }
.choice:hover { border-color: #d9ddff; }
.choice input { margin-top: 4px; accent-color: var(--accent); }
.services { display: none; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 4px 12px; }
.small-choice { font-size: .87rem; padding: 9px 13px; }
.consent { font-size: .84rem; background: #fff; border: 1px dashed #d7dbe6; }
.alert { border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; font-size: .92rem; }
.alert-error { background: var(--red-soft); color: var(--red); }
.alert-info { background: var(--accent-soft); color: var(--accent-d); }
.alert-success { background: var(--green-soft); color: var(--green); }

/* ===== Platba + výsledky ===== */
.paybox { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 36px; box-shadow: var(--shadow); }
.pay-summary { margin: 20px 0; }
.pay-summary > div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.pay-summary span { color: var(--gray); }
.pay-total b { font-size: 1.3rem; }
.result-head { border-radius: 22px; padding: 38px; text-align: center; margin-bottom: 22px; }
.result-head.good { background: var(--green-soft); } .result-head.good h1 { color: var(--green); }
.result-head.bad { background: var(--red-soft); } .result-head.bad h1 { color: var(--red); }
.result-head h1 { font-size: 1.9rem; }
.result-head p { margin-bottom: 18px; }
.results { display: grid; gap: 12px; margin-bottom: 16px; }
.result-row { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.result-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.result-row p { font-size: .91rem; margin-top: 5px; }
.tag { font-size: .68rem; font-weight: 800; letter-spacing: .06em; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.t-ok { background: var(--green-soft); color: var(--green); }
.t-zaznam { background: var(--red-soft); color: var(--red); }
.t-preskoceno { background: #f1f3f8; color: var(--gray); }
.t-nedostupne { background: var(--amber-soft); color: var(--amber); }

/* ===== Admin ===== */
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.admin-tabs { display: flex; gap: 4px; background: var(--bg); border-radius: 999px; padding: 4px; width: fit-content; margin-bottom: 26px; }
.admin-tabs a { padding: 8px 20px; border-radius: 999px; color: var(--gray); font-weight: 700; font-size: .89rem; }
.admin-tabs a.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.admin-card h3 { margin-bottom: 14px; }
.admin-card code { background: var(--bg); padding: 2px 7px; border-radius: 6px; font-size: .8rem; }
.admin-form { background: none; border: 0; padding: 0; box-shadow: none; }
.narrow-card { max-width: 480px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.inline-form { margin-top: 12px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.admin-table th, .admin-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table th { background: var(--bg); color: var(--gray); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.inline { display: inline; }
.linklike { background: none; border: 0; color: var(--accent); cursor: pointer; font-size: inherit; padding: 0; font-family: inherit; }

.logbox { background: #0b0f1a; color: #9fe8c2; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .74rem; line-height: 1.5; padding: 14px 16px; border-radius: 12px; overflow-x: auto; white-space: pre-wrap; max-height: 320px; overflow-y: auto; }

/* Navigace – účet */
.nav-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.menu { margin-left: auto; }
.nav-actions .nav-link { color: var(--gray); font-weight: 600; font-size: .9rem; }
.nav-actions .nav-link:hover { color: var(--ink); }

/* Účet zákazníka */
.account-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.credit-badge { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: var(--bg); color: var(--gray); font-size: .9rem; }
.credit-badge.has { background: var(--green-soft); color: var(--green); }
.credit-badge b { font-size: 1.1rem; }
.credit-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.credit-form input[type=number] { width: 80px; margin: 0; }
.credit-form input[type=text] { width: 200px; margin: 0; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
@media (max-width: 900px) { .account-grid { grid-template-columns: 1fr; } .account-grid .admin-card[style] { grid-column: auto !important; } }

/* Našeptávač adres */
.whisper-wrap { position: relative; }
.whisper { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 30; overflow: hidden; }
.whisper-item { padding: 9px 14px; cursor: pointer; font-weight: 400; display: flex; flex-direction: column; gap: 1px; }
.whisper-item span { font-size: .92rem; color: var(--ink); }
.whisper-item em { font-style: normal; font-size: .8rem; color: var(--gray); }
.whisper-item:hover, .whisper-item.active { background: var(--accent-soft); }

/* Právní stránky */
.legal h3 { margin-top: 24px; }
.legal p { margin-bottom: 8px; font-size: .95rem; color: #333c4b; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #98a1b3; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer-brand { font-size: 1.1rem; color: #fff; margin-bottom: 10px; font-weight: 800; }
.footer-brand em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-footer h4 { color: #fff; margin-bottom: 10px; font-size: .93rem; }
.site-footer a { display: block; color: #98a1b3; padding: 3px 0; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: .88rem; }
.copyright { text-align: center; padding-top: 20px; font-size: .8rem; color: #6a7385; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid, .cards, .steps, .pricing, .footer-grid, .admin-grid, .stats { grid-template-columns: 1fr; }
  .menu { display: none; }
  .site-header { top: 8px; }
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 2.25rem; }
  h1 { font-size: 2rem; }
  .grid2, .services { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .mock-wrap { transform: none; }
  .stats { margin-top: 40px; }
}
