/* ═══════════════════════════════════════════
   Zmrzlinavesce.cz — Public Styles
   (základ z titanzinek pagebuilderu, doplňky v zv-public.css)
   ═══════════════════════════════════════════ */

:root {
    --tz-primary: #2563eb;
    --tz-primary-dark: #1d4ed8;
    --tz-dark: #1e293b;
    --tz-text: #334155;
    --tz-muted: #6b7280;
    --tz-border: #e5e7eb;
    --tz-bg: #f8fafc;
    --tz-white: #ffffff;
    --tz-radius: 12px;
    --tz-font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }
body {
    font-family: var(--tz-font);
    color: var(--tz-text);
    background: var(--tz-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--tz-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════
   Header — sizes, hover effects, dropdowns (2 levels)
   Customisable via CSS vars set inline by PHP:
     --tz-hdr-bg    background color override
     --tz-hdr-text  text/link color override
   ══════════════════════════════════════════════════ */
.tz-header {
    --tz-hdr-h: 64px;
    --tz-hdr-pad-y: 10px;
    --tz-hdr-pad-x: 20px;
    --tz-hdr-font: 0.95rem;
    --tz-hdr-logo: 44px;
    --tz-hdr-accent: var(--tz-primary, #2563eb);
    z-index: 1000;
    background: var(--tz-hdr-bg, rgba(255,255,255,0.97));
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--tz-border);
    color: var(--tz-hdr-text, var(--tz-text));
    transition: box-shadow .3s, padding .3s;
}
.tz-header-sticky { position: sticky; top: 0; }

/* Size variants */
.tz-header-size-compact { --tz-hdr-h: 48px; --tz-hdr-pad-y: 8px;  --tz-hdr-pad-x: 16px; --tz-hdr-font: 0.85rem; --tz-hdr-logo: 32px; }
.tz-header-size-normal  { --tz-hdr-h: 64px; --tz-hdr-pad-y: 10px; --tz-hdr-pad-x: 20px; --tz-hdr-font: 0.95rem; --tz-hdr-logo: 44px; }
.tz-header-size-large   { --tz-hdr-h: 80px; --tz-hdr-pad-y: 14px; --tz-hdr-pad-x: 24px; --tz-hdr-font: 1.05rem; --tz-hdr-logo: 56px; }
.tz-header-size-xl      { --tz-hdr-h: 100px; --tz-hdr-pad-y: 18px; --tz-hdr-pad-x: 28px; --tz-hdr-font: 1.15rem; --tz-hdr-logo: 72px; }

/* Shadow */
.tz-header-shadow-none { box-shadow: none; }
.tz-header-shadow-soft { box-shadow: 0 2px 20px rgba(0,0,0,0.05); }
.tz-header-shadow-deep { box-shadow: 0 6px 30px rgba(0,0,0,0.18); }
.tz-header-shadow-none.scrolled { box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.tz-header-shadow-soft.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.12); }
.tz-header-shadow-deep.scrolled { box-shadow: 0 8px 40px rgba(0,0,0,0.25); }

.tz-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--tz-hdr-pad-x);
    min-height: var(--tz-hdr-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.tz-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.tz-logo img { height: var(--tz-hdr-logo); max-height: var(--tz-hdr-logo); width: auto; display: block; }
.tz-logo-text {
    font-size: calc(var(--tz-hdr-font) * 1.4);
    font-weight: 800;
    color: var(--tz-hdr-text, var(--tz-dark));
    letter-spacing: -0.02em;
}

/* Nav container */
.tz-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}
.tz-nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}
.tz-nav-item { position: relative; }
.tz-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--tz-hdr-pad-y) 14px;
    font-size: var(--tz-hdr-font);
    font-weight: 500;
    color: var(--tz-hdr-text, var(--tz-text));
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 6px;
    position: relative;
    transition: color .22s ease, background .22s ease, transform .22s ease;
}
.tz-nav-link.tz-nav-cat { cursor: default; }
.tz-nav-caret { font-size: .7em; opacity: .6; transition: transform .2s; }
.tz-nav-item:hover > .tz-nav-link > .tz-nav-caret { transform: rotate(180deg); }
.tz-nav-link.active { color: var(--tz-hdr-accent); font-weight: 600; }

/* Hover effect variants — each is its own style, mutually exclusive */

/* none — active state only */
.tz-header-hover-none .tz-nav-link.active { font-weight: 700; }

/* underline — static line below active + hover */
.tz-header-hover-underline .tz-nav-link { position: relative; }
.tz-header-hover-underline .tz-nav-link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px;
    height: 2px; background: var(--tz-hdr-accent); opacity: 0; transition: opacity .22s ease;
}
.tz-header-hover-underline .tz-nav-item:hover > .tz-nav-link::after,
.tz-header-hover-underline .tz-nav-link.active::after { opacity: 1; }

/* underline-sweep — line grows from left on hover */
.tz-header-hover-underline-sweep .tz-nav-link { position: relative; }
.tz-header-hover-underline-sweep .tz-nav-link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px;
    height: 2px; background: var(--tz-hdr-accent);
    transform: scaleX(0); transform-origin: left center;
    transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.tz-header-hover-underline-sweep .tz-nav-item:hover > .tz-nav-link::after,
.tz-header-hover-underline-sweep .tz-nav-link.active::after { transform: scaleX(1); }

/* color — just text color shift */
.tz-header-hover-color .tz-nav-item:hover > .tz-nav-link,
.tz-header-hover-color .tz-nav-link.active { color: var(--tz-hdr-accent); }

/* bg-pill — rounded background appears */
.tz-header-hover-bg-pill .tz-nav-item:hover > .tz-nav-link,
.tz-header-hover-bg-pill .tz-nav-link.active {
    background: rgba(37,99,235,0.1);
    color: var(--tz-hdr-accent);
}

/* glow — text gets accent glow */
.tz-header-hover-glow .tz-nav-item:hover > .tz-nav-link,
.tz-header-hover-glow .tz-nav-link.active {
    color: var(--tz-hdr-accent);
    text-shadow: 0 0 12px var(--tz-hdr-accent);
}

/* border-top — thin line appears above */
.tz-header-hover-border-top .tz-nav-link { position: relative; }
.tz-header-hover-border-top .tz-nav-link::before {
    content: ""; position: absolute; left: 14px; right: 14px; top: 4px;
    height: 2px; background: var(--tz-hdr-accent);
    transform: scaleX(0); transition: transform .28s ease;
}
.tz-header-hover-border-top .tz-nav-item:hover > .tz-nav-link::before,
.tz-header-hover-border-top .tz-nav-link.active::before { transform: scaleX(1); }

/* ── Dropdowns ── */
.tz-nav-dropdown {
    display: none;
    list-style: none;
    padding: 8px;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--tz-hdr-bg, #fff);
    border: 1px solid var(--tz-border, #e5e7eb);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,.15);
    z-index: 1001;
    animation: tz-drop-in .2s ease-out;
}
@keyframes tz-drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.tz-nav-item:hover > .tz-nav-dropdown,
.tz-nav-item:focus-within > .tz-nav-dropdown { display: block; }
/* Level-2 dropdown opens to the right of level-1 */
.tz-nav-dropdown .tz-nav-dropdown {
    top: -8px;
    left: 100%;
    margin-left: 2px;
}
/* Dropdown items */
.tz-nav-dropdown .tz-nav-item { width: 100%; }
.tz-nav-dropdown .tz-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    width: 100%;
    min-width: 200px;
}
.tz-nav-dropdown .tz-nav-link:hover { background: rgba(37,99,235,0.08); }
.tz-nav-img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    background: #f3f4f6;
    flex-shrink: 0;
}

/* Grid layout (mega-menu) — shows children in a grid with larger images */
.tz-nav-dropdown-grid > .tz-nav-dropdown {
    display: none;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 10px;
    padding: 14px;
    min-width: 640px;
    max-width: 90vw;
}
.tz-nav-dropdown-grid:hover > .tz-nav-dropdown,
.tz-nav-dropdown-grid:focus-within > .tz-nav-dropdown { display: grid; }
.tz-nav-dropdown-grid > .tz-nav-dropdown > .tz-nav-item {
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
    transition: transform .18s, box-shadow .18s;
}
.tz-nav-dropdown-grid > .tz-nav-dropdown > .tz-nav-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.tz-nav-dropdown-grid > .tz-nav-dropdown > .tz-nav-item > .tz-nav-link {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
}
.tz-nav-dropdown-grid > .tz-nav-dropdown > .tz-nav-item > .tz-nav-link .tz-nav-img {
    width: 100%;
    height: 110px;
    border-radius: 0;
}
.tz-nav-dropdown-grid > .tz-nav-dropdown > .tz-nav-item > .tz-nav-link .tz-nav-label {
    padding: 8px 12px;
    font-weight: 600;
    font-size: 0.88rem;
}

/* Mobile menu toggle */
.tz-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.tz-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--tz-hdr-text, var(--tz-dark));
    border-radius: 2px;
    transition: .3s;
}
.tz-menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tz-menu-toggle.open span:nth-child(2) { opacity: 0; }
.tz-menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile: hover-free column with indentation ── */
@media (max-width: 768px) {
    .tz-menu-toggle { display: flex; }
    .tz-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--tz-hdr-bg, var(--tz-white));
        border-bottom: 1px solid var(--tz-border);
        padding: 12px;
        max-height: calc(100vh - var(--tz-hdr-h));
        overflow-y: auto;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }
    .tz-nav.open { display: block; }
    .tz-nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
    .tz-nav-link { width: 100%; padding: 12px 16px !important; border-radius: 6px; }
    .tz-nav-link::after, .tz-nav-link::before { display: none !important; } /* no hover-effects on mobile */

    /* Level-1 dropdown becomes inline indented list */
    .tz-nav-dropdown {
        display: none !important;
        position: static !important;
        min-width: 0 !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 0 6px 20px !important;
        background: transparent !important;
        border-left: 2px solid var(--tz-border) !important;
        margin: 4px 0 8px 16px !important;
        animation: none !important;
    }
    .tz-nav-dropdown .tz-nav-dropdown {
        padding-left: 20px !important;
        margin-left: 8px !important;
        border-left: 2px solid var(--tz-border) !important;
    }
    .tz-nav-item.tz-nav-open > .tz-nav-dropdown { display: block !important; }
    .tz-nav-dropdown .tz-nav-link { padding: 8px 12px !important; }
    .tz-nav-img { width: 32px; height: 32px; }

    /* Grid collapses to column on mobile */
    .tz-nav-dropdown-grid > .tz-nav-dropdown {
        grid-template-columns: 1fr !important;
        display: none !important;
        min-width: 0 !important;
    }
    .tz-nav-dropdown-grid.tz-nav-open > .tz-nav-dropdown { display: grid !important; }
    .tz-nav-dropdown-grid > .tz-nav-dropdown > .tz-nav-item > .tz-nav-link { flex-direction: row; }
    .tz-nav-dropdown-grid > .tz-nav-dropdown > .tz-nav-item > .tz-nav-link .tz-nav-img { width: 48px; height: 48px; }
    .tz-nav-dropdown-grid > .tz-nav-dropdown > .tz-nav-item > .tz-nav-link .tz-nav-label { padding: 0 0 0 10px; }
}

/* ── Footer (kompaktní 3-sloupcový layout) ── */
.tz-footer {
    background: var(--tz-dark);
    color: #cbd5e1;
    padding: 32px 24px 16px;
    margin-top: 48px;
    font-size: 0.85rem;
}
.tz-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(280px, 2.5fr) minmax(180px, 1fr);
    gap: 28px;
    align-items: start;
}
.tz-footer h3 {
    color: var(--tz-white);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px;
    font-weight: 700;
    opacity: .9;
}
.tz-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color .15s;
}
.tz-footer a:hover { color: var(--tz-white); text-decoration: none; }
.tz-footer p { margin: 0 0 3px; line-height: 1.5; }

/* Brand column */
.tz-footer-brand h3 { color: var(--tz-white); font-size: 1rem; text-transform: none; letter-spacing: 0; margin-bottom: 8px; opacity: 1; }
.tz-footer-brand p { font-size: 0.82rem; }

/* Nav column — multi-column grid of grouped links */
.tz-footer-nav {
    column-count: 3;
    column-gap: 24px;
    column-fill: balance;
}
.tz-footer-nav-group {
    break-inside: avoid;
    margin-bottom: 10px;
    display: block;
}
.tz-footer-nav-top,
.tz-footer-nav-cat {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 3px;
    line-height: 1.4;
}
.tz-footer-nav-cat { color: #64748b; cursor: default; text-transform: uppercase; letter-spacing: .5px; font-size: 0.72rem; }
.tz-footer-nav-top:hover { color: var(--tz-white); }
.tz-footer-nav-group.has-children .tz-footer-nav-top { color: var(--tz-white); }
.tz-footer-nav-sub {
    list-style: none;
    padding: 0;
    margin: 2px 0 0;
}
.tz-footer-nav-sub li { margin: 0; padding: 0; }
.tz-footer-nav-sub a {
    display: block;
    font-size: 0.78rem;
    line-height: 1.45;
    padding: 1px 0;
    color: #94a3b8;
}
.tz-footer-nav-sub a::before { content: "· "; opacity: .5; }

/* Copyright column */
.tz-footer-copy p {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    text-align: right;
}

@media (max-width: 768px) {
    .tz-footer { padding: 24px 16px 12px; margin-top: 32px; }
    .tz-footer-inner { grid-template-columns: 1fr; gap: 20px; }
    .tz-footer-nav { column-count: 2; column-gap: 16px; }
    .tz-footer-copy p { text-align: left; }
}
@media (max-width: 480px) {
    .tz-footer-nav { column-count: 1; }
}

/* ── Page Builder Sections ── */
.pb-section {
    padding-top: var(--pb-py-top, 32px);
    padding-bottom: var(--pb-py-bot, 32px);
    padding-left: 24px;
    padding-right: 24px;
}
.pb-container {
    max-width: 1200px;
    margin: 0 auto;
}
.pb-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--tz-dark);
    margin-bottom: 24px;
}

/* Row layout */
.pb-row {
    display: flex;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.pb-col-half { flex: 0 0 calc(50% - 12px); min-width: 0; }
.pb-col-third { flex: 0 0 calc(33.333% - 16px); min-width: 0; }
@media (max-width: 768px) {
    .pb-row { flex-direction: column; }
    .pb-col-half, .pb-col-third { flex: 1 1 100%; }
}

/* ── Hero ── */
.pb-hero {
    color: #fff;
    text-align: center;
    position: relative;
}
.pb-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}
.pb-hero-title {
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.15;
}
.pb-hero-subtitle {
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}
.pb-hero-cta { margin-top: 24px; }
.pb-hero-parallax { background-attachment: fixed; }
.pb-hero-logo-wrap {
    display: flex;
    margin-bottom: 20px;
}
.pb-hero-logo {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.pb-hero-logo-size-sm .pb-hero-logo { max-height: 50px; max-width: 160px; }
.pb-hero-logo-size-md .pb-hero-logo { max-height: 80px; max-width: 240px; }
.pb-hero-logo-size-lg .pb-hero-logo { max-height: 120px; max-width: 360px; }
/* Logo position — moves logo horizontally + aligns all text in hero to match */
.pb-hero-has-logo .pb-hero-logo-wrap { justify-content: center; } /* default */
.pb-hero-logo-left .pb-hero-logo-wrap { justify-content: flex-start; }
.pb-hero-logo-center .pb-hero-logo-wrap { justify-content: center; }
.pb-hero-logo-right .pb-hero-logo-wrap { justify-content: flex-end; }
/* Text alignment inside hero when logo position is explicitly set */
.pb-hero-logo-left .pb-hero-inner { text-align: left; }
.pb-hero-logo-left .pb-hero-subtitle { margin-left: 0; margin-right: auto; }
.pb-hero-logo-right .pb-hero-inner { text-align: right; }
.pb-hero-logo-right .pb-hero-subtitle { margin-left: auto; margin-right: 0; }
.pb-hero-logo-center .pb-hero-inner { text-align: center; }
.pb-hero-logo-center .pb-hero-subtitle { margin-left: auto; margin-right: auto; }
/* Also shift section's flex alignment so narrow content blocks (CTA) don't stay centered */
.pb-hero.pb-hero-logo-left { align-items: flex-start; }
.pb-hero.pb-hero-logo-right { align-items: flex-end; }
.pb-hero.pb-hero-logo-center { align-items: center; }

/* Sizes — use clamp() to scale with viewport */
.pb-hero-auto {
    padding: 40px 24px;
}
.pb-hero-auto .pb-hero-title { font-size: clamp(1.4rem, 3.5vw, 1.75rem); }
.pb-hero-auto .pb-hero-subtitle { font-size: clamp(0.9rem, 1.8vw, 1rem); }

.pb-hero-sm {
    min-height: 32vh;
    padding: 48px 32px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.pb-hero-sm .pb-hero-title { font-size: clamp(1.5rem, 4vw, 2rem); }
.pb-hero-sm .pb-hero-subtitle { font-size: clamp(0.95rem, 1.9vw, 1.05rem); }

.pb-hero-md {
    min-height: 55vh;
    padding: 64px 40px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.pb-hero-md .pb-hero-title { font-size: clamp(1.75rem, 5vw, 2.5rem); }
.pb-hero-md .pb-hero-subtitle { font-size: clamp(1rem, 2vw, 1.15rem); }

.pb-hero-lg {
    min-height: 80vh;
    padding: 80px 40px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.pb-hero-lg .pb-hero-title { font-size: clamp(2rem, 6vw, 3rem); }
.pb-hero-lg .pb-hero-subtitle { font-size: clamp(1.05rem, 2.2vw, 1.3rem); }

.pb-hero-full {
    min-height: 100vh;
    padding: 96px 40px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.pb-hero-full .pb-hero-title { font-size: clamp(2.25rem, 7vw, 3.5rem); }
.pb-hero-full .pb-hero-subtitle { font-size: clamp(1.1rem, 2.4vw, 1.4rem); }

@media (max-width: 768px) {
    .pb-hero-auto { padding: 32px 20px; }
    .pb-hero-sm, .pb-hero-md { min-height: auto; padding: 48px 20px; }
    .pb-hero-lg { min-height: 55vh; padding: 56px 20px; }
    .pb-hero-full { min-height: 75vh; padding: 64px 20px; }
    .pb-hero-parallax { background-attachment: scroll; }
}

/* ══════════════════════════════════════════════════
   Tile-grid block
   ══════════════════════════════════════════════════ */
.pb-tile-grid {
    --tg-cols: 3;
    --tg-gap: 12px;
    --tg-fade: 0.3;
    padding: 24px 20px;
    position: relative;
}
.pb-tile-grid-header {
    padding: 64px 24px;
    background: #0f172a;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.pb-tile-grid-subheader {
    padding: 16px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}
.pb-tile-grid-inline {
    padding: 32px 20px;
}
.pb-tile-subheader-text {
    max-width: 800px;
    margin: 0 auto 16px;
    text-align: center;
    color: #4b5563;
    font-size: 0.95rem;
}
.pb-tile-grid-wrap {
    display: grid;
    grid-template-columns: repeat(var(--tg-cols), 1fr);
    gap: var(--tg-gap);
    max-width: 1400px;
    margin: 0 auto;
}
.pb-tile-grid[data-sizing="width"] .pb-tile-grid-wrap {
    grid-template-columns: repeat(auto-fill, minmax(var(--tg-min-width), 1fr));
}

/* Individual tile */
.pb-tile {
    position: relative;
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none !important;
    color: #fff;
    overflow: hidden;
    transition: filter .4s ease, transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
}
.pb-tile-inner {
    position: absolute;
    inset: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
    z-index: 2;
}
.pb-tile-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 4px;
}
.pb-tile-subtitle {
    font-size: 0.82rem;
    opacity: .9;
    margin: 0;
    line-height: 1.3;
}

/* Aspect ratios — enforced via padding-top trick */
.pb-tile-aspect-1-1 .pb-tile::before { content: ""; display: block; padding-top: 100%; }
.pb-tile-aspect-4-3 .pb-tile::before { content: ""; display: block; padding-top: 75%; }
.pb-tile-aspect-3-4 .pb-tile::before { content: ""; display: block; padding-top: 133.33%; }
.pb-tile-aspect-16-9 .pb-tile::before { content: ""; display: block; padding-top: 56.25%; }
.pb-tile-aspect-9-16 .pb-tile::before { content: ""; display: block; padding-top: 177.77%; }
.pb-tile-aspect-2-1 .pb-tile::before { content: ""; display: block; padding-top: 50%; }
.pb-tile-aspect-3-2 .pb-tile::before { content: ""; display: block; padding-top: 66.67%; }

/* Shapes */
.pb-tile-shape-square .pb-tile { border-radius: 0; }
.pb-tile-shape-rounded .pb-tile { border-radius: 12px; }
.pb-tile-shape-rounded-lg .pb-tile { border-radius: 24px; }
.pb-tile-shape-pill .pb-tile { border-radius: 999px; }
.pb-tile-shape-circle .pb-tile { border-radius: 50%; }

/* Shadow */
.pb-tile-shadow-none .pb-tile { box-shadow: none; }
.pb-tile-shadow-soft .pb-tile { box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.pb-tile-shadow-deep .pb-tile { box-shadow: 0 10px 30px rgba(0,0,0,.25); }

/* Faded default state */
.pb-tile-faded .pb-tile {
    filter: saturate(var(--tg-fade)) brightness(1.04);
}

/* Hover effects — only on devices with hover. Effects are combinable. */
@media (hover: hover) {
    /* Image regains color (combines with faded default) */
    .pb-tile-hover-image-color.pb-tile-faded .pb-tile:hover,
    .pb-tile-hover-image-color.pb-tile-faded .pb-tile:focus-visible {
        filter: saturate(1) brightness(1);
    }
    /* Tile scale */
    .pb-tile-hover-scale .pb-tile:hover,
    .pb-tile-hover-scale .pb-tile:focus-visible {
        transform: translateY(-3px) scale(1.015);
        box-shadow: 0 16px 40px rgba(0,0,0,.25);
        z-index: 3;
    }
    /* Text color change */
    .pb-tile-hover-text-color .pb-tile .pb-tile-title-text { transition: color .3s ease; }
    .pb-tile-hover-text-color .pb-tile:hover .pb-tile-title-text,
    .pb-tile-hover-text-color .pb-tile:focus-visible .pb-tile-title-text {
        color: var(--tg-hover-text, #fff);
    }
    /* Text pill background — padding+negative margin keeps text in place, only background animates */
    .pb-tile-hover-text-pill .pb-tile .pb-tile-title-text {
        display: inline-block;
        padding: 3px 10px;
        margin: -3px -10px;
        border-radius: 6px;
        transition: background .3s ease, color .3s ease;
    }
    .pb-tile-hover-text-pill .pb-tile:hover .pb-tile-title-text,
    .pb-tile-hover-text-pill .pb-tile:focus-visible .pb-tile-title-text {
        background: var(--tg-hover-text-bg, rgba(37,99,235,.9));
        color: var(--tg-hover-text, #fff);
    }
    /* Text glow */
    .pb-tile-hover-text-glow .pb-tile .pb-tile-title-text { transition: text-shadow .3s ease, color .3s ease; }
    .pb-tile-hover-text-glow .pb-tile:hover .pb-tile-title-text,
    .pb-tile-hover-text-glow .pb-tile:focus-visible .pb-tile-title-text {
        color: var(--tg-hover-text, #fff);
        text-shadow: 0 0 12px var(--tg-hover-text, #fff), 0 0 24px var(--tg-hover-text, #fff), 0 2px 6px rgba(0,0,0,.8);
    }
    /* Underline sweep */
    .pb-tile-hover-text-underline .pb-tile .pb-tile-title-text {
        position: relative;
        display: inline-block;
    }
    .pb-tile-hover-text-underline .pb-tile .pb-tile-title-text::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -3px;
        width: 0;
        height: 2px;
        background: var(--tg-hover-text, #fff);
        transition: width .35s cubic-bezier(.22,1,.36,1);
    }
    .pb-tile-hover-text-underline .pb-tile:hover .pb-tile-title-text::after,
    .pb-tile-hover-text-underline .pb-tile:focus-visible .pb-tile-title-text::after {
        width: 100%;
    }
}
.pb-tile:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* Header mode — bigger tiles, darker overlay */
.pb-tile-grid-header .pb-tile-title { font-size: 1.5rem; }
.pb-tile-grid-header .pb-tile-subtitle { font-size: 0.95rem; }

/* Subheader mode — smaller tiles */
.pb-tile-grid-subheader { }
.pb-tile-grid-subheader .pb-tile-grid-wrap { max-width: 1000px; gap: 8px; }
.pb-tile-grid-subheader .pb-tile-title { font-size: 0.88rem; }
.pb-tile-grid-subheader .pb-tile-subtitle { font-size: 0.72rem; }
.pb-tile-grid-subheader .pb-tile-inner { padding: 10px; }

/* Badges — absolute-positioned overlays on tiles */
.pb-tile-badge {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    letter-spacing: .3px;
    color: var(--b-color, #fff);
}
/* Positions (9) */
.pb-tile-badge-pos-tl { top: 10px; left: 10px; }
.pb-tile-badge-pos-tc { top: 10px; left: 50%; transform: translateX(-50%); }
.pb-tile-badge-pos-tr { top: 10px; right: 10px; }
.pb-tile-badge-pos-cl { top: 50%; left: 10px; transform: translateY(-50%); }
.pb-tile-badge-pos-c  { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.pb-tile-badge-pos-cr { top: 50%; right: 10px; transform: translateY(-50%); }
.pb-tile-badge-pos-bl { bottom: 10px; left: 10px; }
.pb-tile-badge-pos-bc { bottom: 10px; left: 50%; transform: translateX(-50%); }
.pb-tile-badge-pos-br { bottom: 10px; right: 10px; }

/* Styles (3) */
.pb-tile-badge-style-plain {
    text-shadow: 0 2px 6px rgba(0,0,0,.7), 0 1px 2px rgba(0,0,0,.9);
    font-size: 0.85rem;
}
.pb-tile-badge-style-pill {
    background: var(--b-bg, #ef4444);
    padding: 4px 12px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.pb-tile-badge-style-ribbon {
    background: var(--b-bg, #ef4444);
    padding: 4px 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    font-size: 0.68rem;
    text-transform: uppercase;
}
/* Ribbons in TL/TR rotate; other positions stay flat */
.pb-tile-badge-style-ribbon.pb-tile-badge-pos-tl {
    left: -8px;
    top: 14px;
    transform: rotate(-30deg);
    transform-origin: left top;
}
.pb-tile-badge-style-ribbon.pb-tile-badge-pos-tr {
    right: -8px;
    top: 14px;
    transform: rotate(30deg);
    transform-origin: right top;
}
.pb-tile-badge-style-ribbon.pb-tile-badge-pos-bl {
    left: -8px;
    bottom: 14px;
    transform: rotate(30deg);
    transform-origin: left bottom;
}
.pb-tile-badge-style-ribbon.pb-tile-badge-pos-br {
    right: -8px;
    bottom: 14px;
    transform: rotate(-30deg);
    transform-origin: right bottom;
}

/* Empty state */
.pb-tile-empty {
    padding: 80px 20px;
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
}

/* Circle shape needs 1:1 aspect */
.pb-tile-shape-circle .pb-tile::before { padding-top: 100% !important; }

/* Morph animation state (when clicked + before navigation) */
.pb-tile.pb-tile-morphing {
    position: fixed !important;
    z-index: 9999;
    transition: all .45s cubic-bezier(.22,1,.36,1);
    pointer-events: none;
    border-radius: 0 !important;
}

/* View Transitions API root fade */
@supports (view-transition-name: root) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation-duration: .5s;
        animation-timing-function: cubic-bezier(.22,1,.36,1);
    }
}

/* Subheader modal */
.pb-tile-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(15,23,42,.65);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: pb-tile-modal-bg .25s ease;
}
.pb-tile-modal.active { display: flex; }
.pb-tile-modal-card {
    background: #fff;
    border-radius: 16px;
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow: auto;
    padding: 28px 32px;
    box-shadow: 0 24px 60px rgba(0,0,0,.4);
    animation: pb-tile-modal-card .3s cubic-bezier(.22,1,.36,1);
    position: relative;
}
.pb-tile-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pb-tile-modal-close:hover { background: #e5e7eb; }
.pb-tile-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 14px;
    color: #1e293b;
}
.pb-tile-modal-body { color: #4b5563; line-height: 1.6; }
.pb-tile-modal-body a { color: #2563eb; }
@keyframes pb-tile-modal-bg { from { opacity: 0; } to { opacity: 1; } }
@keyframes pb-tile-modal-card { from { transform: translateY(20px) scale(.96); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }

/* Mobile: no hover → remove faded, reduce grid density */
@media (max-width: 768px) {
    .pb-tile-grid { padding: 16px 12px; }
    .pb-tile-grid-wrap { grid-template-columns: repeat(min(var(--tg-cols), 2), 1fr); gap: 8px; }
    .pb-tile-grid[data-sizing="width"] .pb-tile-grid-wrap {
        grid-template-columns: repeat(auto-fill, minmax(min(var(--tg-min-width), 45vw), 1fr));
    }
    .pb-tile-faded .pb-tile { filter: none; }
    .pb-tile-grid-header { min-height: auto; padding: 48px 16px; }
    .pb-tile-grid-header .pb-tile-title { font-size: 1.1rem; }
    .pb-tile-title { font-size: 0.95rem; }
    .pb-tile-subtitle { font-size: 0.72rem; }
    .pb-tile-inner { padding: 12px; }
    .pb-tile-modal-card { padding: 20px 18px; }
}

/* ── Button ── */
.pb-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--tz-primary);
    color: var(--tz-white) !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    font-family: var(--tz-font);
}
.pb-btn:hover {
    background: var(--tz-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

/* ── Benefits ── */
.pb-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}
.pb-benefit-card {
    background: var(--tz-bg);
    padding: 28px;
    border-radius: var(--tz-radius);
    border: 1px solid var(--tz-border);
    transition: transform .2s, box-shadow .2s;
}
.pb-benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.pb-benefit-icon {
    width: 48px;
    height: 48px;
    background: rgba(37,99,235,0.1);
    color: var(--tz-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.pb-benefit-card h3 {
    font-size: 1.1rem;
    color: var(--tz-dark);
    margin-bottom: 8px;
}
.pb-benefit-card p {
    color: var(--tz-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ── Steps ── */
.pb-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.pb-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.pb-step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--tz-primary);
    color: var(--tz-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.pb-step-content h3 { margin-bottom: 4px; color: var(--tz-dark); }
.pb-step-content p { color: var(--tz-muted); font-size: 0.9rem; }

/* ── Testimonials ── */
.pb-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.pb-testimonial-card {
    background: var(--tz-bg);
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    padding: 28px;
}
.pb-stars { color: #f59e0b; font-size: 1.2rem; margin-bottom: 4px; }
.pb-testimonial-source { font-size: .75rem; color: var(--tz-muted); }
.pb-testimonial-card blockquote {
    font-style: italic;
    color: var(--tz-text);
    margin: 12px 0;
    line-height: 1.6;
}
.pb-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}
.pb-testimonial-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.pb-testimonial-author strong { display: block; color: var(--tz-dark); font-size: 0.9rem; }
.pb-testimonial-author span { display: block; color: var(--tz-muted); font-size: 0.8rem; }

/* ── FAQ ── */
.pb-faq { max-width: 800px; }
.pb-faq-item {
    border-bottom: 1px solid var(--tz-border);
}
.pb-faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border: none;
    background: none;
    font-family: var(--tz-font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--tz-dark);
    cursor: pointer;
    text-align: left;
    gap: 12px;
}
.pb-faq-q svg { flex-shrink: 0; transition: transform .3s; }
.pb-faq-item.open .pb-faq-q svg { transform: rotate(180deg); }
.pb-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s, padding .3s;
    color: var(--tz-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}
.pb-faq-item.open .pb-faq-a {
    max-height: 1000px;
    padding-bottom: 16px;
}

/* ── Tabs ── */
.pb-tabs-nav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--tz-border);
    margin-bottom: 20px;
    overflow-x: auto;
}
.pb-tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    font-family: var(--tz-font);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--tz-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
}
.pb-tab-btn.active, .pb-tab-btn:hover {
    color: var(--tz-primary);
    border-bottom-color: var(--tz-primary);
}
.pb-tab-content { line-height: 1.7; }

/* ── Pricing ── */
.pb-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: start;
}
.pb-pricing-card {
    background: var(--tz-white);
    border: 2px solid var(--tz-border);
    border-radius: var(--tz-radius);
    padding: 32px;
    text-align: center;
    position: relative;
    transition: transform .2s, box-shadow .2s;
}
.pb-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.pb-pricing-card.highlighted {
    border-color: var(--tz-primary);
    box-shadow: 0 8px 24px rgba(37,99,235,0.15);
}
.pb-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tz-primary);
    color: var(--tz-white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.pb-pricing-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.pb-pricing-price { font-size: 2rem; font-weight: 800; color: var(--tz-primary); margin-bottom: 12px; }
.pb-pricing-desc { color: var(--tz-muted); font-size: 0.9rem; margin-bottom: 16px; }
.pb-pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}
.pb-pricing-features li {
    padding: 6px 0;
    border-bottom: 1px solid var(--tz-border);
    font-size: 0.9rem;
    color: var(--tz-text);
}

/* ── Counters ── */
.pb-counters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}
.pb-counter-item { text-align: center; }
.pb-counter-num { font-size: 2.5rem; font-weight: 800; }
.pb-counter-prefix, .pb-counter-suffix { font-size: 1.5rem; font-weight: 600; }
.pb-counter-item p { opacity: 0.85; font-size: 0.9rem; margin-top: 4px; }

/* ── Accordion ── */
.pb-accordion-item { border-bottom: 1px solid var(--tz-border); }
.pb-accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border: none;
    background: none;
    font-family: var(--tz-font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--tz-dark);
    cursor: pointer;
    text-align: left;
}
.pb-accordion-header svg { flex-shrink: 0; transition: transform .3s; }
.pb-accordion-item.open .pb-accordion-header svg { transform: rotate(180deg); }
.pb-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s;
    color: var(--tz-muted);
    line-height: 1.6;
}
.pb-accordion-item.open .pb-accordion-body {
    max-height: 2000px;
    padding-bottom: 16px;
}

/* ── Logos ── */
.pb-logos-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 32px;
}
.pb-logos-row img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter .3s, opacity .3s;
}
.pb-logos-row img:hover { filter: grayscale(0%); opacity: 1; }

/* ── Before/After ── */
.pb-before-after {
    position: relative;
    overflow: hidden;
    border-radius: var(--tz-radius);
    cursor: col-resize;
    user-select: none;
}

/* ══════════════════════════════════════════════════
   Album cards (compact mode for `album` block)
   ══════════════════════════════════════════════════ */
.pb-album-cards-grid {
    display: grid;
    gap: 16px;
}
.pb-album-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/3;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    transition: transform .3s ease, box-shadow .3s ease;
    background: #1e293b;
}
.pb-album-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.pb-album-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: zoom-in;
}
.pb-album-card-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.pb-album-card:hover img {
    transform: scale(1.06);
}
.pb-album-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 14px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    color: #fff;
    pointer-events: none;
}
.pb-album-card .pb-album-card-overlay h3 {
    margin: 0 0 2px;
    font-size: 1.05rem;
    font-weight: 700;
    color: inherit;
}
.pb-album-card .pb-album-card-overlay p {
    margin: 0;
    font-size: 0.78rem;
    opacity: .85;
    color: inherit;
}
.pb-album-card-empty {
    background: #f3f4f6;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
}

/* ══════════════════════════════════════════════════
   Lightbox — image, text-image, gallery
   ══════════════════════════════════════════════════ */
.pb-lightbox-trigger { cursor: zoom-in; display: inline-block; max-width: 100%; }
.pb-lightbox-trigger img { display: block; transition: transform .25s; }
/* In text-image block the img is width:100% — make the anchor fill the grid cell so layout doesn't shrink */
.pb-ti-image .pb-lightbox-trigger { display: block; }
.pb-ti-image .pb-lightbox-trigger img { width: 100%; }
.pb-lb {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(10, 10, 20, 0.94);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pb-lb.pb-lb-open {
    display: flex;
    animation: pb-lb-fade .25s ease;
}
@keyframes pb-lb-fade { from { opacity: 0; } to { opacity: 1; } }
.pb-lb-stage {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pb-lb-img {
    max-width: 92vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: opacity .18s ease;
    display: block;
}
.pb-lb-close, .pb-lb-prev, .pb-lb-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background .15s, transform .15s;
    z-index: 2;
    line-height: 1;
}
.pb-lb-close:hover, .pb-lb-prev:hover, .pb-lb-next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}
.pb-lb-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pb-lb-prev, .pb-lb-next {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pb-lb-prev:hover, .pb-lb-next:hover {
    transform: translateY(-50%) scale(1.08);
}
.pb-lb-prev { left: 20px; }
.pb-lb-next { right: 20px; }
.pb-lb-caption {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 6px;
    max-width: 80vw;
    font-size: 0.9rem;
    text-align: center;
}
.pb-lb-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}
@media (max-width: 640px) {
    .pb-lb-prev, .pb-lb-next { width: 40px; height: 40px; font-size: 1.4rem; }
    .pb-lb-prev { left: 8px; }
    .pb-lb-next { right: 8px; }
    .pb-lb-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 1.3rem; }
    .pb-lb-img { max-width: 94vw; max-height: 80vh; }
    .pb-lb-caption { bottom: 48px; font-size: 0.8rem; }
}

/* ── Gallery ── */
.pb-gallery-item {
    overflow: hidden;
    border-radius: 8px;
}
.pb-gallery-item a { display: block; }
.pb-gallery-item img { transition: transform .3s; }
.pb-gallery-item:hover img { transform: scale(1.05); }

/* Gallery tabs */
.pb-gallery-tab {
    padding: 6px 16px;
    border: 1px solid var(--tz-border);
    border-radius: 20px;
    background: var(--tz-white);
    font-family: var(--tz-font);
    font-size: 0.85rem;
    cursor: pointer;
    transition: .2s;
}
.pb-gallery-tab.active, .pb-gallery-tab:hover {
    background: var(--tz-primary);
    color: var(--tz-white);
    border-color: var(--tz-primary);
}

/* ── Text+Image responsive ── */
@media (max-width: 768px) {
    .pb-section [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* ── Image effects ── */
.pb-fx-zoom { overflow: hidden; }
.pb-fx-zoom img { transition: transform .4s; }
.pb-fx-zoom:hover img { transform: scale(1.08); }
.pb-fx-overlay { position: relative; }
.pb-fx-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background .3s;
    pointer-events: none;
    border-radius: inherit;
}
.pb-fx-overlay:hover::after { background: rgba(0,0,0,0.15); }
.pb-fx-shadow-sm { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.pb-fx-shadow-md { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.pb-fx-shadow-lg { box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
/* Radius presets — wrap sets radius, img inside inherits via overflow:hidden */
.pb-fx-radius-0 { border-radius: 0; overflow: hidden; }
.pb-fx-radius-0 img { border-radius: 0; }
.pb-fx-radius-4 { border-radius: 4px; overflow: hidden; }
.pb-fx-radius-4 img { border-radius: 4px; }
.pb-fx-radius-8 { border-radius: 8px; overflow: hidden; }
.pb-fx-radius-8 img { border-radius: 8px; }
.pb-fx-radius-12 { border-radius: 12px; overflow: hidden; }
.pb-fx-radius-12 img { border-radius: 12px; }
.pb-fx-radius-16 { border-radius: 16px; overflow: hidden; }
.pb-fx-radius-16 img { border-radius: 16px; }
.pb-fx-radius-24 { border-radius: 24px; overflow: hidden; }
.pb-fx-radius-24 img { border-radius: 24px; }
.pb-fx-radius-50 { border-radius: 50%; overflow: hidden; }
.pb-fx-radius-50 img { border-radius: 50%; }
.pb-fx-fadein { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.pb-fx-fadein.pb-fx-visible { opacity: 1; transform: translateY(0); }

/* ── News ── */
.pb-news-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.pb-news-card {
    background: var(--tz-white);
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.pb-news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.pb-news-card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.pb-news-card-body { padding: 20px; }
.pb-news-date { font-size: 0.8rem; color: var(--tz-muted); }
.pb-news-card-title { font-size: 1.1rem; margin: 8px 0; color: var(--tz-dark); }
.pb-news-excerpt { font-size: 0.9rem; color: var(--tz-muted); line-height: 1.5; }
.pb-news-list { display: flex; flex-direction: column; gap: 16px; }
.pb-news-list-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
}
.pb-news-list-item .pb-news-img { flex-shrink: 0; }
.pb-news-list-item .pb-news-img img {
    width: 140px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

/* ── References ── */
.pb-references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.pb-reference-card {
    background: var(--tz-white);
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.pb-reference-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.pb-reference-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.pb-reference-card-body { padding: 20px; }
.pb-reference-card h3 { font-size: 1.1rem; color: var(--tz-dark); margin-bottom: 8px; }
.pb-reference-card-meta { font-size: 0.85rem; color: var(--tz-muted); }

/* ── Videos ── */
.pb-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ── Dealers ── */
.pb-dealers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.pb-dealer-card {
    background: var(--tz-bg);
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    padding: 24px;
}
.pb-dealer-card h3 { font-size: 1.1rem; color: var(--tz-dark); margin-bottom: 8px; }
.pb-dealer-card p { font-size: 0.9rem; color: var(--tz-muted); margin-bottom: 4px; }
.pb-dealer-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* ── Lead / Contact form ── */
.pb-contact-form input,
.pb-contact-form textarea,
.pb-contact-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--tz-border);
    border-radius: 8px;
    font-family: var(--tz-font);
    font-size: 0.95rem;
    margin-bottom: 12px;
    transition: border-color .2s;
}
.pb-contact-form input:focus,
.pb-contact-form textarea:focus,
.pb-contact-form select:focus {
    outline: none;
    border-color: var(--tz-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.pb-contact-form textarea { min-height: 120px; resize: vertical; }
.pb-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
@media (max-width: 768px) {
    .pb-contact-grid { grid-template-columns: 1fr; }
}

/* ── Sticky CTA ── */
.pb-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--tz-dark);
    color: var(--tz-white);
    padding: 12px 24px;
    z-index: 999;
    transform: translateY(100%);
    transition: transform .3s;
}
.pb-sticky-cta.visible { transform: translateY(0); }
.pb-sticky-cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.pb-sticky-cta-text { font-weight: 500; }
.pb-sticky-cta-link { color: #93c5fd; }
.pb-sticky-cta-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: var(--tz-white);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
}

/* ── Cookie banner/modal ── */
.tz-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--tz-dark);
    padding: 16px 24px;
    z-index: 9998;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.tz-cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.tz-cookie-banner p { color: #cbd5e1; font-size: 0.9rem; margin: 0; }
.tz-cookie-banner a { color: #93c5fd; }
.tz-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.tz-cookie-box {
    background: var(--tz-white);
    padding: 32px;
    border-radius: var(--tz-radius);
    max-width: 440px;
    width: 100%;
}
.tz-cookie-box h3 { margin-bottom: 12px; color: var(--tz-dark); }
.tz-cookie-box p { color: var(--tz-muted); font-size: 0.9rem; margin-bottom: 16px; }
.tz-cookie-box label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 8px;
    cursor: pointer;
}
.tz-cookie-box input[type="checkbox"] { accent-color: var(--tz-primary); }

/* ── Construction gallery ── */
.pb-gallery-construction {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.pb-gallery-construction-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tz-primary);
    margin-bottom: 8px;
}

/* ── Columns ── */
.pb-columns {
    display: grid;
    gap: 24px;
}
.pb-cols-2 { grid-template-columns: repeat(2, 1fr); }
.pb-cols-3 { grid-template-columns: repeat(3, 1fr); }
.pb-cols-4 { grid-template-columns: repeat(4, 1fr); }
.pb-cols-5 { grid-template-columns: repeat(5, 1fr); }
.pb-cols-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 768px) {
    .pb-cols-2, .pb-cols-3, .pb-cols-4, .pb-cols-5, .pb-cols-6 {
        grid-template-columns: 1fr;
    }
}

/* ── Timeline ── */
.pb-timeline { position: relative; padding-left: 32px; }
.pb-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--tz-border);
}
.pb-timeline-item { position: relative; margin-bottom: 32px; }
.pb-timeline-dot {
    position: absolute;
    left: -32px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--tz-primary);
    border-radius: 50%;
    border: 3px solid var(--tz-white);
    box-shadow: 0 0 0 2px var(--tz-primary);
}
.pb-timeline-item h3 { color: var(--tz-dark); margin-bottom: 4px; }
.pb-timeline-item p { color: var(--tz-muted); font-size: 0.9rem; }
.pb-timeline-date { font-size: 0.8rem; color: var(--tz-primary); font-weight: 600; margin-bottom: 4px; }

/* ── Text content styling ── */
.pb-section p { margin-bottom: 12px; }
.pb-section p:last-child { margin-bottom: 0; }
.pb-section ul, .pb-section ol { margin: 12px 0; padding-left: 24px; }
.pb-section li { margin-bottom: 6px; }
.pb-section h1, .pb-section h2, .pb-section h3, .pb-section h4 { color: var(--tz-dark); margin-bottom: 12px; }
.pb-section blockquote {
    border-left: 4px solid var(--tz-primary);
    padding: 12px 20px;
    margin: 16px 0;
    background: var(--tz-bg);
    border-radius: 0 8px 8px 0;
    color: var(--tz-text);
}
.pb-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.pb-section th, .pb-section td {
    padding: 10px 14px;
    border: 1px solid var(--tz-border);
    text-align: left;
    font-size: 0.9rem;
}
.pb-section th {
    background: var(--tz-bg);
    font-weight: 600;
    color: var(--tz-dark);
}

/* ── Filter buttons (references, videos) ── */
.pb-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.pb-filter-btn {
    padding: 6px 16px;
    border: 1px solid var(--tz-border);
    border-radius: 20px;
    background: var(--tz-white);
    font-family: var(--tz-font);
    font-size: 0.85rem;
    cursor: pointer;
    transition: .2s;
    color: var(--tz-text);
}
.pb-filter-btn.active, .pb-filter-btn:hover {
    background: var(--tz-primary);
    color: var(--tz-white);
    border-color: var(--tz-primary);
}

/* ── Calculator block ── */
.pb-calc-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    align-items: flex-end;
}
.pb-calc-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 200px;
    flex: 1;
}
.pb-calc-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tz-text);
}
.pb-calc-field input[type="number"] {
    padding: 8px 12px;
    border-radius: var(--tz-radius);
    border: 1px solid var(--tz-border);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.pb-calc-field input[type="number"]:focus {
    border-color: var(--tz-primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.pb-calc-note {
    font-size: 0.75rem;
    color: var(--tz-muted);
}
.pb-calc-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.pb-calc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.pb-calc-table th,
.pb-calc-table td {
    padding: 8px 12px;
    border: 1px solid var(--tz-border);
    text-align: right;
    white-space: nowrap;
}
.pb-calc-table th {
    background: var(--tz-bg);
    font-weight: 600;
    font-size: 0.8rem;
}
.pb-calc-table th:first-child,
.pb-calc-table td:first-child {
    text-align: left;
}
.pb-calc-header th {
    background: var(--tz-primary);
    color: var(--tz-white);
    font-weight: 700;
    text-align: center;
    font-size: 0.95rem;
    padding: 10px;
}
.pb-calc-unit {
    background: var(--tz-bg);
    font-weight: 600;
}
.pb-calc-highlight {
    background: #fee2e2;
}
.pb-calc-highlight td {
    background: #fee2e2;
}
.pb-calc-footer {
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--tz-muted);
    line-height: 1.5;
}
/* Spreadsheet cell types */
.pb-calc-table .pb-calc-input {
    background: #fef3c7;
    color: #78350f;
    font-weight: 600;
    border-left: 3px solid #fbbf24;
}
.pb-calc-table .pb-calc-output {
    background: #d1fae5;
    color: #065f46;
    font-weight: 700;
}
.pb-calc-table .pb-calc-formula {
    background: #f0f9ff;
    color: #0c4a6e;
}
.pb-calc-table .pb-calc-text {
    background: #fafafa;
    color: var(--tz-text, #374151);
    font-style: normal;
}
.pb-calc-table .pb-calc-err {
    background: #fee2e2 !important;
    color: #991b1b !important;
    font-weight: 700;
}
.pb-calc-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--tz-muted, #6b7280);
    font-style: italic;
    background: #f9fafb;
    border-radius: 8px;
}
@media (max-width: 768px) {
    .pb-calc-controls {
        flex-direction: column;
    }
    .pb-calc-field {
        min-width: 100%;
    }
    .pb-calc-table {
        font-size: 0.75rem;
    }
    .pb-calc-table th,
    .pb-calc-table td {
        padding: 6px 8px;
    }
}
