.dfc-catalog,
.dfc-catalog * { box-sizing: border-box; }

.dfc-catalog {
    --dfc-bg: #11110f;
    --dfc-card: #ffffff;
    --dfc-text: #22211f;
    --dfc-accent: #f4bd26;
    --dfc-muted: #8f8d88;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(18px, 3vw, 42px);
    border-radius: 18px;
    background: linear-gradient(180deg, #181815 0%, #10100f 100%);
    box-shadow: 0 24px 80px rgba(0,0,0,.28);
    font-family: inherit;
}

.dfc-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
    padding: 0 4px 18px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.dfc-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--dfc-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
}

.dfc-heading {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.dfc-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.dfc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid var(--dfc-accent);
    border-radius: 9px;
    background: var(--dfc-accent);
    color: #171713 !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease;
}
.dfc-button:hover { transform: translateY(-2px); background: #ffd14e; }
.dfc-button--ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.25); }

.dfc-pages {
    display: grid;
    gap: clamp(18px, 3vw, 34px);
}

.dfc-page {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: var(--dfc-card);
    box-shadow: 0 16px 42px rgba(0,0,0,.35);
}

.dfc-page img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.dfc-page figcaption {
    position: absolute;
    right: 14px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(17,17,15,.76);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    opacity: 0;
    transform: translateY(5px);
    transition: .2s ease;
}
.dfc-page:hover figcaption { opacity: 1; transform: translateY(0); }

.dfc-floating-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--dfc-accent);
    color: #161611;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(0,0,0,.28);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: .25s ease;
}
.dfc-floating-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

@media (max-width: 767px) {
    .dfc-catalog { padding: 10px; border-radius: 10px; }
    .dfc-toolbar { align-items: flex-start; flex-direction: column; padding: 10px 4px 16px; }
    .dfc-heading { font-size: 30px; }
    .dfc-actions, .dfc-button { width: 100%; }
    .dfc-page { border-radius: 6px; }
    .dfc-page figcaption { display: none; }
    .dfc-floating-top { width: 44px; height: 44px; right: 14px; bottom: 14px; }
}

@media print {
    .dfc-toolbar, .dfc-floating-top, .dfc-page figcaption { display: none !important; }
    .dfc-catalog { max-width: none; padding: 0; background: #fff; box-shadow: none; }
    .dfc-pages { gap: 0; }
    .dfc-page { break-after: page; border-radius: 0; box-shadow: none; }
}
