/* ═══════════════════════════════════════════
   Titanzinek.cz — Public Styles
   ═══════════════════════════════════════════ */

: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 ── */
.tz-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--tz-border);
    transition: box-shadow .3s, padding .3s;
}
.tz-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.tz-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    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: 40px; width: auto; }
.tz-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--tz-dark);
    letter-spacing: -0.02em;
}
.tz-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.tz-nav a {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--tz-text);
    text-decoration: none;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.tz-nav a:hover, .tz-nav a.active {
    background: rgba(37,99,235,0.08);
    color: var(--tz-primary);
    text-decoration: none;
}

/* Mobile menu */
.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-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); }

@media (max-width: 768px) {
    .tz-menu-toggle { display: flex; }
    .tz-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--tz-white);
        border-bottom: 1px solid var(--tz-border);
        padding: 12px;
        flex-direction: column;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }
    .tz-nav.open { display: flex; }
    .tz-nav a { width: 100%; padding: 12px 16px; }
}

/* ── Footer ── */
.tz-footer {
    background: var(--tz-dark);
    color: #cbd5e1;
    padding: 60px 24px 40px;
    margin-top: 80px;
}
.tz-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}
.tz-footer h3 {
    color: var(--tz-white);
    font-size: 1rem;
    margin-bottom: 12px;
}
.tz-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color .2s;
}
.tz-footer a:hover { color: var(--tz-white); text-decoration: none; }
.tz-footer p { margin-bottom: 6px; font-size: 0.9rem; }

/* ── Page Builder Sections ── */
.pb-section {
    padding: 60px 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%; }
}

/* ── 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;
}

/* ── Gallery lightbox ── */
.kr-glb {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
}
.kr-glb.show { display: flex; }
.kr-glb img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; }
.kr-glb-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
}
.kr-glb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
}
.kr-glb-nav.prev { left: 16px; }
.kr-glb-nav.next { right: 16px; }
.kr-glb-counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* ── 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); }
.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;
}
@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;
    }
}
