/* AUTO-GENERATED — php scripts/build-style-split.php — modul: landing */
/* ── Hero ── */

.hero {
    position: relative;
    overflow: hidden;
    background-color: #241610;
    background-image: linear-gradient(160deg, #2B180A 0%, #3E2407 100%);
    color: #fff;
    /* Layout je v .hero__inner — žádné velké paddingy v .hero samotném. */
    padding: 0;
    text-align: center;
}

/* Wrapper s dvěma "sloty": textový sloupec (.hero__content) a fotka (.hero__media).
   Na mobilu: column (fotka nahoře, text dole).
   Na desktopu: row (text vlevo, fotka vpravo). */
.hero__inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* Header překrývá hero, takže obsah/fotku posuneme dolů. */
    padding-top: 80px;
}

.hero__content {
    flex: 0 0 auto;
    padding: 32px 20px 48px;
    text-align: center;
    order: 2;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.hero__media {
    position: relative;
    flex: 0 0 auto;
    order: 1;
    width: 100%;
    /* Aspect odpovídá scan-animace-hero-clean.jpg (1280x950 ≈ 1.347).
       Tím má fotka v hero VŽDY svou nativní velikost bez ořezávání. */
    aspect-ratio: 1280 / 950;
    overflow: hidden;
    background-color: #1a1a1a;
}

@media (min-width: 768px) {
    .hero__inner {
        flex-direction: row;
        align-items: center;
        padding-top: 88px;
        padding-bottom: 32px;
        max-width: 1400px;
        margin: 0 auto;
    }
    .hero__content {
        order: 1;
        flex: 1 1 50%;
        max-width: 50%;
        margin: 0;
        padding: 32px 28px 32px 6%;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .hero__media {
        order: 2;
        /* flex-basis 50 % – pevná šířka sloupce; aspect-ratio určí výšku.
           Tím má fotka svou nativní proporci a je vidět celá vedle textu. */
        flex: 0 0 50%;
        max-width: 50%;
        /* Drobné zaoblení rohu, aby fotka v sloupci vypadala jako "karta". */
        border-radius: 12px;
        box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.55);
    }
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    pointer-events: none;
    background: #2a2a2a;
}

/* ── Hero animace (Ken Burns + částice + grade) ─────────────────────
   Žije uvnitř .hero__media, ne jako pozadí celého hera. Tím je fotka
   v separátním sloupci/řádku, text není „přes" fotku ale vedle/pod ní. */
.hero__animation {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background-color: #1a1a1a;
    border-radius: inherit;
}

.hero__animation .hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform-origin: 50% 50%;
    filter: contrast(1.06) saturate(1.10) brightness(0.94);
    animation: heroKenBurns 16s cubic-bezier(.45,.05,.55,.95) infinite;
    will-change: transform, filter;
}

@media (max-width: 767px) {
    .hero__animation .hero__bg {
        animation-duration: 11s;
    }
}

@keyframes heroKenBurns {
    /* Ken Burns — výrazný cinematický pohyb. Canvas hero fotky je 1.35:1
       (1280×950) s ~13% tmavou výplní kolem centrální fotky (1024×764),
       takže i při peaku 1.15 + posunech ±2% zůstává náhrobek, ruce s telefonem
       i lucerna se svíčkou celé viditelné. */
    0%   { transform: scale(1.00) translate(  0.0%,  0.0%); }
    25%  { transform: scale(1.06) translate(  1.5%, -0.8%); }
    50%  { transform: scale(1.15) translate( -1.8%,  0.4%); }
    75%  { transform: scale(1.08) translate( -1.0%,  1.0%); }
    100% { transform: scale(1.00) translate(  0.0%,  0.0%); }
}

.hero__animation .hero__grade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(255, 200, 140, 0.12), transparent 60%),
        linear-gradient(180deg, rgba(20, 10, 0, 0.10), rgba(0, 0, 0, 0.18));
    mix-blend-mode: overlay;
    animation: heroGradeBreath 11s ease-in-out infinite;
    will-change: opacity;
}

@keyframes heroGradeBreath {
    0%, 100% { opacity: 0.85; }
    50%      { opacity: 1.00; }
}

.hero__animation .hero__particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.hero__animation .hero__particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 245, 215, 1), rgba(255, 220, 160, 0) 70%);
    box-shadow: 0 0 8px rgba(255, 235, 200, 0.45);
    opacity: 0;
    animation: heroDrift 12s linear infinite;
    will-change: transform, opacity;
}

@keyframes heroDrift {
    0%   { transform: translate(0, 0) scale(0.8);          opacity: 0; }
    10%  {                                                 opacity: 1; }
    50%  { transform: translate(-40px, -160px) scale(1.3); opacity: 1; }
    90%  {                                                 opacity: 0.6; }
    100% { transform: translate(-100px, -340px) scale(0.7); opacity: 0; }
}

.hero__animation .hero__particles span:nth-child(1)  { left:  8%; top: 88%; animation-delay:  0.0s; animation-duration: 11s; }
.hero__animation .hero__particles span:nth-child(2)  { left: 18%; top: 72%; animation-delay:  1.5s; animation-duration: 13s; }
.hero__animation .hero__particles span:nth-child(3)  { left: 26%; top: 92%; animation-delay:  3.0s; animation-duration: 10s; }
.hero__animation .hero__particles span:nth-child(4)  { left: 34%; top: 65%; animation-delay:  4.5s; animation-duration: 14s; }
.hero__animation .hero__particles span:nth-child(5)  { left: 42%; top: 80%; animation-delay:  0.7s; animation-duration: 12s; }
.hero__animation .hero__particles span:nth-child(6)  { left: 50%; top: 90%; animation-delay:  2.2s; animation-duration: 13s; }
.hero__animation .hero__particles span:nth-child(7)  { left: 58%; top: 60%; animation-delay:  3.8s; animation-duration: 11s; }
.hero__animation .hero__particles span:nth-child(8)  { left: 64%; top: 75%; animation-delay:  1.8s; animation-duration: 15s; }
.hero__animation .hero__particles span:nth-child(9)  { left: 72%; top: 85%; animation-delay:  5.0s; animation-duration: 12s; }
.hero__animation .hero__particles span:nth-child(10) { left: 80%; top: 70%; animation-delay:  0.3s; animation-duration: 13s; }
.hero__animation .hero__particles span:nth-child(11) { left: 86%; top: 88%; animation-delay:  6.0s; animation-duration: 11s; }
.hero__animation .hero__particles span:nth-child(12) { left: 92%; top: 78%; animation-delay:  1.0s; animation-duration: 14s; }
.hero__animation .hero__particles span:nth-child(13) { left: 14%; top: 55%; animation-delay:  4.0s; animation-duration: 12s; }
.hero__animation .hero__particles span:nth-child(14) { left: 46%; top: 50%; animation-delay:  2.7s; animation-duration: 13s; }

@media (prefers-reduced-motion: reduce) {
    /* Při prefers-reduced-motion zastavíme jen Ken Burns + částice
       (přes ::animation v níže uvedených pravidlech), fotka zůstává. */
    .hero__animation .hero__bg {
        animation: none;
    }
    .hero__animation .hero__particles {
        display: none;
    }
}

/* Bez tmavého overlay (text už není přes fotku, ale ve vlastním sloupci). */
.hero::before {
    content: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: -0.025em;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero .subtitle {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 550px;
    margin: 0 auto 40px;
    font-style: italic;
    line-height: 1.8;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero .btn {
    margin-top: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Primární CTA na tmavém hero = světlá „pergamenová" pilulka (pattern light-on-dark),
   aby vynikla proti tmavému pozadí a zlatá zůstala jen dekorativní. */
.hero .btn-primary,
.hero .hero-cta-try-free {
    background: var(--bg);
    color: var(--text);
    border-color: var(--bg);
}
.hero .btn-primary:hover,
.hero .hero-cta-try-free:hover {
    background: #fff;
    color: var(--text);
    border-color: #fff;
    transform: translateY(-1px);
}

/* Dvojice hlavních CTA tlačítek v hero (Vytvořit / Procházet) */
.hero-cta-row {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    width: 100%;
    max-width: 560px;
}

.hero-cta-row .hero-cta-btn {
    flex: 1 1 240px;
    min-width: 220px;
    margin-top: 0;
    text-align: center;
}

@media (max-width: 640px) {
    .hero-cta-row {
        flex-direction: column;
        gap: 10px;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-cta-row .hero-cta-btn {
        /* Plná šířka jednoho tlačítka v řádku → texty "Vytvořit vzpomínku"
           a "Procházet vzpomínky" se nelámou na dva řádky, tlačítka jsou
           kompaktní a zaberou méně vertikálního místa. */
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        padding: 12px 18px;
        font-size: 0.98rem;
    }
}

/* ── Hero text styly v levém sloupci od 768px ────────────────────────
   Sloupec .hero__content má vlastní text-align: left; tady jen
   doladíme šířky titulku, podtitulku a chování tlačítkové řady. */
@media (min-width: 768px) {
    .hero__content h1 {
        max-width: 560px;
        margin-left: 0;
        margin-right: auto;
    }
    .hero__content .subtitle {
        margin: 0 0 32px 0;
        max-width: 480px;
    }
    .hero__content .hero-cta-row {
        justify-content: flex-start;
        margin-left: 0;
        margin-right: auto;
    }
    .hero__content .hero-tour-trigger {
        text-align: left;
    }
    .hero__content .hero-cta-try-free {
        margin-left: 0;
        margin-right: auto;
        display: inline-block;
    }
}

/* Outline varianta na tmavém hero pozadí musí být světlá, aby byla čitelná */
.hero .hero-cta-browse.btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
}

.hero .hero-cta-browse.btn-outline:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent);
    border-color: #fff;
}

/* „Vyzkoušet zdarma“ v hero jen na mobilu (v hlavičce je na desktopu) */
.hero-cta-try-free {
    display: none;
}

/* Do 1024px: horní zlaté CTA schovat (šířka >768px = stále „desktop“ hlavička, ale telefony na šířku) */
@media (max-width: 1024px) {
    .mega-nav {
        display: none !important;
    }

    .mega-nav__auth {
        display: none !important;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .main-nav {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: min(280px, 86vw);
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 8px;
        box-shadow: var(--shadow-lg);
        transition: transform var(--transition);
        z-index: 105;
        align-items: stretch;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .hero-cta-try-free {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-top: 4px;
        margin-bottom: 4px;
    }
}

/* Kotva průvodce (hero) – nesmí zajet pod sticky site-header */
#wizard {
    scroll-margin-top: 88px;
}
@media (max-width: 768px) {
    #wizard {
        scroll-margin-top: 68px;
    }
}

#parte,
#strom-zivota,
#funkce,
#pozdravy-z-nebe,
#posledni-vzpominky,
#jak-to-funguje,
#cesty,
#tarify-grid {
    scroll-margin-top: 80px;
}

.hero-sm {
    padding: 72px 0 48px;
}

.hero-sm h1 {
    font-size: 2.4rem;
}

/* ── About (O projektu) ── */

.about-content {
    max-width: 720px;
    margin: 0 auto;
}

.about-block {
    margin-bottom: 48px;
}

.about-block h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text);
}

.about-block p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 12px;
}

.about-list {
    list-style: none;
    padding: 0;
    margin-top: 12px;
}

.about-list li {
    position: relative;
    padding-left: 24px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 8px;
}

.about-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.about-cta {
    text-align: center;
    padding: 48px 0 16px;
    border-top: 1px solid var(--border);
    margin-top: 48px;
}

.about-cta p {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text);
    margin-bottom: 24px;
}

/* ── Section ── */

.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.home-painted {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.home-painted p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 auto 1rem;
    max-width: 40rem;
}
.home-painted .btn { margin-top: 8px; }
@media (max-width: 768px) {
    .home-painted-section { padding: 64px 0; }
    .home-painted p { font-size: 1rem; }
}

.section-dark {
    background: #d9cdbf;
}

.section-dark .section-title {
    color: var(--text);
}

.section-dark .section-subtitle {
    color: var(--text-muted);
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    width: 100%;
    max-width: min(600px, 100%);
    margin: 0 auto 48px;
    font-size: 1.05rem;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    box-sizing: border-box;
}

/* ── Jak to funguje – popis a poznámka k alternativní cestě ── */

.how-paths__desc {
    width: 100%;
    max-width: min(640px, 100%);
    margin: -24px auto 28px;
    padding: 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    box-sizing: border-box;
}

.how-paths__note {
    width: 100%;
    max-width: min(640px, 100%);
    margin: 28px auto 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    box-sizing: border-box;
}

/* ── Steps Showcase (Jak to funguje – auto-crossfade) ── */

.steps-showcase {
    max-width: min(1100px, 100%);
    width: 100%;
    margin: 0 auto;
    --steps-fade: 900ms;
    overflow: hidden;
    min-width: 0;
    box-sizing: border-box;
}

.steps-showcase__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--white);
    border: var(--frame-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--frame-ring), 0 14px 40px -22px rgba(0,0,0,0.25);
}

@supports not (aspect-ratio: 4 / 3) {
    .steps-showcase__stage::before {
        content: '';
        display: block;
        padding-top: 75%;
    }
}

.steps-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--steps-fade) ease, visibility 0s linear var(--steps-fade);
    pointer-events: none;
}

.steps-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--steps-fade) ease, visibility 0s linear 0s;
    pointer-events: auto;
    z-index: 1;
}

.steps-slide__photo {
    position: relative;
    flex: 1;
    min-height: 0;
    background: var(--bg-alt);
    overflow: hidden;
}

.steps-slide__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Vyšší obrázky ukotvit nahoru, aby se neořezával vršek fotky */
.steps-slide__photo--top img {
    object-position: center top;
}

.steps-slide__caption {
    flex-shrink: 0;
    background: var(--white);
    padding: 12px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    font-size: clamp(0.92rem, 1.5vw, 1.1rem);
    line-height: 1.35;
    color: var(--text);
    font-weight: 600;
}

.steps-showcase--wizard-10 .steps-slide__caption {
    padding: 10px 18px;
    font-size: clamp(0.88rem, 1.35vw, 1rem);
    gap: 6px;
}

.steps-slide__num {
    color: var(--accent);
    font-weight: 700;
    font-feature-settings: "tnum";
}

.steps-slide__title {
    font-weight: 600;
}

/* ── Dots ── */

.steps-showcase__dots {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.steps-dot {
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid var(--frame-border-color, var(--border));
    background: var(--bg);
    padding: 0;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), width var(--transition);
}

.steps-dot:hover {
    transform: scale(1.2);
    background: var(--bg-alt);
}

.steps-dot.is-active {
    background: var(--accent);
    border-color: var(--accent);
    width: 32px;
    border-radius: 6px;
}

.steps-dot:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* 10 kroků průvodce — menší tečky */
.steps-showcase--wizard-10 .steps-showcase__dots {
    gap: 8px;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    justify-items: center;
}
.steps-showcase--wizard-10 .steps-dot {
    width: 9px;
    height: 9px;
    margin: 0;
}
.steps-showcase--wizard-10 .steps-dot.is-active {
    width: 26px;
    height: 9px;
}

/* ── Screenshot mockup (krok Vzpomínky) ── */

.wiz-shot-mockup {
    position: relative;
    height: 100%;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    overflow: hidden;
    container-type: inline-size;
    container-name: wizShot;
}

.wiz-shot-mockup__bg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    user-select: none;
    -webkit-user-drag: none;
}

.wiz-shot-mockup .form-overlay--text {
    font-size: 1.05cqi;
    line-height: 1.4;
    padding: 1.8cqi 2.2cqi;
    overflow: hidden;
    align-items: flex-start;
}

@supports not (font-size: 1cqi) {
    .wiz-shot-mockup .form-overlay--text {
        font-size: 0.72rem;
        padding: 6px 8px;
    }
}

/* ── HTML mockup kroků průvodce (Fotky, Videa, AI, …) ── */

.steps-showcase--wizard-10 .steps-showcase__stage {
    aspect-ratio: 4 / 3;
    transition: height 450ms ease;
    overflow: hidden;
    max-width: 100%;
}

.steps-showcase--wizard-10 .steps-showcase__stage.is-compact {
    aspect-ratio: auto;
    height: auto;
}

.steps-showcase--wizard-10 .steps-slide {
    justify-content: flex-start;
}

.steps-showcase--wizard-10 .steps-slide__photo--mockup {
    flex: 1 1 auto;
    min-height: 0;
}

.steps-showcase--wizard-10 .steps-slide__photo--wizmock {
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: center;
    padding: 10px 14px 6px;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.steps-showcase--wizard-10 .steps-slide__photo:not(.steps-slide__photo--wizmock):not(.steps-slide__photo--mockup) {
    flex: 1 1 auto;
    min-height: 0;
}

.steps-slide__photo--wizmock {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--bg-alt);
    padding: 12px 16px 16px;
    overflow-y: auto;
}

.wiz-mock__layout {
    display: flex;
    gap: 14px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.wiz-mock__layout > .wiz-mock__card {
    flex: 1 1 58%;
    min-width: 0;
}

.steps-showcase--wizard-10 .wiz-mock {
    background: var(--bg);
    box-shadow: 0 14px 40px -22px rgba(0, 0, 0, 0.35);
    padding: 16px 18px 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    font-size: clamp(0.86rem, 1.6vw, 1rem);
}

@media (max-width: 900px) {
    #jak-to-funguje {
        max-width: 100%;
        min-width: 0;
        overflow-x: clip;
    }

    #jak-to-funguje .container {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-left: 16px;
        padding-right: 16px;
    }

    #jak-to-funguje .section-title,
    #jak-to-funguje .section-subtitle,
    #jak-to-funguje .how-paths__desc {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        overflow-wrap: anywhere;
        word-wrap: break-word;
    }

    .wiz-mock__layout {
        flex-direction: column;
    }

    .steps-showcase--wizard-10 .wiz-mock__qr.wiz-qr-reveal {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .wiz-mock__step-label {
        display: block;
        font-size: 0.52em;
        line-height: 1.15;
        white-space: normal;
        overflow: hidden;
        text-overflow: unset;
        max-height: 2.4em;
    }

    .wiz-mock__stepper--labeled {
        justify-content: space-between;
        align-items: flex-end;
        overflow-x: hidden;
        gap: 0;
        padding: 6px 4px 8px;
    }

    .wiz-mock__stepper--labeled::before {
        left: 8%;
        right: 8%;
        top: auto;
        bottom: 20px;
    }

    .wiz-mock__step-item {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        gap: 3px;
        flex-direction: column-reverse;
    }

    .wiz-mock__row {
        flex-direction: column;
        gap: 0;
    }

    .wiz-mock,
    .steps-showcase--wizard-10 .wiz-mock {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 12px 10px 14px;
    }

    .wiz-mock__card {
        padding: 16px 14px;
        min-width: 0;
    }
}

.wiz-mock {
    position: relative;
    width: min(96%, 620px);
    background: var(--bg);
    border-radius: 12px;
    padding: 14px 16px 16px;
    box-shadow: 0 14px 40px -22px rgba(0,0,0,0.35);
    font-size: clamp(0.82rem, 1.55vw, 0.96rem);
}

.wiz-mock__stepper--10 {
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.wiz-mock__stepper--labeled {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 12px;
    padding: 8px 10px 5px;
    background: var(--white);
    border-radius: 10px;
    border: var(--frame-border);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
    min-width: 0;
    max-width: 100%;
}

.wiz-mock__stepper--labeled::-webkit-scrollbar {
    display: none;
}

.wiz-mock__stepper--labeled::before {
    content: '';
    position: absolute;
    top: 11px;
    left: 6%;
    right: 6%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.wiz-mock__step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1 1 0;
    min-width: 0;
    max-width: 72px;
    position: relative;
    z-index: 1;
}

.wiz-mock__step-item .wiz-mock__step {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 0.68em;
    border-width: 2px;
    background: var(--white);
}

.wiz-mock__step-item.is-done .wiz-mock__step {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.wiz-mock__step-item.is-done .wiz-mock__step svg {
    display: block;
}

.wiz-mock__step-item.is-current .wiz-mock__step {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}

.wiz-mock__step-label {
    font-size: 0.62em;
    line-height: 1.2;
    text-align: center;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    min-height: 1.2em;
}

.wiz-mock__step-item.is-current .wiz-mock__step-label {
    color: var(--accent);
    font-weight: 600;
}

.wiz-mock__step-item.is-done .wiz-mock__step-label {
    color: var(--text);
}

.wiz-mock__textarea.form-overlay--text {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 86px;
    margin-bottom: 8px;
    font-size: 0.88rem;
    line-height: 1.45;
    padding: 10px 12px;
    opacity: 1;
    background: #fff;
}

.wiz-mock__textarea.form-overlay--text:not(.is-active)::before {
    content: 'Napište pár slov na památku…';
    color: #9ca3af;
    font-size: 0.88rem;
    line-height: 1.45;
}

.wiz-mock__textarea.form-overlay--text.is-active::before {
    display: none;
}

.wiz-mock .form-photo {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
}

.wiz-mock__ai-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.wiz-mock__ai-btn {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.78em;
    color: var(--text-muted);
    background: var(--white);
}

/* Zelená fajfka — jednotný styl bez kolečka */
.tutor-success {
    position: absolute;
    top: auto;
    bottom: 10%;
    left: auto;
    right: 7%;
    width: auto;
    height: auto;
    transform: scale(0.4);
    opacity: 0;
    z-index: 11;
    pointer-events: none;
    filter: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 700;
    color: #16a34a;
    line-height: 1;
}

.tutor-success::before {
    content: '\2713';
}

.tutor-success svg {
    display: none;
}

.tutor-success.is-shown {
    animation: tutorSuccessPlain 600ms cubic-bezier(.18, 1.2, .4, 1) forwards;
}

@keyframes tutorSuccessPlain {
    0%   { opacity: 0; transform: scale(0.4); }
    60%  { opacity: 1; transform: scale(1.15); }
    100% { opacity: 1; transform: scale(1); }
}

.form-mockup .tutor-success {
    bottom: 10%;
    right: 5%;
}

.wiz-mock .tutor-success {
    bottom: 24px;
    right: calc(35% + 6px);
    left: auto;
    z-index: 13;
    font-size: clamp(1.75rem, 3.6vw, 2.5rem);
    font-weight: 800;
    color: #15803d;
    filter: drop-shadow(0 1px 0 #fff) drop-shadow(0 0 6px rgba(255, 255, 255, 0.85));
}

.wiz-mock__step {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72em;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--white);
}

.wiz-mock__step.is-done {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.wiz-mock__step.is-current {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}

.wiz-mock__card {
    background: var(--white);
    border: var(--frame-border);
    border-radius: 10px;
    padding: 18px 20px;
}

.wiz-mock__row {
    display: flex;
    gap: 12px;
    margin-bottom: 4px;
}

.wiz-mock__col {
    flex: 1 1 0;
    min-width: 0;
}

.wiz-mock__input--date {
    margin-bottom: 10px;
}

.wiz-mock__head {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.wiz-mock__num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 0.9em;
}

.wiz-mock__head strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.12em;
    margin-bottom: 3px;
}

.wiz-mock__head p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.4;
    font-size: 0.88em;
}

.wiz-mock__opts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wiz-mock__opt {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: 999px;
    font-weight: 600;
    cursor: default;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.wiz-mock__opt.is-picked {
    background: rgba(var(--accent-rgb), 0.10);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}

.wiz-mock__drop {
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 22px 16px;
    text-align: center;
    color: var(--text-muted);
    line-height: 1.5;
    transition: border-color 180ms ease, background 180ms ease;
}

.wiz-mock__drop.is-active {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.05);
}

.wiz-mock__drop em {
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
}

.wiz-mock__label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.92em;
}

.wiz-mock__stepper {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.wiz-mock__stepper:not(.wiz-mock__stepper--labeled) {
    flex-wrap: wrap;
}

.wiz-mock__stepper.wiz-mock__stepper--labeled {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.wiz-mock__sub {
    display: none;
    margin-top: 14px;
}

.wiz-mock__sub.is-visible {
    display: block;
    animation: wizMockFadeIn 350ms ease forwards;
}

.wiz-mock__drop small {
    display: block;
    margin-top: 6px;
    font-size: 0.82em;
    color: var(--text-muted);
}

.wiz-mock__video-thumb {
    display: none;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 12px 14px;
    background: var(--bg);
    border: var(--frame-border);
    border-radius: 8px;
    font-size: 0.9em;
    color: var(--text-muted);
}

.wiz-mock__video-thumb.is-visible {
    display: flex;
    animation: wizMockFadeIn 350ms ease forwards;
}

.wiz-mock__video-play {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #4b5563, #1f2937);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    flex-shrink: 0;
}

.wiz-mock__note {
    display: none;
    margin-top: 8px;
    padding: 10px 12px;
    background: var(--bg);
    border: var(--frame-border);
    border-radius: 10px;
    line-height: 1.5;
}

.wiz-mock__note.is-visible {
    display: block;
    animation: wizMockFadeIn 350ms ease forwards;
}

.wiz-mock__note strong {
    display: block;
    font-size: 0.95em;
    margin-bottom: 4px;
    color: var(--text);
}

.wiz-mock__note p {
    margin: 0;
    font-size: 0.88em;
    color: var(--text-muted);
}

.wiz-mock__photos.form-overlay--photos {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    margin-top: 10px;
    opacity: 0;
}

.wiz-mock__input.form-overlay--input {
    position: relative;
    inset: auto;
    width: 100%;
    height: 42px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    padding: 0 14px;
    opacity: 1;
    border: 1px solid #ddd5c8;
    border-radius: 8px;
    background: #fff;
}

@keyframes wizMockFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wiz-mock__btn {
    display: inline-block;
    margin-top: 10px;
    padding: 9px 20px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95em;
    cursor: default;
    transition: transform 120ms ease, background var(--transition);
}

.wiz-mock__btn.is-pressed,
.wiz-mock [data-field="submit"].is-pressed {
    transform: scale(0.97);
    background: var(--accent-hover);
}

.wiz-mock .form-overlay--photos {
    justify-content: flex-start;
}

.wiz-mock .tutor-cursor {
    z-index: 12;
}

/* QR panel v mockupu průvodce (homepage) */
.steps-showcase--wizard-10 .wiz-mock__qr.wiz-qr-reveal {
    flex: 0 0 35%;
    max-width: min(270px, 100%);
    min-width: 0;
    margin: 0;
    padding: 14px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), rgba(196, 168, 124, 0.08));
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    align-self: stretch;
    box-sizing: border-box;
}

.steps-showcase--wizard-10 .wiz-qr-reveal__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    height: 100%;
    width: 100%;
    min-width: 0;
    justify-content: center;
}

.steps-showcase--wizard-10 .wiz-qr-reveal__text {
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.steps-showcase--wizard-10 .wiz-qr-reveal__visual {
    position: relative;
    width: 100%;
    max-width: 168px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 10px;
    background: #fff;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.steps-showcase--wizard-10 .wiz-qr-reveal__pattern {
    position: relative;
    width: 100%;
    height: 100%;
    clip-path: inset(0 0 var(--qr-cut, 100%) 0);
    transition: clip-path 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.steps-showcase--wizard-10 .wiz-qr-reveal__pattern svg {
    width: 100%;
    height: 100%;
    display: block;
}

.steps-showcase--wizard-10 .wiz-qr-reveal__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    width: 38%;
    aspect-ratio: 1 / 1;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.06);
    z-index: 3;
    pointer-events: none;
}

.steps-showcase--wizard-10 .wiz-qr-reveal__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.steps-showcase--wizard-10 .wiz-qr-reveal__title {
    display: block;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.steps-showcase--wizard-10 .wiz-qr-reveal__subtitle {
    display: block;
    font-size: 0.78em;
    line-height: 1.4;
    color: var(--text-muted);
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.steps-showcase--wizard-10 .wiz-qr-reveal[data-done="8"] .wiz-qr-reveal__title,
.steps-showcase--wizard-10 .wiz-qr-reveal[data-done="9"] .wiz-qr-reveal__title {
    color: var(--accent);
}

/* Skutečný skenovatelný QR ve wizardu (po draftu) — bez clip-path */
.wiz-qr-reveal__live {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}
.wiz-qr-reveal.is-live .wiz-qr-reveal__pattern,
.wiz-qr-reveal.is-live .wiz-qr-reveal__logo {
    display: none !important;
}
.wiz-qr-reveal.is-live .wiz-qr-reveal__live {
    display: block;
}
.wiz-qr-reveal.is-live .wiz-qr-reveal__title {
    color: var(--accent);
}
.wiz-qr-reveal__preview-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.wiz-qr-reveal__preview-link[hidden] {
    display: none !important;
}

/* ── Krok 10: náhled hotové vzpomínky (HTML mock) ── */

.steps-slide__photo--preview-mock {
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #1a1410;
    overflow: hidden;
}

.mem-preview-mock {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #f5f0ea;
    font-size: clamp(0.62rem, 1.1vw, 0.82rem);
    line-height: 1.45;
}

.mem-preview-mock__banner {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    background: linear-gradient(135deg, #C19A6B, #A87F4F);
    color: #fff;
    font-weight: 600;
    font-size: 0.9em;
    letter-spacing: 0.02em;
}

.mem-preview-mock__cinema {
    position: relative;
    flex-shrink: 0;
    height: 42%;
    min-height: 96px;
    max-height: 168px;
    overflow: hidden;
    background: #1b1310;
}

.mem-preview-mock__track {
    display: flex;
    align-items: stretch;
    height: 100%;
    width: max-content;
    will-change: transform;
    animation: memPreviewCinema 22s linear infinite;
    animation-play-state: paused;
}

.steps-slide.is-active .mem-preview-mock__track {
    animation-play-state: running;
}

.mem-preview-mock__group {
    display: flex;
    align-items: stretch;
    height: 100%;
    flex: 0 0 auto;
}

.mem-preview-mock__cell {
    position: relative;
    flex: 0 0 auto;
    height: 100%;
    aspect-ratio: var(--cell-ratio, 4 / 3);
    margin-right: 6px;
    overflow: hidden;
    background: #2B180A;
}

.mem-preview-mock__item,
.mem-preview-mock__cell img,
.mem-preview-mock__cell video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mem-preview-mock__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.42);
    color: #fff;
    font-size: 11px;
    padding-left: 2px;
    pointer-events: none;
    backdrop-filter: blur(2px);
}

@keyframes memPreviewCinema {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

.mem-preview-mock__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(26, 20, 16, 0.92) 100%);
    pointer-events: none;
}

.mem-preview-mock__body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 16px 14px;
    overflow: hidden;
}

.mem-preview-mock__name {
    margin: 0;
    font-family: var(--font-serif, Georgia, serif);
    font-size: 1.65em;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
}

.mem-preview-mock__species {
    margin: 2px 0 0;
    font-size: 0.88em;
    color: rgba(245, 240, 234, 0.65);
    letter-spacing: 0.06em;
    text-transform: lowercase;
}

.mem-preview-mock__dates {
    margin: 6px 0 0;
    font-size: 0.92em;
    color: rgba(245, 240, 234, 0.82);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.mem-preview-mock__age {
    margin: 4px 0 0;
    font-size: 0.85em;
    color: rgba(245, 240, 234, 0.55);
}

.mem-preview-mock__message {
    margin: 10px 0 0;
    max-width: 34em;
    font-size: 0.95em;
    color: rgba(245, 240, 234, 0.88);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mem-preview-mock__cta {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.mem-preview-mock__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent, #8b6f47);
    color: #fff;
    font-size: 0.82em;
    font-weight: 600;
    white-space: nowrap;
}

.mem-preview-mock__btn--ghost {
    background: transparent;
    border: 1px solid rgba(245, 240, 234, 0.35);
    color: rgba(245, 240, 234, 0.9);
}

/* ── QR materiály — rotující videa + popisky ── */

.steps-slide__photo--qr-materials {
    display: flex;
    align-items: stretch;
    justify-content: center;
    margin: 0;
    border-radius: 0;
    background: #1a1008;
    box-shadow: none;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.steps-slide__photo--qr-materials-pet {
    padding: 0;
}

.steps-slide__photo--qr-materials-pet .qr-materials-showcase--pet .qr-materials-showcase__hero--showcase {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.qr-showcase--in-carousel {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: clamp(18px, 3.2vw, 32px) clamp(16px, 2.8vw, 28px) clamp(12px, 2vw, 18px);
    background: #1a1008;
}

.qr-showcase--in-carousel .qr-showcase__head {
    flex-shrink: 0;
    max-width: 100%;
    margin: 0 auto clamp(10px, 1.8vw, 18px);
}

.qr-showcase--in-carousel .qr-showcase__badge {
    font-size: clamp(0.58rem, 1.1vw, 0.72rem);
    padding: 4px 12px;
    margin-bottom: clamp(8px, 1.4vw, 14px);
}

.qr-showcase--in-carousel .qr-showcase__title {
    font-size: clamp(1.15rem, 2.5vw, 1.8rem);
    margin-bottom: clamp(6px, 1.2vw, 12px);
}

.qr-showcase--in-carousel .qr-showcase__text {
    font-size: clamp(0.74rem, 1.45vw, 1.05rem);
    line-height: 1.6;
}

.qr-showcase--in-carousel .qr-materials-showcase {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.qr-showcase--in-carousel .qr-materials-showcase--html {
    overflow: auto;
}

.qr-showcase--in-carousel .qr-materials-showcase--html .qr-materials-showcase__grid {
    flex: 1 1 auto;
    flex-shrink: 0;
    width: 100%;
    min-height: 140px;
    align-content: center;
}

.qr-showcase--in-carousel .qr-materials-showcase__hero-wrap {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.qr-showcase--in-carousel .qr-materials-showcase__hero--showcase {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center bottom;
    display: block;
}

.qr-rotate-videos {
    width: 100%;
}

.qr-rotate-videos__motion {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.qr-rotate-videos__row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qr-rotate-videos__video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    vertical-align: middle;
}

.qr-rotate-videos__labels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    text-align: center;
}

.qr-rotate-videos__label {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.qr-rotate-videos--carousel .qr-rotate-videos__motion {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.qr-rotate-videos__static {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.qr-rotate-videos__static img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.qr-materials-showcase__hero-wrap {
    overflow: hidden;
    line-height: 0;
}

.qr-materials-showcase__hero {
    display: block;
    width: 100%;
    height: auto;
}

.qr-showcase--static-image {
    padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 40px) clamp(28px, 4vw, 36px);
    background: #1a1008;
    box-shadow: var(--frame-ring), 0 24px 60px rgba(30, 20, 8, 0.35);
    max-width: 920px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 20px;
    overflow: visible;
    box-sizing: border-box;
}

.qr-showcase--static-image .qr-materials-showcase__hero-wrap {
    overflow: hidden;
    line-height: 0;
}

.qr-showcase--static-image .qr-materials-showcase--html .qr-materials-showcase__grid {
    margin: 0 auto;
    max-width: 820px;
}

.qr-showcase--static-image .qr-materials-showcase__hero--showcase {
    border-radius: 0;
}

.qr-showcase--static-image .qr-showcase__cta {
    margin-top: 24px;
    padding: 0 32px;
}

@media (prefers-reduced-motion: reduce) {
    .qr-rotate-videos__motion {
        display: none;
    }
    .qr-rotate-videos__static {
        display: flex;
    }
}

/* Statická mřížka 8 destiček (záloha / admin) */
.qr-materials-showcase {
    width: 100%;
}

.qr-materials-showcase__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 12px;
}

.qr-materials-showcase__tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.qr-materials-showcase__media {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    line-height: 0;
}

.qr-materials-showcase__media img {
    display: block;
    width: 100%;
    height: auto;
}

.qr-materials-showcase__name {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
}

@media (max-width: 720px) {
    .wiz-mock__layout {
        flex-direction: column;
    }

    .wiz-mock__stepper.wiz-mock__stepper--labeled .wiz-mock__step-item {
        min-width: 0;
        max-width: none;
        flex: 1 1 0;
    }

    .wiz-mock__stepper--labeled .wiz-mock__step-label {
        font-size: 0.55em;
    }

    .steps-showcase--wizard-10 .steps-showcase__dots {
        grid-template-columns: repeat(5, 1fr);
        max-width: 220px;
        gap: 14px 4px;
    }

    .steps-showcase--wizard-10 .steps-dot.is-active {
        width: 22px;
    }

    .qr-rotate-videos--carousel .qr-rotate-videos__motion {
        grid-template-columns: 1fr;
    }

    .qr-materials-showcase__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 10px;
    }

    .steps-slide__photo--qr-materials {
        margin: 0;
        border-radius: 0;
    }

    /* Stejně jako u zvířat: na mobilu jen mřížka QR, bez textového headeru */
    .qr-showcase--in-carousel {
        padding: 0;
    }

    .qr-showcase--in-carousel .qr-showcase__head {
        display: none;
    }

    .qr-showcase--in-carousel .qr-materials-showcase__hero-wrap {
        align-items: stretch;
    }

    .qr-showcase--in-carousel .qr-materials-showcase__hero--showcase {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        object-position: center top;
    }

    .steps-showcase--wizard-10 .wiz-mock__qr.wiz-qr-reveal {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .steps-showcase--wizard-10 .wiz-qr-reveal__inner {
        flex-direction: row;
        text-align: left;
        gap: 10px;
        min-width: 0;
        max-width: 100%;
    }

    .steps-showcase--wizard-10 .wiz-qr-reveal__visual {
        width: 76px;
        max-width: 76px;
        flex-shrink: 0;
    }

    .wiz-mock .tutor-success {
        right: 10px;
        bottom: 10px;
    }
}

/* ── Tutorial overlay (kurzor, typing, click, scan) ── */

.tutor-cursor {
    position: absolute;
    top: 110%;
    left: 110%;
    width: 28px;
    height: 28px;
    pointer-events: none;
    z-index: 10;
    transform: translate(-4px, -4px);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
    transition: top 600ms cubic-bezier(.25,1,.4,1),
                left 600ms cubic-bezier(.25,1,.4,1),
                transform 150ms ease;
    opacity: 0;
}
.tutor-cursor.is-visible {
    opacity: 1;
}
.tutor-cursor.is-clicking {
    transform: translate(-4px, -4px) scale(0.85);
}
.tutor-cursor::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(76, 117, 224, 0.35);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
}
.tutor-cursor.is-clicking::after {
    animation: tutorRipple 600ms ease-out;
}
@keyframes tutorRipple {
    0%   { width: 0;    height: 0;    opacity: 0.7; }
    100% { width: 56px; height: 56px; opacity: 0; }
}

.tutor-click-zone {
    position: absolute;
    pointer-events: none;
    border-radius: 14px;
    transition: box-shadow 220ms ease, background 220ms ease;
    z-index: 9;
}
.tutor-click-zone.is-hover {
    box-shadow: 0 0 0 3px rgba(76, 117, 224, 0.45),
                0 10px 30px -10px rgba(76, 117, 224, 0.55);
    background: rgba(255,255,255,0.06);
}

/* ── Form mockup (slide 2) ── */

.steps-slide__photo--mockup {
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
}

.form-mockup {
    position: relative;
    height: 100%;
    aspect-ratio: 2187 / 1491;
    max-width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 14px 40px -22px rgba(0,0,0,0.35);
    container-type: inline-size;
    container-name: formMockup;
}

.form-mockup__bg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    user-select: none;
    -webkit-user-drag: none;
}

.form-overlay {
    position: absolute;
    pointer-events: none;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    color: var(--text);
    font-family: inherit;
    overflow: hidden;
    z-index: 5;
}

.form-overlay--input,
.form-overlay--text {
    background: #fff;
    border: 1px solid #ddd5c8;
    border-radius: 8px;
    padding: 0 1.5cqi;
    font-size: 1.5cqi;
    color: #1f2937;
    opacity: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.form-overlay--text {
    align-items: flex-start;
    padding: 2.4cqi 3.5cqi;
    line-height: 1.45;
    white-space: pre-wrap;
    font-size: 3.4cqi;
}

@supports not (font-size: 1cqi) {
    .form-overlay--input,
    .form-overlay--text {
        font-size: 0.85rem;
        padding: 0 12px;
    }
    .form-overlay--text {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}

.form-overlay--input.is-active,
.form-overlay--text.is-active {
    opacity: 1;
}

.form-overlay__caret {
    display: inline-block;
    width: 1px;
    height: 1.05em;
    background: currentColor;
    margin-left: 1px;
    vertical-align: text-bottom;
    animation: tutorBlink 1s steps(2) infinite;
}
@keyframes tutorBlink {
    50% { opacity: 0; }
}

/* Bílá pilulka překrývající zapečený text v podkladovém screenshotu
   (např. Samec/Samice → Pes/Fena po napsání druhu zvířete) */
.form-overlay--pill {
    background: #fff;
    border: 1px solid #ddd5c8;
    border-radius: 999px;
    justify-content: center;
    font-size: 1.5cqi;
    font-weight: 600;
    color: #1f2937;
    opacity: 0;
    transition: opacity 150ms ease;
}
.form-overlay--pill.is-active {
    opacity: 1;
}
@supports not (font-size: 1cqi) {
    .form-overlay--pill { font-size: 0.85rem; }
}

.form-overlay--btn-pick {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 999px;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.form-mockup .form-overlay--input,
.form-mockup .form-overlay--text {
    border: 1px solid transparent;
    box-shadow: none;
}

.form-mockup .form-overlay--input.is-active,
.form-mockup .form-overlay--text.is-active {
    border-color: transparent;
    box-shadow: none;
}

.form-mockup .form-overlay--btn-pick {
    border: 2px solid transparent;
}

.form-mockup .form-overlay--btn-pick.is-picked {
    background: rgba(90, 62, 30, 0.08);
    border-color: rgba(90, 62, 30, 0.42);
    box-shadow: none;
}

.form-mockup .form-overlay--btn-go.is-pressed {
    background: rgba(0, 0, 0, 0.06);
    transform: scale(0.98);
    box-shadow: none;
}

.form-overlay--btn-pick.is-picked {
    background: rgba(90, 62, 30, 0.10);
    border-color: rgba(90, 62, 30, 0.55);
    box-shadow: 0 0 0 3px rgba(90, 62, 30, 0.16);
}

.form-overlay--btn-go {
    background: transparent;
    border-radius: 10px;
    transition: background 180ms ease, transform 120ms ease, box-shadow 180ms ease;
}
.form-overlay--btn-go.is-pressed {
    background: rgba(0,0,0,0.08);
    transform: scale(0.98);
    box-shadow: 0 0 0 3px rgba(90, 62, 30, 0.30) inset;
}

/* ── Photo thumbnails (po kliku na "Přidat fotky") ── */

.form-overlay--photos {
    display: flex;
    align-items: center;
    gap: 1.4cqi;
    padding: 0 1.5cqi;
    pointer-events: none;
    background: #fff;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 200ms ease;
}

.form-overlay--photos.is-active {
    opacity: 1;
}

.form-photo {
    display: block;
    width: 7.5cqi;
    height: 7.5cqi;
    min-width: 30px;
    min-height: 30px;
    flex-shrink: 0;
    border-radius: 5px;
    background-color: #e5e7eb;
    background-size: cover;
    background-position: center top;
    box-shadow: 0 3px 8px rgba(0,0,0,0.22), inset 0 0 0 1.5px rgba(255,255,255,0.6);
    opacity: 0;
    transform: translateY(10px) scale(0.7);
    transition: opacity 280ms ease, transform 320ms cubic-bezier(.18,1.5,.4,1);
    position: relative;
    overflow: hidden;
}

.form-overlay--photos.is-active .form-photo {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.form-overlay--photos.is-active .form-photo:nth-child(1) { transition-delay: 80ms; }
.form-overlay--photos.is-active .form-photo:nth-child(2) { transition-delay: 280ms; }
.form-overlay--photos.is-active .form-photo:nth-child(3) { transition-delay: 480ms; }


/* ── E-mail mockup (cesta „nejdřív tarif" – přihlašovací odkaz) ── */

.steps-slide__photo--email {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    padding: 14px;
}

.email-mockup {
    position: relative;
    width: min(92%, 560px);
    background: var(--white);
    border: var(--frame-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 14px 40px -22px rgba(0,0,0,0.35);
    font-size: clamp(0.78rem, 1.7vw, 1rem);
}

.email-mockup__toolbar {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.email-mockup__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.email-mockup__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px 0;
}

.email-mockup__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-serif);
    flex-shrink: 0;
}

.email-mockup__from {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    min-width: 0;
}

.email-mockup__from span {
    color: var(--text-muted);
    font-size: 0.85em;
}

.email-mockup__time {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.85em;
}

.email-mockup__subject {
    padding: 12px 20px 0;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.3em;
    color: var(--text);
}

.email-mockup__body {
    padding: 6px 20px 20px;
}

.email-mockup__body p {
    margin: 8px 0;
    font-size: 0.95em;
    line-height: 1.55;
    color: var(--text);
}

.email-mockup__btn {
    display: inline-block;
    margin: 10px 0 4px;
    padding: 10px 28px;
    background: var(--accent);
    color: var(--white);
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 6px 18px -8px rgba(var(--accent-rgb), 0.6);
    transition: transform 150ms ease, background var(--transition);
}

.email-mockup__btn.is-pressed {
    transform: scale(0.94);
    background: var(--accent-hover);
}

.email-mockup__note {
    color: var(--text-muted) !important;
    font-size: 0.82em !important;
}

/* ── QR scan overlay (slide 3) ── */

.tutor-scan {
    position: absolute;
    pointer-events: none;
    z-index: 5;
    border-radius: 4px;
    overflow: hidden;
}

.tutor-scan__beam {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 12%;
    background: linear-gradient(180deg,
        rgba(34, 197, 94, 0) 0%,
        rgba(34, 197, 94, 0.55) 50%,
        rgba(34, 197, 94, 0) 100%);
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.55);
    opacity: 0;
}
.tutor-scan.is-running .tutor-scan__beam {
    animation: tutorScanBeam 2.2s ease-in-out infinite;
}
@keyframes tutorScanBeam {
    0%   { top: 0%;   opacity: 0; }
    10%  { opacity: 0.9; }
    50%  { top: 88%; opacity: 0.9; }
    60%  { opacity: 0; }
    100% { top: 88%; opacity: 0; }
}

.tutor-scan__check {
    position: absolute;
    top: 50%; left: 50%;
    width: 48%;
    height: 48%;
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0;
    filter: drop-shadow(0 4px 12px rgba(22,163,74,0.4));
}
.tutor-scan.is-success .tutor-scan__check {
    animation: tutorScanCheckIn 500ms cubic-bezier(.18, 1.2, .4, 1) forwards;
}

@keyframes tutorScanCheckIn {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
    60%  { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .steps-slide,
    .steps-slide.is-active {
        transition: none;
    }
    .tutor-cursor,
    .tutor-success,
    .tutor-scan__beam,
    .tutor-scan__check {
        transition: none !important;
        animation: none !important;
    }
    .tutor-cursor { opacity: 0 !important; }
    .mem-preview-mock__track { animation: none !important; }
    /* statický fallback - ukázat všechny vyplněné fields */
    .form-overlay--input,
    .form-overlay--text { opacity: 1 !important; }
    .form-overlay--btn-pick { background: rgba(90, 62, 30, 0.10); border-color: rgba(90, 62, 30, 0.55); }
    .form-overlay__caret { display: none !important; }
    .form-photo {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ── QR materials page ── */

.qr-materialy-page {
    padding: 60px 0;
}

.qr-materialy-page__title {
    text-align: center;
    margin-bottom: 8px;
}

.qr-materialy-page__desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.qr-materialy-page__videos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.qr-materialy-page__videos video {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.qr-materialy-page__photos {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.qr-materialy-page__photos img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.qr-materials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.qr-material-card {
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg);
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.qr-material-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.qr-material-card img {
    width: 100%;
    height: auto;
    display: block;
}


/* ── Parte promo sekce (Parte zdarma ke každé vzpomínce) ── */
/* ── Parte zdarma – produktová dlaždice (homepage) ──
   Stejný grafický systém jako .heaven-showcase (noční scéna se
   svatozáří, paprskem, hvězdami a plovoucím motivem), přizpůsobený
   tématu parte: karta s páskou, křížkem, fotorámečkem a QR kódem,
   po stranách odlétá „tisk" a „email". */

.parte-showcase {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    align-items: center;
    gap: 44px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px 52px;
    border-radius: 24px;
    background: radial-gradient(circle at 82% 8%, rgba(246, 226, 172, 0.16), transparent 42%),
                linear-gradient(135deg, #1a1330 0%, #2c1e3d 44%, #3e2407 100%);
    box-shadow: var(--frame-ring), 0 24px 60px rgba(20, 14, 34, 0.35);
}

.parte-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.5;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1.6px),
        radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1.6px);
    background-size: 140px 140px, 90px 90px;
    background-position: 0 0, 45px 60px;
}

.parte-showcase__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gold);
    color: #241a3a;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.parte-showcase__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.parte-showcase__text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 8px;
}

.parte-showcase__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 22px 0 30px;
}

.parte-showcase__list li {
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 14px;
    row-gap: 3px;
}

.parte-showcase__list-icon {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f3dfae;
}

.parte-showcase__list-icon .icon {
    width: 18px;
    height: 18px;
}

.parte-showcase__list strong {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    color: #fff;
    font-size: 0.98rem;
}

.parte-showcase__list-desc {
    grid-column: 2;
    grid-row: 2;
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ── Noční scéna: hvězdy, měsíc, létavice a plovoucí parte karta ── */

.parte-showcase__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.parte-scene {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
}

.parte-scene__sky {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.parte-scene__halo {
    transform-box: fill-box;
    transform-origin: center;
    animation: parteHaloPulse 6s ease-in-out infinite;
}

.parte-scene__beam {
    transform-box: fill-box;
    transform-origin: center;
    animation: parteBeamPulse 6s ease-in-out infinite;
}

@keyframes parteHaloPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.08); }
}

@keyframes parteBeamPulse {
    0%, 100% { opacity: 0.45; }
    50%      { opacity: 0.85; }
}

.parte-scene__moon {
    filter: drop-shadow(0 0 10px rgba(246, 226, 172, 0.55));
}

.parte-scene__star {
    fill: #fbf3e2;
    transform-box: fill-box;
    transform-origin: center;
    animation: parteTwinkle 3.2s ease-in-out infinite;
    animation-delay: var(--d, 0s);
}

.parte-scene__sparkle {
    fill: #f6e2ac;
    transform-box: fill-box;
    transform-origin: center;
    animation: parteSparkle 3.6s ease-in-out infinite;
    animation-delay: var(--d, 0s);
}

@keyframes parteTwinkle {
    0%, 100% { opacity: 0.35; transform: scale(0.8); }
    50%      { opacity: 1;    transform: scale(1.2); }
}

@keyframes parteSparkle {
    0%, 100% { opacity: 0.25; transform: scale(0.7) rotate(0deg); }
    50%      { opacity: 1;    transform: scale(1.15) rotate(25deg); }
}

.parte-scene__comet {
    opacity: 0;
    animation: parteComet 9s ease-in infinite;
}

@keyframes parteComet {
    0%   { opacity: 0; transform: translate(0, 0); }
    4%   { opacity: 1; }
    16%  { opacity: 0; transform: translate(230px, 210px); }
    100% { opacity: 0; transform: translate(230px, 210px); }
}

.parte-scene__card {
    transform-box: fill-box;
    transform-origin: center;
    animation: parteCardFloat 6.5s ease-in-out infinite;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.28));
}

@keyframes parteCardFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}

.parte-scene__qr {
    transform-box: fill-box;
    transform-origin: center;
    animation: parteQrPulse 3s ease-in-out infinite;
}

@keyframes parteQrPulse {
    0%, 100% { opacity: 0.85; }
    50%      { opacity: 1; filter: drop-shadow(0 0 6px rgba(246, 226, 172, 0.6)); }
}

.parte-scene__accessory {
    transform-box: fill-box;
    transform-origin: center;
    animation: parteAccessoryFloat 5s ease-in-out infinite;
}

.parte-scene__accessory--print { animation-delay: 0s; }
.parte-scene__accessory--mail  { animation-delay: 0.6s; }

@keyframes parteAccessoryFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-6px) rotate(-3deg); }
}

.parte-scene__link {
    animation: parteLinkFade 5s ease-in-out infinite;
}

@keyframes parteLinkFade {
    0%, 100% { opacity: 0.25; }
    50%      { opacity: 0.6; }
}

.parte-scene__caption {
    font-style: italic;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .parte-scene__halo,
    .parte-scene__beam,
    .parte-scene__star,
    .parte-scene__sparkle,
    .parte-scene__comet,
    .parte-scene__card,
    .parte-scene__qr,
    .parte-scene__accessory,
    .parte-scene__link {
        animation: none;
    }
}

@media (max-width: 860px) {
    .parte-showcase {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 28px;
        gap: 28px;
    }

    .parte-showcase__list {
        text-align: left;
    }

    .parte-scene {
        max-width: 240px;
    }
}

/* CTA pod mapou */
.section-map-cta .btn { margin-top: 16px; }

/* ── Instagram-style photo ring ── */

.photo-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #833AB4, #C13584, #E1306C, #F56040, #F77737, #FCAF45);
    border-radius: 50%;
    padding: 5px;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(131, 58, 180, 0.3), 0 6px 20px rgba(131, 58, 180, 0.35), 0 2px 8px rgba(0,0,0,0.15);
}

.photo-ring img {
    display: block;
    border-radius: 50%;
    border: 4px solid #241610;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}

.photo-ring--sm  { width: 100px; height: 100px; padding: 4px; }
.photo-ring--sm img  { width:  92px; height:  92px; }

.photo-ring--md  { width: 160px; height: 160px; padding: 4px; }
.photo-ring--md img  { width: 152px; height: 152px; }

.photo-ring--lg  { width: 220px; height: 220px; padding: 5px; }
.photo-ring--lg img  { width: 210px; height: 210px; }

.photo-ring--placeholder {
    background: linear-gradient(135deg, #3a2a1c 0%, #5c4530 100%);
}

.photo-ring--placeholder span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2rem;
    opacity: 0.4;
    background: #2B180A;
    border-radius: 50%;
    border: 4px solid #241610;
    color: rgba(255,255,255,0.5);
}

/* ── Latest Memories (Homepage) ── */

.latest-memories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.latest-memory-card {
    background: #2e2e3a;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    transition: transform var(--transition), box-shadow var(--transition), color var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px 24px;
}

.latest-memory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    color: #fff;
}

.latest-memory-card .photo-ring {
    margin-bottom: 16px;
    transition: transform 0.4s ease;
}

.latest-memory-card:hover .photo-ring {
    transform: scale(1.06);
}

.latest-memory-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.latest-memory-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
    color: #fff;
}

.latest-memory-dates {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.latest-memory-excerpt {
    font-family: var(--font-serif);
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    font-style: italic;
    flex: 1;
}

/* ── Features grid (homepage) ── */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

a.feature-card,
.feature-card {
    display: block;
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--radius);
    border: var(--frame-border);
    text-align: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-card);
}

a.feature-card:hover,
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--frame-ring), 0 8px 32px rgba(0, 0, 0, 0.08);
}

.feature-card__icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Pozdravy z nebe – samostatná „produktová" dlaždice (homepage) ──
   Oddělená od okolních sekcí jako vlastní boxovaná karta (stejný princip
   jako .family-tree-showcase), s vlastní noční/hvězdnou grafikou místo
   dřívější jednoduché obálky. */

.heaven-showcase {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    align-items: center;
    gap: 44px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px 52px;
    border-radius: 24px;
    background: radial-gradient(circle at 82% 8%, rgba(246, 226, 172, 0.16), transparent 42%),
                linear-gradient(135deg, #1a1330 0%, #2c1e3d 44%, #3e2407 100%);
    box-shadow: var(--frame-ring), 0 24px 60px rgba(20, 14, 34, 0.35);
}

.heaven-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.5;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1.6px),
        radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1.6px);
    background-size: 140px 140px, 90px 90px;
    background-position: 0 0, 45px 60px;
}

.heaven-showcase__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gold);
    color: #241a3a;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.heaven-showcase__badge .icon {
    width: 14px;
    height: 14px;
}

.heaven-showcase__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.heaven-showcase__text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 20px;
}

.heaven-showcase__how {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    margin: -8px 0 20px;
}

.heaven-showcase__example {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    color: #f3dfae;
    padding: 16px 20px;
    border-left: 3px solid var(--gold);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 26px;
}

/* ── Noční scéna: hvězdy, měsíc, létavice a okřídlený vzkaz ── */

.heaven-showcase__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.heaven-scene {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
}

.heaven-scene__sky {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.heaven-scene__halo {
    transform-box: fill-box;
    transform-origin: center;
    animation: heavenHaloPulse 6s ease-in-out infinite;
}

.heaven-scene__beam {
    transform-box: fill-box;
    transform-origin: center;
    animation: heavenBeamPulse 6s ease-in-out infinite;
}

@keyframes heavenHaloPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.08); }
}

@keyframes heavenBeamPulse {
    0%, 100% { opacity: 0.45; }
    50%      { opacity: 0.85; }
}

.heaven-scene__moon {
    filter: drop-shadow(0 0 10px rgba(246, 226, 172, 0.55));
}

.heaven-scene__star {
    fill: #fbf3e2;
    transform-box: fill-box;
    transform-origin: center;
    animation: heavenTwinkle 3.2s ease-in-out infinite;
    animation-delay: var(--d, 0s);
}

.heaven-scene__sparkle {
    fill: #f6e2ac;
    transform-box: fill-box;
    transform-origin: center;
    animation: heavenSparkle 3.6s ease-in-out infinite;
    animation-delay: var(--d, 0s);
}

@keyframes heavenTwinkle {
    0%, 100% { opacity: 0.35; transform: scale(0.8); }
    50%      { opacity: 1;    transform: scale(1.2); }
}

@keyframes heavenSparkle {
    0%, 100% { opacity: 0.25; transform: scale(0.7) rotate(0deg); }
    50%      { opacity: 1;    transform: scale(1.15) rotate(25deg); }
}

.heaven-scene__comet {
    opacity: 0;
    animation: heavenComet 9s ease-in infinite;
}

@keyframes heavenComet {
    0%   { opacity: 0; transform: translate(0, 0); }
    4%   { opacity: 1; }
    16%  { opacity: 0; transform: translate(230px, 210px); }
    100% { opacity: 0; transform: translate(230px, 210px); }
}

.heaven-scene__letter {
    transform-box: fill-box;
    transform-origin: center;
    animation: heavenLetterFloat 6.5s ease-in-out infinite;
}

@keyframes heavenLetterFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}

.heaven-scene__wing {
    transform-box: fill-box;
    animation: heavenWingFlap 3.4s ease-in-out infinite;
}

.heaven-scene__wing--left  { transform-origin: 92% 96%; }
.heaven-scene__wing--right { transform-origin: 8% 96%; animation-delay: 0.15s; }

@keyframes heavenWingFlap {
    0%, 100% { transform: rotate(0deg); }
    50%      { transform: rotate(-4deg); }
}

.heaven-scene__envelope {
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.28));
}

.heaven-scene__caption {
    font-style: italic;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .heaven-scene__halo,
    .heaven-scene__beam,
    .heaven-scene__star,
    .heaven-scene__sparkle,
    .heaven-scene__comet,
    .heaven-scene__letter,
    .heaven-scene__wing {
        animation: none;
    }
}

@media (max-width: 860px) {
    .heaven-showcase {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 28px;
        gap: 28px;
    }

    .heaven-showcase__example {
        border-left: none;
        border-top: 3px solid var(--gold);
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
        text-align: left;
    }

    .heaven-scene {
        max-width: 240px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Memorial map preview (homepage) ── */

.map-preview-frame {
    width: 100%;
    max-width: min(980px, 100%);
    margin: 32px auto 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(43, 24, 10, 0.12);
    overflow: hidden;
}

.memorial-map--preview {
    height: 380px;
    border-top: none;
}

/* Výchozí OSM dlaždice jsou chladně modrošedé — jemným sépiovým filtrem
   je naladíme k teplé paletě webu (--bg / --gold), ať náhled ladí s
   okolními kartami místo kontrastní studené mapy. */
.memorial-map--preview .leaflet-tile-pane {
    filter: sepia(38%) saturate(135%) hue-rotate(-8deg) brightness(1.04) contrast(0.96);
}

.map-preview-frame__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 22px;
    border-top: 1px solid var(--border);
    background: var(--bg-alt, #F9F7F3);
}

.map-preview-frame__hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: left;
}

.map-preview-frame__hint .icon {
    flex-shrink: 0;
    color: var(--gold);
}

.map-preview-frame__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}

.map-preview-frame__link:hover {
    color: var(--gold-hover, var(--gold));
    text-decoration: underline;
}

@media (max-width: 768px) {
    .memorial-map--preview {
        height: 280px;
    }

    .map-preview-frame {
        margin-top: 24px;
        border-radius: var(--radius-sm, 8px);
    }

    .map-preview-frame__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 16px;
    }
}

/* ── Testimonials ── */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.testimonial-card {
    padding: 28px;
    background: var(--white);
    border-radius: var(--radius);
    border: var(--frame-border);
    box-shadow: var(--shadow-card);
}

.testimonial-card__text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 16px;
}

.testimonial-card__author {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card__photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.testimonial-card__author-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.testimonial-card__author strong {
    color: var(--text);
}

/* ── Strom života (ukázka jako na produkci — PNG + samostatný CTA) ── */

.family-tree-showcase {
    margin-top: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
}

.family-tree-showcase__visual {
    line-height: 0;
    background: #f5f1e6;
}

.family-tree-showcase__visual img {
    width: 100%;
    height: auto;
    display: block;
}

.family-tree-showcase__cta {
    background: #161b2c;
    text-align: center;
    padding: 1.75rem 1.5rem 1.75rem;
    line-height: 1.5;
}

.family-tree-showcase__badge {
    display: inline-block;
    background: var(--gold);
    color: #161b2c;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.family-tree-showcase__text {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 1.25rem;
}

.family-tree-showcase__btn {
    min-width: 220px;
}

@media (max-width: 768px) {
    .family-tree-showcase__cta {
        padding: 1.35rem 1rem 1.5rem;
    }

    .family-tree-showcase__text {
        font-size: 0.95rem;
    }

    .family-tree-showcase__btn {
        width: 100%;
        max-width: 320px;
    }
}

/* ── Celoobrazovkový hero: video/foto jako pozadí, text + CTA na něm ── */
.home-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    /* Boční padding jen na textu — video musí jít až na kraj sekce. */
    padding: 120px 0 96px;
    overflow: hidden;
    background: #1b1310;
    isolation: isolate;
}

/* Médium na pozadí (pod textem) */
.home-hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    z-index: 0;
    line-height: 0;
}

.home-hero__media video,
.home-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Ztmavení pro čitelnost světlého textu */
.home-hero__scrim {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(120% 80% at 50% 42%, rgba(27, 19, 16, 0.30) 0%, rgba(27, 19, 16, 0.62) 70%, rgba(27, 19, 16, 0.78) 100%),
        linear-gradient(180deg, rgba(27, 19, 16, 0.55) 0%, rgba(27, 19, 16, 0.28) 30%, rgba(27, 19, 16, 0.72) 100%);
}

.home-hero__text {
    position: relative;
    z-index: 2;
    /* Širší kvůli 4 CTA v jedné řadě; nadpis/podnadpis mají vlastní max-width. */
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.home-hero__kicker {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #E9D9BE;
    margin-bottom: 26px;
    padding: 7px 18px;
    border: 1px solid rgba(233, 217, 190, 0.4);
    border-radius: 999px;
    background: rgba(27, 19, 16, 0.35);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.home-hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
    color: #FDF6EE;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.home-hero__subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1.08rem, 2vw, 1.4rem);
    font-style: italic;
    color: rgba(253, 246, 238, 0.88);
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 38px;
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.3);
}

.home-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: stretch;
    width: 100%;
}
.home-hero__cta .btn.btn-lg {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 3.4em;
    padding: 12px 16px;
    font-size: 0.95rem;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
}
@media (min-width: 900px) {
    .home-hero__cta {
        flex-wrap: nowrap;
        gap: 10px;
    }
    .home-hero__cta .btn.btn-lg {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
}

/* CTA na tmavém heru: primární krémové, sekundární světlý ghost */
.home-hero .btn-primary {
    background: var(--bg);
    color: var(--text);
    border-color: var(--bg);
}
.home-hero .btn-primary:hover {
    background: #fff;
    color: var(--text);
    transform: translateY(-2px);
}
.home-hero .btn-outline {
    background: rgba(255, 255, 255, 0.06);
    color: #FDF6EE;
    border: 1px solid rgba(253, 246, 238, 0.55);
}
.home-hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-color: #fff;
}

/* Šipka „posunout dolů" */
.home-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: rgba(253, 246, 238, 0.85);
    border: 1px solid rgba(253, 246, 238, 0.35);
    background: rgba(27, 19, 16, 0.3);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: heroScrollBob 2.4s ease-in-out infinite;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.home-hero__scroll:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(27, 19, 16, 0.5);
}
@keyframes heroScrollBob {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 7px); }
}

@media (max-width: 768px) {
    .home-hero {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 640px) {
    .home-hero {
        padding: 104px 0 84px;
    }
    .home-hero__kicker { margin-bottom: 20px; }
    .home-hero__cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .home-hero__cta .btn,
    .home-hero__cta .btn.btn-lg {
        width: 100%;
        flex: 0 0 auto;
        align-self: center;
        margin-left: auto;
        margin-right: auto;
        min-height: 3.4em;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }
    .home-hero__scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__scroll { animation: none; }
}

