/* =====================================================================
   ZIVOTOPIS.CSS — landing page nástroje na životopisy (/zivotopis)

   Staví na css/pages/landing.css: hero, sekce, karty, citace i závěrečná
   výzva jsou společné. Tady je jen to, co má stránka navíc — ukázky výstupu,
   srovnání verzí a časté dotazy.

   Barvy se berou z tokenů webu. Fallbacky drží stránku pohromadě i kdyby se
   tokeny přejmenovaly.
   ===================================================================== */

.pg-zivotopis {
    --zv-line: var(--color-border, rgba(15, 45, 72, .12));
    --zv-surface: var(--color-surface, #fff);
    --zv-ink: var(--color-text, #17222f);
    --zv-muted: var(--color-text-muted, #5b6b7c);
    --zv-accent: var(--color-primary, #1f7ac0);
    --zv-radius: var(--radius-lg, 18px);
}

/* ---- Tlačítka v hero ------------------------------------------------ */

.pg-zv-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 28px 0 8px;
}

/* ---- Ukázky výstupu -------------------------------------------------- */

.pg-shots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin-top: 38px;
}

.pg-shot {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pg-shot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid var(--zv-line);
    /* Stránka životopisu je bílá, potřebuje stín, aby se oddělila od pozadí */
    box-shadow: 0 18px 40px rgba(15, 45, 72, .14);
}

.pg-shot figcaption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: .92rem;
    line-height: 1.5;
    color: var(--zv-muted);
}

.pg-shot figcaption strong {
    color: var(--zv-ink);
    font-size: 1rem;
}

/* ---- Srovnání verzí -------------------------------------------------- */

.pg-plans {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 24px;
    align-items: start;
    margin-top: 38px;
}

.pg-plan {
    background: var(--zv-surface);
    border: 1px solid var(--zv-line);
    border-radius: var(--zv-radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Placená verze má nést pohled, proto rámeček navíc a hlubší stín */
.pg-plan--full {
    border-color: var(--zv-accent);
    box-shadow: 0 20px 50px rgba(15, 45, 72, .12);
}

.pg-plan header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pg-plan__name {
    margin: 0;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--zv-muted);
}

.pg-plan__price {
    margin: 0;
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--zv-ink);
}

.pg-plan--full .pg-plan__price {
    color: var(--zv-accent);
}

.pg-plan__note {
    margin: 0;
    font-size: .9rem;
    color: var(--zv-muted);
}

.pg-plan__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex-grow: 1;
}

.pg-plan__list li {
    position: relative;
    padding-left: 26px;
    font-size: .95rem;
    line-height: 1.55;
    color: var(--zv-muted);
}

.pg-plan__list li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: .62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--zv-line);
}

.pg-plan__list--check li::before {
    content: "\f00c";           /* Font Awesome: check */
    font-family: "Font Awesome 6 Free", sans-serif;
    font-weight: 900;
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    font-size: .82rem;
    color: var(--zv-accent);
}

.pg-plan__list strong {
    color: var(--zv-ink);
}

.pg-plan__fine {
    margin: 0;
    font-size: .84rem;
    line-height: 1.5;
    color: var(--zv-muted);
}

/* ---- Časté dotazy ---------------------------------------------------- */

.pg-faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 34px;
}

.pg-faq__item {
    background: var(--zv-surface);
    border: 1px solid var(--zv-line);
    border-radius: 12px;
    padding: 4px 20px;
}

.pg-faq__item summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 28px 16px 0;
    font-weight: 600;
    color: var(--zv-ink);
    position: relative;
}

.pg-faq__item summary::-webkit-details-marker {
    display: none;
}

.pg-faq__item summary::after {
    content: "+";
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1;
    color: var(--zv-accent);
}

.pg-faq__item[open] summary::after {
    content: "–";
}

.pg-faq__item p {
    margin: 0;
    padding: 0 0 18px;
    color: var(--zv-muted);
    line-height: 1.65;
}

/* ---- Menší obrazovky -------------------------------------------------- */

@media (max-width: 980px) {
    .pg-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-shots .pg-shot:last-child { display: none; }   /* třetí ukázka na tablet nepatří */
    .pg-plans { grid-template-columns: minmax(0, 1fr); }
    .pg-zv-poradce { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
    .pg-shots { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .pg-shots .pg-shot:last-child { display: flex; }
    .pg-plan { padding: 22px; }
    .pg-zv-cta .pg-btn { width: 100%; justify-content: center; }
}

/* ---- Hero ------------------------------------------------------------ */

/* Hero má prodat první obrazovku, ne zabrat celou. Krotíme jeho výšku,
   ať je vidět i začátek ukázek výstupu. */
.pg-zv-hero .pg-hero__inner {
    min-height: 0;
    padding-top: 56px;
    padding-bottom: 56px;
}

.pg-zv-hero h1 {
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
}

.pg-zv-hero .pg-hero__lead {
    max-width: 58ch;
}

.pg-zv-micro {
    margin: 16px 0 0;
    font-size: .9rem;
    opacity: .78;
}

/* ---- Jak to funguje --------------------------------------------------- */

.pg-zv-steps {
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    counter-reset: krok;
}

.pg-zv-step {
    background: var(--zv-surface);
    border: 1px solid var(--zv-line);
    border-radius: var(--zv-radius);
    padding: 24px 22px;
}

.pg-zv-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-primary-soft, rgba(31, 122, 192, .1));
    color: var(--zv-accent);
    font-weight: 700;
    font-size: .95rem;
}

.pg-zv-step h3 {
    margin: 14px 0 8px;
    font-size: 1.05rem;
}

.pg-zv-step p {
    margin: 0;
    color: var(--zv-muted);
    font-size: .93rem;
    line-height: 1.6;
}

.pg-zv-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 26px;
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid var(--zv-line);
}

.pg-zv-fact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: .92rem;
    line-height: 1.55;
    color: var(--zv-muted);
}

.pg-zv-fact strong {
    color: var(--zv-ink);
}

.pg-zv-stred {
    margin: 30px 0 0;
    text-align: center;
}

/* ---- Medailonek poradce ----------------------------------------------- */

.pg-zv-poradce {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    margin-top: 38px;
}

.pg-zv-poradce__media {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Portrét dostane pevný poměr, jinak se z něj na šířce stane plakát */
.pg-zv-poradce__media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--zv-radius);
    display: block;
}

.pg-zv-poradce__media figcaption {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: .92rem;
    color: var(--zv-muted);
}

.pg-zv-poradce__media figcaption strong {
    color: var(--zv-ink);
    font-size: 1rem;
}

.pg-zv-poradce__text h3 {
    margin: 0 0 12px;
}

.pg-zv-poradce__text p {
    margin: 0 0 12px;
    color: var(--zv-muted);
    line-height: 1.65;
}

.pg-zv-temata {
    list-style: none;
    margin: 18px 0 22px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pg-zv-temata li {
    padding: 7px 14px;
    border: 1px solid var(--zv-line);
    border-radius: 999px;
    font-size: .88rem;
    color: var(--zv-muted);
}

@media (max-width: 980px) {
    .pg-zv-steps,
    .pg-zv-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-zv-poradce { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 640px) {
    .pg-zv-hero .pg-hero__inner { padding-top: 40px; padding-bottom: 40px; }
    .pg-zv-steps,
    .pg-zv-facts { grid-template-columns: minmax(0, 1fr); }
    .pg-zv-poradce { grid-template-columns: minmax(0, 1fr); }
    .pg-zv-poradce__media { max-width: 260px; }
    .pg-zv-stred .pg-btn { width: 100%; justify-content: center; }
}
