/* AUTO-GENERATED — php scripts/build-style-split.php — modul: base */
﻿/* ══════════════════════════════════════
   chybismi.eu – Main Stylesheet
   ══════════════════════════════════════ */

/* ── Reset & Base ── */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ── Paleta „teplý pergamen" (redesign 2026) ──
       Primární předloha Delphi (Cognac-Stained Parchment) + disciplína
       jediného tmavého CTA (Medium) + lidská srozumitelnost (August Health).
       Pozn.: --accent = burnt umber = jediná barva hlavních akcí a odkazů.
             --gold = pouze dekorativní / pietní akcent (svíčky, QR, ozdoby). */
    --bg:           #FDF6EE;
    --bg-alt:       #F0E6DC;
    --text:         #2B180A;
    --text-muted:   #94877C;
    --accent:       #3E2407;
    --accent-hover: #2B180A;
    --accent-rgb:   62, 36, 7;
    --gold:         #C4A87C;
    --gold-hover:   #b09468;
    --gold-rgb:     196, 168, 124;
    --white:        #FFFFFF;
    --border:       #E3D9CC;
    --danger:       #C0392B;
    --success:      #27AE60;
    --radius:       12px;
    --radius-sm:    8px;
    --shadow:       0 2px 16px rgba(43, 24, 10, 0.06);
    --shadow-lg:    0 12px 40px rgba(43, 24, 10, 0.10);
    --transition:   0.25s ease;

    /* Serif display font – povýšen na hlavní font nadpisů */
    --font-serif:   'Lora', 'Lora Fallback', Georgia, 'Times New Roman', serif;
    --font-sans:    'Inter', 'Inter Fallback', system-ui, -apple-system, sans-serif;

    /* Jednotný rámeček karet (teplý obrys + mírné zvýraznění) */
    --frame-border-color: rgba(148, 135, 124, 0.42);
    --frame-border:       1px solid var(--frame-border-color);
    --frame-ring:         0 0 0 1px rgba(43, 24, 10, 0.06);
    --frame-shadow-soft:  0 2px 14px rgba(43, 24, 10, 0.05);
    --shadow-card:        var(--frame-ring), var(--frame-shadow-soft);
    --frame-grid-line:    rgba(148, 135, 124, 0.26);

    /* Vstupní pole – světlejší vnitřní okraj */
    --field-border-color: #d8cdbd;
    --field-border:       1px solid var(--field-border-color);
    --field-ring:         0 0 0 1px rgba(43, 24, 10, 0.05);
}

html {
    font-size: 16px;
    /* Vždy rezervovat svislý scrollbar — jinak při načtení obsahu /
       otevření modalu celá stránka o ~15 px cukne. */
    overflow-y: scroll;
    scrollbar-gutter: stable;
}
@media (max-width: 768px) {
    html {
        scrollbar-gutter: auto;
        /* overflow-y: scroll rezervuje žlábek i tam, kde je overlay scrollbar
           (DevTools / některé WebView) a stránka pak má světlý pruh po stranách. */
        overflow-y: auto;
        /* overflow-x: hidden na <html> v Chrome/Safari s position:fixed
           posouvá celou stránku (prázdný pruh vlevo). Ořez drží body/main. */
    }
    body, main, .site-header, .site-footer {
        overflow-x: clip;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-left: 0;
        margin-right: 0;
    }
    /* Hero musí vyjet na 100vw; ořez na main by ten breakout seřízl. */
    main:has(.home-hero) {
        overflow-x: visible;
    }
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Fallback metriky blízko Inter/Lora — omezí FOUT „cuknutí“ při načtení webfontů. */
@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial'), local('Helvetica Neue'), local('Helvetica');
    size-adjust: 107.4%;
    ascent-override: 90%;
    descent-override: 22.43%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Lora Fallback';
    src: local('Georgia'), local('Times New Roman');
    size-adjust: 106%;
    ascent-override: 92%;
    descent-override: 26%;
    line-gap-override: 0%;
}

main {
    flex: 1;
    min-width: 0;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

img[loading="lazy"],
img.media-ph {
    background-color: #ece6dc;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

/* ── Container ── */

.container {
    width: 100%;
    max-width: min(1100px, 100%);
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
    box-sizing: border-box;
    min-width: 0;
}

/* ── Typography ──
   Nadpisy = Lora (elegantní serif, klidný pietní tón).
   Body / UI = Inter. Velké nadpisy mají mírně stažený letter-spacing
   pro „editorial" dojem (Delphi). */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -0.01em;
}

h1 { font-size: 3rem;    letter-spacing: -0.025em; line-height: 1.12; }
h2 { font-size: 2.25rem; letter-spacing: -0.02em;  line-height: 1.18; }
h3 { font-size: 1.5rem;  letter-spacing: -0.015em; }
h4 { font-size: 1.2rem;  letter-spacing: -0.01em; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

@media (max-width: 640px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.35rem; }
}

.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }

/* Serif / sans přepínače (pro místa, kde je potřeba opačný font) */
.serif { font-family: var(--font-serif); }
.sans  { font-family: var(--font-sans); font-weight: 600; letter-spacing: normal; }

/* ── Buttons ── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    /* Jen vizuální vlastnosti — transition: all při hoveru myši
       zbytečně přepočítává layout a stránka pak cuká. */
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), box-shadow var(--transition),
                transform var(--transition), opacity var(--transition);
    text-decoration: none;
    font-family: inherit;
    line-height: 1.4;
}

/* .btn { display: inline-flex } jinak přebije HTML atribut hidden */
.btn[hidden],
button.btn[hidden] {
    display: none !important;
}

.btn:active {
    transform: translateY(2px) scale(0.96) !important;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.2) !important;
    transition: none !important;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.btn-gold:hover {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
    border-color: var(--danger);
}

.btn-danger:hover {
    opacity: 0.9;
    color: var(--white);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* ── Header ── */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    /* Pozor: NESMÍ mít transform/filter — rozbije position:fixed
       u mega-nav dropdownů a při hoveru pak celá stránka cuká. */
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 16px;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.site-header .btn-sm {
    padding: 10px 22px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 999px;
}

/* ── Mega navigation ── */

.mega-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
    margin-left: 24px;
}

.mega-nav__item {
    position: static;
}

.mega-nav__link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-sm, 8px);
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    position: relative;
}

.mega-nav__link:hover {
    background: var(--bg-alt);
    color: var(--accent);
}

.mega-nav__item:hover .mega-nav__link {
    background: var(--bg-alt);
    color: var(--accent);
}

.mega-nav__cta {
    margin-left: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* ── Create menu (výběr typu vzpomínky) ── */
.create-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.create-menu__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.create-menu__chev {
    flex-shrink: 0;
    opacity: 0.85;
    transition: transform 0.2s ease;
}
.create-menu.is-open .create-menu__chev {
    transform: rotate(180deg);
}
.create-menu__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--white, #fff);
    border: 1px solid var(--border, #e2e0db);
    border-radius: 12px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
    padding: 6px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.create-menu.is-open .create-menu__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.create-menu__dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
}
.create-menu__dropdown a:hover {
    background: var(--bg-alt, #f5f3ee);
    color: var(--accent);
}
.create-menu__dropdown a[aria-current="true"] {
    font-weight: 650;
    color: var(--accent);
}
.main-nav__cta-wrap {
    margin: 8px 0;
}
.main-nav__cta-wrap > .mob-accordion__btn {
    font-weight: 650;
}

/* Wizard: přepínač typu Osoba | Rodina | Zvíře */
.wiz-type-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 0 auto 20px;
    padding: 4px;
    border: 1px solid var(--border, #e5e0d8);
    border-radius: 999px;
    background: var(--bg-alt, #faf8f5);
    max-width: 36rem;
    width: 100%;
}
.wiz-type-switch__item {
    flex: 1 1 auto;
    text-align: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted, #666);
    transition: background 0.15s, color 0.15s;
}
a.wiz-type-switch__item:hover {
    color: var(--accent, #3E2407);
    background: rgba(0, 0, 0, 0.04);
}
.wiz-type-switch__item--active {
    background: var(--accent, #6B8FA3);
    color: #fff;
}

/* Auth links */
.mega-nav__auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mega-nav__auth-link {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm, 8px);
    transition: all 0.2s;
    white-space: nowrap;
}

.mega-nav__auth-link:hover {
    color: var(--text);
    background: var(--bg-alt);
}

.mega-nav__auth-link--primary {
    background: var(--accent);
    color: var(--white);
    font-weight: 600;
}

.mega-nav__auth-link--primary:hover {
    background: var(--accent-hover);
    color: var(--white);
}

/* ── User menu (panáček) ── */
.user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.user-menu__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 4px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--text);
}
.user-menu__btn:hover {
    background: var(--bg-alt, #f5f3ee);
    border-color: var(--border, #e2e0db);
}
.user-menu.is-open .user-menu__btn {
    background: var(--bg-alt, #f5f3ee);
    border-color: var(--border, #e2e0db);
}
.user-menu__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white, #fff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    overflow: hidden;
}
.user-menu__avatar--photo {
    background: transparent;
}
.user-menu__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.user-menu__avatar--guest {
    background: var(--bg-alt, #ece9e2);
    color: var(--text-muted, #6b6b6b);
}
.user-menu__chev {
    color: var(--text-muted);
    transition: transform 0.2s ease;
}
.user-menu.is-open .user-menu__chev {
    transform: rotate(180deg);
}

.user-menu__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: var(--white, #fff);
    border: 1px solid var(--border, #e2e0db);
    border-radius: 12px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
    padding: 6px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.user-menu.is-open .user-menu__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.user-menu__head {
    padding: 10px 12px 12px;
    border-bottom: 1px solid var(--border, #ece9e2);
    margin-bottom: 4px;
}
.user-menu__head strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text);
}
.user-menu__head small {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
    word-break: break-all;
}
.user-menu__dropdown a {
    display: block;
    padding: 9px 12px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    border-radius: 8px;
    transition: background 0.12s;
}
.user-menu__dropdown a:hover {
    background: var(--bg-alt, #f5f3ee);
    color: var(--accent);
}
.user-menu__dropdown hr {
    border: none;
    border-top: 1px solid var(--border, #ece9e2);
    margin: 6px 4px;
}
.user-menu__logout {
    color: var(--text-muted, #777) !important;
}
.user-menu__primary {
    background: var(--accent);
    color: var(--white, #fff) !important;
    font-weight: 600;
    margin-top: 4px;
}
.user-menu__primary:hover {
    background: var(--accent-hover, #4a6b7e);
    color: var(--white, #fff) !important;
}

@media (max-width: 900px) {
    .user-menu { display: none; }
}

/* ── Dropdown panel (full-width under header) ──
   Jen opacity (bez translateY) — animace transform na full-width
   panelu při hoveru myši jinak nepatrně „zaklepe“ celou stránku. */

.mega-nav__dropdown {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s;
    z-index: 200;
    /* Při rychlém přejetí mezi položkami menu neblikat */
    transition-delay: 0s;
}

.mega-nav__dropdown::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
}

.mega-nav__item:hover > .mega-nav__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0.06s;
}

.mega-dd {
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    padding: 28px 0;
    max-height: calc(100vh - 80px);
    max-height: calc(100svh - 80px);
    overflow-x: hidden;
    overflow-y: auto;
    /* Vnitřní scrollbar nesmí sahat do layoutu stránky */
    scrollbar-gutter: stable;
}

.mega-dd__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Homepage-style tiles in mega menu (Jak to funguje, Nabízíme) */
.mega-dd--tiles {
    padding: 22px 0;
}

.mega-dd--tiles .mega-dd__inner {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1180px;
}

.mega-dd--tiles-4 .mega-dd__inner {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1280px;
}

.mega-dd--tiles .feature-card {
    padding: 22px 14px;
}

.mega-dd--tiles .feature-card__icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.mega-dd--tiles .feature-card h3 {
    font-size: 0.98rem;
    margin-bottom: 6px;
}

.mega-dd--tiles .feature-card p {
    font-size: 0.8rem;
    line-height: 1.45;
    margin: 0;
}

@media (max-width: 1200px) {
    .mega-dd--tiles-4 .mega-dd__inner {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    .mega-dd--tiles .mega-dd__inner,
    .mega-dd--tiles-4 .mega-dd__inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Memories dropdown */
.mega-dd--memories .mega-dd__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.mega-dd__memory {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 16px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s, transform 0.15s;
}

.mega-dd__memory:hover {
    background: var(--bg-alt);
    transform: translateY(-2px);
}

.mega-dd__memory-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 3px solid var(--border);
}

.mega-dd__memory-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mega-dd__memory-photo span {
    font-size: 1.4rem;
}

.mega-dd__memory-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mega-dd__memory-info strong {
    font-size: 0.88rem;
    font-weight: 600;
}

.mega-dd__memory-info span {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.mega-dd__empty {
    grid-column: 1 / -1;
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Mobile steps bar (inside hamburger menu) */
.mobile-steps-bar {
    display: none;
    background: linear-gradient(135deg, var(--gold) 0%, #d4b88a 100%);
    color: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 6px;
}

.mobile-steps-bar.open {
    display: block;
}

.mobile-steps-bar__title {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.mobile-steps-bar__step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.84rem;
    font-weight: 500;
    padding: 5px 0;
}

.mobile-steps-bar__step span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.4);
}

/* Mobile accordion (Nabízíme submenu) */
.mob-accordion {
    display: flex;
    flex-direction: column;
}

.mob-accordion__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: left;
}

.mob-accordion__btn:hover {
    color: var(--text);
}

.mob-accordion__arrow {
    font-size: 1.1rem;
    transition: transform 0.2s;
    display: inline-block;
}

.mob-accordion.open .mob-accordion__arrow {
    transform: rotate(90deg);
}

.mob-accordion__panel {
    display: none;
    flex-direction: column;
    padding-left: 12px;
    gap: 2px;
    margin-top: 4px;
    margin-bottom: 4px;
    border-left: 2px solid var(--gold);
}

.mob-accordion.open .mob-accordion__panel {
    display: flex;
}

.mob-accordion__panel a {
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s;
}

.mob-accordion__panel a:hover {
    background: var(--bg-alt);
    color: var(--text);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
}

.logo__img {
    /* Ležatá osmička — o 20 % menší než výška písma nápisu (1.5rem) */
    height: 19px;
    width: auto;
    flex-shrink: 0;
}

.logo__text {
    white-space: nowrap;
}

.logo__text span {
    color: var(--gold);
}

.logo:hover {
    color: var(--text);
}

.main-nav {
    display: none;
}

.main-nav a:not(.btn) {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 6px 12px;
}

.main-nav a:not(.btn):hover {
    color: var(--text);
}

.main-nav__cta { margin-top: 8px; }
.main-nav__divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 0;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid var(--border);
}

.lang-link {
    display: inline-block;
    padding: 3px 7px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 4px;
    transition: all var(--transition);
    letter-spacing: 0.02em;
}

.lang-link:hover {
    color: var(--text);
    background: var(--bg-alt);
}

.lang-link.active {
    color: var(--white);
    background: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all var(--transition);
    border-radius: 2px;
}

/* ── Poradna (články) ── */

.poradna-kicker {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 12px;
}
.poradna-kicker a {
    color: inherit;
    text-decoration: none;
}
.poradna-kicker a:hover {
    color: #fff;
}
.poradna-meta {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-top: 12px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.poradna-page .hero-sm {
    padding: 56px 0 10px;
}
.poradna-page .hero-sm .subtitle {
    margin-bottom: 0;
    max-width: 42rem;
}
.poradna-page .section {
    padding: 28px 0 80px;
}
.poradna-article .hero-sm {
    padding: 56px 0 22px;
}
.poradna-article .section {
    padding: 28px 0 80px;
}
.poradna-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 28px;
}
.poradna-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 1100px;
    margin-inline: auto;
}
.poradna-grid > .poradna-card {
    flex: 1 1 calc((100% - 48px) / 3);
    max-width: 340px;
    width: 100%;
}
.poradna-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    box-shadow: var(--frame-ring);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.poradna-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
    color: var(--text);
}
.poradna-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-alt);
    flex-shrink: 0;
}
.poradna-card__cover {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    background: var(--bg-alt);
}
.poradna-card__cover--placeholder {
    background: var(--bg-alt);
}
.poradna-card__cover--top {
    object-position: center 12%;
}
.poradna-card__body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
}
.poradna-card__name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin: 0 0 8px;
    line-height: 1.35;
}
.poradna-card__dates {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.poradna-card__excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 16px;
}
.poradna-card__link {
    display: inline-flex;
    align-self: flex-start;
    margin-top: auto;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
}
.poradna-card:hover .poradna-card__link {
    color: var(--gold);
}
.poradna-cover-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    margin: 0 0 28px;
    background: var(--bg-alt);
}
.poradna-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    border-radius: 0;
    margin: 0;
    display: block;
}
.poradna-cover.poradna-card__cover--top {
    object-position: center 12%;
}
.poradna-perex {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text);
    margin-bottom: 32px;
    line-height: 1.7;
}
.poradna-body h2 {
    font-size: 1.5rem;
    margin: 36px 0 16px;
    color: var(--text);
}
.poradna-body h3 {
    font-size: 1.2rem;
    margin: 28px 0 12px;
    color: var(--text);
}
.poradna-body p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 12px;
}
.poradna-body blockquote {
    margin: 20px 0 28px;
    padding: 8px 0 8px 20px;
    border-left: 2px solid var(--gold);
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.7;
}
.poradna-body ul,
.poradna-body ol {
    margin: 12px 0 20px;
    padding-left: 1.3em;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.85;
}
.poradna-body ul.about-list {
    list-style: none;
    padding-left: 0;
}
.poradna-body a:not(.btn) {
    color: var(--accent);
}
.poradna-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 16px 0;
}
.poradna-body figure {
    margin: 24px 0;
}
.poradna-body figcaption {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 8px;
}
.poradna-body .btn {
    margin: 8px 0 20px;
}
.poradna-video {
    margin: 28px 0;
}
.poradna-video video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1280 / 950;
    object-fit: cover;
    background: #1a1a1a;
    border-radius: 12px;
    margin: 0;
}
.poradna-materials {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0 28px;
    padding: 0;
    list-style: none;
}
.poradna-materials figure {
    margin: 0;
    text-align: center;
}
.poradna-materials img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    margin: 0 0 8px;
    border-radius: 10px;
}
.poradna-materials figcaption {
    font-size: 0.85rem;
    font-style: normal;
    margin: 0;
}
.poradna-faq h3 {
    font-size: 1.12rem;
    margin: 22px 0 8px;
}
@media (max-width: 720px) {
    .poradna-materials {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.poradna-related {
    margin-top: 16px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.poradna-related h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    text-align: center;
}
@media (max-width: 900px) {
    .poradna-grid > .poradna-card {
        flex-basis: calc((100% - 24px) / 2);
        max-width: 420px;
    }
}
@media (max-width: 640px) {
    .poradna-grid > .poradna-card {
        flex-basis: 100%;
        max-width: 100%;
    }
}

.gdpr-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.gdpr-updated {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* ── Mobile: vyplněný výsledek, kurzor tutoriálu nechat vidět ── */
@media (max-width: 600px) {
    .form-overlay--input,
    .form-overlay--text {
        opacity: 1;
    }
    .form-overlay__caret { display: none; }
    .form-photo {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .tutor-scan__beam { display: none; }
    .tutor-scan__check {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

}

/* ── Flash Messages ── */

.flash {
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    margin: 16px auto;
    max-width: 1100px;
    font-size: 0.95rem;
    font-weight: 500;
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ── Forms ── */

.form-page {
    max-width: 480px;
    margin: 60px auto;
    padding: 0 24px;
}

.form-page.form-wide {
    max-width: 780px;
}

/* ── Toggle switch ── */

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
}

.toggle-status {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch__slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 26px;
    transition: 0.2s;
}

.switch__slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}

.switch input:checked + .switch__slider {
    background: var(--primary, #4CAF50);
}

.switch input:checked + .switch__slider::before {
    transform: translateX(22px);
}

/* ── Footer ──
   Stejná tmavá cognac hloubka jako hero (#1b1310 → #2B180A), aby patička
   navazovala na zbytek designu místo abrupního skoku na plochou barvu.
   Jemná zlatá linka na horním okraji dělá přechod z krémové stránky
   záměrným, ne "přilepeným". */

.site-footer {
    position: relative;
    background: linear-gradient(180deg, #2B180A 0%, #1b1310 100%);
    color: rgba(255,255,255,0.68);
    padding: 64px 0 0;
    margin-top: auto;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(196,168,124,0.55) 50%, transparent 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(196,168,124,0.14);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 14px;
    display: inline-block;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.65;
    max-width: 280px;
    color: rgba(255,255,255,0.6);
}

.footer-links h4 {
    color: var(--gold);
    margin-bottom: 18px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--font-sans);
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    list-style: none;
    margin-bottom: 10px;
    padding: 0;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 22px 0;
}

.footer-copyright {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.48);
    letter-spacing: 0.01em;
    order: 2;
}

/* ── Tabulka platebních údajů (subscribe / order-bank-instructions) ──
   Desktop: tabulka se 2 sloupci (label | hodnota).
   Mobil: každý řádek se přepne na blok — label nahoře, hodnota dole,
   aby dlouhé hodnoty (IBAN, číslo účtu) nepřetékaly viewport. */
.payment-info-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.payment-info-table tr {
    border-bottom: 1px solid var(--border, #eee);
}

.payment-info-table tr:last-child {
    border-bottom: none;
}

.payment-info-table__label {
    padding: 12px 12px 12px 0;
    color: var(--text-muted, #666);
    width: 40%;
    vertical-align: top;
    word-break: keep-all;
}

.payment-info-table__value {
    padding: 12px 0;
    font-weight: 600;
    word-break: break-word;
    overflow-wrap: anywhere;
    vertical-align: top;
}

.payment-info-table__value--lg {
    font-size: 1.1rem;
}

.payment-info-table__value--mono {
    /* IBAN, VS atd. — monoseparační font, povolíme zalomení v libovolném
       místě, aby se i dlouhý IBAN vešel na úzký mobilní viewport. */
    font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    letter-spacing: 0.5px;
    word-break: break-all;
    overflow-wrap: anywhere;
}

@media (max-width: 560px) {
    /* Na úzkých displejích přepneme tabulku do bloku: label + hodnota
       pod sebou. Tím dlouhé hodnoty (IBAN) vždy vlezou bez ořezu/přetečení. */
    .payment-info-table,
    .payment-info-table tbody,
    .payment-info-table tr,
    .payment-info-table td {
        display: block;
        width: 100%;
    }
    .payment-info-table tr {
        padding: 10px 0;
    }
    .payment-info-table__label {
        padding: 0 0 4px 0;
        font-size: 0.85rem;
    }
    .payment-info-table__value {
        padding: 0;
    }
}

/* ── Responsive ── */

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 14px;
    }

    .hero .subtitle {
        font-size: 1.05rem;
        margin-bottom: 22px;
        line-height: 1.65;
    }

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

    .qr-materialy-page__videos {
        grid-template-columns: 1fr;
    }

    .steps-showcase__stage {
        aspect-ratio: 4 / 3;
        border-radius: var(--radius-sm);
    }

    .steps-slide__caption {
        padding: 10px 14px;
        font-size: 0.88rem;
        gap: 6px;
    }

    .steps-showcase__dots {
        margin-top: 14px;
    }

    .latest-memories-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .tiers-cta {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 14px;
        width: 100%;
    }
    .tiers-cta .btn,
    .tiers-cta .btn.btn-lg {
        margin-left: auto;
        margin-right: auto;
        align-self: center;
        width: min(100%, 280px);
        box-sizing: border-box;
        justify-content: center;
        text-align: center;
    }

    .tiers {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .tier-card.featured {
        order: 0;
    }

    .site-header .container {
        height: 60px;
    }

    .lang-switcher {
        border-left: none;
        margin-left: 0;
        padding-left: 0;
        padding: 8px 0;
        border-top: 1px solid var(--border);
        justify-content: center;
    }

    .lightbox__img {
        max-width: 96vw;
        max-height: 80vh;
        border-radius: 4px;
    }

    .lightbox__close {
        top: 8px;
        right: 8px;
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }

    .lightbox__arrow {
        padding: 8px 12px;
        font-size: 1.5rem;
    }

    .lightbox__arrow--left {
        left: 4px;
    }

    .lightbox__arrow--right {
        right: 4px;
    }

    .lightbox__counter {
        bottom: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-brand p {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-links ul {
        padding: 0;
    }

    .footer-meta {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 24px 0 28px;
    }

    .footer-copyright {
        order: 2;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 28px 20px;
    }

    .memory-page .memory-name {
        font-size: 1.7rem;
    }

    .cookie-bar {
        right: 8px;
        left: 8px;
        bottom: 8px;
        max-width: none;
    }
}

/* ── Cookie Consent Bar ── */

.cookie-bar {
    position: fixed;
    bottom: 16px;
    left: auto;
    right: 16px;
    z-index: 11000; /* nad navigací / lightboxem — jinak lišta „zmizí“ */
    background: #fff;
    color: #444;
    padding: 16px 20px;
    font-size: 0.78rem;
    max-width: 360px;
    border-radius: 12px;
    border: var(--frame-border);
    box-shadow: var(--frame-ring), 0 4px 24px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
    transform: translateY(120%);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

.cookie-bar.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-bar .container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookie-bar p {
    margin: 0;
    line-height: 1.5;
    color: #666;
}

.cookie-bar a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-bar a:hover {
    color: var(--accent-hover);
}

.cookie-bar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.cookie-more {
    flex: 1 1 100%;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.external-embed-gate {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    min-height: 120px;
    padding: 16px;
    background: var(--bg-alt, #f0e6dc);
    border: 1px solid var(--border, #e3d9cc);
    border-radius: 10px;
    box-sizing: border-box;
}

.external-embed-gate__text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted, #666);
}

.memory-favorite-music__yt-mini .external-embed-gate,
.memory-favorite-dock .external-embed-gate {
    width: 100%;
    min-height: 160px;
}

.cookie-bar-actions button {
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.cookie-accept {
    background: var(--accent);
    color: #fff;
    flex: 1;
}

.cookie-accept:hover {
    background: var(--accent-hover);
}

.cookie-decline {
    background: #f3f3f3;
    color: #333;
    border: 1px solid #ccc !important;
    flex: 1;
}

.cookie-decline:hover {
    color: #111;
    background: #eaeaea;
    border-color: #bbb !important;
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 1.7rem;
        margin-bottom: 12px;
    }

    .hero .subtitle {
        font-size: 0.98rem;
        margin-bottom: 20px;
    }

    .btn-lg {
        padding: 12px 22px;
        font-size: 0.95rem;
    }

    .hero-tour-trigger {
        margin-top: 16px;
    }

    .btn-tour {
        padding: 9px 18px;
        font-size: 0.85rem;
    }
}

/* ══════════════════════════════════════
   Guided Tour
   ══════════════════════════════════════ */

.hero-tour-trigger {
    margin-top: 24px;
}

.btn-tour {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
}

.btn-tour:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

[data-tour-section].tour-active {
    position: relative;
    z-index: 1001;
    box-shadow: 0 0 0 4px var(--accent), 0 0 40px rgba(var(--accent-rgb), 0.25);
    border-radius: var(--radius);
    transition: box-shadow 0.5s ease;
}

.tour-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1000;
    transition: opacity 0.4s ease;
}

.tour-overlay[hidden] {
    display: none;
}

.tour-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1002;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 700px;
    width: calc(100% - 48px);
    padding: 16px 24px;
    background: rgba(15, 15, 15, 0.92);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.tour-bar__text {
    flex: 1;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.tour-bar__controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.tour-bar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all var(--transition);
}

.tour-bar__btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .tour-bar {
        bottom: 16px;
        padding: 14px 18px;
        gap: 12px;
    }

    .tour-bar__text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .tour-bar {
        flex-direction: column;
        text-align: center;
    }

    .tour-bar__controls {
        justify-content: center;
    }
}

/* ── Gradient divider helper ── */

.memory-hero__grid > .memory-feed::before {
    display: none;
}

@media (max-width: 480px) {
    .memory-hero__primary-section .gift-picker__btn {
        width: 60px;
        height: 60px;
    }

    .memory-hero__primary-section .gift-picker__icon {
        font-size: 1.5rem;
    }

    .memory-hero__primary-section .gift-picker__label {
        font-size: 0.55rem;
    }

    .memory-hero__primary-section .gift-picker__more {
        width: 60px;
        height: 60px;
    }

    .memory-hero__primary-section {
        padding: 20px 16px 18px;
    }
}

/* Subscribe – CTA tlačítka po vytvoření faktury */
.subscribe-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 560px) {
    .subscribe-actions {
        flex-direction: column;
        gap: 14px;
    }

    .subscribe-actions .btn {
        width: 100%;
        max-width: 320px;
    }
}

/* ════════════════════════════════════════════════════════════════════
   Memory hero – „cinema" redesign
   Nekonečný pás médií (100vw) + identita + plynoucí vzkazy + CTA editor.
   ════════════════════════════════════════════════════════════════════ */

.memory-hero--cinema {
    padding: 0 0 56px;
}
.memory-hero--cinema.memory-hero--continue {
    padding-bottom: 64px;
}

/* ── Klidový režim ──
   Filmový pás jede dál i při prefers-reduced-motion (jemný dekorativní posun). */
@media (prefers-reduced-motion: reduce) {
    .memory-feed--stream .memory-feed__slide { transition: none; }
    .memory-add__panel { animation: none; }
    .memory-cinema__cell:hover .memory-cinema__item { transform: none; }
}

/* ══════════════════════════════════════
   Ceník (cenik.php) — přesunuto z page-level <style>
   ══════════════════════════════════════ */

/* ── Card ── */
.pricing-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    padding: 32px 22px 28px;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    scroll-margin-top: 100px;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card:target {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.25), var(--shadow-lg);
    animation: cardPulse 0.6s ease;
}
@keyframes cardPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}
.pricing-card--featured { border-color: var(--gold); }
.pricing-card__badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--white);
    padding: 4px 18px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.pricing-card__name { font-size: 1.35rem; font-weight: 600; margin-bottom: 4px; }
.pricing-card__steps {
    margin: -8px 0 18px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent);
}

.pricing-card__subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-family: var(--font-serif);
    font-style: italic;
    margin-bottom: 20px;
    min-height: 2.4em;
}
.pricing-card__price {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.pricing-card__price-from { font-size: 0.8rem; color: var(--text-muted); display: block; margin-bottom: 2px; }
.pricing-card__price-value { font-size: 2rem; font-weight: 700; color: var(--text); line-height: 1.1; }
.pricing-card__price-value--custom { display: flex; align-items: baseline; gap: 6px; justify-content: center; }
.pricing-card__price-value--custom .pricing-card__price-prefix { font-size: 0.6em; color: var(--text-muted); font-weight: 500; }
.pricing-card--featured .pricing-card__price-value { color: var(--gold); }
.pricing-card__price-period { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
.pricing-card__price-figure { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.pricing-card__price-figure .pricing-card__price-period { margin-top: 0; }
.pricing-card__price-note {
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1.35;
    max-width: 16em;
    margin-left: auto;
    margin-right: auto;
}
.pricing-card__renewal {
    margin-top: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.pricing-card__renewal strong { color: var(--text); font-weight: 600; }
.pricing-card__features { list-style: none; text-align: left; flex: 1; margin-bottom: 24px; }
.pricing-card__features li {
    padding: 6px 0;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}
.pricing-card__features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.pricing-card__cta { margin-top: auto; }
.pricing-card__cta .btn { width: 100%; }

/* ── Jednotná monochromatická ikonová sada ── */
.icon {
    display: inline-block;
    vertical-align: middle;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.btn .icon {
    width: 18px;
    height: 18px;
    margin-right: 9px;
    margin-top: -2px;
}

/* Barevná svíčka — nepoužívat monochrom stroke z .icon */
.icon.icon--candle {
    stroke: none;
    fill: none;
    overflow: visible;
}
.icon.icon--candle [fill] {
    stroke: none;
}
.candles-promo .btn-outline .icon--candle {
    width: 20px;
    height: 20px;
    margin: 0;
}
.memory-hero__accordion-icon--candle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.memory-hero__accordion-icon--candle .icon--candle {
    width: 22px;
    height: 22px;
}
.gift-picker__icon--svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.gift-picker__icon--svg .icon--candle {
    width: 1.7rem;
    height: 1.7rem;
}

/* ── Ikonové medailonky (funkce, tarify, parte) ── */
.feature-card__icon,
.tier-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--accent);
    font-size: 0;
}
.feature-card__icon .icon,
.tier-icon .icon {
    width: 26px;
    height: 26px;
}

.tier-card.featured .tier-icon {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.tier-card--cta .tier-icon {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--accent);
}

/* ── Karty „Poslední přidané vzpomínky" (nový, důstojný vzhled) ── */
#posledni-vzpominky .container {
    max-width: 1360px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.memories-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.memory-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 38px 26px 30px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--frame-ring);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.memories-grid .memory-card {
    position: relative;
    border: 2px solid #000;
    border-radius: 20px;
    padding: 40px 16px 28px;
    min-height: 380px;
    box-shadow: 0 0 0 1px #000, var(--frame-ring);
}
.memory-card__open {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    background: rgba(0, 0, 0, 0);
    cursor: pointer;
}
.memory-card__open:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.memories-grid .memory-card:hover {
    border-color: #000;
    box-shadow: 0 0 0 1px #000, var(--shadow-lg);
}

.memory-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.memory-card__portrait {
    position: relative;
    width: 106px;
    height: 106px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 22px;
    background: var(--bg-alt);
    box-shadow: 0 0 0 1px var(--border), 0 0 0 6px var(--white), 0 0 0 7px var(--gold);
    transition: transform 0.4s ease;
}
.memory-card__portrait::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
.memories-grid .memory-card__portrait {
    width: 140px;
    height: 140px;
    margin-bottom: 24px;
    box-shadow: 0 0 0 1px var(--border), 0 0 0 7px var(--white), 0 0 0 8px var(--gold);
}
.memory-card:hover .memory-card__portrait {
    transform: scale(1.04);
}
.memory-card__portrait img,
.memory-card__portrait video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.memory-card__portrait video {
    pointer-events: none;
    background: var(--bg-alt);
}
.memory-card__portrait--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-hover);
}
.memory-card__portrait--placeholder .icon {
    width: 40px;
    height: 40px;
}
.memories-grid .memory-card__portrait--placeholder .icon {
    width: 58px;
    height: 58px;
}

.memory-card__name {
    font-family: var(--font-serif);
    font-size: 1.28rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 10px;
    color: var(--text);
}
.memories-grid .memory-card__name {
    font-size: 1.45rem;
    margin-bottom: 14px;
}

.memory-card__dates {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    margin-bottom: 18px;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}
.memories-grid .memory-card__dates {
    font-size: 0.9rem;
    margin-bottom: 24px;
    gap: 8px;
}
.memory-card__dates-sep { opacity: 0.6; }

.memory-card__excerpt {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.96rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 22px;
}
.memories-grid .memory-card__excerpt {
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.memory-card__link {
    margin-top: auto;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.82;
    transition: opacity var(--transition), transform var(--transition);
}
.memories-grid .memory-card__link {
    font-size: 0.84rem;
}
.memory-card:hover .memory-card__link {
    opacity: 1;
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .memories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: min(620px, 100%);
        margin-left: auto;
        margin-right: auto;
        gap: 28px;
    }
}
@media (max-width: 560px) {
    .memories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: 100%;
        gap: 14px;
    }
}

/* Širší varianta pro výpis /vzpominky (samoresponzivní) */
.memories-grid--wide {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    max-width: 1240px;
}
@media (max-width: 560px) {
    .memories-grid--wide { grid-template-columns: repeat(2, 1fr); max-width: 420px; gap: 14px; }
}

/* ═══════════════════════════════════════════════════════════════════
   Virtuální svíčky a sdílené příběhy — samostatná sekce (#svicky-a-pribehy)
   Tmavá „pietní" dlaždice se dvěma hořícími svíčkami a CTA.
   ═══════════════════════════════════════════════════════════════════ */

.candles-promo {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    align-items: center;
    gap: 44px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px 52px;
    border-radius: 24px;
    background: radial-gradient(circle at 22% 30%, rgba(246, 214, 150, 0.14), transparent 46%),
                linear-gradient(135deg, #241708 0%, #33200c 50%, #1b1310 100%);
    box-shadow: var(--frame-ring), 0 24px 60px rgba(30, 20, 8, 0.35);
}

.candles-promo__content { position: relative; z-index: 1; min-width: 0; }

.candles-promo__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: #fff;
}

.candles-promo__text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 26px;
    max-width: 560px;
}

.candles-promo__cta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    max-width: 100%;
}

/* CTA na tmavém podkladu: primární krémové, sekundární světlý ghost */
.candles-promo .btn-primary {
    background: var(--bg);
    color: var(--text);
    border-color: var(--bg);
}
.candles-promo .btn-primary:hover {
    background: #fff;
    color: var(--text);
    transform: translateY(-2px);
}
.candles-promo .btn-outline {
    background: rgba(255, 255, 255, 0.06);
    color: #FDF6EE;
    border: 1px solid rgba(253, 246, 238, 0.55);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.candles-promo .btn-outline:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-color: #fff;
}
.candles-promo .btn-outline .icon { margin: 0; }
.candles-promo__cta .btn {
    width: 100%;
    justify-content: center;
    height: auto;
    min-height: 48px;
    max-height: none;
    padding: 10px 16px;
    box-sizing: border-box;
    white-space: normal;
    font-size: 0.88rem;
    line-height: 1.25;
    text-align: center;
}
.candles-promo__btn-voice {
    align-items: center;
    max-width: 100%;
}
.candles-promo__btn-voice-text {
    display: inline;
    line-height: inherit;
    text-align: inherit;
    font-size: inherit;
}

/* ── Vizuál: dvě hořící svíčky ── */
.candles-promo__visual {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 34px;
    padding: 18px 0 4px;
}

.candles-promo__candle {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.candles-promo__wax {
    width: 34px;
    height: 110px;
    border-radius: 8px 8px 5px 5px;
    background: linear-gradient(180deg, #f6ecd9 0%, #e8d7b8 60%, #d9c49e 100%);
    box-shadow: inset -6px 0 10px rgba(120, 84, 40, 0.25), 0 10px 24px rgba(0, 0, 0, 0.35);
}
.candles-promo__candle--small .candles-promo__wax {
    width: 28px;
    height: 74px;
}

.candles-promo__flame {
    position: relative;
    z-index: 2;
    width: 16px;
    height: 26px;
    margin-bottom: 3px;
    background: radial-gradient(ellipse at 50% 72%, #fff8e1 0%, #ffd873 42%, #f59d1e 78%, rgba(245, 157, 30, 0) 100%);
    border-radius: 50% 50% 46% 54% / 62% 62% 38% 38%;
    transform-origin: 50% 90%;
    animation: candleFlicker 2.6s ease-in-out infinite;
}
.candles-promo__candle--small .candles-promo__flame {
    width: 13px;
    height: 21px;
    animation-duration: 2.1s;
    animation-delay: 0.6s;
}

.candles-promo__glow {
    position: absolute;
    top: -18px;
    left: 50%;
    width: 90px;
    height: 90px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 200, 100, 0.35) 0%, rgba(255, 200, 100, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: candleGlow 2.6s ease-in-out infinite;
}
.candles-promo__candle--small .candles-promo__glow {
    width: 70px;
    height: 70px;
    animation-delay: 0.6s;
}

@keyframes candleFlicker {
    0%, 100% { transform: scale(1) rotate(-1.5deg); }
    22%      { transform: scale(1.06, 0.94) rotate(2deg); }
    48%      { transform: scale(0.94, 1.08) rotate(-2.5deg); }
    74%      { transform: scale(1.04, 0.97) rotate(1deg); }
}
@keyframes candleGlow {
    0%, 100% { opacity: 0.85; }
    50%      { opacity: 1; }
}

@media (max-width: 860px) {
    .candles-promo {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 38px 26px;
        text-align: center;
    }
    .candles-promo__text { margin-left: auto; margin-right: auto; }
    .candles-promo__visual { padding-top: 0; }
    .candles-promo__wax { height: 84px; }
    .candles-promo__candle--small .candles-promo__wax { height: 58px; }
}
@media (max-width: 560px) {
    .candles-promo__cta {
        grid-template-columns: 1fr;
    }
}
@media (prefers-reduced-motion: reduce) {
    .candles-promo__flame,
    .candles-promo__glow { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   QR kód na hrob — samostatná sekce (#qr-na-hrob)
   Tmavá „produktová" dlaždice; každý materiál má vlastní dlaždici
   s videem (fallback na statickou fotku, dokud video neexistuje).
   ═══════════════════════════════════════════════════════════════════ */

.qr-showcase {
    position: relative;
    isolation: isolate;
    overflow: visible;
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px 52px 52px;
    border-radius: 24px;
    background: radial-gradient(circle at 82% 12%, rgba(196, 168, 124, 0.18), transparent 44%),
                linear-gradient(135deg, #1b1310 0%, #2b1c0e 52%, #241708 100%);
    box-shadow: var(--frame-ring), 0 24px 60px rgba(30, 20, 8, 0.35);
}

.qr-showcase__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 34px;
}

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

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

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

/* ── Dlaždice materiálů (každá s vlastním videem) ── */
.qr-showcase__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.qr-showcase__tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qr-showcase__media {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.qr-showcase__tile:hover .qr-showcase__media {
    transform: translateY(-4px);
    border-color: rgba(var(--gold-rgb), 0.7);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.qr-showcase__media video,
.qr-showcase__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

/* ── CTA ── */
.qr-showcase__cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}
.qr-showcase .btn-primary {
    background: var(--bg);
    color: var(--text);
    border-color: var(--bg);
}
.qr-showcase .btn-primary:hover {
    background: #fff;
    color: var(--text);
    transform: translateY(-2px);
}
.qr-showcase .btn-outline {
    background: rgba(255, 255, 255, 0.06);
    color: #FDF6EE;
    border: 1px solid rgba(253, 246, 238, 0.55);
}
.qr-showcase .btn-outline:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-color: #fff;
}

@media (max-width: 860px) {
    .qr-showcase { padding: 38px 26px 36px; }
    .qr-materials-showcase__grid { gap: 10px 8px; }
}
@media (max-width: 560px) {
    .qr-showcase__cta { flex-direction: column; align-items: stretch; }
    .qr-showcase__cta .btn { text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════════
   /vzpominky — vyhledávání osoby (+ úvodní animace při příchodu z CTA)
   ═══════════════════════════════════════════════════════════════════ */

.browse-search {
    scroll-margin-top: 110px;
}

.browse-search__form {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.browse-search__input {
    flex: 1;
    min-width: 240px;
    max-width: 420px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.browse-search__hint {
    max-width: 460px;
    margin: 0 auto 14px;
    padding: 10px 18px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--accent);
    background: rgba(var(--gold-rgb), 0.16);
    border: 1px solid rgba(var(--gold-rgb), 0.5);
    border-radius: 12px;
    animation: browseHintIn 0.5s ease 0.25s both;
}
.browse-search__hint[hidden] { display: none; }

@keyframes browseHintIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
}

/* Pulzující zvýraznění pole po „skoku" z CTA */
.browse-search--intro .browse-search__input {
    border-color: var(--gold);
    animation: browseSearchPulse 1.6s ease-in-out infinite;
}

@keyframes browseSearchPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb), 0.55); }
    50%      { box-shadow: 0 0 0 9px rgba(var(--gold-rgb), 0); }
}

@media (prefers-reduced-motion: reduce) {
    .browse-search__hint { animation: none; }
    .browse-search--intro .browse-search__input {
        animation: none;
        box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.45);
    }
}

/* Kompaktnější karta na úzkém mobilu (dva sloupce) — původní velikosti */
@media (max-width: 560px) {
    .memory-card { padding: 22px 14px 20px; border-radius: 14px; }
    .memory-card__portrait { width: 72px; height: 72px; margin-bottom: 14px; box-shadow: 0 0 0 1px var(--border), 0 0 0 4px var(--white), 0 0 0 5px var(--gold); }
    .memory-card__portrait--placeholder .icon { width: 28px; height: 28px; }
    .memory-card__name { font-size: 1.02rem; margin-bottom: 6px; }
    .memory-card__dates { font-size: 0.72rem; margin-bottom: 10px; gap: 4px; }
    .memory-card__excerpt { font-size: 0.82rem; line-height: 1.5; margin-bottom: 14px; }
    .memory-card__link { font-size: 0.68rem; }

    .memories-grid .memory-card {
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 22px 14px 20px;
        min-height: 0;
        box-shadow: var(--frame-ring);
    }
    .memories-grid .memory-card:hover {
        border-color: var(--gold);
        box-shadow: var(--shadow-lg);
    }
    .memories-grid .memory-card__portrait {
        width: 72px;
        height: 72px;
        margin-bottom: 14px;
        box-shadow: 0 0 0 1px var(--border), 0 0 0 4px var(--white), 0 0 0 5px var(--gold);
    }
    .memories-grid .memory-card__portrait--placeholder .icon { width: 28px; height: 28px; }
    .memories-grid .memory-card__name { font-size: 1.02rem; margin-bottom: 6px; }
    .memories-grid .memory-card__dates { font-size: 0.72rem; margin-bottom: 10px; gap: 4px; }
    .memories-grid .memory-card__excerpt { font-size: 0.82rem; line-height: 1.5; margin-bottom: 14px; }
    .memories-grid .memory-card__link { font-size: 0.68rem; }
}

/* ── Rodinná vzpomínka: seznam zesnulých ── */
.memory-family-list {
    list-style: none;
    margin: 12px 0 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(28rem, 100%);
    max-width: 28rem;
    position: relative;
    z-index: 1;
}
.memory-family-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}
.memory-family-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
}
.memory-family-card--has-photo {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-align: left;
}
.memory-family-card__photo {
    flex-shrink: 0;
    background: none;
    box-shadow: none;
    padding: 0;
}
.memory-family-card__photo.photo-ring--sm {
    width: 100px;
    height: 100px;
}
.memory-family-card__photo.photo-ring--sm img {
    width: 100px;
    height: 100px;
    border: 4px solid #241610;
}
.memory-family-card__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.memory-family-card--static {
    border-color: var(--border, #e5e0d8);
    background: transparent;
}
.memory-family-card__name {
    font-weight: 600;
    font-size: 1.05rem;
}
.memory-family-card__dates {
    font-size: 0.88rem;
    opacity: 0.78;
    letter-spacing: 0.03em;
}
.memory-family-list--draft .memory-family-card {
    border-color: var(--border, #e5e0d8);
    background: #faf8f5;
}
.memory-person-hero {
    max-width: 40rem;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
    text-align: center;
}
.memory-person-back {
    display: inline-block;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
    color: var(--accent, #6B8FA3);
    text-decoration: none;
}
.memory-person-back:hover { text-decoration: underline; }
.memory-person-hero__photo { margin: 0 auto 1.25rem; }
button.memory-person-hero__photo,
.memory-person-hero__photo.photo-ring {
    border: none;
    background: none;
    box-shadow: none;
    padding: 0;
    cursor: pointer;
}
.memory-person-hero__photo.photo-ring--lg {
    width: 220px;
    height: 220px;
}
.memory-person-hero__photo.photo-ring--lg img {
    width: 220px;
    height: 220px;
    border: 4px solid #241610;
}
.memory-person-hero__photo.photo-ring--placeholder {
    background: #2B180A;
}
.memory-person-hero__family { margin: 0.25rem 0 0.75rem; letter-spacing: 0.04em; }
.memory-person-hero__bio {
    margin: 1.5rem auto 0;
    max-width: 36rem;
}
.memory-person-hero__actions {
    margin: 1rem 0 0.75rem;
}
.memory-person-thumbs {
    list-style: none;
    margin: 0.75rem auto 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 28rem;
}
.memory-person-thumbs__btn {
    display: block;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
}
.memory-person-thumbs__btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.photo-item:has(.photo-item__person) {
    height: auto;
    min-width: 110px;
}
.photo-item:has(.photo-item__person) .photo-item__img {
    height: 100px;
    width: auto;
    max-width: 140px;
    display: block;
}
.photo-item__person {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 4px;
    width: 100%;
    min-width: 110px;
}
.photo-item__person-select {
    width: 100%;
    font-size: 0.68rem;
    line-height: 1.2;
    padding: 2px 3px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
    color: #222;
}
.photo-item__portrait-btn {
    font-size: 0.65rem;
    line-height: 1.2;
    padding: 2px 4px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.92);
    color: #333;
    cursor: pointer;
}
.photo-item__portrait-btn.is-active {
    background: #2f5d50;
    border-color: #2f5d50;
    color: #fff;
}
.photo-item.is-portrait {
    outline: 2px solid #2f5d50;
    outline-offset: 1px;
}

/* Wizard: repeater osob */
.wiz-persons { display: flex; flex-direction: column; gap: 14px; }
.wiz-person {
    padding: 14px 16px;
    border: 1px solid var(--border, #e5e0d8);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.015);
}
.wiz-person__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.wiz-person__title { font-size: 0.92rem; }
.wiz-person__remove {
    border: none;
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0 4px;
}
.wiz-person__remove:hover { color: #e53e3e; }
.edit-persons { display: flex; flex-direction: column; gap: 16px; }
.edit-person {
    padding: 14px 16px;
    border: 1px solid var(--border, #e5e0d8);
    border-radius: 10px;
    background: #faf8f5;
}

/* ── Napiš, co máš na srdci ── */
.heart-page .hero-sm .subtitle {
    max-width: 36em;
    margin-left: auto;
    margin-right: auto;
}
.heart-wrap {
    max-width: 640px;
    margin: 0 auto;
}
.heart-form textarea {
    min-height: 200px;
    font-size: 1.05rem;
    line-height: 1.6;
}
.heart-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.heart-intents {
    border: 0;
    margin: 0 0 20px;
    padding: 0;
}
.heart-intents legend {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
}
.heart-choice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
}
.heart-choice:has(input:checked) {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.12);
}
.heart-choice input {
    width: auto;
    margin: 0;
}
.heart-choice span {
    font-weight: 500;
}
.heart-talk-extra {
    display: none;
}
.heart-form:has(input[name="intent"][value="talk"]:checked) .heart-talk-extra {
    display: block;
}
.heart-hint,
.heart-privacy,
.heart-disclaimer,
.heart-thanks-note {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 16px;
}
.heart-disclaimer {
    font-size: 0.85rem;
}

