/* Hero s fotkou */
.fm-tema-hero {
    position: relative;
    min-height: 42vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
}
.fm-tema-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,40,60,0.88) 0%, rgba(20,40,60,0.35) 60%, rgba(20,40,60,0.15) 100%);
}
.fm-tema-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
    padding: 0 24px 44px;
}
.fm-tema-hero-inner h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 12px;
}
.fm-tema-hero-inner .fm-tema-perex {
    color: rgba(255,255,255,0.92);
    font-size: 1.2rem;
    margin: 0;
    max-width: 50ch;
}

.fm-tema-wrap {
    max-width: 860px;
    margin: 48px auto;
    padding: 0 24px;
}
.fm-tema-wrap > h1 { font-size: 2.4rem; margin: 0 0 12px; }

.fm-tema-perex {
    font-size: 1.15rem;
    color: var(--fm-text-mid);
    margin-bottom: 40px;
}

.fm-tema-sekce { margin-bottom: 48px; }
.fm-tema-sekce h2 {
    font-size: 1.3rem;
    border-bottom: 2px solid var(--fm-zlata);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* Návrh — číslovaný seznam kroků */
.fm-navrh-list {
    list-style: none;
    padding: 0;
    counter-reset: krok-counter;
}
.fm-navrh-list li {
    counter-increment: krok-counter;
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--fm-svetla);
    border-radius: 6px;
    align-items: flex-start;
}
.fm-navrh-list li::before {
    content: counter(krok-counter);
    background: var(--fm-modra);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 0.9rem;
}
.fm-navrh-naklady {
    font-size: 0.85rem;
    color: var(--fm-text-mid);
    margin: 4px 0 0;
}

/* Mini mapa na stránce tématu */
#fm-tema-mapa {
    height: 300px;
    border-radius: 8px;
    margin-bottom: 12px;
    z-index: 0;
}

/* Vizualizace centra */
.fm-tema-vizualizace-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--fm-text-mid);
    margin: 0 0 24px;
}
.fm-tema-vizualizace { margin: 0; }
.fm-tema-vizualizace-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 640px) {
    .fm-tema-vizualizace-grid { grid-template-columns: 1fr; }
}
.fm-tema-vizualizace-grid img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(20,40,60,0.12);
}
.fm-tema-vizualizace figcaption {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--fm-text-mid);
    font-style: italic;
    text-align: right;
}

/* Seznam garantů (garant + volitelný spolugarant) */
.fm-garanti-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

/* Garant karta */
.fm-garant-karta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: var(--fm-text);
    transition: box-shadow 0.2s;
}
.fm-garant-karta .fm-garant-role {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--fm-koral);
    margin-bottom: 2px;
}
.fm-garant-karta:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.fm-garant-karta img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.fm-garant-karta .fm-garant-poradi {
    font-size: 0.85rem;
    color: var(--fm-text-mid);
    margin: 4px 0 0;
}

/* ---- Video garanta k tématu (Shorts 9:16 + doprovodný text) ---- */
.fm-tema-video-grid {
    display: grid;
    grid-template-columns: minmax(220px, 300px) 1fr;
    gap: 32px;
    align-items: start;
}
.fm-tema-video {
    position: relative;
    width: 100%;
    padding-bottom: 177.78%;   /* 9:16 */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    box-shadow: 0 12px 32px rgba(10,25,40,0.18);
}
.fm-tema-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.fm-tema-video-text {
    font-size: 1.02rem;
    line-height: 1.7;
}
.fm-tema-video-text p { margin: 0 0 14px; }
@media (max-width: 640px) {
    .fm-tema-video-grid { grid-template-columns: 1fr; }
    .fm-tema-video { max-width: 280px; margin: 0 auto; }
}
