/* ==========================================================================
   CERMAT – doplňkové styly pro cermat.html (a cermat_ru.html)
   Načítat AŽ PO style.css. Zasahuje jen do sekce "Průvodce zkouškami podle
   ročníků" (třída .cm-guide), zbytek stránky zůstává beze změny.
   ========================================================================== */

.cm-guide-intro {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 40px;
    margin: 8px 0 48px;
}

.cm-guide-point {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-dark);
}

.cm-guide-ico {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef2ff;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.cm-guide-cards {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.cm-guide-card {
    --gc: #2563eb;
    --gc-tint: #eff6ff;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 0.8fr);
    gap: 28px;
    align-items: stretch;
    background: var(--gc-tint);
    border-radius: 24px;
    padding: 32px;
}

.cm-guide-card.cm-green { --gc: #059669; --gc-tint: #ecfdf5; }
.cm-guide-card.cm-amber { --gc: #d97706; --gc-tint: #fff7ed; }

.cm-guide-body {
    display: flex;
    flex-direction: column;
}

.cm-guide-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--gc);
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.cm-guide-card h3 {
    color: var(--gc);
    margin: 0 0 10px;
    padding: 0;
    font-size: 1.5rem;
    text-align: left;
}

.cm-guide-body > p {
    color: var(--text-light);
    margin: 0 0 18px;
}

.cm-guide-checklist {
    list-style: none;
    display: grid;
    gap: 10px;
    margin: 0 0 24px;
    padding: 0;
}

.cm-guide-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cm-guide-checklist i {
    color: var(--gc);
    margin-top: 4px;
    flex-shrink: 0;
}

.cm-guide-btn {
    align-self: flex-start;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--gc);
    color: #ffffff;
    font-weight: 700;
    transition: filter 0.2s ease;
}

.cm-guide-btn:hover {
    filter: brightness(0.92);
}

.cm-guide-photo {
    border-radius: 18px;
    overflow: hidden;
    min-height: 220px;
}

.cm-guide-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cm-guide-boost {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    background: #ffffff;
    border-radius: 18px;
    padding: 26px 24px;
}

.cm-guide-boost i {
    color: var(--gc);
    font-size: 1.3rem;
    opacity: 0.5;
}

.cm-guide-boost p {
    margin: 0;
    color: var(--text-dark);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.5;
}

.cm-guide-boost em {
    color: var(--gc);
    font-style: normal;
}

.cm-guide-cta {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: linear-gradient(135deg, var(--primary), #6a63e0);
    border-radius: 28px;
    padding: 48px 52px;
    box-shadow: 0 25px 50px rgba(62, 56, 180, 0.3);
}

.cm-guide-cta-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 800;
    color: #ffffff;
    font-size: 1.9rem;
    line-height: 1.15;
    margin: 0;
}

.cm-guide-cta-title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    font-size: 1.4rem;
}

.cm-guide-cta-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
}

.cm-guide-cta-fact {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    font-size: 1rem;
}

.cm-guide-cta-fact i {
    color: #ffffff;
}

.cm-guide-cta .cm-guide-btn {
    background: #ffffff;
    color: var(--primary);
    font-size: 1.1rem;
    padding: 16px 32px;
    flex-shrink: 0;
}

.cm-guide-cta .cm-guide-btn:hover {
    filter: none;
    transform: translateY(-2px);
}

@media (max-width: 1000px) {
    .cm-guide-card {
        grid-template-columns: 1fr;
    }

    .cm-guide-photo {
        order: -1;
        max-height: 220px;
    }
}

@media (max-width: 600px) {
    .cm-guide-intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .cm-guide-card {
        padding: 24px 20px;
    }

    .cm-guide-cta {
        padding: 30px 26px;
    }

    .cm-guide-cta-title {
        font-size: 1.4rem;
    }

    .cm-guide-cta-title i {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }
}
