:root {
    --color-bg-deep: #0F172A;
    --color-bg-sacred: #1E1B4B;
    --color-primary: #D6A84A;
    --color-primary-soft: #FFE7A8;
    --color-paper: #FFFDF8;
    --color-cream: #F8F2E9;
    --color-text: #14213D;
    --color-muted: #6B7280;
    --color-white: #FFFFFF;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --shadow-soft: 0 18px 60px rgba(0,0,0,0.18);
    --shadow-card: 0 10px 30px rgba(15,23,42,0.12);
    --bg: var(--color-cream);
    --paper: var(--color-paper);
    --ink: var(--color-text);
    --muted: var(--color-muted);
    --blue: #2450a4;
    --gold: var(--color-primary);
    --line: rgba(201,162,39,.24);
    --danger: #a23535;
    --ok: #237251;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(circle at 78% 0%, rgba(255,231,168,.48), transparent 30rem),
        radial-gradient(circle at 0% 10%, rgba(214,168,74,.16), transparent 25rem),
        linear-gradient(180deg, #fffaf0 0%, var(--bg) 42%, #fbf6ee 100%);
    color: var(--ink);
    font-family: "Open Sans", Inter, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { max-width: 100%; }
.site-header, .site-footer {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
    max-width: none;
    padding-inline: max(16px, calc((100vw - 1180px) / 2));
    background: rgba(255,253,248,.9);
    border-bottom: 1px solid rgba(214,168,74,.22);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 28px rgba(20,33,61,.06);
}
.site-header nav, .actions, .hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.site-header nav { display: none; }
.site-header nav a, .inline-form button {
    border: 0;
    background: transparent;
    color: #5f5549;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; text-decoration: none; min-width: 0; }
.brand-logo { width: 118px; display: block; filter: drop-shadow(0 8px 18px rgba(36,80,164,.16)); }
.brand span { white-space: nowrap; }
.menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid rgba(201,162,39,.38);
    border-radius: var(--radius-sm);
    background: rgba(255,253,248,.92);
    color: var(--color-text);
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(20,33,61,.08);
}
.menu-lines {
    display: grid;
    gap: 4px;
}
.menu-lines span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

main { min-height: calc(100vh - 150px); }
.hero, .section, .text-band, .narrow, .form-shell, .wizard-shell, .engrave-panel, .auth-box, .step-cards, .final-cta, .branch-landing {
    width: min(1120px, 100%);
    margin: 0 auto 32px;
    padding: 32px 16px;
}
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; line-height: 1.06; margin: 0 0 14px; letter-spacing: 0; }
h1 { font-size: clamp(42px, 10vw, 86px); }
h2 { font-size: clamp(28px, 5vw, 40px); }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: #423b4b; }
.eyebrow, .step-kicker {
    color: var(--gold);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 10px;
}
.soft, .hint, small, .site-footer { color: var(--muted); }

.sacred-hero {
    width: min(1120px, calc(100% - 32px));
    min-height: clamp(500px, 60vh, 640px);
    max-width: 1120px;
    margin: 28px auto 42px;
    padding: clamp(28px, 4.5vw, 52px);
    display: grid;
    align-items: center;
    gap: 36px;
    background:
        linear-gradient(90deg, rgba(255,253,248,.96) 0 44%, rgba(255,253,248,.70) 58%, rgba(255,253,248,.16) 100%),
        radial-gradient(circle at 72% 43%, rgba(255,232,177,.96), rgba(255,232,177,.26) 16rem, transparent 27rem),
        url("../img/hero-zdp-light.png");
    background-size: cover;
    color: var(--color-text);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(214,168,74,.32);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(20,33,61,.14);
}
.sacred-hero::before {
    content: "";
    position: absolute;
    right: 9%;
    top: 18%;
    width: 9rem;
    height: 14rem;
    background:
        linear-gradient(90deg, transparent 42%, rgba(214,168,74,.88) 42% 58%, transparent 58%),
        linear-gradient(0deg, transparent 45%, rgba(214,168,74,.88) 45% 55%, transparent 55%);
    opacity: .55;
    filter: drop-shadow(0 12px 18px rgba(214,168,74,.24));
    pointer-events: none;
}
.sacred-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(48vw, 560px);
    height: min(42vw, 420px);
    background:
        radial-gradient(ellipse at 50% 78%, rgba(95,110,82,.22), transparent 55%),
        linear-gradient(135deg, transparent 40%, rgba(214,168,74,.18));
    pointer-events: none;
}
.hero-copy { max-width: 720px; position: relative; z-index: 1; }
.hero-copy h1 { font-size: clamp(52px, 12vw, 112px); }
.hero-subtitle { font-size: clamp(22px, 4vw, 34px); font-family: "Lora", Georgia, serif; color: #A56F1F; margin: 0 0 16px; }
.sacred-hero .lead { color: #38445c; max-width: 640px; }
.hero-book { position: relative; z-index: 1; perspective: 1100px; }
.book-spread {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    transform: rotateX(8deg) rotateZ(-2deg);
    filter: drop-shadow(0 28px 44px rgba(20,33,61,.18));
}
.book-page {
    min-height: 360px;
    padding: 34px;
    background: linear-gradient(135deg, #fffdf7, #f8eedc);
    color: var(--color-text);
    border: 1px solid rgba(201,162,39,.36);
}
.left-page { border-radius: 26px 8px 8px 26px; }
.right-page { border-radius: 8px 26px 26px 8px; }
.book-page span { color: var(--gold); font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.book-page strong { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 46px; margin: 34px 0 16px; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 20px;
    border: 1px solid rgba(201,162,39,.7);
    border-radius: var(--radius-sm);
    background: rgba(255,253,247,.9);
    color: #81651e;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button.primary { background: linear-gradient(135deg, var(--gold), #d8b849); color: #18120a; border-color: transparent; }
.button.ghost { background: rgba(255,255,255,.66); color: var(--color-text); border-color: rgba(20,33,61,.22); backdrop-filter: blur(14px); }
.button.ghost.light { color: var(--color-text); background: rgba(255,255,255,.65); }
.button.glow { box-shadow: 0 16px 38px rgba(201,162,39,.26); }
.button:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(15,23,42,.16); }
.button:active { transform: translateY(0); }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; box-shadow: none; }
.button.large { width: 100%; font-size: 18px; min-height: 58px; }
.button.small { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.button.danger { border-color: var(--danger); color: var(--danger); }
.button-xl { min-height: 58px; padding: 15px 24px; border-radius: 14px; font-size: 17px; letter-spacing: 0; }
.button.primary span, .button.ghost span { position: relative; z-index: 1; }
.button.primary {
    position: relative;
    overflow: hidden;
}
.button.primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0 32%, rgba(255,255,255,.42) 44%, transparent 58%);
    transform: translateX(-120%);
    transition: transform .5s ease;
}
.button.primary:hover::after { transform: translateX(120%); }

.premium-carousel {
    grid-template-columns: minmax(0, 1fr);
    isolation: isolate;
    background: #14213D;
    overflow: visible;
    margin-bottom: 112px;
}
.premium-carousel::before,
.premium-carousel::after {
    display: none;
}
.carousel-track {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: inherit;
}
.carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: clamp(28px, 4.5vw, 52px);
    opacity: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255,253,248,.97) 0 43%, rgba(255,253,248,.78) 58%, rgba(255,253,248,.18) 100%),
        radial-gradient(circle at 74% 42%, rgba(255,231,168,.7), transparent 22rem),
        var(--slide-image);
    background-size: cover;
    background-position: center;
    transition: opacity .65s ease, transform 1.8s ease;
    transform: scale(1.02);
}
.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}
.video-hero-slide {
    background:
        linear-gradient(90deg, rgba(15,23,42,.78) 0 40%, rgba(15,23,42,.44) 58%, rgba(15,23,42,.08) 100%),
        radial-gradient(circle at 24% 46%, rgba(255,231,168,.18), transparent 22rem),
        linear-gradient(180deg, rgba(15,23,42,.1), rgba(15,23,42,.36)),
        var(--slide-image);
    background-size: cover;
    background-position: center;
}
.carousel-slide .hero-copy {
    max-width: 680px;
    padding-right: min(12vw, 160px);
    color: var(--color-white);
    text-shadow: 0 3px 18px rgba(15,23,42,.34);
}
.carousel-slide .eyebrow { color: var(--color-primary-soft); }
.premium-carousel h1 { font-size: clamp(38px, 6vw, 62px); }
.carousel-slide .hero-subtitle { color: #FFE7A8; }
.carousel-slide .lead { color: rgba(255,255,255,.9); }
.carousel-slide .button.ghost { background: rgba(255,253,248,.86); color: var(--color-text); }
.hero-video-play {
    position: absolute;
    right: clamp(42px, 12vw, 150px);
    top: 50%;
    z-index: 4;
    width: clamp(86px, 10vw, 122px);
    height: clamp(86px, 10vw, 122px);
    border-radius: 50%;
    transform: translateY(-50%);
    background: rgba(255,253,248,.84);
    border: 1px solid rgba(255,231,168,.86);
    box-shadow: 0 28px 76px rgba(20,33,61,.28), 0 0 0 18px rgba(255,253,248,.18);
    backdrop-filter: blur(14px);
}
.hero-video-play::before {
    content: "";
    position: absolute;
    left: 43%;
    top: 50%;
    transform: translate(-35%, -50%);
    border-left: clamp(24px, 3vw, 34px) solid #14213D;
    border-top: clamp(16px, 2vw, 22px) solid transparent;
    border-bottom: clamp(16px, 2vw, 22px) solid transparent;
}
.hero-video-play::after {
    content: "";
    position: absolute;
    inset: -16px;
    border-radius: inherit;
    border: 1px solid rgba(245,215,110,.34);
    animation: videoPulse 2.4s ease-in-out infinite;
}
.carousel-panel {
    position: relative;
    z-index: 3;
    align-self: end;
    justify-self: end;
    width: min(430px, 44vw);
    margin-left: auto;
    pointer-events: none;
}
.video-mini-stack {
    max-width: 360px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: rgba(255,253,248,.7);
    border: 1px solid rgba(201,162,39,.34);
    box-shadow: 0 24px 64px rgba(20,33,61,.18);
    backdrop-filter: blur(18px);
}
.video-mini-stack span {
    color: var(--gold);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 12px;
}
.video-mini-stack strong {
    display: block;
    margin: 12px 0 10px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.05;
}
.video-mini-stack p { margin: 0; color: #475569; font-weight: 700; }
.glass-book {
    transform: rotateX(7deg) rotateZ(-2deg) translateY(22px);
}
.glass-book .book-page {
    min-height: 330px;
    background:
        linear-gradient(135deg, rgba(255,253,247,.92), rgba(255,246,223,.76)),
        url("../img/paper-pattern.svg");
    backdrop-filter: blur(14px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
.carousel-controls {
    position: absolute;
    left: 50%;
    bottom: -66px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
}
.carousel-arrow,
.carousel-dots button {
    border: 1px solid rgba(201,162,39,.46);
    background: rgba(255,253,248,.92);
    color: var(--color-text);
    box-shadow: 0 12px 28px rgba(20,33,61,.12);
    backdrop-filter: blur(14px);
    cursor: pointer;
}
.carousel-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}
.carousel-dots { display: flex; align-items: center; gap: 8px; }
.carousel-dots button {
    width: 11px;
    height: 11px;
    padding: 0;
    border-radius: 50%;
}
.carousel-dots button.active {
    width: 34px;
    border-radius: 999px;
    background: var(--gold);
}
.carousel-arrow:hover,
.carousel-dots button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(20,33,61,.16);
}

.video-invite {
    display: grid;
    gap: 26px;
    align-items: center;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 8% 0%, rgba(255,231,168,.36), transparent 18rem),
        linear-gradient(135deg, rgba(255,253,248,.95), rgba(248,241,231,.86));
    border: 1px solid rgba(201,162,39,.24);
    box-shadow: var(--shadow-card);
}
.video-copy p:not(.eyebrow) { max-width: 620px; font-size: 18px; color: #475569; }
.feature-image-card {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 320px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(201,162,39,.34);
    box-shadow: 0 28px 70px rgba(20,33,61,.18);
    background: #14213D;
}
.feature-image-card img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
    transition: transform .65s ease;
}
.feature-image-card:hover img { transform: scale(1.035); }

.step-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 0; position: relative; z-index: 2; }
.step-cards article, .branch-card, .testimony-card, .stats-grid div, .list-item {
    background: rgba(255,253,247,.82);
    border: 1px solid rgba(201,162,39,.22);
    border-radius: var(--radius-md);
    padding: 24px;
    text-decoration: none;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.step-cards article span, .branch-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fbf0ca;
    color: #7d5f10;
    font-weight: 900;
}
.step-cards article:hover, .branch-card:hover, .testimony-card:hover, .list-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(15,23,42,.16);
    border-color: rgba(201,162,39,.48);
}
.premium-band, .final-cta {
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(255,253,247,.94), rgba(248,241,231,.88)),
        radial-gradient(circle at 80% 0%, rgba(245,215,110,.2), transparent 18rem);
    border: 1px solid rgba(201,162,39,.24);
    box-shadow: var(--shadow-card);
}
.final-cta { text-align: center; padding-block: 58px; }

.section-heading { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 22px; }
.branch-grid, .testimony-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.branch-card { overflow: hidden; padding: 0; }
.branch-card strong, .branch-card > span:not(.branch-image), .testimony-card strong, .list-item strong { margin-left: 18px; margin-right: 18px; }
.branch-card strong, .testimony-card strong, .list-item strong { display: block; font-size: 21px; margin-top: 16px; margin-bottom: 8px; }
.branch-card > span:not(.branch-image) { display: block; margin-bottom: 18px; }
.branch-image {
    display: block;
    width: 100%;
    height: clamp(150px, 18vw, 190px);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(214,168,74,.24);
}
.testimony-card p { color: #4b5563; }
.read-more { color: #7d5f10; font-weight: 900; }

.all-testimonies-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 34px;
    padding: clamp(28px, 5vw, 58px);
    display: grid;
    gap: 28px;
    align-items: end;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .7fr);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(120deg, rgba(255,253,248,.97) 0 46%, rgba(255,253,248,.75)),
        radial-gradient(circle at 84% 18%, rgba(255,231,168,.48), transparent 20rem),
        url("../img/video-testimonies-poster.jpg");
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(214,168,74,.32);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.all-testimonies-hero h1 { max-width: 760px; }
.all-testimonies-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.all-testimonies-stats span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,253,248,.82);
    border: 1px solid rgba(201,162,39,.26);
    font-weight: 900;
}
.all-testimonies-stats strong { color: #9b6d16; font-size: 22px; }
.public-filter-card {
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(255,253,248,.88);
    border: 1px solid rgba(201,162,39,.28);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
}
.branch-filter-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 0 12px;
    margin-bottom: 22px;
    scrollbar-width: thin;
}
.branch-filter-pills a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 9px 13px;
    border-radius: 999px;
    text-decoration: none;
    background: rgba(255,253,248,.9);
    border: 1px solid rgba(201,162,39,.24);
    color: #695d4c;
    font-weight: 900;
}
.branch-filter-pills a.active {
    background: linear-gradient(135deg, var(--gold), #f0cc64);
    color: #17110a;
    border-color: transparent;
}
.branch-filter-pills span {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.62);
}
.testimony-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.testimony-feature-card {
    position: relative;
    display: grid;
    align-content: start;
    min-height: 420px;
    overflow: hidden;
    padding: 18px;
    border-radius: var(--radius-md);
    color: var(--color-text);
    text-decoration: none;
    border: 1px solid rgba(201,162,39,.26);
    background:
        linear-gradient(180deg, rgba(255,253,248,.42), rgba(255,253,248,.98) 42%),
        #fffdf8;
    box-shadow: var(--shadow-card);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.testimony-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(15,23,42,.16);
    border-color: rgba(201,162,39,.48);
}
.testimony-cover {
    display: block;
    height: 150px;
    margin: -18px -18px 16px;
    background-size: cover;
    background-position: center;
}
.testimony-feature-card .stamp {
    justify-self: start;
    margin-bottom: 12px;
}
.testimony-feature-card strong {
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 27px;
    line-height: 1.08;
    margin-bottom: 10px;
}
.testimony-feature-card small { font-weight: 800; }
.testimony-feature-card p { color: #4b5563; }
.empty-state {
    max-width: 620px;
    margin: 28px auto 0;
    text-align: center;
    padding: 32px;
    border-radius: var(--radius-md);
    background: rgba(255,253,248,.88);
    border: 1px solid rgba(201,162,39,.24);
    box-shadow: var(--shadow-card);
}

.branch-landing {
    margin-top: 28px;
    display: grid;
    gap: 22px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(90deg, rgba(255,253,248,.96) 0 50%, rgba(255,253,248,.55) 70%, rgba(255,253,248,.18)),
        radial-gradient(circle at 78% 32%, rgba(255,231,168,.88), transparent 16rem),
        linear-gradient(135deg, rgba(226,239,250,.72), rgba(255,245,223,.86));
    color: var(--color-text);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(214,168,74,.28);
    position: relative;
    overflow: hidden;
}
.branch-landing::after {
    content: "";
    position: absolute;
    right: 9%;
    bottom: 14%;
    width: 96px;
    height: 136px;
    background:
        linear-gradient(90deg, transparent 42%, rgba(214,168,74,.72) 42% 58%, transparent 58%),
        linear-gradient(0deg, transparent 45%, rgba(214,168,74,.72) 45% 55%, transparent 55%);
    opacity: .48;
}
.branch-landing .lead { color: #475569; }
.branch-landing h1 { font-size: clamp(42px, 7vw, 82px); max-width: 760px; }
.branch-panel {
    width: fit-content;
    padding: 18px 22px;
    border: 1px solid rgba(214,168,74,.28);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.62);
    backdrop-filter: blur(12px);
}
.branch-cover {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid rgba(214,168,74,.28);
    box-shadow: var(--shadow-card);
}
.stat-number { display: block; font-size: 46px; font-family: "Playfair Display", Georgia, serif; color: #B78024; }

.form-shell, .wizard-shell { display: grid; gap: 22px; align-items: start; }
.wizard-layout { display: grid; gap: 22px; align-items: start; }
.testimony-form, .auth-box form, .engrave-panel > form, .modal-card {
    background: rgba(255,253,247,.88);
    border: 1px solid rgba(201,162,39,.24);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
}
.wizard-progress { display: flex; gap: 10px; margin-top: 18px; }
.wizard-progress span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(201,162,39,.4);
    color: #83651e;
    font-weight: 900;
}
.wizard-progress span.active { background: var(--gold); color: #17110a; }
.form-step { display: none; animation: stepIn .22s ease both; }
.form-step.active { display: block; }
label { display: grid; gap: 8px; margin-bottom: 16px; font-weight: 900; }
input, textarea, select {
    width: 100%;
    min-height: 50px;
    border: 1px solid #d6c8aa;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.94);
    color: var(--ink);
    padding: 13px 14px;
    font: inherit;
}
textarea { min-height: 132px; resize: vertical; }
input.field-invalid, textarea.field-invalid, select.field-invalid {
    border-color: #b91c1c;
    box-shadow: 0 0 0 4px rgba(185,28,28,.12);
}
.wizard-step-error {
    margin: 8px 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(185,28,28,.2);
    border-radius: var(--radius-sm);
    background: rgba(254,242,242,.96);
    color: #7f1d1d;
    font-weight: 800;
}
.wizard-step-error[hidden] { display: none; }
.form-grid, .stats-grid, .two-col { display: grid; grid-template-columns: 1fr; gap: 14px; }
.stats-grid div { display: grid; gap: 4px; }
.stats-grid div strong { display: block; font-size: 32px; line-height: 1; }
.two-col { gap: 28px; }
.two-col > div { min-width: 0; }
.two-col .testimony-list { margin-top: 16px; }
.two-col h2, .section table + h2, .compact + h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 18px; }
.section > h1:first-child, .section-heading h1 { font-size: clamp(42px, 7vw, 72px); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.check input { width: 22px; height: 22px; min-height: 22px; flex: none; margin-top: 2px; }
.hp { position: absolute; left: -5000px; }
.question-note {
    background: #fff6df;
    border-left: 4px solid var(--gold);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-weight: 900;
    margin: 8px 0 18px;
}
.style-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.style-options label { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px; border: 1px solid rgba(201,162,39,.24); border-radius: var(--radius-sm); background: #fffaf0; }
.style-options input { width: 18px; min-height: 18px; }
.selected-style-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(214,168,74,.34);
    border-radius: var(--radius-md);
    background:
        linear-gradient(135deg, rgba(255,253,248,.96), rgba(255,246,223,.82)),
        url("../img/paper-pattern.svg");
    box-shadow: 0 14px 34px rgba(20,33,61,.08);
}
.selected-style-card span {
    color: var(--muted);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
}
.selected-style-card strong {
    font-family: "Playfair Display", Georgia, serif;
    color: #806112;
    font-size: 26px;
}
.autosave-dot { width: 10px; height: 10px; display: inline-block; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 6px rgba(35,114,81,.12); }
.code-textarea { min-height: 220px; font-family: Consolas, "Courier New", monospace; font-size: 14px; }

.live-preview { position: sticky; top: 100px; display: none; }
.book-pages { display: grid; justify-items: center; gap: 28px; padding: 10px 14px 34px; }
.a4-page {
    width: min(794px, calc(100vw - 28px));
    aspect-ratio: 210 / 297;
    background:
        radial-gradient(circle at 20% 0%, rgba(255,231,168,.22), transparent 19rem),
        linear-gradient(135deg, rgba(255,253,247,.98), rgba(255,249,235,.94)),
        url("../img/paper-pattern.svg");
    color: #22180f;
    box-shadow: 0 30px 76px rgba(20,33,61,.16), 0 4px 18px rgba(201,162,39,.14);
    border: 1px solid rgba(201,162,39,.46);
    border-radius: 2px;
    padding: clamp(28px, 5vw, 58px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    animation: pageSettle .32s ease both;
}
.a4-page::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(201,162,39,.46); box-shadow: inset 0 0 0 1px rgba(255,255,255,.62); pointer-events: none; }
.a4-paginated > * { flex-shrink: 0; }
.a4-page.is-engraved::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 0 44%, rgba(245,215,110,.22) 48%, transparent 54%); animation: goldLine 1s ease both; pointer-events: none; }
.a4-page header, .a4-page footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; position: relative; z-index: 1; }
.a4-page header { margin-bottom: 30px; }
.a4-page footer { margin-top: auto; color: var(--muted); font-size: 13px; }
.page-logo { width: clamp(104px, 18vw, 150px); height: auto; display: block; flex: none; filter: drop-shadow(0 8px 16px rgba(36,80,164,.12)); }
.page-heading { text-align: right; line-height: 1.35; min-width: 0; display: grid; justify-items: end; gap: 3px; }
.page-heading small { display: block; color: #7d725f; font-weight: 800; }
.page-heading strong { display: block; color: #806112; font-family: "Lora", Georgia, serif; font-size: 16px; }
.page-heading small, .page-heading strong, .a4-page h2, .author, .a4-body { overflow-wrap: anywhere; hyphens: auto; }
.a4-page h2 { text-align: center; font-size: clamp(30px, 4.2vw, 46px); margin-top: 18px; color: #26180e; }
.author { text-align: center; color: #746755; font-weight: 800; margin-bottom: 18px; }
.a4-body { white-space: normal; position: relative; z-index: 1; line-height: 1.4; font-family: "Lora", Georgia, serif; font-weight: 600; }
.a4-answer { margin: 0 0 .9em; }
.a4-answer + .a4-answer .a4-question-title { margin-top: 1.75em; }
.a4-answer:last-child { margin-bottom: 0; }
.a4-question-title {
    display: block;
    margin: 0 0 1.05em;
    color: #21160d;
    font-family: "Lora", Georgia, serif;
    font-size: 1.34em;
    font-weight: 900;
    line-height: 1.16;
}
.a4-answer-text {
    color: #2c2118;
    font-weight: 600;
}
.font-normal .a4-body { font-size: 15px; }
.font-large .a4-body { font-size: 17px; }
.font-xlarge .a4-body { font-size: 19px; }
.mini-preview { width: min(420px, 100%); min-height: 594px; }
.mini-preview .a4-body { max-height: 230px; overflow: hidden; }
.engraved-seal, .seal-preview, .stamp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold);
    color: #806112;
    background: rgba(255,246,223,.88);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.engraved-seal {
    position: static;
    transform: rotate(-2deg);
    z-index: 3;
    min-width: auto;
    min-height: auto;
    margin-top: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(255,253,248,.96) 0 54%, rgba(255,246,223,.9) 55% 100%);
    border: 2px solid rgba(201,162,39,.9);
    box-shadow: inset 0 0 0 3px rgba(201,162,39,.13), 0 10px 20px rgba(128,97,18,.12);
    aspect-ratio: auto;
    font-size: 10px;
    letter-spacing: .08em;
    animation: sealIn .42s ease both .2s;
}

.engrave-panel { max-width: 794px; display: grid; gap: 16px; }
.engrave-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    place-items: center;
    padding: 18px;
    background: rgba(15,23,42,.72);
}
.engrave-modal.active { display: grid; }
.modal-card { max-width: 560px; position: relative; animation: modalIn .2s ease both; }
.modal-close { position: absolute; top: 14px; right: 16px; border: 0; background: transparent; font-size: 30px; cursor: pointer; }
.warning, .notice { background: #fff3d6; border: 1px solid var(--line); padding: 14px; border-radius: var(--radius-sm); }

.flash { max-width: 900px; margin: 14px auto; padding: 14px 18px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); font-weight: 800; animation: flashIn .24s ease both; }
.flash.success { border-color: var(--ok); color: var(--ok); }
.flash.error { border-color: var(--danger); color: var(--danger); }
.status { font-weight: 900; }
.status.engraved { color: var(--ok); }
.status.hidden { color: var(--danger); }
.auth-box { max-width: 480px; }
.search-row, .filters { display: flex; gap: 10px; flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; background: rgba(255,253,247,.94); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
th, td { padding: 14px; border-bottom: 1px solid rgba(201,162,39,.18); text-align: left; vertical-align: top; }
th { background: #fff3d6; }
.print-toolbar { padding: 20px; text-align: center; }
.offline-page { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 18px; padding: 24px; text-align: center; }
.offline-logo { width: min(220px, 78vw); box-shadow: 0 12px 30px rgba(36,80,164,.2); }

@keyframes flashIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pageSettle { from { opacity: .72; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes stepIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes goldLine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes sealIn { from { opacity: 0; transform: rotate(-2deg) scale(.88); } to { opacity: 1; transform: rotate(-2deg) scale(1); } }
@keyframes videoPulse { 0%, 100% { opacity: .28; transform: scale(.94); } 50% { opacity: .72; transform: scale(1.08); } }

@media (min-width: 760px) {
    .hero, .section, .text-band, .narrow, .form-shell, .wizard-shell, .engrave-panel, .auth-box, .final-cta, .branch-landing { padding: 44px 20px; }
    .form-grid { grid-template-columns: repeat(3, 1fr); }
    .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .branch-landing { grid-template-columns: 1.4fr .6fr; align-items: center; }
    .video-invite { grid-template-columns: .85fr 1.15fr; padding: 44px; }
}
@media (min-width: 980px) {
    .sacred-hero { grid-template-columns: 1fr .9fr; }
    .premium-carousel { grid-template-columns: 1fr; }
    .wizard-layout { grid-template-columns: minmax(0, 1fr) 430px; }
    .live-preview { display: block; }
}
@media (max-width: 760px) {
    .site-footer, .section-heading { align-items: flex-start; flex-direction: column; }
    .site-header { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 10px; }
    .menu-toggle { display: inline-flex; margin-left: auto; }
    .site-header nav {
        display: none;
        width: 100%;
        gap: 8px;
        padding: 10px 0 2px;
        border-top: 1px solid rgba(214,168,74,.2);
    }
    .site-header.nav-open nav { display: grid; }
    .site-header nav a, .site-header .inline-form button {
        width: 100%;
        min-height: 44px;
        padding: 10px 12px;
        border-radius: var(--radius-sm);
        background: rgba(255,253,248,.78);
        border: 1px solid rgba(201,162,39,.2);
        text-align: left;
        font-size: 14px;
    }
    .site-header .inline-form { width: 100%; }
    .brand-logo { width: 92px; }
    .brand span { font-size: 15px; }
    .sacred-hero { min-height: 520px; width: calc(100% - 20px); padding: 0; margin-top: 10px; border-radius: 22px; }
    .carousel-slide { align-items: flex-start; padding: 28px 20px 104px; background: linear-gradient(180deg, rgba(255,253,248,.98) 0 50%, rgba(255,253,248,.58)), var(--slide-image); background-size: cover; background-position: center bottom; }
    .video-hero-slide { background: linear-gradient(180deg, rgba(15,23,42,.68) 0 46%, rgba(15,23,42,.18)), var(--slide-image); background-size: cover; background-position: center bottom; }
    .carousel-slide .hero-copy { padding-right: 0; }
    .hero-copy h1 { font-size: clamp(38px, 13vw, 56px); }
    .hero-subtitle { font-size: 24px; }
    .carousel-panel { display: none; }
    .carousel-controls { left: 50%; right: auto; bottom: -62px; justify-content: center; transform: translateX(-50%); }
    .video-invite { padding: 24px 14px; }
    .feature-image-card, .feature-image-card img { min-height: 270px; }
    .step-cards { grid-template-columns: 1fr; margin-top: 0; }
    .book-spread { grid-template-columns: 1fr; transform: none; }
    .left-page, .right-page { border-radius: var(--radius-md); min-height: 220px; }
    .button { width: 100%; }
    .actions .button, .hero-actions .button { width: 100%; }
    .book-pages { gap: 18px; padding-inline: 6px; }
    .a4-page { width: min(794px, calc(100vw - 14px)); padding: 22px; }
    .a4-page::before { inset: 12px; }
    .a4-page header { align-items: flex-start; margin-bottom: 16px; gap: 10px; }
    .page-logo { width: clamp(82px, 28vw, 112px); }
    .page-heading { gap: 1px; }
    .page-heading small { font-size: 11px; }
    .page-heading strong { font-size: 13px; }
    .a4-page h2 { font-size: clamp(22px, 7.4vw, 31px); margin-top: 6px; margin-bottom: 10px; }
    .author { margin-bottom: 10px; font-size: 12.5px; line-height: 1.35; }
    .a4-page footer { font-size: 12px; }
    .font-normal .a4-body { font-size: 10.8px; line-height: 1.32; }
    .font-large .a4-body { font-size: 13px; }
    .font-xlarge .a4-body { font-size: 15px; }
    .a4-answer { margin-bottom: .7em; }
    .a4-answer + .a4-answer .a4-question-title { margin-top: 1.45em; }
    .a4-question-title { font-size: 1.24em; margin-bottom: .8em; }
    .engraved-seal { margin-top: 5px; padding: 3px 7px; font-size: 8px; border-width: 1px; box-shadow: inset 0 0 0 2px rgba(201,162,39,.12), 0 6px 12px rgba(128,97,18,.1); }
    table { display: block; overflow-x: auto; }
    .search-row input, .filters select, .filters input { max-width: none; width: 100%; }
    .all-testimonies-hero { grid-template-columns: 1fr; width: calc(100% - 20px); padding: 26px 18px; }
    .public-filter-card { padding: 16px; }
    .testimony-mosaic { grid-template-columns: 1fr; }
    .testimony-feature-card { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}
@media print {
    body { background: white; }
    .site-header, .site-footer, .print-toolbar, .flash { display: none !important; }
    .book-pages { padding: 0; gap: 0; display: block; }
    .a4-page { width: 210mm; height: 297mm !important; box-shadow: none; border: 0; page-break-after: always; }
    @page { size: A4; margin: 0; }
}
