/* ============================================================
   Pojistná událost – kompletní redesign (pu-*)
   Pouze obsah stránky. Nav / footer z administrace beze změny.
   ============================================================ */

.pu-page {
    --pu-ink: #0c0e12;
    --pu-ink-soft: #161922;
    --pu-paper: #f6f2ea;
    --pu-paper-deep: #ebe5da;
    --pu-accent: #c0392b;
    --pu-accent-deep: #96281b;
    --pu-accent-soft: #f4e8e6;
    --pu-text: #1a1814;
    --pu-muted: #5c564c;
    --pu-line: rgba(26, 24, 20, .12);
    --pu-line-light: rgba(255, 255, 255, .1);
    --pu-display: "Fraunces", "Playfair Display", Georgia, serif;
    --pu-body: "Source Sans 3", "Inter", system-ui, sans-serif;
    --pu-ease: cubic-bezier(.16, 1, .3, 1);
    --pu-wrap: min(68rem, calc(100% - 2rem));

    font-family: var(--pu-body);
    color: var(--pu-text);
    background: var(--pu-paper);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: clip;
}

[data-theme="dark"] .pu-page {
    --pu-paper: #12151c;
    --pu-paper-deep: #0c0e12;
    --pu-text: #ece8e0;
    --pu-muted: #9a9488;
    --pu-line: rgba(236, 232, 224, .12);
    --pu-accent-soft: rgba(192, 57, 43, .14);
}

html:has(.pu-page) {
    background-color: var(--pu-paper, #f6f2ea) !important;
}
html:has(.pu-page) body {
    background-color: var(--pu-paper, #f6f2ea) !important;
}
html[data-theme="dark"]:has(.pu-page) {
    background-color: #12151c !important;
}
html[data-theme="dark"]:has(.pu-page) body {
    background-color: #12151c !important;
}

.pu-wrap {
    width: var(--pu-wrap);
    margin-inline: auto;
}

/* ---------- Hero ---------- */
.pu-hero {
    position: relative;
    isolation: isolate;
    color: #ece8e0;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(192, 57, 43, .22), transparent 55%),
        radial-gradient(80% 60% at 0% 100%, rgba(192, 57, 43, .08), transparent 50%),
        linear-gradient(168deg, #0c0e12 0%, #141820 48%, #0c0e12 100%);
    padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 8vw, 5.5rem);
    min-height: min(92vh, 920px);
    min-height: min(92dvh, 920px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pu-hero__fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: clamp(3rem, 8vw, 6rem);
    background: linear-gradient(to bottom, transparent, var(--pu-paper));
    pointer-events: none;
    z-index: 2;
}

.pu-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: end;
    position: relative;
    z-index: 1;
}

.pu-hero__signal {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(236, 232, 224, .55);
    margin: 0 0 1.25rem;
}

.pu-hero__dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--pu-accent);
    box-shadow: 0 0 0 0 rgba(192, 57, 43, .5);
    animation: puDot 2.4s var(--pu-ease) infinite;
}

@keyframes puDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, .45); }
    50% { box-shadow: 0 0 0 7px rgba(192, 57, 43, 0); }
}

.pu-hero__title {
    font-family: var(--pu-display);
    font-size: clamp(2.35rem, 6.5vw, 4.25rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.035em;
    margin: 0 0 1.25rem;
    max-width: 12ch;
}

.pu-hero__title-accent {
    color: #e8a598;
    font-weight: 650;
    font-style: italic;
}

.pu-hero__lead {
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    line-height: 1.65;
    color: rgba(236, 232, 224, .78);
    max-width: 38rem;
    margin: 0 0 1.75rem;
}

.pu-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.pu-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .12rem;
    padding: .95rem 1.5rem;
    border-radius: .65rem;
    font-family: var(--pu-body);
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .22s var(--pu-ease), box-shadow .22s var(--pu-ease), background .2s ease;
}

.pu-btn__label {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.1;
}

.pu-btn__sub {
    font-size: .78rem;
    font-weight: 500;
    opacity: .85;
    font-variant-numeric: tabular-nums;
}

.pu-btn--primary {
    background: var(--pu-accent);
    color: #fff !important;
    box-shadow: 0 12px 32px -8px rgba(192, 57, 43, .55);
}

.pu-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -8px rgba(192, 57, 43, .6);
    color: #fff !important;
    text-decoration: none;
}

.pu-btn--ghost {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .18);
    color: #ece8e0 !important;
}

.pu-btn--ghost:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff !important;
    text-decoration: none;
}

.pu-btn--light.pu-btn--primary {
    background: #fff;
    color: var(--pu-accent-deep) !important;
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .35);
}

.pu-btn--light.pu-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .35);
    color: #fff !important;
}

.pu-signals {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--pu-line-light);
}

.pu-signals__item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--pu-line-light);
}

.pu-signals__item strong {
    display: block;
    font-size: .92rem;
    font-weight: 700;
    color: #ece8e0;
    margin-bottom: .25rem;
}

.pu-signals__item span {
    display: block;
    font-size: .84rem;
    line-height: 1.5;
    color: rgba(236, 232, 224, .65);
}

/* Sticky call (mobile) */
.pu-sticky-call {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 480;
    padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, rgba(12, 14, 18, .97) 70%, transparent);
    pointer-events: none;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity .3s var(--pu-ease), transform .3s var(--pu-ease);
}

.pu-sticky-call.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.pu-sticky-call__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1.15rem;
    background: var(--pu-accent);
    color: #fff !important;
    border-radius: .75rem;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(192, 57, 43, .45);
}

.pu-sticky-call__label {
    font-weight: 700;
    font-size: .95rem;
}

.pu-sticky-call__num {
    font-size: .88rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    opacity: .92;
}

/* ---------- Warn band ---------- */
.pu-band {
    padding: 1.15rem 0;
}

.pu-band--warn {
    background: var(--pu-accent-soft);
    border-block: 1px solid color-mix(in srgb, var(--pu-accent) 25%, transparent);
}

.pu-band__text {
    margin: 0;
    font-size: .95rem;
    line-height: 1.6;
    color: var(--pu-text);
    max-width: 52rem;
}

.pu-band__text strong {
    color: var(--pu-accent-deep);
}

[data-theme="dark"] .pu-band__text strong {
    color: #e8a598;
}

/* ---------- Sections ---------- */
.pu-section {
    padding: clamp(2.75rem, 6vw, 4.5rem) 0;
    background: var(--pu-paper);
}

.pu-section__title {
    font-family: var(--pu-display);
    font-size: clamp(1.65rem, 3.5vw, 2.35rem);
    font-weight: 650;
    letter-spacing: -.03em;
    line-height: 1.12;
    margin: 0 0 clamp(1.5rem, 3vw, 2rem);
    max-width: 16ch;
}

/* Process */
.pu-process {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, .75fr);
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: start;
}

.pu-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: pu-step;
}

.pu-timeline__step {
    position: relative;
    padding: 0 0 2rem 3.25rem;
    counter-increment: pu-step;
}

.pu-timeline__step:last-child {
    padding-bottom: 0;
}

.pu-timeline__step::before {
    content: counter(pu-step);
    position: absolute;
    left: 0;
    top: .1rem;
    font-family: var(--pu-display);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--pu-accent);
    font-variant-numeric: tabular-nums;
}

.pu-timeline__step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: .65rem;
    top: 2.25rem;
    bottom: .35rem;
    width: 1px;
    background: linear-gradient(to bottom, var(--pu-accent), transparent);
    opacity: .35;
}

.pu-timeline__step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.015em;
    margin: 0 0 .4rem;
    color: var(--pu-text);
}

.pu-timeline__step p {
    margin: 0;
    font-size: .94rem;
    line-height: 1.65;
    color: var(--pu-muted);
    max-width: 42rem;
}

.pu-checklist {
    background: var(--pu-paper-deep);
    border: 1px solid var(--pu-line);
    border-radius: 1rem;
    padding: 1.35rem 1.25rem 1.4rem;
    position: sticky;
    top: calc(var(--nav-h, 70px) + 1rem);
}

.pu-checklist__title {
    font-family: var(--pu-display);
    font-size: 1.1rem;
    font-weight: 650;
    margin: 0 0 1rem;
    letter-spacing: -.02em;
}

.pu-checklist__list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: pu-prep;
}

.pu-checklist__list li {
    counter-increment: pu-prep;
    display: grid;
    grid-template-columns: 1.85rem 1fr;
    gap: .65rem;
    padding: .55rem 0;
    font-size: .9rem;
    line-height: 1.5;
    color: var(--pu-muted);
    border-top: 1px solid var(--pu-line);
}

.pu-checklist__list li:first-child {
    border-top: none;
    padding-top: 0;
}

.pu-checklist__list li::before {
    content: counter(pu-prep, decimal-leading-zero);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    color: var(--pu-accent);
    padding-top: .2rem;
    font-variant-numeric: tabular-nums;
}

/* Types grid */
.pu-section--types {
    background: var(--pu-paper-deep);
}

.pu-types {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--pu-line);
    border: 1px solid var(--pu-line);
    border-radius: 1rem;
    overflow: hidden;
}

.pu-type {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: .45rem;
    padding: 1.5rem 1.35rem 1.35rem;
    background: var(--pu-paper);
    text-decoration: none;
    color: inherit;
    transition: background .25s var(--pu-ease), transform .25s var(--pu-ease);
    min-height: 11rem;
}

.pu-type:hover,
.pu-type:focus-visible {
    background: #fff;
    transform: translateY(-2px);
    text-decoration: none;
    outline: none;
    z-index: 1;
    box-shadow: 0 16px 40px -12px rgba(26, 24, 20, .15);
}

[data-theme="dark"] .pu-type:hover,
[data-theme="dark"] .pu-type:focus-visible {
    background: #1a1e28;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .4);
}

.pu-type__tag {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pu-accent);
}

.pu-type__name {
    font-family: var(--pu-display);
    font-size: 1.2rem;
    font-weight: 650;
    letter-spacing: -.02em;
    line-height: 1.15;
    color: var(--pu-text);
}

.pu-type__desc {
    font-size: .88rem;
    line-height: 1.55;
    color: var(--pu-muted);
}

.pu-type__link {
    font-size: .82rem;
    font-weight: 700;
    color: var(--pu-accent-deep);
    margin-top: .35rem;
}

.pu-type__link::after {
    content: " →";
    transition: transform .2s var(--pu-ease);
    display: inline-block;
}

.pu-type:hover .pu-type__link::after {
    transform: translateX(3px);
}

[data-theme="dark"] .pu-type__link {
    color: #e8a598;
}

/* FAQ */
.pu-faq-wrap {
    max-width: 44rem;
}

.pu-faq {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--pu-line);
}

.pu-faq__item {
    border-bottom: 1px solid var(--pu-line);
}

.pu-faq__item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 2rem 1.1rem 0;
    font-size: .98rem;
    font-weight: 650;
    line-height: 1.4;
    color: var(--pu-text);
    position: relative;
    user-select: none;
}

.pu-faq__item summary::-webkit-details-marker {
    display: none;
}

.pu-faq__item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--pu-accent);
    transition: transform .25s var(--pu-ease);
}

.pu-faq__item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.pu-faq__item p {
    margin: 0 0 1.15rem;
    padding: 0 0 1.15rem;
    font-size: .92rem;
    line-height: 1.65;
    color: var(--pu-muted);
}

/* Close CTA */
.pu-close {
    background:
        radial-gradient(80% 120% at 50% 100%, rgba(192, 57, 43, .18), transparent 60%),
        var(--pu-ink);
    color: #ece8e0;
    padding: clamp(3rem, 8vw, 5rem) 0 calc(clamp(3rem, 8vw, 4rem) + env(safe-area-inset-bottom, 0px));
}

.pu-close__inner {
    text-align: center;
}

.pu-close__title {
    font-family: var(--pu-display);
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 650;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin: 0 0 1rem;
}

.pu-close__lead {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(236, 232, 224, .72);
    max-width: 32rem;
    margin: 0 auto 1.75rem;
}

.pu-close__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
    .pu-js .pu-hero__main > *,
    .pu-js .pu-hero__aside {
        opacity: 0;
        transform: translateY(20px);
    }

    .pu-ready .pu-hero__main > * {
        opacity: 1;
        transform: none;
        transition: opacity .6s var(--pu-ease), transform .6s var(--pu-ease);
    }

    .pu-ready .pu-hero__main > *:nth-child(1) { transition-delay: .05s; }
    .pu-ready .pu-hero__main > *:nth-child(2) { transition-delay: .12s; }
    .pu-ready .pu-hero__main > *:nth-child(3) { transition-delay: .2s; }
    .pu-ready .pu-hero__main > *:nth-child(4) { transition-delay: .28s; }

    .pu-ready .pu-hero__aside {
        opacity: 1;
        transform: none;
        transition: opacity .65s var(--pu-ease) .32s, transform .65s var(--pu-ease) .32s;
    }

    .pu-js [data-pu-reveal] {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity .55s var(--pu-ease), transform .55s var(--pu-ease);
    }

    .pu-js [data-pu-reveal].is-in {
        opacity: 1;
        transform: none;
    }

    .pu-js [data-pu-reveal].is-in .pu-timeline__step {
        opacity: 0;
        transform: translateX(-10px);
        animation: puStepIn .45s var(--pu-ease) forwards;
    }

    .pu-js [data-pu-reveal].is-in .pu-timeline__step:nth-child(1) { animation-delay: .04s; }
    .pu-js [data-pu-reveal].is-in .pu-timeline__step:nth-child(2) { animation-delay: .1s; }
    .pu-js [data-pu-reveal].is-in .pu-timeline__step:nth-child(3) { animation-delay: .16s; }
    .pu-js [data-pu-reveal].is-in .pu-timeline__step:nth-child(4) { animation-delay: .22s; }

    @keyframes puStepIn {
        to { opacity: 1; transform: none; }
    }

    .pu-js [data-pu-reveal].is-in .pu-type {
        opacity: 0;
        transform: translateY(12px);
        animation: puStepIn .5s var(--pu-ease) forwards;
    }

    .pu-js [data-pu-reveal].is-in .pu-type:nth-child(1) { animation-delay: .04s; }
    .pu-js [data-pu-reveal].is-in .pu-type:nth-child(2) { animation-delay: .1s; }
    .pu-js [data-pu-reveal].is-in .pu-type:nth-child(3) { animation-delay: .16s; }
    .pu-js [data-pu-reveal].is-in .pu-type:nth-child(4) { animation-delay: .22s; }
}

@media (prefers-reduced-motion: reduce) {
    .pu-hero__dot { animation: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
    .pu-hero {
        min-height: auto;
        padding: clamp(1.75rem, 5vw, 2.5rem) 0 clamp(2.5rem, 6vw, 3rem);
    }

    .pu-hero__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        align-items: start;
    }

    .pu-hero__title {
        max-width: none;
        font-size: clamp(2rem, 9vw, 2.65rem);
    }

    .pu-hero__lead {
        font-size: .96rem;
        margin-bottom: 1.35rem;
    }

    .pu-hero__actions {
        flex-direction: column;
    }

    .pu-hero__actions .pu-btn {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .pu-signals__item {
        padding: .75rem 0;
    }

    .pu-signals__item strong {
        font-size: .88rem;
    }

    .pu-signals__item span {
        font-size: .8rem;
    }

    .pu-process {
        grid-template-columns: 1fr;
    }

    .pu-checklist {
        position: static;
    }

    .pu-types {
        grid-template-columns: 1fr;
    }

    .pu-type {
        min-height: auto;
    }

    .pu-sticky-call {
        display: block;
    }

    .pu-close {
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }

    .pu-section:last-of-type {
        padding-bottom: calc(clamp(2rem, 5vw, 3rem) + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 640px) {
    .pu-wrap {
        width: min(68rem, calc(100% - 1.25rem));
    }

    .pu-timeline__step {
        padding-left: 2.75rem;
        padding-bottom: 1.5rem;
    }

    .pu-timeline__step::before {
        font-size: 1.45rem;
    }

    .pu-section__title {
        font-size: 1.45rem;
    }

    .pu-close__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .pu-close__actions .pu-btn {
        align-items: center;
    }
}

@media (min-width: 961px) {
    .pu-sticky-call {
        display: none !important;
    }
}
