/* jirizika.cz – vzhled ladí s finančním plánem z FinDesku:
   bílá, jemné barevné skvrny, tmavě modrý text, modrý akcent, přechod modrá → zelená. */
:root {
  --ink: #171c2b;
  --text: #222838;
  --muted: #66738a;
  --surface: #f6f8fb;
  --border: #e0e6ed;
  --white: #ffffff;
  --blue: #5c85c2;
  --green: #6bb087;
  --teal: #4d9999;
  --yellow: #d9a854;
  --red: #db786e;
  --gold: #b38a3d;
  --blue-l: #eef3fa;
  --green-l: #eef7f2;
  --yellow-l: #fbf4e8;
  --red-l: #fbefee;
  --bar: linear-gradient(90deg, var(--blue), var(--green));
  --radius: 14px;
  --radius-s: 9px;
  --shadow: 0 1px 2px rgba(23, 28, 43, .04), 0 6px 24px rgba(23, 28, 43, .06);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font: 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: rgba(92, 133, 194, .45); text-underline-offset: 3px; }
a:hover { color: var(--blue); text-decoration-color: currentColor; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -0.022em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.65rem, 3.3vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; position: relative; }
.wrap-narrow { width: min(760px, 100% - 32px); margin-inline: auto; position: relative; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--blue-l); padding: 8px 14px; border-radius: 8px; }

/* Popisek sekce jako v plánu: ▍ ZÁKLADNÍ ÚDAJE */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .16em; font-size: .76rem;
  font-weight: 700; color: var(--blue); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--blue); }
.bar { display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--bar); margin: 6px 0 26px; }
.hl { background: var(--bar); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Tlačítka */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.45em; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn:hover { color: #fff; transform: translateY(-1px); background: #262d42; box-shadow: 0 8px 20px rgba(23, 28, 43, .18); }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--border); }
.btn-ghost:hover { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--blue), 0 8px 20px rgba(23, 28, 43, .08); }
.btn-small { padding: .55em 1.1em; font-size: .92rem; }

/* Hlavička */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(224, 230, 237, .8); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 70px; }
.logo img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: .95rem; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: var(--blue); }
.nav .btn, .nav .btn:hover { color: #fff; }
.menu-toggle, .menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn { display: block; width: 44px; height: 44px; position: relative; cursor: pointer; }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); content: ""; transition: .2s; border-radius: 2px; }
  .menu-btn span { top: 21px; }
  .menu-btn span::before { left: 0; top: -7px; }
  .menu-btn span::after { left: 0; top: 7px; }
  .menu-toggle:checked + .menu-btn span { background: transparent; }
  .menu-toggle:checked + .menu-btn span::before { top: 0; transform: rotate(45deg); }
  .menu-toggle:checked + .menu-btn span::after { top: 0; transform: rotate(-45deg); }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 8px 16px 20px; border-bottom: 1px solid var(--border); box-shadow: 0 20px 30px rgba(23, 28, 43, .08); }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .nav .btn { margin-top: 14px; border: 0; }
  .menu-toggle:checked ~ .nav { display: flex; }
}

/* Barevné skvrny jako na titulní straně plánu */
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.blobs i { position: absolute; border-radius: 50%; filter: blur(10px); }
.blobs i:nth-child(1) { width: 720px; height: 720px; right: -220px; top: -360px; background: radial-gradient(circle, rgba(92, 133, 194, .32), rgba(92, 133, 194, 0) 68%); }
.blobs i:nth-child(2) { width: 560px; height: 560px; left: -260px; bottom: -300px; background: radial-gradient(circle, rgba(107, 176, 135, .26), rgba(107, 176, 135, 0) 68%); }
.blobs i:nth-child(3) { width: 460px; height: 460px; right: 4%; bottom: -280px; background: radial-gradient(circle, rgba(217, 168, 84, .24), rgba(217, 168, 84, 0) 68%); }

/* Úvod */
.hero { position: relative; overflow: hidden; background: var(--white); }
.hero-in { display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center; padding: 72px 0 80px; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 40em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }

/* E-book na úvodu */
.ebook-card { display: grid; gap: 14px; justify-items: center; padding: 18px 18px 20px; border-radius: 20px; text-decoration: none;
  background: rgba(255, 255, 255, .75); border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(23, 28, 43, .12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .2s ease; }
.ebook-card:hover { transform: translateY(-3px); color: inherit; }
.ebook-card img { width: 100%; max-width: 220px; border-radius: 10px; box-shadow: 0 14px 30px rgba(23, 28, 43, .25); }
.ebook-card .btn { font-size: .9rem; padding: .7em 1.1em; white-space: nowrap; }
.ebook-card.on-dark { background: rgba(28, 27, 25, .45); border-color: rgba(255, 255, 255, .12); }
.ebook-card.on-dark .btn { background: #f6dcaa; color: var(--ink); }
.hero-person { display: block; width: auto; max-width: 100%; object-fit: contain; object-position: bottom;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); }

/* A – světlý: text | postava | e-book */
.hero-in.three { grid-template-columns: 1.3fr .85fr .5fr; gap: 24px; align-items: end; padding-bottom: 0; }
.hero-in.three .hero-text { padding-bottom: 96px; align-self: center; }
.hero-in.three h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
.hero-in.three .ebook-card { margin-bottom: 72px; }
.hero-figure { position: relative; display: flex; justify-content: center; align-self: end; }
.hero-figure .hero-person { position: relative; z-index: 1; height: min(620px, 72vh); }
.halo { position: absolute; z-index: 0; width: 100%; aspect-ratio: 1; left: 0; bottom: 18%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(92, 133, 194, .30), rgba(107, 176, 135, .20) 45%, rgba(217, 168, 84, .14) 62%, rgba(255, 255, 255, 0) 71%); }
.halo::after { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1.5px solid rgba(92, 133, 194, .2); }

/* B – tmavý s původní barevnou fotkou */
.hero-photo-bg { color: #fff; background: linear-gradient(90deg, rgba(20, 22, 30, .88) 0%, rgba(20, 22, 30, .55) 45%, rgba(20, 22, 30, .15) 70%, rgba(20, 22, 30, .45) 100%),
  url("/obrazky/pozadi-uvod.jpg") center 30% / cover no-repeat, #1c1b19; }
.hero-photo-bg .hero-in { grid-template-columns: 1fr 260px; min-height: min(78vh, 680px); align-items: center; padding: 64px 0; }
.hero-photo-bg h1 { color: #fff; }
.hero-photo-bg .lead { color: rgba(255, 255, 255, .8); }
.hero-photo-bg .eyebrow { color: #f6dcaa; }
.hero-photo-bg .eyebrow::before { background: #f6dcaa; }
.hero-photo-bg .hero-text { max-width: 560px; }
.hero-photo-bg .btn { background: #f6dcaa; color: var(--ink); }
.hero-photo-bg .btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }

/* C – barevný panel */
.hero-panel { position: relative; align-self: stretch; min-height: 560px; border-radius: 28px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .55), transparent 45%), linear-gradient(150deg, #dbe6f4 0%, #e3f1e8 55%, #f6ead3 100%);
  border: 1px solid var(--border); }
.hero-panel .hero-person { height: 92%; position: absolute; bottom: 0; left: 6%; -webkit-mask-image: none; mask-image: none; }
.hero-panel .ebook-card.mini { position: absolute; right: 18px; bottom: 18px; width: 200px; padding: 12px; gap: 10px; }
.hero-panel .ebook-card.mini img { max-width: 120px; }
.hero-panel .ebook-card.mini .btn { font-size: .8rem; padding: .6em 1em; white-space: nowrap; }
.hero-c .hero-in, .home.hero-c .hero-in { align-items: stretch; }

/* Dlaždice návodů – jako karty ve finančním plánu */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.tile { --c: var(--blue); --l: var(--blue-l); display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px; text-decoration: none;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.tile::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.tile:hover { color: inherit; transform: translateY(-3px); border-color: transparent; box-shadow: 0 2px 4px rgba(23, 28, 43, .05), 0 16px 36px rgba(23, 28, 43, .1); }
.tile.c1 { --c: var(--yellow); --l: var(--yellow-l); }
.tile.c2 { --c: var(--teal); --l: #eaf4f4; }
.tile.c3 { --c: var(--red); --l: var(--red-l); }
.tile.c4 { --c: var(--gold); --l: #f7f0e3; }
.tile.c5 { --c: var(--green); --l: var(--green-l); }
.tile-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--l); color: var(--c); margin-bottom: 6px; }
.tile h3 { margin: 0; font-size: 1.12rem; }
.tile p { margin: 0; color: var(--muted); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile-more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: .9rem; color: var(--c); }
.ebook-in.tip img { max-width: 300px; justify-self: center; }
.ticks.dark li { color: var(--text); }

/* Rozbalovací menu Tipy a návody */
.dd { position: relative; display: flex; align-items: center; gap: 2px; }
.dd-btn { width: 22px; height: 22px; border: 0; background: none; cursor: pointer; padding: 0; position: relative; }
.dd-btn::before { content: ""; position: absolute; left: 7px; top: 6px; width: 6px; height: 6px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg); color: var(--muted); }
.dd-menu { position: absolute; top: 100%; left: -16px; min-width: 280px; padding: 10px; margin-top: 12px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 20px 40px rgba(23, 28, 43, .12); display: none; flex-direction: column; }
.dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.dd-menu a { padding: 9px 12px; border-radius: 8px; font-weight: 500; }
.dd-menu a:hover { background: var(--blue-l); }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: flex; }
/* Sekce */
.section { padding: clamp(56px, 8vw, 100px) 0; position: relative; }
.section.alt { background: var(--surface); }
.section-title { max-width: 22em; }
.section-lead { color: var(--muted); max-width: 42em; font-size: 1.08rem; margin-bottom: 36px; }
.row-between { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.more { font-weight: 600; text-decoration: none; color: var(--blue); margin-bottom: 1.2em; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.service:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service p { color: var(--muted); flex: 1; }
.service a { font-weight: 600; text-decoration: none; color: var(--blue); }
.service-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 18px; background: var(--blue-l); color: var(--blue); }
.service:nth-child(2) .service-icon { background: var(--yellow-l); color: var(--yellow); }
.service:nth-child(3) .service-icon { background: var(--green-l); color: var(--green); }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { display: flex; gap: 16px; padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border); }
.step-n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--blue); background: var(--blue-l); }
.steps li:nth-child(2) .step-n { color: var(--teal); background: #eaf4f4; }
.steps li:nth-child(3) .step-n { color: var(--green); background: var(--green-l); }
.steps p { color: var(--muted); margin: 0; }

.ebook-band { overflow: hidden; }
.ebook-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; padding: 40px; border-radius: 24px;
  background: linear-gradient(135deg, var(--yellow-l), var(--green-l) 55%, var(--blue-l)); border: 1px solid var(--border); }
.ebook-in img { border-radius: var(--radius); box-shadow: var(--shadow); }
.ebook-in .eyebrow { color: var(--gold); }
.ebook-in .eyebrow::before { background: var(--gold); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; text-decoration: none; border: 1px solid var(--border);
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { color: inherit; transform: translateY(-3px); box-shadow: 0 2px 4px rgba(23, 28, 43, .05), 0 16px 36px rgba(23, 28, 43, .1); }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-body { padding: 18px 20px 22px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.kicker { display: block; font-size: .74rem; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }

.about { display: grid; grid-template-columns: .7fr 1.3fr; gap: 56px; align-items: center; }
.about img { border-radius: 22px; box-shadow: var(--shadow); }

.faq details { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Kontakt a formuláře */
.contact-sec { background: var(--surface); overflow: hidden; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-lines { font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.contact-lines a { text-decoration: none; }
.office { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-s); background: var(--white); border: 1px solid var(--border); }
.office strong { color: var(--ink); }
.form { display: grid; gap: 14px; background: var(--white); color: var(--text); padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.form small { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .85rem; }
.form input, .form textarea { font: inherit; font-size: 1rem; text-transform: none; letter-spacing: 0; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-s); background: var(--surface); color: var(--text); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; background: var(--white); }
.form .check { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .9rem; }
.form .check input { margin-top: 4px; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.ebook-form { display: grid; gap: 20px; }
.ebook-form img { max-width: 240px; justify-self: center; border-radius: 12px; box-shadow: 0 24px 50px rgba(23, 28, 43, .22); }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 32px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: .72rem; font-weight: 800; color: var(--blue); background: var(--blue-l); }

/* Podstránky a článek */
.page-head { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 88px) 0 28px; }
.page-head.center { text-align: center; padding-bottom: 96px; }
.page-head .lead { margin-bottom: 0; }
.big-tick { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; font-size: 2rem; font-weight: 800; background: var(--blue-l); color: var(--blue); }
.article-head { padding-top: clamp(40px, 6vw, 72px); }
.article-head h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.article-head h1::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--bar); margin-top: 18px; }
.crumbs { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.crumbs a { text-decoration: none; }
.meta { color: var(--muted); font-size: .95rem; }
.article-cover { margin-top: 12px; margin-bottom: 36px; }
.article-cover img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.prose { font-size: 1.08rem; }
.prose h2 { font-size: 1.55rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--blue); }
.prose blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--blue); background: var(--blue-l); border-radius: 0 var(--radius-s) var(--radius-s) 0; color: var(--ink); }
.prose blockquote p:last-child { margin: 0; }
.prose figure { margin: 2em 0; }
.prose figure img, .prose p img { border-radius: var(--radius-s); }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 2.4em 0; }
.table { overflow-x: auto; margin: 1.5em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.prose th { background: var(--surface); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; margin-bottom: 72px; padding: 26px 30px;
  border-radius: var(--radius); background: linear-gradient(135deg, var(--blue-l), var(--green-l)); border: 1px solid var(--border); }
.cta-box h2 { font-size: 1.35rem; margin-bottom: .3em; }
.cta-box p { margin: 0; color: var(--muted); }
.cta-box .btn { flex: none; }

/* Patička */
.foot { background: var(--ink); color: rgba(255, 255, 255, .68); padding: 64px 0 28px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h2 { font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; color: #fff; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.foot h2::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--bar); }
.foot a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-logo { width: 150px; margin-bottom: 14px; }
.social { display: flex; gap: 14px; flex-wrap: wrap; }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; color: rgba(255, 255, 255, .45); }

/* Tablet a telefon */
@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .hero-in.three { grid-template-columns: 1fr 1fr; }
  .hero-in.three .ebook-card { display: none; }
  .services, .steps, .cards { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero-in, .ebook-in, .about, .contact { grid-template-columns: 1fr; gap: 32px; }
  .hero-in { padding: 40px 0 56px; }
  .hero-in.three, .hero-photo-bg .hero-in { grid-template-columns: 1fr; gap: 24px; padding: 40px 0 0; min-height: 0; }
  .hero-in.three .hero-text { padding-bottom: 0; }
  .hero-in.three .ebook-card, .hero-photo-bg .ebook-card { display: none; }
  .hero-figure .hero-person { height: 420px; }
  .hero-photo-bg { background: linear-gradient(180deg, rgba(20, 22, 30, .96) 0%, rgba(20, 22, 30, .9) 52%, rgba(20, 22, 30, .1) 72%, rgba(20, 22, 30, .35) 100%),
      url("/obrazky/pozadi-uvod.jpg") 50% 100% / auto 48% no-repeat, #1c1b19; }
  .hero-photo-bg .hero-in { padding: 44px 0 340px; }
  .hero-panel { min-height: 440px; }
  .tiles { grid-template-columns: 1fr; }
  .ebook-in { padding: 24px; }
  .services, .steps, .cards { grid-template-columns: 1fr; }
  .about img { max-width: 320px; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Menu v mobilu: návody rovnou pod položkou */
@media (max-width: 860px) {
  .dd { flex-direction: column; align-items: stretch; }
  .dd-btn { display: none; }
  .dd-menu { position: static; display: flex; margin: 0 0 6px; padding: 0 0 0 14px; min-width: 0; border: 0; box-shadow: none; background: none; }
  .dd-menu::before { display: none; }
  .dd-menu a { padding: 10px 4px; font-size: .95rem; color: var(--muted); border-bottom: 0; }
}

/* Formulář Ecomailu na stránce E-book (přebití jeho vlastního vzhledu) */
.ecomail-box { background: var(--white); color: var(--text); border-radius: var(--radius); padding: 22px 6px 10px; box-shadow: var(--shadow); }
.ecomail-box > h2 { font-size: 1.2rem; text-align: center; margin: 0 0 4px; }
.ecomail-box .ec-v-form-holder { width: 100% !important; background: transparent !important; padding: 0 !important; overflow: visible !important; }
.ecomail-box form, .ecomail-box .ec-v-form-step { min-height: 0 !important; height: auto !important; }
.ecomail-box .ec-v-form-column { width: 100% !important; float: none !important; }
.ecomail-box .ec-v-form-column:has(.ec-v-form-image), .ecomail-box .ec-v-form-image, .ecomail-box .ec-v-form-text, .ecomail-box .ec-v-form-spacer { display: none !important; }
.ecomail-box .ec-v-form-input, .ecomail-box .ec-v-form-submit { padding: 7px 18px !important; }
.ecomail-box label { font: 600 .78rem/1.4 var(--font) !important; text-transform: uppercase; letter-spacing: .08em; color: var(--muted) !important; }
.ecomail-box input[type=email], .ecomail-box input[type=text] { width: 100% !important; font: 1rem var(--font) !important; padding: 12px 14px !important; height: auto !important;
  border: 1px solid var(--border) !important; border-radius: var(--radius-s) !important; background: var(--surface) !important; color: var(--text) !important; box-shadow: none !important; }
.ecomail-box button { width: 100% !important; font: 600 1rem var(--font) !important; padding: .85em 1.4em !important; border-radius: 999px !important;
  background: var(--ink) !important; color: #fff !important; cursor: pointer; text-transform: none !important; }
.ecomail-box .ec-v-form-holder p, .ecomail-box .ec-v-form-holder small { font-family: var(--font) !important; font-size: .82rem !important; color: var(--muted) !important; }

/* Karta s odkazem v článku: [[Text|popis](odkaz)] */
.link-card { display: flex; align-items: center; gap: 16px; margin: 1.6em 0; padding: 18px 20px; border-radius: var(--radius); text-decoration: none;
  background: linear-gradient(135deg, var(--blue-l), var(--green-l)); border: 1px solid var(--border); transition: transform .2s ease, box-shadow .2s ease; }
.link-card:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--shadow); }
.link-card-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--blue); }
.link-card-text { flex: 1; display: grid; gap: 2px; }
.link-card-text strong { color: var(--ink); font-size: 1.05rem; }
.link-card-text small { color: var(--muted); font-size: .9rem; }
.link-card .btn { flex: none; }
@media (max-width: 560px) { .link-card { flex-wrap: wrap; } .link-card .btn { width: 100%; } }

/* Formulář nové fixace */
.fix-form fieldset { border: 0; margin: 0; padding: 0; }
.fix-form legend { font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.years { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.form .year { display: block; text-transform: none; letter-spacing: 0; }
.year input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.year span { display: block; text-align: center; padding: 11px 0; border-radius: var(--radius-s); border: 1px solid var(--border); background: var(--surface);
  color: var(--ink); font-size: 1rem; font-weight: 600; cursor: pointer; }
.year input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.year input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.fix-bad { padding: 18px 20px; border-radius: var(--radius); background: var(--red-l); color: var(--ink); }
