/* ==========================================================
   pf.dsite.cz – obsah pod aplikací (úvodní strana)
   ========================================================== */
.below { --gold-deep: #9a7a1c; background: var(--cream); color: var(--ink); }
.below .bw { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.2rem; }
.bsec { padding: 4.2rem 0; }
.below h2 {
    display: flex; align-items: center; gap: .65rem; margin: 0 0 .6rem;
    font-family: 'Merriweather', serif; font-size: 1.7rem; line-height: 1.3; color: var(--green);
}
.below h2 .ic { width: 26px; height: 26px; color: var(--gold-deep); flex: none; }
.bsec-intro { margin: 0 0 2rem; max-width: 62ch; color: var(--muted); font-size: 1.05rem; }

/* Kroky */
.bsec-how { background: #fff; border-top: 1px solid var(--line); }
.b-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem; counter-reset: b; }
.b-steps li { display: flex; gap: 1rem; align-items: flex-start; }
.b-num {
    flex: none; width: 44px; height: 44px; display: grid; place-items: center;
    background: var(--green); color: var(--gold); border-radius: 6px;
    font-family: 'Merriweather', serif; font-weight: 700; font-size: 1.2rem;
}
.b-steps h3 { margin: .1rem 0 .35rem; font-family: 'Merriweather', serif; font-size: 1.08rem; color: var(--green); }
.b-steps p { margin: 0; color: #46443d; line-height: 1.6; }

/* Přednosti */
.bsec-feat { padding: 3.4rem 0; background: var(--cream); border-top: 1px solid var(--line); }
.b-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.b-feats article {
    padding: 1.5rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: 8px;
    transition: border-color .2s, box-shadow .25s, transform .25s var(--ease);
}
@media (hover: hover) { .b-feats article:hover { border-color: var(--gold); box-shadow: 0 10px 28px rgba(15, 73, 40, .13); transform: translateY(-3px); } }
.b-feats h3 { display: flex; align-items: center; gap: .55rem; margin: 0 0 .6rem; font-family: 'Merriweather', serif; font-size: 1rem; line-height: 1.3; color: var(--green); }
.b-feats h3 .ic { width: 22px; height: 22px; color: var(--gold-deep); flex: none; }
.b-feats p { margin: 0; font-size: .93rem; line-height: 1.6; color: #46443d; }

/* Inspirace */
.bsec-ex { background: var(--paper); border-top: 1px solid var(--line); }
.b-ex { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.1rem; }
.b-ex a { display: flex; flex-direction: column; gap: .7rem; text-decoration: none; color: var(--green); }
.b-ex-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: .5rem; }
.b-ex-img picture { display: contents; }
.b-ex-img img {
    max-width: 100%; max-height: 100%; width: auto; height: auto; border: 1px solid rgba(212, 175, 55, .75); border-radius: 2px;
    box-shadow: 0 10px 22px rgba(15, 73, 40, .25); transition: transform .45s var(--ease), box-shadow .3s;
}
@media (hover: hover) { .b-ex a:hover .b-ex-img img { transform: translateY(-4px) scale(1.03); box-shadow: 0 16px 30px rgba(15, 73, 40, .32); } }
.b-ex-t { font-size: .92rem; font-weight: 500; line-height: 1.35; text-align: center; }

/* FAQ */
.bsec-faq { background: #fff; border-top: 1px solid var(--line); }
.bsec-faq #faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.4rem; align-items: start; margin-top: 1.6rem; }
.bsec-faq details { background: var(--cream); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.bsec-faq details[open] { border-color: var(--gold); box-shadow: 0 6px 18px rgba(15, 73, 40, .1); }
.bsec-faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1rem 1.2rem; cursor: pointer; list-style: none; font-weight: 500; color: var(--green);
}
.bsec-faq summary::-webkit-details-marker { display: none; }
.bsec-faq summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--gold-deep); transition: transform .3s var(--ease); }
.bsec-faq details[open] summary::after { transform: rotate(45deg); }
.bsec-faq details p { margin: 0; padding: 0 1.2rem 1.1rem; color: #3b3a35; line-height: 1.6; }

/* Průvodce */
.bsec-guide { background: var(--cream); border-top: 1px solid var(--line); }
.b-guide { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.8rem; }
.b-guide h3 { margin: 0 0 .7rem; font-family: 'Merriweather', serif; font-size: 1rem; color: var(--green); padding-bottom: .55rem; border-bottom: 1px solid var(--gold); }
.b-guide .guide-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.b-guide .guide-links a { display: block; padding: .38rem 0; color: #3b3a35; text-decoration: none; font-size: .93rem; line-height: 1.4; transition: color .2s, padding .2s; }
@media (hover: hover) { .b-guide .guide-links a:hover { color: var(--green); padding-left: .35rem; } }
.bsec-guide .guide-all { margin-top: 2rem; text-decoration: none; }

/* Patička */
/* Patička – stejná jako na podstránkách */
.site-foot { line-height: 1.65; background: var(--green-dark, #0a3320); color: #dcebe2; padding: 2.2rem 0 1.4rem; font-size: .92rem; border-top: 1px solid rgba(212, 175, 55, .7); }
.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; margin: 0; padding: 0; }
.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; }
.foot-coffee { display: inline-flex; align-items: center; gap: .4rem; color: #dcebe2; background: transparent; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.foot-coffee:hover { color: var(--gold); }
.foot-coffee .ic { width: 16px; height: 16px; }
@media (max-width: 900px) { .site-foot { padding-bottom: 5.6rem; } }
@media (max-width: 1000px) {
    .b-feats, .b-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .b-ex { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .bsec { padding: 3rem 0; }
    .bsec-feat { padding: 2.4rem 0; }
    .below h2 { font-size: 1.4rem; }
    .b-steps { grid-template-columns: 1fr; gap: 1.5rem; }
    .bsec-faq #faq-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .b-feats, .b-guide { grid-template-columns: 1fr; }
    .b-ex { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
}

/* ochrana proti rozšíření stránky na mobilu */
.below, .bsec { max-width: 100%; overflow-x: clip; }
.b-ex a, .b-ex-img, .b-feats > *, .b-steps > *, .b-guide > * { min-width: 0; }
.b-ex-img { overflow: hidden; }

@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; }

/* Odkaz „Káva pro autora“ v textu */
.kava-odkaz { display: inline-flex; align-items: baseline; gap: .3rem; color: var(--green); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.kava-odkaz .ic { width: 16px; height: 16px; align-self: center; color: var(--gold-deep); }
.kava-odkaz:hover { color: var(--green-2, #14603a); text-decoration-color: var(--green); }

/* Řá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); }
