:root{
--tpl-s1: 4px;   --tpl-s2: 8px;   --tpl-s3: 12px; --tpl-s4: 16px;
--tpl-s5: 24px;  --tpl-s6: 32px;  --tpl-s7: 48px; --tpl-s8: 64px;
--tpl-s9: 80px;
--tpl-gap: var(--tpl-s4);
--tpl-gap-tight: var(--tpl-s3);
--tpl-gutter: clamp(16px, 2.5vw, 32px);
--tpl-section: clamp(32px, 5vw, 80px);
--tpl-card-pad: var(--tpl-s5);
--tpl-bp-phone: 640px;
--tpl-bp-tablet: 1024px;
--tpl-bp-desktop: 1440px;
}
.tpl-section{ margin-block: var(--tpl-section) }
.tpl-section > [class$="__head"]{ display:flex; align-items:flex-start;
    gap:var(--tpl-s3); margin:0 0 var(--tpl-s4) }
.tpl-section > [class$="__head"] > div{ min-width:0 }
.tpl-section > [class$="__head"] .fx-badge{ flex:none }
.tpl-section > [class$="__head"] h2{ margin:0;
    font-size:clamp(1.35rem, 2.4vw, 1.75rem); line-height:1.15; letter-spacing:-.02em }
.tpl-section > [class$="__head"] p{ margin:var(--tpl-s1) 0 0;
    font-size:.95rem; line-height:1.45; color:var(--surface-mute,#5b667a) }
.tpl-cards{ display:grid; gap: var(--tpl-gap) }
@media (max-width: 639.98px){
.tpl-cards{ gap: var(--tpl-gap-tight) }
}
@media (prefers-reduced-motion: reduce){
.tpl-cards *, .tpl-section *{ transition:none !important; animation:none !important }
}
.nx-blocks{ display:grid; gap:var(--tpl-s5) }
.nx-block__figure{ margin:0 }
.nx-block__img{ width:100%; height:auto; display:block }
.nx-block__cap{ margin-top:var(--tpl-s2); font-size:.85rem; color:#6b6f76 }
.nx-block__quote{ margin:0; padding:var(--tpl-s5) var(--tpl-s6);
border-left:3px solid var(--color-primary,#4f46e5); background:#f8f7f2;
font-family:Georgia,"Times New Roman",serif; font-size:1.15rem; line-height:1.55 }
.nx-block__quote cite{ display:block; margin-top:var(--tpl-s3); font-size:.8rem; font-style:normal; color:#6b6f76 }
.nx-block__gallery{ display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap:var(--tpl-gap) }
.nx-block__gitem{ margin:0 }
.nx-block__gitem img{ width:100%; aspect-ratio:4 / 3; object-fit:cover; display:block }
.nx-block__gitem figcaption{
    margin-top:var(--tpl-s1, .4rem); font-size:.78rem; line-height:1.45;
    color:var(--surface-mute,#64748b);
}
.nx-block__gallery--strip{
    display:flex; gap:var(--tpl-gap); overflow-x:auto; overscroll-behavior-x:contain;
    scroll-snap-type:x mandatory; padding-bottom:.35rem;
}
.nx-block__gallery--strip .nx-block__gitem{
    flex:0 0 min(78%, 34rem); scroll-snap-align:start; margin:0;
}
.nx-block__gallery--strip .nx-block__gitem img{ aspect-ratio:16 / 10 }
.nx-block__gallery--mosaic{
    display:grid; grid-template-columns:repeat(6, minmax(0,1fr));
    gap:var(--tpl-gap);
}
.nx-block__gallery--mosaic .nx-block__gitem{ margin:0; min-width:0 }
.nx-block__gallery--mosaic .nx-block__gitem:first-child{ grid-column:span 4 }
.nx-block__gallery--mosaic .nx-block__gitem:nth-child(2){ grid-column:span 2 }
.nx-block__gallery--mosaic .nx-block__gitem:nth-child(n+3){ grid-column:span 2 }
.nx-block__gallery--mosaic .nx-block__gitem:first-child img{ aspect-ratio:16 / 10 }
.nx-block__gallery--mosaic .nx-block__gitem:nth-child(2) img,
.nx-block__gallery--mosaic .nx-block__gitem:nth-child(n+3) img{ aspect-ratio:4 / 3 }
@media (max-width:639.98px){
    .nx-block__gallery--strip .nx-block__gitem{ flex-basis:88% }
    .nx-block__gallery--mosaic{ grid-template-columns:1fr }
    .nx-block__gallery--mosaic .nx-block__gitem,
    .nx-block__gallery--mosaic .nx-block__gitem:first-child,
    .nx-block__gallery--mosaic .nx-block__gitem:nth-child(2),
    .nx-block__gallery--mosaic .nx-block__gitem:nth-child(n+3){ grid-column:auto }
    .nx-block__gallery--mosaic .nx-block__gitem img{ aspect-ratio:16 / 10 }
}
.nx-block__tablewrap{ overflow-x:auto }
.nx-block__table{ width:100%; border-collapse:collapse }
.nx-block__table td{ padding:var(--tpl-s3); border:1px solid var(--surface-bd,#e2e8f0) }
.nx-block__q{ border-top:1px solid var(--surface-bd,#e2e8f0) }
.nx-block__q summary{ cursor:pointer; padding:var(--tpl-s3) 0; font-weight:700 }
.nx-block__q p{ margin:0 0 var(--tpl-s3); color:var(--surface-mute,#64748b) }
@media (max-width:639.98px){
.nx-blocks{ gap:var(--tpl-s4) }
}
