/* Varianta E: D (ruční, papír) + střídmý Liquid Glass */
:root { --paper:#fbf8f1; --ink:#1f1d19; --muted:#45403a; --green:#1f6e3d; --mark:#c9f2a6; --line:#e3dccd; }
* { box-sizing:border-box; }
html { font-size:20px; scroll-padding-top:110px; }
body { margin:0; background-attachment:scroll; color:var(--ink); font-family:"Source Sans 3", Arial, sans-serif; line-height:1.6;
  background-color:var(--paper);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .25 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(31,110,61,.075) 31px 32px),
    radial-gradient(1200px 700px at 75% 0, rgba(205,230,190,.45), rgba(205,230,190,0) 70%); }
.wrap { max-width:1100px; margin:0 auto; padding:0 30px; }
a { color:var(--green); }
h1, h2, h3 { font-family:"Zilla Slab", Georgia, serif; line-height:1.15; }
mark { background:linear-gradient(100deg, transparent 2%, var(--mark) 4%, var(--mark) 94%, transparent 98%); padding:0 .1em; margin:0 -.1em; color:inherit; border-radius:3px 8px 4px 9px; }

/* společný „skleněný“ povrch */
.glass { }
.navbar, .note, .sheet, .plan-card {
  background:linear-gradient(160deg, rgba(255,255,255,.62), rgba(255,255,255,.34));
  -webkit-backdrop-filter:blur(14px) saturate(150%); backdrop-filter:blur(14px) saturate(150%);
  border:1px solid rgba(255,255,255,.75);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(120,100,60,.10), 0 10px 30px rgba(70,55,25,.12);
}

/* plovoucí skleněná lišta */
.navbar { position:sticky; top:14px; z-index:10; max-width:1140px; margin:14px auto 0; border-radius:22px; }
.top { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; padding-top:12px; padding-bottom:12px; }
.brand { display:flex; gap:12px; align-items:center; font-family:"Zilla Slab", serif; font-weight:700; font-size:1.35rem; color:var(--ink); text-decoration:none; }
.brand img { border-radius:10px; transform:rotate(-3deg); }
.top nav { display:flex; flex-wrap:wrap; gap:6px 14px; font-weight:600; }
.top nav a { color:var(--ink); text-decoration:none; }
.top nav a:hover { text-decoration:underline wavy var(--green); }

/* úvod */
.hero { display:grid; grid-template-columns:1.45fr 1fr; gap:56px; align-items:start; padding-top:60px; padding-bottom:80px; }
.hero h1 { font-size:3rem; margin:0 0 22px; font-weight:700; }
.underline { position:relative; white-space:nowrap; color:var(--green); }
.underline::after { content:""; position:absolute; left:-2%; right:-4%; bottom:-.22em; height:.35em;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13 C 40 6, 90 4, 130 9 S 185 14, 197 6' fill='none' stroke='%231f6e3d' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
/* úvod vyplní první obrazovku (pod lištou ~94 px), aby z karty Rodinného plánu nečouhal jen špendlík; strop 1000 px pro vysoké monitory */
.hero { min-height:min(calc(100vh - 94px), 1000px); min-height:min(calc(100svh - 94px), 1000px); align-content:center; }
.hero p { font-size:1.1rem; }
.sign { font-family:"Caveat", cursive; font-size:1.9rem !important; color:var(--muted); margin:6px 0 18px; transform:rotate(-2deg); display:inline-block; }
.btn { display:inline-block; background:var(--green); color:#fff; text-decoration:none; font-weight:700; padding:13px 24px; border-radius:8px 10px 9px 7px; box-shadow:3px 3px 0 #173f26; }
.btn:hover { transform:translate(1px,1px); box-shadow:2px 2px 0 #173f26; }

/* lísteček ze skla nad ručními poznámkami */
.note-zone { position:relative; margin-top:40px; }
.note { position:relative; padding:26px 28px 24px 30px; border-radius:18px; transform:rotate(1deg); border-left:5px solid var(--green);
  background:#fdfcf9; -webkit-backdrop-filter:none; backdrop-filter:none; }
.note-hand { font-family:"Zilla Slab", Georgia, serif; font-size:1.2rem; font-weight:700; line-height:1.3; margin:0 0 12px; color:#111; position:relative; }
.note-main { font-size:1.2rem; font-weight:700; line-height:1.5; color:#111; margin:0; position:relative; }
.note mark { background:#d4f5b8; color:#111; }

/* pravidla: jeden skleněný list nad akvarelovými skvrnami */
.rules-wrap { position:relative; padding:40px 0 70px; }
.sheet { position:relative; z-index:1; border-radius:26px; padding:20px 46px 34px; }
.sheet::before { content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:linear-gradient(120deg, rgba(255,255,255,.5) 0, rgba(255,255,255,0) 22%, rgba(255,255,255,0) 80%, rgba(255,255,255,.35) 100%); }
.rules-wrap h1, .rules-wrap h2 { font-size:2.3rem; margin:20px 0 0; display:inline-block; position:relative; }
.aside-hand { font-family:"Caveat", cursive; font-size:1.6rem; color:var(--green); margin:0 0 20px 6px; display:inline-block; transform:rotate(-2deg); position:relative; }
.rules { list-style:none; counter-reset:r; padding:0; margin:0; columns:2; column-gap:64px; position:relative; }
.rules li { counter-increment:r; break-inside:avoid; position:relative; padding:4px 0 18px 58px; }
.rules li::before { content:counter(r); position:absolute; left:0; top:-6px; font-family:"Caveat", cursive; font-weight:700; font-size:2.6rem; color:var(--green); }
.rules h2, .rules h3 { font-size:1.35rem; margin:0 0 4px; }
.rules p { margin:0; color:var(--muted); }

/* rodinný plán: skleněná karta s páskou nad barevnými papírky */
.split { display:grid; grid-template-columns:1.1fr 1fr; gap:70px; padding-top:16px; align-items:start; }
.plan-zone { position:relative; padding-top:14px; }
.plan-card { position:relative; padding:38px 30px 20px; border-radius:14px; transform:rotate(-1.2deg); }
.magnet { position:absolute; top:-15px; left:46%; width:44px; height:44px; border-radius:50%;
  background:linear-gradient(150deg, #3f8c5a 0%, #2a7a47 45%, #1f6e3d 100%);
  border:3px solid #195a32;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 3px rgba(0,0,0,.18), 0 1px 1px rgba(20,40,25,.35), 2px 5px 8px rgba(40,35,20,.22); }
.magnet::after { content:""; position:absolute; left:6px; top:4px; width:22px; height:12px; border-radius:50%;
  background:linear-gradient(rgba(255,255,255,.38), rgba(255,255,255,0)); transform:rotate(-18deg); }
.plan-card h2, .about h2 { font-size:1.8rem; margin:0 0 12px; }
.small { font-size:.9rem; color:var(--muted); }
.about { padding-top:48px; }
.news, .contact { padding-top:56px; max-width:820px; margin-left:max(30px, calc((100vw - 1100px)/2)); }
.news h2, .contact h2 { font-size:1.8rem; margin:0 0 10px; }
.hand-list { list-style:none; padding:0; }
.hand-list li { padding:6px 0; border-bottom:1px dashed #cfc6b3; }
.hand-list span { font-family:"Caveat", cursive; font-size:1.5rem; color:var(--green); display:inline-block; width:4.2em; }
.help { background:#f1ebdd; padding:14px 18px; border-radius:6px; }
@media (max-width:820px){ .hero,.split{grid-template-columns:1fr; gap:30px;} .rules{columns:1;} .hero h1{font-size:2.2rem;} .news,.contact{margin-left:auto;} .navbar{margin:8px 8px 0;} .sheet{padding:16px 22px 26px;} }

/* rozcestník: užitečné weby */
.links { padding-top:64px; }
.links h2 { font-size:1.8rem; margin:0 0 10px; }
.links-intro { max-width:820px; margin:0 0 24px; }
.link-cards { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:26px; }
/* 5 karet: první řada 3, druhá řada 2 širší (bez osamocené karty) */
.link-card { grid-column:span 2; }
.link-card:nth-child(n+4) { grid-column:span 3; }
.link-card { display:flex; flex-direction:column; background:#fdfcf9; border:1px solid var(--line); border-top:5px solid var(--green); border-radius:12px; padding:22px 24px 20px; box-shadow:0 8px 22px rgba(70,55,25,.08); }
.link-card h2, .link-card h3 { font-size:1.4rem; margin:0 0 10px; }
.link-card p { margin:0 0 12px; }
.link-card .operator { font-size:.95rem; color:var(--muted); padding-top:10px; border-top:1px dashed #cfc6b3; }
.link-card .go { margin:auto 0 0; font-weight:700; font-size:1.1rem; }
.link-card .go a::after { content:" ↗"; }
@media (max-width:980px){ .link-cards{grid-template-columns:1fr;} .link-card, .link-card:nth-child(n+4){grid-column:auto;} }

/* ---------- navigace: desktop + mobilní tlačítko Menu (bez JS, <details>) ---------- */
.skip { position:absolute; left:-9999px; top:0; background:#fff; color:var(--ink); padding:12px 18px; border-radius:8px; z-index:50; font-weight:700; }
.skip:focus { left:12px; top:12px; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline:3px solid var(--ink); outline-offset:3px; border-radius:4px; }
.top nav a { display:inline-block; padding:8px 0; }
.top nav a[aria-current="page"] { text-decoration:underline; text-decoration-thickness:3px; text-underline-offset:6px; text-decoration-color:var(--green); }
.nav-mobile { display:none; }
.nav-mobile summary { list-style:none; cursor:pointer; display:inline-flex; align-items:center; gap:10px; min-height:48px; padding:8px 18px;
  border:2px solid var(--ink); border-radius:10px; background:#fff; font-weight:700; font-size:1rem; color:var(--ink); }
.nav-mobile summary::-webkit-details-marker { display:none; }
.nav-mobile summary .bars { display:inline-block; width:20px; height:14px; border-top:3px solid currentColor; border-bottom:3px solid currentColor; position:relative; }
.nav-mobile summary .bars::after { content:""; position:absolute; left:0; right:0; top:50%; margin-top:-1.5px; border-top:3px solid currentColor; }
.nav-mobile[open] summary .bars { border-color:transparent; }
.nav-mobile[open] summary .bars::after { border-top:3px solid currentColor; transform:rotate(45deg); }
.nav-mobile[open] summary .bars::before { content:""; position:absolute; left:0; right:0; top:50%; margin-top:-1.5px; border-top:3px solid currentColor; transform:rotate(-45deg); }
.nav-mobile nav { display:flex; flex-direction:column; gap:0; position:absolute; left:8px; right:8px; top:calc(100% + 6px);
  padding:6px 22px 10px; background:#fdfcf9; border:1px solid var(--line); border-radius:18px; box-shadow:0 14px 30px rgba(70,55,25,.18); }
.nav-mobile nav a:last-child { border-bottom:0; }
.nav-mobile nav a { display:flex; align-items:center; min-height:48px; padding:6px 4px; border-bottom:1px solid var(--line); font-size:1.05rem; }
@media (max-width:1020px) {
  .nav-desktop { display:none !important; }
  .nav-mobile { display:block; }
  .top { flex-wrap:nowrap; position:relative; }
  .nav-mobile { margin-left:auto; }
}

/* ---------- kontakt ---------- */
.contact-list { list-style:none; padding:0; margin:16px 0 18px; display:grid; gap:12px; }
.contact-list li { background:#fdfcf9; border:1px solid var(--line); border-radius:12px; padding:14px 18px; }
.contact-list .label { display:block; font-weight:700; font-size:.95rem; color:var(--muted); }
.contact-list .value { font-size:1.15rem; font-weight:700; }
.contact-list .value a { display:inline-block; padding:6px 0; overflow-wrap:anywhere; }
.contact-list .explain { margin:6px 0 0; font-size:.95rem; color:var(--muted); }
.contact .safe { font-weight:700; }
.more { font-weight:700; }
.more a { display:inline-block; padding:8px 0; }

/* ---------- podstránky (O mně, Soukromí, Už se vám to stalo, Licence, 404) ---------- */
.page { padding-top:52px; padding-bottom:20px; }
.page-inner { max-width:820px; }
.page h1 { font-size:2.6rem; margin:0 0 18px; }
.page h2 { font-size:1.6rem; margin:38px 0 10px; }
.page h3 { font-size:1.25rem; margin:24px 0 6px; }
.page p, .page li { max-width:72ch; }
.page ul, .page ol { padding-left:1.3em; }
.page li { margin:6px 0; }
.page .lead { font-size:1.15rem; }
.callout { background:#fdfcf9; border:1px solid var(--line); border-left:5px solid var(--green); border-radius:12px; padding:18px 22px; margin:22px 0; color:#111; }
.callout p { margin:0; }
.callout p + p { margin-top:8px; }
.callout-warn { border-left-color:#a32116; background:#fff8f1; }
.steps { list-style:none; counter-reset:s; padding:0 !important; }
.steps > li { counter-increment:s; position:relative; padding:4px 0 14px 60px; margin:0 0 6px; }
.steps > li::before { content:counter(s); position:absolute; left:0; top:2px; width:2.1rem; height:2.1rem; border-radius:50%; display:grid; place-items:center;
  background:var(--green); color:#fff; font-weight:700; font-size:1.05rem; }
.steps h2 { margin:0 0 6px; font-size:1.45rem; }
.tel { white-space:nowrap; font-weight:700; }
.src { font-size:.9rem; color:var(--muted); }
.updated { color:var(--muted); font-size:.95rem; }
.lic-list li { margin:10px 0; }

/* ---------- patička ---------- */
.site-footer { padding-top:30px; padding-bottom:40px; margin-top:56px; border-top:2px solid var(--line); color:var(--muted); font-size:.9rem; }
.footer-links { list-style:none; padding:0; margin:0 0 14px; display:flex; flex-wrap:wrap; gap:4px 26px; font-size:1rem; font-weight:600; }
.footer-links a { display:inline-block; padding:10px 0; color:var(--ink); }
.site-footer p { margin:6px 0; max-width:80ch; }
@media (max-width:600px) {
  .footer-links { flex-direction:column; gap:0; }
  .footer-links a { display:flex; align-items:center; min-height:44px; }
  .page h1 { font-size:2.05rem; }
  .page { padding-top:34px; }
  .steps > li { padding-left:50px; }
}
@media print {
  .navbar, .site-footer, .skip { display:none !important; }
  body { background:#fff !important; }
}
@media (max-width:600px) { .brand { font-size:1.15rem; gap:10px; } .brand span { white-space:nowrap; } .brand img { width:46px; height:46px; } }
.callout h3 { margin:0 0 6px; font-size:1.25rem; }

/* ---------- samostatné stránky (Jak se bránit, Užitečné weby, Aktuálně, Kontakt) ---------- */
.page-section h1 { font-size:2.6rem; margin:0 0 14px; }
.rules-wrap.page-section h1 { margin-top:20px; font-size:2.6rem; }
.news .hand-list { font-size:1.1rem; }
.news-cta { margin-top:28px; }
@media (max-width:600px) { .page-section h1, .rules-wrap.page-section h1 { font-size:2.05rem; } }

/* ---------- hlavní stránka: rozcestník na samostatné stránky ---------- */
.home-links { padding-top:64px; }
.home-links h2 { font-size:1.8rem; margin:0 0 18px; }
.home-cards { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:18px; }
.home-cards a { display:flex; flex-direction:column; gap:6px; height:100%; min-height:44px; background:#fdfcf9; border:1px solid var(--line); border-left:5px solid var(--green);
  border-radius:12px; padding:18px 20px; color:var(--ink); text-decoration:none; box-shadow:0 6px 18px rgba(70,55,25,.07); }
.home-cards a strong { font-family:"Zilla Slab", Georgia, serif; font-size:1.3rem; color:var(--green); }
.home-cards a strong::after { content:" →"; }
.home-cards a span { color:var(--muted); }
.home-cards a:hover strong { text-decoration:underline; }

/* ---------- Jak se bránit: další rady z oficiálních zdrojů ---------- */
.more-rules { padding-top:10px; }
.more-rules > h2 { font-size:2.1rem; margin:0 0 12px; }
.rady-intro { max-width:820px; font-size:1.1rem; margin:0 0 18px; }
.rady-nav ul { list-style:none; padding:0; margin:0 0 10px; display:flex; flex-wrap:wrap; gap:10px 12px; }
.rady-nav a { display:inline-flex; align-items:center; min-height:44px; padding:6px 16px; background:#fdfcf9; border:2px solid var(--green); border-radius:10px; color:var(--ink); font-weight:700; text-decoration:none; }
.rady-nav a:hover { text-decoration:underline; }
.rady-group { padding-top:34px; }
.rady-group h3 { font-size:1.75rem; margin:0 0 16px; padding-bottom:8px; border-bottom:2px solid var(--line); }
.rady-list { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:20px; }
.rada { background:#fdfcf9; border:1px solid var(--line); border-left:5px solid var(--green); border-radius:12px; padding:18px 22px 14px; box-shadow:0 6px 18px rgba(70,55,25,.07); color:var(--ink); }
.rada h4 { font-family:"Zilla Slab", Georgia, serif; font-size:1.3rem; line-height:1.2; margin:0 0 8px; color:var(--ink); }
.rada p { margin:0 0 10px; }
.rada .src { margin:0; padding-top:8px; border-top:1px dashed #cfc6b3; overflow-wrap:anywhere; }
.rady-more { font-weight:700; margin:18px 0 0; }
.rady-more a { display:inline-block; padding:8px 0; }
.rady-note { margin-top:30px; max-width:820px; }
@media (max-width:900px) { .rady-list { grid-template-columns:1fr; } }
@media (max-width:600px) { .more-rules > h2 { font-size:1.75rem; } .rady-group h3 { font-size:1.5rem; } .rada { padding:16px 16px 12px; } }
.rada-img { display:block; width:100%; max-width:300px; height:auto; margin:6px auto 14px; }
