/* ==========================================================
   pf.dsite.cz – podstránky (průvodce, texty, návody)
   Stejná paleta a prvky jako generátor (style.css).
   ========================================================== */
:root {
    --red: #B3000C; --red-hover: #d90013;
    --green: #0F4928; --green-2: #14603a; --green-dark: #0a3320;
    --gold: #D4AF37; --gold-hover: #e6c04a;
    --cream: #fdfaf0; --paper: #f6f0dc; --line: #e4ddc8;
    --ink: #2b2b2b; --muted: #625f55; --surface: #fff;
    --radius: 8px; --radius-sm: 6px;
    --shadow: 0 10px 30px rgba(15, 73, 40, .16);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .10);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --head-h: 58px; --gold-deep: #9a7a1c;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
    margin: 0; overflow-x: clip;
    font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--cream); color: var(--ink); line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-2); }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.1rem; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Horní lišta ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50; height: var(--head-h);
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding: 0 max(1rem, calc((100vw - 1120px) / 2 + 1.1rem));
    background: var(--green); color: #fff;
    box-shadow: 0 1px 0 rgba(212, 175, 55, .75), 0 6px 18px rgba(8, 40, 22, .18);
    transition: box-shadow .25s;
}
.brand { position: relative; display: flex; align-items: center; gap: .8rem; min-width: 0; flex: 0 1 auto; color: #fff; text-decoration: none; }
.brand-ic { flex: 0 0 auto; }
.brand:hover { color: #fff; }
.brand-ic { width: 30px; height: 30px; color: var(--gold); fill: currentColor; stroke: none; margin-left: -5px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand-text b { font-family: 'Merriweather', serif; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .01em; }
.brand-text b span { color: var(--gold); }
.brand-text small { font-size: .74rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-nav { position: relative; display: flex; align-items: center; gap: 1.6rem; flex: 0 0 auto; }
.top-nav .btn { white-space: nowrap; }
.nav-link { color: #e9f1ec; text-decoration: none; font-size: .95rem; font-weight: 500; padding: .4rem 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.nav-link:hover { color: #fff; border-color: var(--gold); }
@media (min-width: 901px) {
    :root { --head-h: 88px; }
    .brand-ic { width: 40px; height: 40px; margin-left: -7px; }
    .brand-text b { font-size: 1.45rem; }
    .brand-text small { font-size: .82rem; }
    .nav-link { font-size: 1.02rem; }
    .top-nav .btn { min-height: 48px; padding: 0 1.4rem; font-size: 1rem; }
    .topbar.is-small { box-shadow: 0 1px 0 rgba(212, 175, 55, .75), 0 10px 24px rgba(8, 40, 22, .28); }
}

/* ---------- Tlačítka ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 42px; padding: 0 1.1rem; border-radius: var(--radius-sm);
    border: 1.5px solid transparent; font-weight: 500; font-size: .95rem;
    text-decoration: none; line-height: 1.2; text-align: center;
    transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
@media (hover: hover) { .btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); } }
.btn:active { transform: scale(.98); box-shadow: none; }
.btn-gold { background: var(--gold); color: #2b2b2b; font-weight: 700; }
.btn-gold:hover { background: var(--gold-hover); color: #2b2b2b; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); color: #fff; }
.btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-light:hover { background: rgba(255, 255, 255, .1); border-color: var(--gold); color: #fff; }
.btn-outline { background: #fff; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: #f2f7f4; color: var(--green); }
.btn-ghost { background: #f4f0e2; color: var(--ink); }
.btn-ghost:hover { background: #ece6d2; color: var(--ink); }
.btn-lg { min-height: 50px; padding: 0 1.4rem; font-size: 1rem; }
.btn-sm { min-height: 38px; padding: 0 .8rem; font-size: .88rem; }
.btn .ic { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
    position: relative; color: #eef4f0;
    background: radial-gradient(120% 140% at 85% 0%, #1a6b3f 0%, var(--green) 45%, var(--green-dark) 100%);
    border-bottom: 1px solid rgba(212, 175, 55, .55);
}
.crumbs { padding-top: 1.1rem; font-size: .85rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem .5rem; color: #b9d1c2; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: rgba(255, 255, 255, .3); }
.crumbs a { color: #cfe2d6; text-decoration: none; }
.crumbs a:hover { color: var(--gold); text-decoration: underline; }
.crumbs span { color: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 4rem; align-items: center; padding-top: 2.6rem; padding-bottom: 4.2rem; }
.hero-copy h1 {
    font-family: 'Merriweather', serif; font-weight: 700; color: #fff;
    font-size: clamp(1.8rem, 3.3vw, 2.75rem); line-height: 1.2; text-wrap: balance;
    animation: rise .7s var(--ease) both;
}
.hero-copy h1::after { content: ""; display: block; width: 72px; height: 2px; margin-top: 1.3rem; background: var(--gold); }
.lead { margin-top: 1.3rem; font-size: 1.15rem; line-height: 1.65; color: #dbe8e0; max-width: 58ch; animation: rise .7s .08s var(--ease) both; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; animation: rise .7s .16s var(--ease) both; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem 1.5rem; margin-top: 1.7rem; font-size: .92rem; color: #b9d1c2; animation: rise .7s .24s var(--ease) both; }
.trust li { display: inline-flex; align-items: center; gap: .4rem; }
.trust .ic { width: 16px; height: 16px; color: var(--gold); }

.hero-grid:has(.hero-card.fmt-tall) { align-items: start; }
.hero-card { justify-self: center; animation: pop .8s .1s var(--ease) both; }
.hero-card picture { display: block; }
.hero-card img {
    border: 1px solid rgba(212, 175, 55, .8); border-radius: 3px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 9px rgba(255, 255, 255, .06);
    background: var(--green-dark);
}
.hero-card.fmt-wide img, .hero-card.fmt-sq img { max-width: min(100%, 540px); }
.hero-card.fmt-sq img { max-height: 540px; width: auto; }
.hero-card.fmt-tall img { max-height: 560px; width: auto; max-width: 100%; }

/* ---------- Obsah ---------- */
.content { padding-bottom: 1rem; }
.block { max-width: 860px; margin: 0; padding-top: 3.4rem; }
.block h2 {
    display: flex; align-items: center; gap: .6rem;
    font-family: 'Merriweather', serif; font-size: 1.5rem; line-height: 1.3; color: var(--green);
    margin-bottom: .8rem;
}
.block h2 .ic { width: 24px; height: 24px; color: var(--gold-deep); }
.block p { max-width: 70ch; margin-bottom: .8rem; }
.block p.intro { color: var(--muted); margin-bottom: 1.1rem; }
.block p b { color: var(--green); }

.tick { list-style: none; display: grid; gap: .55rem; max-width: 70ch; }
.tick li { display: flex; gap: .65rem; align-items: flex-start; }
.tick .ic { width: 18px; height: 18px; margin-top: .22rem; color: var(--green); }

/* Postup */
.steps { list-style: none; display: grid; gap: .9rem; counter-reset: s; max-width: 70ch; }
.steps li { display: flex; gap: .9rem; align-items: flex-start; }
.steps .num {
    flex: none; width: 34px; height: 34px; display: grid; place-items: center;
    background: var(--green); color: var(--gold); border-radius: var(--radius-sm);
    font-family: 'Merriweather', serif; font-weight: 700;
}
.steps strong { display: block; color: var(--green); }
.steps p { margin: .1rem 0 0; }

/* Texty */
.text-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem; }
.text-card {
    display: flex; flex-direction: column; justify-content: space-between; gap: .9rem;
    padding: 1.1rem 1.1rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .2s, box-shadow .25s, transform .25s var(--ease);
}
@media (hover: hover) { .text-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); } }
.text-card blockquote { font-family: 'Merriweather', serif; font-size: 1rem; line-height: 1.6; color: #2f2f2a; overflow-wrap: anywhere; }
.text-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.text-actions .btn { flex: 1 1 130px; }
.btn.copied { background: var(--green); color: #fff; }

/* FAQ */
.faq { display: grid; gap: .5rem; max-width: 780px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
.faq details[open] { border-color: var(--gold); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .85rem 1rem; list-style: none; cursor: pointer; font-weight: 500; color: var(--green);
}
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.faq details[open] .chev { transform: rotate(180deg); }
.faq details p { padding: 0 1rem 1rem; margin: 0; max-width: 68ch; }

/* Karty (související, rozcestník) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.card {
    display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .2s, box-shadow .25s, transform .25s var(--ease);
}
@media (hover: hover) { .card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-3px); color: var(--ink); } }
.card-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper); padding: .7rem; }
.card-img picture { display: block; width: 100%; height: 100%; }
.card-img img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 2px; filter: drop-shadow(0 6px 12px rgba(15, 73, 40, .3)); transition: transform .5s var(--ease); }
@media (hover: hover) { .card:hover .card-img img { transform: scale(1.04); } }
.card-body { display: flex; flex-direction: column; gap: .3rem; padding: .85rem 1rem 1rem; }
.card-body strong { font-family: 'Merriweather', serif; color: var(--green); font-size: 1rem; line-height: 1.35; }
.card-body span { font-size: .88rem; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Výzva k akci */
.cta-band { margin-top: 4rem; background: radial-gradient(120% 160% at 15% 0%, #1a6b3f 0%, var(--green) 50%, var(--green-dark) 100%); color: #fff; border-top: 1px solid rgba(212, 175, 55, .7); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 3rem; padding-bottom: 3rem; }
.cta-band h2 { font-family: 'Merriweather', serif; font-size: 1.5rem; line-height: 1.3; }
.cta-band p { margin-top: .3rem; opacity: .9; }

/* Patička */
.site-foot { background: var(--green-dark); color: #dcebe2; padding: 2.2rem 0 1.4rem; font-size: .92rem; }
.foot-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.6rem 1.4rem;
    max-width: 1120px; margin: 0 auto; padding: 0 1.1rem;
}
.site-foot h2 { display: flex; align-items: center; gap: .5rem; font-family: 'Merriweather', serif; font-size: .98rem; color: #fff; margin-bottom: .6rem; }
.site-foot h2 .ic { width: 18px; height: 18px; color: var(--gold); }
.site-foot ul { list-style: none; display: grid; gap: .35rem; }
.site-foot a { color: #dcebe2; text-decoration: none; }
.site-foot a:hover { color: var(--gold); text-decoration: underline; }
.foot-line { max-width: 1120px; margin: 1.8rem auto 0; padding: 1rem 1.1rem 0; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; color: #b9d1c2; }

/* 404 */
.notfound { padding: 4rem 0; max-width: 560px; }
.notfound h1 { font-family: 'Merriweather', serif; color: var(--green); font-size: 1.8rem; margin-bottom: .7rem; }
.notfound .cta-row { animation: none; }

/* Plovoucí tlačítko (mobil) */
.sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(253, 250, 240, 0), var(--cream) 40%);
    animation: slideUp .4s var(--ease);
}
.sticky-cta .btn { width: 100%; box-shadow: var(--shadow); }

/* Cookies (stejné jako v generátoru) */
#cookie-consent {
    position: fixed; left: 12px; bottom: 12px; z-index: 1200;
    display: flex; flex-direction: column; gap: .7rem;
    width: min(440px, calc(100vw - 24px)); padding: 1rem;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25); animation: slideUp .5s var(--ease);
}
#cookie-consent p { font-size: .9rem; }
.cookie-actions { display: flex; gap: .5rem; }
.cookie-actions .btn { flex: 1; min-height: 40px; font-size: .88rem; }

/* ---------- Animace ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responzivita ---------- */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; padding-top: 1.6rem; padding-bottom: 2.6rem; }
    .hero-card { order: 2; }
    .hero-card img { box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }
    .hero-card.fmt-tall img, .hero-card.fmt-sq img { max-height: 460px; }
    .cta-inner { flex-direction: column; align-items: stretch; text-align: left; }
    .cta-inner .btn { width: 100%; }
}
@media (max-width: 640px) {
    :root { --head-h: 54px; }
    .brand-text small { display: none; }
    .brand-text b { font-size: 1rem; }
    .nav-link { display: none; }
    .top-nav .btn { min-height: 38px; padding: 0 .8rem; font-size: .88rem; }
    .lead { font-size: 1.02rem; margin-top: 1rem; }
    .hero-copy h1::after { margin-top: 1rem; }
    .cta-row .btn { width: 100%; }
    .block { padding-top: 2.2rem; }
    .block h2 { font-size: 1.28rem; }
    .text-grid, .card-grid { grid-template-columns: 1fr; }
    #cookie-consent { left: 8px; right: 8px; bottom: 8px; width: auto; }
    body { padding-bottom: 0; }
}
@media (max-width: 440px) {
    .topbar { gap: .8rem; }
    .top-nav .btn { width: 40px; min-height: 40px; padding: 0; }
    .top-nav .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 901px) { .sticky-cta { display: none; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}
@media (max-width: 900px) { .site-foot { padding-bottom: 5.6rem; } }

/* ---------- Galerie pozadí ---------- */
.hero-mosaic { position: relative; justify-self: center; width: min(100%, 520px); aspect-ratio: 1.12; pointer-events: none; animation: pop .8s .1s var(--ease) both; }
.hero-mosaic span { position: absolute; display: block; width: 56%; aspect-ratio: 3 / 2; overflow: hidden; border: 6px solid #fdfaf0; border-radius: 2px; box-shadow: 0 16px 34px rgba(0, 0, 0, .42); }
.hero-mosaic picture, .hero-mosaic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-mosaic span:nth-child(1) { left: 0; top: 5%; transform: rotate(-6deg); z-index: 1; }
.hero-mosaic span:nth-child(2) { right: 0; top: 0; transform: rotate(5deg); z-index: 2; }
.hero-mosaic span:nth-child(3) { left: 9%; bottom: 2%; width: 60%; transform: rotate(3deg); z-index: 3; }
.hero-mosaic span:nth-child(4) { right: 1%; bottom: 10%; width: 50%; transform: rotate(-5deg); z-index: 2; }

.gal-jump { display: flex; flex-wrap: wrap; gap: .6rem; padding-top: 2rem; }
.gal-jump a {
    display: inline-flex; align-items: center; gap: .5rem; min-height: 42px; padding: 0 .9rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    color: var(--green); font-weight: 500; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.gal-jump a .ic { width: 19px; height: 19px; color: var(--gold-deep); }
.gal-jump a b { min-width: 24px; padding: 1px 6px; border-radius: 6px; background: var(--paper); color: var(--muted); font-size: .8rem; text-align: center; }
@media (hover: hover) { .gal-jump a:hover { border-color: var(--green); box-shadow: var(--shadow-sm); transform: translateY(-1px); } }

.gal-block { max-width: none; }
.bg-grid { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.bg-tile { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); color: #fff; text-decoration: none; }
.bg-tile picture, .bg-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bg-tile img { transition: transform .6s var(--ease); }
.bg-cap {
    position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: .6rem;
    padding: 1.6rem .8rem .65rem; font-size: .88rem; line-height: 1.3;
    background: linear-gradient(180deg, rgba(10, 30, 20, 0), rgba(10, 30, 20, .82));
    text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.bg-tile:hover, .bg-tile:focus-visible { color: #fff; }
.bg-num { font-size: 1.35rem; font-weight: 700; line-height: 1; color: #fff; }
.bg-cap em { display: inline-flex; align-items: center; gap: .3rem; flex: none; padding: 3px 8px; border-radius: 6px; background: var(--gold); color: #2b2b2b; font-style: normal; font-weight: 700; font-size: .78rem; text-shadow: none; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.bg-cap em .ic { width: 14px; height: 14px; }
.bg-tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.bg-tile:focus-visible .bg-cap em { opacity: 1; transform: none; }
@media (hover: hover) {
    .bg-tile:hover { box-shadow: var(--shadow); }
    .bg-tile:hover img { transform: scale(1.05); }
    .bg-tile:hover .bg-cap em { opacity: 1; transform: none; }
}
@media (hover: none) { .bg-cap em { opacity: 1; transform: none; } }
@media (max-width: 899px) { .hero-mosaic { width: min(100%, 420px); order: 2; } }
@media (max-width: 520px) { .bg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .bg-cap { font-size: .78rem; padding: 1.2rem .55rem .5rem; } .bg-num { font-size: 1.2rem; } .bg-cap em { display: none; } }

@media (max-width: 640px) { .site-foot { text-align: center; } .site-foot h2 { justify-content: center; } .site-foot ul { justify-items: center; } .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; } .foot-line { text-align: center; } }

/* Logo studia v patičce (světlá verze loga vedle jména) */
.foot-line .foot-logo { display: inline-flex; align-items: center; gap: .55rem; vertical-align: middle; margin-left: .3rem; color: #dcebe2; text-decoration: none; }
.foot-line .foot-logo img { display: block; width: auto; height: 22px; }
.foot-line .foot-logo:hover { color: var(--gold); text-decoration: none; }

/* Řádek pod patičkou: vlevo copyright, vpravo realizace s logem */
.foot-line { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.5rem; }
.foot-line p { margin: 0; }
.foot-line .foot-made { display: inline-flex; align-items: center; gap: .3rem; margin-left: auto; }
.foot-line .foot-logo { margin-left: 0; }
@media (max-width: 640px) {
    .foot-line { flex-direction: column; justify-content: center; text-align: center; }
    .foot-line .foot-made { margin-left: 0; justify-content: center; flex-wrap: wrap; }
}

/* Patička: jemná linka pod nadpisem každého sloupce (sloupce se nespojují, mezi nimi zůstává mezera) */
.site-foot .foot-grid nav h2 { padding-bottom: .6rem; margin-bottom: .75rem; border-bottom: 1px solid rgba(255, 255, 255, .13); }
