/* ============================================================
   DESIGN TOKENS — Fifty5Blue Brand Guidelines V2.2
   ============================================================ */
:root {
    --bright-blue: #0032ff;
    --mid-blue:    #0028aa;
    --deep-blue:   #001e78;
    --white:       #ffffff;
    --grey-1: #fafafa;
    --grey-2: #f5f5f7;
    --grey-3: #e8e8ee;
    --grey-4: #d7d7da;
    --black:  #000000;
    --text-primary:   var(--black);
    --text-secondary: var(--deep-blue);
    --text-muted:     var(--mid-blue);
    --text-caption:   var(--mid-blue);
    --font:      'Geist', Verdana, sans-serif;
    --font-mono: 'Geist Mono', ui-monospace, monospace;
    /* Slide 72 website typography */
    --fw-thin: 100;
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    /* Logo SVG viewBox 371.81×75.14 — stred obdĺžnika (window device) v x=206.55 */
    --f5b-logo-box-center-x: 206.55;
    --f5b-logo-artboard-left: 21.57;
    --f5b-logo-cap-height: 75.14;
    --hero-img: url('/images/uploads_1571_6193270_processed_r-m6pVIH12TSZLzViVyCSfnXbHPGmkV5ZLG9tP2ILK.jpg');
    --nav-height: 96px;
    --radius-sm: 4px;
    --radius-md: 8px;
    /* V2.2 supporting palette — 6-colour set (Ad Intelligence história, nie graf) */
    --history-6-1: #000046;
    --history-6-2: #0032d2;
    --history-6-3: #2864ff;
    --history-6-4: #64a0ff;
    --history-6-5: #a0d7ff;
    --history-6-6: #dcf5ff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
body {
    min-height: 100%;
    font-family: var(--font);
    font-weight: var(--fw-light);
    background: var(--white);
    color: var(--black);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: transparent; border: 0; color: inherit; }

/* ============================================================
   CTA & NAV ARROWS — slide 72 (Website Elements)
   ============================================================ */
/* CTA buttons — aligned with fifty5blue.com wp-block-button__link (outline pill) */
.f5b-cta {
    display: inline-flex;
    align-items: center;
    font-family: var(--font);
    font-size: 16px;
    font-weight: var(--fw-light);
    line-height: 1.5;
    padding: 10px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    text-decoration: none;
    box-sizing: border-box;
    transition: color 0.3s ease-in-out, border-color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}
.f5b-cta:focus-visible {
    outline: 2px solid var(--bright-blue);
    outline-offset: 3px;
}
.f5b-cta__label { display: inline; }

/* Right arrow — same ::after mask as fifty5blue.com */
.f5b-cta:not(.f5b-cta--download)::after {
    content: "";
    display: inline-block;
    flex-shrink: 0;
    width: 24px;
    height: 12px;
    margin-left: 0.5rem;
    background-color: currentColor;
    vertical-align: middle;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='11' viewBox='0 0 19 11' fill='none'%3E%3Cpath d='M0.5 5.26624L17.3948 5.26624' stroke='white' stroke-linecap='round'/%3E%3Cpath d='M12.6445 0.5L17.3945 5.25L12.6445 10' stroke='white' stroke-linecap='round'/%3E%3C/svg%3E") center center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='11' viewBox='0 0 19 11' fill='none'%3E%3Cpath d='M0.5 5.26624L17.3948 5.26624' stroke='white' stroke-linecap='round'/%3E%3Cpath d='M12.6445 0.5L17.3945 5.25L12.6445 10' stroke='white' stroke-linecap='round'/%3E%3C/svg%3E") center center / contain no-repeat;
    transition: transform 0.3s ease-in-out;
}
.f5b-cta:not(.f5b-cta--download):hover::after {
    transform: translateX(4px);
}

.f5b-cta__arrow {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: inherit;
}
.f5b-cta__arrow svg { display: block; }

/* Outline on white / light backgrounds */
.f5b-cta--default,
.f5b-cta--secondary {
    color: var(--bright-blue);
    border-color: var(--bright-blue);
}
.f5b-cta--default:hover,
.f5b-cta--secondary:hover {
    background: var(--bright-blue);
    color: var(--white);
    border-color: var(--bright-blue);
}

/* Outline on Bright Blue backgrounds */
.f5b-cta--on-blue {
    color: var(--white);
    border-color: var(--white);
}
.f5b-cta--on-blue:hover {
    background: var(--white);
    color: var(--bright-blue);
    border-color: var(--white);
}
.f5b-cta--on-blue:focus-visible {
    outline-color: var(--white);
}

.f5b-cta--sm {
    font-size: 14px;
    padding: 8px 18px;
}
.f5b-cta--download .f5b-cta__arrow {
    margin-left: 0.35rem;
}
.f5b-cta--download .f5b-cta__arrow svg {
    width: 12px;
    height: 12px;
}

.f5b-nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid var(--bright-blue);
    background: var(--white);
    color: var(--bright-blue);
    cursor: pointer;
    flex-shrink: 0;
    transition: gap 0.15s ease;
}
.f5b-nav-arrow svg { display: block; }
.f5b-nav-arrow--filled {
    background: var(--bright-blue);
    color: var(--white);
    border-color: var(--bright-blue);
}
.f5b-nav-arrow--outline {
    background: var(--white);
    color: var(--bright-blue);
    border-color: var(--bright-blue);
}
.f5b-nav-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}
.f5b-nav-arrow:focus-visible {
    outline: 2px solid var(--bright-blue);
    outline-offset: 3px;
}

.pg-btn--page {
    font-family: var(--font);
    font-size: 12px;
    font-weight: var(--fw-medium);
    color: var(--text-muted);
    background: var(--white);
    border: 1px solid var(--grey-3);
    border-radius: 4px;
    padding: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
}
.pg-btn--page:hover:not(.active) {
    border-color: var(--bright-blue);
    color: var(--bright-blue);
}
.pg-btn--page.active {
    background: var(--bright-blue);
    border-color: var(--bright-blue);
    color: var(--white);
}

/* ============================================================
   TOP NAVIGATION — Bright Blue bar (podľa obrázka)
   ============================================================ */
.topnav {
    background: var(--bright-blue);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    padding: 0;
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    transition: transform 0.3s ease;
}
.topnav--hidden {
    transform: translateY(-100%);
}
.topnav-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 48px;
}

/* Official logo artwork — FIFTY5BLUE-whitespace_logo.svg (viewBox 371.81 × 75.14) */
.f5b-logo {
    display: block;
    width: auto;
    height: var(--f5b-logo-h, 30px);
    flex-shrink: 0;
}
/* Reversed: single-colour logo on Bright Blue / Deep Blue / dark imagery */
.f5b-logo--inverse {
    filter: brightness(0) invert(1);
}
.wordmark .animated-logo {
    display: block;
    width: 260px;
    height: 24px;
}

/* Animated wordmark — matches fifty5blue.com (rectangle + BLUE slide-in) */
.animated-logo {
    display: block;
}
.animated-logo .rectangle {
    width: 0;
    transition: width 0.25s ease-in-out;
}
.animated-logo .blue-group {
    transform: translateX(-49px);
    transition: transform 0.25s ease-in-out;
}
.animated-logo.active .rectangle {
    width: 44px;
}
.animated-logo.active .blue-group {
    transform: translateX(0);
}
.f5b-logo--nav { --f5b-logo-h: 20px; }

.wordmark {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

/* Main menu */
.menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 400;
    color: var(--white);
    border-radius: 4px;
    line-height: 1;
    transition: background 0.15s ease;
}
.menu > li > a:hover { background: rgba(255,255,255,0.14); }
.menu > li > a .caret {
    display: inline-block;
    font-size: 11px;
    transform: translateY(1px);
    opacity: 0.85;
    font-weight: 300;
}

/* Right-side utility cluster */
.utility {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}
.utility .icon-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: var(--white);
    transition: background 0.15s ease;
}
.utility .icon-btn:hover { background: rgba(255,255,255,0.14); }
.utility .icon-btn svg { display: block; }

.lang {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    height: 34px;
    font-size: 14px;
    color: var(--white);
    border-radius: 4px;
}
.lang:hover { background: rgba(255,255,255,0.14); }
.lang .caret {
    font-size: 11px;
    opacity: 0.85;
    font-weight: 300;
}

/* ============================================================
   HOMEPAGE CONTENT BLOCKS
   ============================================================ */

/* Typography */
.blk-eyebrow {
    font-weight: var(--fw-medium); letter-spacing: 2px;
    text-transform: uppercase; margin-bottom: 10px;
}
.blk-eyebrow,
.clients-eyebrow,
.sec-eyebrow {
    font-size: 16px;
    color: var(--bright-blue);
}
.blk-title {
    font-size: 34px; font-weight: var(--fw-medium); color: var(--black);
    line-height: 1.1; letter-spacing: -0.6px; margin-bottom: 20px;
}
.blk-lead {
    font-size: 16px; font-weight: var(--fw-medium); color: var(--text-secondary);
    line-height: 1.7; margin-bottom: 14px;
}
.blk-p {
    font-size: 14px; font-weight: 300; color: var(--text-secondary);
    line-height: 1.75; margin-bottom: 12px;
}
.blk-p:last-of-type { margin-bottom: 0; }

/* Icon badge */
.blk-icon {
    width: 48px; height: 48px; border-radius: var(--radius-md);
    background: var(--grey-2); border: 1px solid var(--grey-3);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 28px; flex-shrink: 0;
}

/* Bullet list */
.blk-list {
    list-style: none; margin: 16px 0 20px;
    display: flex; flex-direction: column; gap: 9px;
}
.blk-list li {
    display: flex; align-items: baseline; gap: 10px;
    font-size: 14px; font-weight: 300; color: var(--text-secondary); line-height: 1.55;
}
.blk-list li::before {
    content: ''; display: inline-block; flex-shrink: 0;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--bright-blue); margin-top: 7px;
}
.blk-list li strong { font-weight: var(--fw-bold); color: var(--black); }

/* Inline divider */
.blk-divider {
    display: flex; align-items: center; gap: 14px;
    font-size: 11px; font-weight: var(--fw-medium); letter-spacing: 1px;
    text-transform: uppercase; color: var(--grey-4);
    margin: 20px 0;
}
.blk-divider::before, .blk-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--grey-3);
}

.blk-cta { margin-top: 28px; }
.blk-ctas {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 28px;
}

/* Stat cards (decorative panel) */
.blk-stat {
    background: var(--grey-1);
    border: 1px solid var(--grey-3);
    border-radius: var(--radius-md);
    padding: 20px 22px;
}
.blk-stat-num {
    font-size: 44px; font-weight: var(--fw-bold); color: var(--bright-blue);
    letter-spacing: -1.5px; line-height: 1; margin-bottom: 4px;
}
.blk-stat-label {
    font-size: 12px; font-weight: 400; color: var(--text-muted); line-height: 1.4;
}

/* Audience Measurement — invert stat boxov (BB plné, biely text) */
#audience-measurement .blk-stat {
    background: var(--bright-blue);
    border-color: var(--bright-blue);
}
#audience-measurement .blk-stat-num {
    color: var(--white);
}
#audience-measurement .blk-stat-label {
    color: var(--white);
}

/* Split layout */
.blk-section { }
.blk-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 96px 40px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 80px;
    align-items: start;
}
.blk-inner.reverse { grid-template-columns: 320px 1fr; }
.blk-inner.reverse .blk-content { order: 2; }
.blk-inner.reverse .blk-panel  { order: 1; }

.blk-panel {
    display: flex; flex-direction: column; gap: 16px; padding-top: 8px;
}
.blk-panel-line {
    width: 3px; height: 48px; background: var(--bright-blue);
    border-radius: 2px; margin-bottom: 8px;
}

@media (max-width: 900px) {
    .blk-inner, .blk-inner.reverse { grid-template-columns: 1fr; gap: 40px; }
    .blk-inner.reverse .blk-content,
    .blk-inner.reverse .blk-panel { order: unset; }
    .blk-inner { padding: 64px 24px; }
    .blk-title { font-size: 26px; }
    .blk-eyebrow,
    .clients-eyebrow,
    .sec-eyebrow,
    .blk-lead  { font-size: 15px; }
}

/* ============================================================
   BLUE SECTION OVERRIDES
   ============================================================ */
.blk-on-blue .blk-eyebrow   { color: var(--white); }
.blk-on-blue .blk-title     { color: var(--white); }
.blk-on-blue .blk-lead      { color: var(--white); }
.blk-on-blue .blk-p         { color: var(--white); }
.blk-on-blue .blk-p strong  { color: var(--white); }
.blk-on-blue .blk-list li   { color: var(--white); }
.blk-on-blue .blk-list li strong { color: var(--white); }
.blk-on-blue .blk-list li::before { background: var(--white); }
.blk-on-blue .blk-divider   { color: var(--white); }
.blk-on-blue .blk-divider::before,
.blk-on-blue .blk-divider::after { background: var(--white); }
.blk-on-blue .blk-panel-line { background: var(--white); }
.blk-on-blue .blk-stat      { background: var(--white); border-color: var(--grey-3); }
.blk-on-blue .blk-stat-num  { color: var(--bright-blue); }
.blk-on-blue .blk-stat-label { color: var(--mid-blue); }
.blk-icon-dark               { background: var(--grey-1) !important; border-color: var(--grey-3) !important; }

/* Ad Intelligence timeline (staircase) */
.ai-timeline {
    margin: 10px 0 22px;
}
.ai-timeline-row {
    min-height: 260px;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}
.ai-timeline-col {
    flex: 1;
    min-width: 0;
}
.ai-timeline-card {
    width: 100%;
    padding: 12px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ai-timeline-h1,
.ai-timeline-h2,
.ai-timeline-h3,
.ai-timeline-h4,
.ai-timeline-h5,
.ai-timeline-h6 { height: 258px; }
.ai-timeline-head {
    font-size: 12px;
    font-weight: var(--fw-medium);
    letter-spacing: 0.03em;
    line-height: 1.25;
}
.ai-timeline-body {
    font-size: 10px;
    font-weight: var(--fw-light);
    line-height: 1.45;
    margin-top: 2px;
}
/*
 * Ad Intelligence — 6-stupňová história (1994→2026).
 * Postupná supporting 6-colour paleta; žiadny „highlight“ / Bright Blue accent.
 * Svetlejšie stupne (5–6): tmavý text len kvôli kontrastu, nie zvýrazneniu obdobia.
 */
.ai-timeline-t1 { background: var(--history-6-1); color: var(--white); }
.ai-timeline-t2 { background: var(--history-6-2); color: var(--white); }
.ai-timeline-t3 { background: var(--history-6-3); color: var(--white); }
.ai-timeline-t4 { background: var(--history-6-4); color: var(--white); }
.ai-timeline-t5 { background: var(--history-6-5); color: var(--deep-blue); }
.ai-timeline-t5 .ai-timeline-body { color: var(--mid-blue); }
.ai-timeline-t6 { background: var(--history-6-6); color: var(--deep-blue); }
.ai-timeline-t6 .ai-timeline-body { color: var(--mid-blue); }
.ai-timeline-rail {
    height: 24px;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 3px;
}
.ai-timeline-rail-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: var(--white);
}
.ai-timeline-dots {
    display: flex;
    width: 100%;
    position: relative;
    z-index: 1;
}
.ai-timeline-dots-col {
    flex: 1;
    display: flex;
    justify-content: center;
}
.ai-timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--white);
}
.ai-timeline-years {
    display: flex;
    margin-top: 7px;
}
.ai-timeline-year {
    flex: 1;
    text-align: center;
    color: var(--white);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
}
@media (max-width: 900px) {
    .ai-timeline-row { min-height: 260px; gap: 7px; }
    .ai-timeline-card { padding: 9px 7px 8px; }
    .ai-timeline-h1,
    .ai-timeline-h2,
    .ai-timeline-h3,
    .ai-timeline-h4,
    .ai-timeline-h5,
    .ai-timeline-h6 { height: 258px; }
    .ai-timeline-head { font-size: 10px; }
    .ai-timeline-body { font-size: 9px; line-height: 1.35; }
    .ai-timeline-year { font-size: 11px; }
}

/* ============================================================
   SECTION SEPARATOR — modrý štvorček (logo motív F5B)
   ============================================================ */
.sec-sep {
    display: flex; align-items: center; justify-content: center;
    height: 0; position: relative; z-index: 2;
}
.sec-sep-sq {
    display: inline-block;
    width: 12px; height: 12px;
    background: var(--bright-blue);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 1px var(--bright-blue);
    transform: rotate(45deg);
}
/* Variant keď predchádzajúca sekcia je modrá */
.sec-sep-on-blue .sec-sep-sq {
    background: var(--white);
    border-color: var(--bright-blue);
    box-shadow: 0 0 0 1px var(--white);
}

/* ============================================================
   CLIENTS STRIP
   ============================================================ */
.clients-eyebrow {
    font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 28px;
}
.clients-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.clients-row {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 64px;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    width: 100%;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.client-logo__img {
    display: block;
    height: 44px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.55);
    transition: filter .3s ease;
}
.client-logo:hover .client-logo__img { filter: grayscale(0%) opacity(1); }

.client-logo--dentsu .client-logo__img { height: 88px; }
.client-logo--ta3 .client-logo__img { height: 60px; max-width: 180px; }
.client-logo--phd .client-logo__img { max-width: 110px; }
.client-logo--starmedia .client-logo__img { height: 65px; max-width: 140px; }
.client-logo--publicis .client-logo__img { height: 100px; max-width: 200px; }

/* ============================================================
   CLIENT REFERENCES V2.2 — case study carousel (fifty5blue.com pattern)
   ============================================================ */
.ref-v22-section {
    background: var(--mid-blue);
    color: var(--white);
}
.ref-v22-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 40px;
}
.ref-v22 {
    width: 100%;
    background: transparent;
    color: var(--white);
}
.ref-v22-stage {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 0 48px 28px;
}
.ref-v22-slides {
    flex: 1 1 55%;
    min-width: 0;
    display: grid;
}
.ref-v22-slide {
    grid-area: 1 / 1;
    visibility: hidden;
    pointer-events: none;
    z-index: 0;
}
.ref-v22-slide.is-active {
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}
.ref-v22-content {
    min-width: 0;
}
.ref-v22-title {
    margin: 0 0 20px;
    color: var(--white);
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: var(--fw-medium);
    line-height: 1.25;
}
.ref-v22-title--logo {
    display: inline-block;
    line-height: 0;
    background: var(--white);
    padding: 14px 28px;
}
.ref-v22-title__img {
    display: block;
    height: 64px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
}
.ref-v22-title__img--dentsu { height: 37px; }
.ref-v22-title__img--phd { height: 56px; }
.ref-v22-title__img--starmedia { height: 65px; }
.ref-v22-title__img--panmedia { height: 52px; max-width: 400px; }
.ref-v22-quote {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--white);
    font-size: clamp(15px, 0.95vw, 18px);
    font-weight: var(--fw-light);
    line-height: 1.5;
}
.ref-v22-quote p {
    margin: 0;
}
.ref-v22-quote cite {
    display: block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: var(--fw-light);
    font-style: normal;
    line-height: 1.45;
    color: var(--white);
}
/* Fixný rámec fotky — rovnaká veľkosť pre všetky referencie */
.ref-v22-photo {
    flex: 0 0 260px;
    width: 260px;
    height: 260px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
}
.ref-v22-photo img {
    width: 260px;
    height: 260px;
    display: block;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%);
}
.ref-v22-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 32px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.ref-v22-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 20px;
    flex: 1 1 auto;
    min-width: 0;
}
.ref-v22-logo {
    padding: 6px 4px;
    border: 0;
    background: transparent;
    cursor: pointer;
    opacity: 0.42;
    transition: opacity 0.15s ease;
}
.ref-v22-logo:hover,
.ref-v22-logo.is-active {
    opacity: 1;
}
.ref-v22-logo:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
}
.ref-v22-logo img {
    display: block;
    height: 26px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
}
.ref-v22-logo-label {
    display: block;
    font-family: var(--font);
    font-size: 11px;
    font-weight: var(--fw-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    white-space: nowrap;
}
.ref-v22-arrows {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.ref-v22-arrows .f5b-nav-arrow {
    border-color: var(--white);
    background: transparent;
    color: var(--white);
}
.ref-v22-arrows .f5b-nav-arrow:focus-visible {
    outline-color: var(--white);
}
@media (max-width: 900px) {
    .ref-v22-inner {
        padding: 40px 24px;
    }
    .ref-v22-stage {
        flex-direction: column;
        gap: 24px;
        padding: 0 0 24px;
    }
    .ref-v22-slides {
        flex: none;
        width: 100%;
    }
    .ref-v22-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    .ref-v22-quote {
        font-size: 16px;
    }
    .ref-v22-photo {
        flex: none;
        width: 220px;
        height: 220px;
        margin: 0 auto;
    }
    .ref-v22-photo img {
        width: 220px;
        height: 220px;
    }
    .ref-v22-nav {
        flex-wrap: wrap;
        padding: 16px 20px 20px;
    }
    .ref-v22-logos {
        flex: 1 1 100%;
        order: 1;
        justify-content: center;
    }
    .ref-v22-arrows {
        flex: 1 1 100%;
        order: 0;
        justify-content: flex-end;
    }
}
@media (max-width: 540px) {
    .ref-v22-inner {
        padding: 32px 20px;
    }
    .ref-v22-stage {
        padding: 0 0 20px;
    }
    .ref-v22-photo {
        width: 200px;
        height: 200px;
    }
    .ref-v22-photo img {
        width: 200px;
        height: 200px;
    }
    .ref-v22-logo-label {
        font-size: 10px;
    }
}

/* ── Brand-specific logo styles ── */
.clogo-markiza   { color: #E31B23; font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.clogo-joj       { color: #111111; font-size: 22px; font-weight: 900; letter-spacing: -1px; }
.clogo-rtvs      { color: #003E8A; font-size: 17px; font-weight: 800; letter-spacing: 1.5px; }
.clogo-pravda    { color: #D0021B; font-size: 19px; font-weight: 700; }
.clogo-sme       { color: #1C2B4B; font-size: 19px; font-weight: 800; letter-spacing: -0.5px; }

/* Denník N — circle N + text */
.clogo-dennikn   { color: #111111; font-size: 15px; font-weight: 700; letter-spacing: -0.2px; }
.clogo-dennikn .dn-badge {
    width: 28px; height: 28px;
    background: #111111; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px; font-weight: 800;
    flex-shrink: 0; line-height: 1;
}

.clogo-aktuality { color: #E63312; font-size: 15px; font-weight: 700; }
.clogo-aktuality .ak-tld { color: var(--grey-4); font-weight: 400; }

.clogo-omd       { color: #003087; font-size: 21px; font-weight: 900; letter-spacing: -0.5px; }
.clogo-mediacom  { color: #00687F; font-size: 16px; font-weight: 700; }
.clogo-publicis  { color: #009FDE; font-size: 17px; font-weight: 700; }
.clogo-groupm    { color: #1E4D5E; font-size: 16px; font-weight: 700; }
.clogo-wavemaker { color: #008A82; font-size: 15px; font-weight: 700; }

/* ============================================================
   PLATFORMS — glass cards on bright blue (CARDS-C z blocks.html)
   ============================================================ */
.platforms-glass {
    background: var(--bright-blue);
    color: var(--white);
    padding: 80px 8%;
}
.platforms-glass-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.platforms-glass-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    gap: 20px;
}
.platforms-glass-title {
    font-size: clamp(22px, 2.5vw, 36px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.platforms-glass-link {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s;
}
.platforms-glass-link:hover { color: var(--white); }

.platforms-glass-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 900px) {
    .platforms-glass-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .platforms-glass-grid { grid-template-columns: 1fr; }
    .platforms-glass-head { flex-direction: column; align-items: flex-start; }
}

.platforms-glass-card {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    padding: 32px;
}
.platforms-glass-icon {
    display: block;
    font-size: 18px;
    color: rgba(255,255,255,.55);
    margin-bottom: 20px;
    line-height: 1;
}
.platforms-glass-card h3 {
    font-size: 16px;
    font-weight: var(--fw-medium);
    color: var(--white);
    margin-bottom: 12px;
}
.platforms-glass-card p {
    font-size: 13px;
    font-weight: 300;
    color: rgba(255,255,255,.65);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   TEAM — Variant F4 (podklady/ui-team-alt.html): overlay cards
   ============================================================ */
.variant-f4 {
    background: var(--grey-1);
    padding: 72px 40px 80px;
}
.photo-grid-f4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 1080px;
    margin: 0 auto;
}
.card-f4 {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 380px;
    cursor: default;
}
.card-f4 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform .45s ease;
}
.card-f4 .f4-overlay { display: none; }
.card-f4 .f4-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 20px 22px;
    background: var(--deep-blue);
}
.card-f4 .f4-body::before {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: var(--bright-blue);
    margin-bottom: 10px;
    transition: width .22s;
}
.card-f4:hover .f4-body::before { width: 34px; }
.card-f4 .f4-role {
    font-size: 9px;
    font-weight: var(--fw-medium);
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--grey-4);
    margin-bottom: 3px;
}
.card-f4 .f4-name {
    font-size: 16px;
    font-weight: var(--fw-medium);
    color: var(--white);
    letter-spacing: -0.2px;
    line-height: 1.2;
    margin-bottom: 8px;
}
.card-f4 .f4-bio {
    font-size: 12px;
    font-weight: 300;
    color: var(--grey-3);
    line-height: 1.62;
}

@media (max-width: 860px) {
    .variant-f4 { padding: 52px 20px 56px; }
    .variant-f4 .sec-heading { font-size: 28px; letter-spacing: -0.4px; }
    .photo-grid-f4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card-f4 { height: 320px; }
}
@media (max-width: 580px) {
    .variant-f4 .sec-heading { font-size: 24px; letter-spacing: -0.3px; }
    .photo-grid-f4 { grid-template-columns: 1fr; gap: 8px; }
    .card-f4 { height: 300px; }
    .card-f4 .f4-bio { font-size: 11px; }
}

/* ============================================================
   CTA-A — bright blue two-column (blocks.html)
   ============================================================ */
.cta-a {
    background: var(--bright-blue);
    color: var(--white);
    padding: 80px 8%;
}
.cta-a-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
}
.cta-a-copy {
    flex: 1;
    max-width: 580px;
    min-width: 0;
}
.cta-a-title {
    font-size: clamp(26px, 3.5vw, 48px);
    font-weight: var(--fw-medium);
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.cta-a-lede {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255,255,255,.68);
    line-height: 1.7;
}
.cta-a-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-shrink: 0;
}
@media (max-width: 900px) {
    .cta-a-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .cta-a-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}
@media (max-width: 540px) {
    .cta-a { padding: 56px 24px; }
    .cta-a-actions { flex-direction: column; }
    .cta-a-actions .f5b-cta { width: 100%; justify-content: center; }
}

/* ============================================================
   FOOTER — štruktúra ako fifty5blue.com (fáza A + B)
   ============================================================ */
.site-footer { color: var(--white); }
.footer-main {
    background: var(--bright-blue);
    padding-inline: 8%;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-block: clamp(56px, 8vw, 80px);
}
.footer-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    width: 100%;
}
.footer-brand {
    flex: 0 1 280px;
    min-width: 0;
}
.footer-nav {
    display: flex;
    flex: 1 1 auto;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(32px, 5vw, 80px);
    min-width: 0;
}
@media (max-width: 900px) {
    .footer-columns {
        flex-direction: column;
        gap: 40px;
    }
    .footer-brand {
        flex: none;
        max-width: none;
    }
    .footer-nav {
        flex: none;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;
        width: 100%;
    }
}
@media (max-width: 540px) {
    .footer-main { padding-inline: 24px; }
    .footer-nav { grid-template-columns: 1fr; }
}

.footer-logo {
    display: block;
    margin-bottom: 20px;
    line-height: 0;
}
.footer-logo .animated-logo--footer {
    display: block;
    height: clamp(22px, 3vw, 28px);
    width: calc(clamp(22px, 3vw, 28px) * 139 / 28);
}
.footer-tagline {
    font-size: 14px;
    font-weight: 300;
    color: var(--white);
    line-height: 1.6;
    max-width: 260px;
    margin: 0;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-col-title {
    font-size: 14px;
    font-weight: var(--fw-medium);
    color: var(--white);
    margin: 0 0 4px;
    letter-spacing: 0;
    text-transform: none;
}
.footer-col p {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    margin: 0;
}
.footer-col p.footer-address {
    color: var(--white);
    font-weight: var(--fw-bold);
}
.footer-col p a {
    color: inherit;
    text-decoration: none;
}
.footer-col p a:hover { text-decoration: underline; }

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 300;
    color: var(--white);
    text-decoration: none;
    line-height: 1.4;
}
.footer-link .caret {
    font-size: 11px;
    opacity: 0.85;
    font-weight: 300;
}

.footer-legal-bar {
    background: var(--deep-blue);
    padding-inline: 8%;
}
.footer-legal-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-block: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
@media (max-width: 540px) {
    .footer-legal-bar { padding-inline: 24px; }
}
.footer-legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}
.footer-legal-nav a {
    font-size: 12px;
    font-weight: 300;
    color: var(--grey-3);
    text-decoration: none;
    transition: color 0.13s;
}
.footer-legal-nav a:hover { color: var(--white); }
.footer-copyright {
    font-size: 12px;
    font-weight: 300;
    color: var(--grey-4);
    margin: 0;
}

/* ============================================================
   Clarity band — pod hero (biela, 2 stĺpce)
   ============================================================ */
.clarity-band {
    width: 100%;
    background: var(--white);
    color: var(--mid-blue);
    overflow: hidden;
}
.clarity-band-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(42px, 5vw, 72px) 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    gap: clamp(40px, 7vw, 120px);
    align-items: start;
}
.clarity-band-title {
    font-family: var(--font);
    font-weight: var(--fw-medium);
    font-size: clamp(32px, 4vw, 64px);
    line-height: 1.14;
    letter-spacing: 0;
    color: var(--mid-blue);
    margin: 0;
    min-width: 0;
    overflow-wrap: break-word;
}
.clarity-band-body {
    display: grid;
    gap: 24px;
    font-family: var(--font);
    font-size: clamp(15px, 1.35vw, 20px);
    font-weight: var(--fw-light);
    line-height: 1.55;
    color: var(--deep-blue);
    min-width: 0;
    overflow-wrap: break-word;
}
.clarity-band-body p { margin: 0; }
.clarity-band-body strong { font-weight: var(--fw-bold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    :root { --nav-height: 83px; }
    .topnav-inner { padding: 0 16px; }
    .menu, .utility .lang { display: none; }
    .utility .icon-btn:not(:last-child) { display: none; }

    .clarity-band-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-inline: 28px;
    }
}
@media (max-width: 600px) {
    :root { --nav-height: 56px; }
    .clarity-band-inner {
        padding: 36px 22px 46px;
        box-sizing: border-box;
    }
    .clarity-band-title {
        font-size: 32px;
        line-height: 1.16;
    }
    .clarity-band-body {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Hide mobile menu button when on desktop; add hamburger for mobile */
.utility .mobile-toggle {
    display: none;
    width: 34px; height: 34px;
    align-items: center; justify-content: center;
    color: var(--white);
}
@media (max-width: 960px) {
    .utility .mobile-toggle { display: inline-flex; }
}

/* ============================================================
   MOBILE MENU PANEL
   ============================================================ */
.mobile-menu {
    display: none; /* JS prepínaný na block */
    position: fixed;
    top: var(--nav-height);
    /* Posúva sa spolu s navom keď sa skryje */
    transition: top 0.3s ease;
    left: 0; right: 0; bottom: 0;
    background: var(--bright-blue);
    z-index: 100;
    overflow-y: auto;
    flex-direction: column;
    /* slide-down animácia */
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}
.mobile-menu.is-open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}
/* Trik: force reflow pred animáciou */
.mobile-menu.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    padding: 8px 0 40px;
    flex: 1;
}

/* Hlavné položky */
.mobile-menu-nav {
    list-style: none;
    border-bottom: 1px solid rgba(255,255,255,0.18);
    padding-bottom: 8px;
    margin-bottom: 8px;
}
.mobile-menu-nav li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: -0.2px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.12s ease;
}
.mobile-menu-nav li:last-child a { border-bottom: 0; }
.mobile-menu-nav li a:hover { background: rgba(255,255,255,0.1); }
.mobile-menu-nav li a .caret {
    font-size: 14px;
    opacity: 0.7;
}

/* Spodná utility lišta */
.mobile-menu-util {
    padding: 16px 24px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mobile-menu-util .util-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.35);
    transition: background 0.12s ease;
}
.mobile-menu-util .util-btn:hover { background: rgba(255,255,255,0.12); }
.mobile-menu-util .util-btn svg { display: block; flex-shrink: 0; }
/* ============================================================
   PRESS RELEASES — C2 Compact list row
   ============================================================ */
.pr-sec { background: var(--grey-1); padding: 72px 40px 80px; }
.pr-sec-inner { max-width: 1200px; margin: 0 auto; }

.sec-eyebrow { font-weight: var(--fw-medium); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.sec-heading { font-size: 36px; font-weight: var(--fw-medium); color: var(--black); line-height: 1.08; letter-spacing: -0.5px; }
.sec-sub { font-size: 15px; font-weight: 300; color: var(--text-muted); margin-top: 10px; max-width: 500px; line-height: 1.6; }
.sec-header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }

.pr-row-compact {
    display: grid; grid-template-columns: 72px 1fr auto;
    align-items: center; gap: 16px;
    padding: 11px 12px; border-bottom: 1px solid var(--grey-3);
    border-radius: 4px;
    transition: background .12s;
}
.pr-row-compact:first-child { border-top: 1px solid var(--grey-3); }
.pr-row-compact:hover { background: var(--white); }

.row-thumb-sm { width: 72px; height: 44px; flex-shrink: 0; border-radius: 4px; overflow: hidden; background: var(--grey-2); }
.row-thumb-sm img { width: 100%; height: 100%; object-fit: cover; display: block; }

.row-body-compact { display: flex; flex-direction: column; gap: 2px; }
.row-title-compact { font-size: 13px; font-weight: var(--fw-medium); color: var(--black); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.row-date-compact {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: var(--fw-regular);
    color: var(--bright-blue);
    letter-spacing: 0.2px;
}
.row-perex-compact { font-size: 11px; font-weight: 300; color: var(--text-caption); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

.pr-pagination {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 20px; gap: 12px; flex-wrap: wrap;
}
.pr-pagination-info { font-size: 12px; color: var(--text-caption); font-weight: 400; }
.pr-pagination-controls { display: flex; align-items: center; gap: 8px; }

/* ============================================================
   HERO — preview CI (blur + sharp window), 1 slide, bez carouselu
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    margin-top: var(--nav-height);
    min-height: 740px;
    height: calc(100vh - var(--nav-height));
    max-height: 960px;
    background: #1f2127;
    color: var(--white);
}

.hero-slide {
    --hero-frame-left: 28%;
    --hero-frame-width: 60%;
    --hero-frame-inset-y: 12%;
    --hero-frame-height: calc(100% - (2 * var(--hero-frame-inset-y)));
    --hero-copy-gap: clamp(32px, 4.5vh, 52px);
    --hero-logo-text-gap: clamp(64px, 8vh, 96px);
    --hero-logo-shift-y: -2cm;
    --hero-readability-shadow:
        0 0 8px rgba(0, 0, 0, 0.55),
        0 0 20px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 0, 0, 0.28);
    --hero-headline-shadow:
        0 0 14px rgba(0, 0, 0, 0.58),
        0 0 32px rgba(0, 0, 0, 0.44),
        0 0 60px rgba(0, 0, 0, 0.3);
    --hero-headline-line-gap: 0.14em;
    --hero-logo-blur-spread: 28px;
    --hero-logo-blur-length: calc(var(--hero-logo-text-gap) + clamp(220px, 28vh, 340px));
    --f5b-logo-h: clamp(72px, 12vw, 120px);
    --f5b-logo-align-x: calc(
        var(--f5b-logo-h) * var(--f5b-logo-box-center-x) / var(--f5b-logo-cap-height)
    );
    --f5b-logo-inset-x: calc(
        var(--f5b-logo-h) * var(--f5b-logo-artboard-left) / var(--f5b-logo-cap-height)
    );
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}
.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: var(--slide-img, var(--hero-img));
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.06);
    opacity: 1;
    z-index: 0;
}
.hero-bg-tint {
    display: none;
}

.hero-frame {
    position: absolute;
    left: var(--hero-frame-left);
    top: var(--hero-frame-inset-y);
    width: var(--hero-frame-width);
    height: var(--hero-frame-height);
    z-index: 2;
}

.hero-copy {
    position: absolute;
    left: calc(-1 * var(--f5b-logo-align-x));
    top: 0;
    height: 100%;
    width: min(calc(560px + var(--f5b-logo-inset-x)), 48vw);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    z-index: 3;
    pointer-events: none;
}
.hero-copy > * { pointer-events: auto; }

.hero-headline {
    padding-left: var(--f5b-logo-inset-x);
    box-sizing: border-box;
    width: max-content;
    max-width: none;
    font-family: var(--font);
    font-weight: var(--fw-medium);
    font-size: clamp(44px, 6.5vw, 68px);
    line-height: 1.12;
    letter-spacing: -0.04em;
    color: var(--white);
    margin: 0 0 var(--hero-copy-gap);
    text-shadow: var(--hero-headline-shadow);
}
.hero-headline-line {
    display: block;
    white-space: nowrap;
}
.hero-headline-line + .hero-headline-line {
    margin-top: var(--hero-headline-line-gap);
}

.hero-logo {
    position: relative;
    display: block;
    margin: var(--hero-logo-shift-y) 0 var(--hero-logo-text-gap);
    line-height: 0;
    flex-shrink: 0;
}
.hero-logo::after {
    content: '';
    position: absolute;
    top: 55%;
    left: -8%;
    width: 116%;
    height: var(--hero-logo-blur-length);
    background: radial-gradient(
        ellipse 95% 38% at 50% 0%,
        rgba(0, 0, 0, 0.52) 0%,
        rgba(0, 0, 0, 0.24) 48%,
        transparent 100%
    );
    filter: blur(var(--hero-logo-blur-spread));
    z-index: -1;
    pointer-events: none;
}
.f5b-logo--hero {
    height: var(--f5b-logo-h);
    width: auto;
}

.hero-subline {
    margin: 0;
    padding-left: var(--f5b-logo-inset-x);
    box-sizing: border-box;
    width: 100%;
    font-family: var(--font);
    font-size: clamp(18px, 2.1vw, 24px);
    font-weight: var(--fw-bold);
    line-height: 1.45;
    color: var(--white);
    flex-shrink: 0;
    text-shadow: var(--hero-readability-shadow);
}

.hero-window {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: transparent;
    border: 2px solid var(--white);
    box-sizing: border-box;
    box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.55);
}
.hero-window::after {
    content: none;
}
.hero-window-inner {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--slide-img, var(--hero-img));
    background-size: cover;
    background-position: center;
    will-change: transform;
}

@media (max-width: 1280px) {
    .hero-slide { --f5b-logo-h: 88px; }
    .hero-headline { font-size: 52px; }
}
@media (max-width: 1100px) {
    .hero-slide { --f5b-logo-h: 76px; }
    .hero-headline { font-size: 46px; }
}
@media (max-width: 960px) {
    .hero {
        height: auto;
        min-height: 0;
        max-height: none;
        padding: 0;
        overflow: hidden;
    }
    .hero-slide {
        position: relative;
        inset: auto;
        display: flex;
        flex-direction: column;
        padding: 24px 0;
        box-sizing: border-box;
        --f5b-logo-h: 60px;
        --hero-logo-shift-y: -0.75cm;
        --hero-logo-text-gap: clamp(40px, 6vh, 56px);
    }
    .hero-frame {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: auto;
        aspect-ratio: unset;
        max-height: none;
        order: 1;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
    }
    .hero-copy {
        position: relative;
        left: auto;
        height: auto;
        width: 100%;
        padding: 0 24px;
        gap: 0;
        order: 2;
    }
    .hero-headline { font-size: 32px; letter-spacing: -0.03em; width: 100%; --hero-headline-line-gap: 0.1em; }
    .hero-headline-line { white-space: normal; }
    .hero-subline { font-size: 18px; }
    .hero-window {
        position: relative;
        inset: auto;
        width: calc(100% - 48px);
        margin: 0 24px;
        aspect-ratio: 16 / 10;
        order: 1;
    }
    .hero-window::after { display: none; }
}

/* ============================================================
   CONTACT MODAL — formulár (podklady/ui-modals.html pattern)
   ============================================================ */
.f5b-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.45);
    overflow-y: auto;
}
.f5b-modal-overlay[hidden] {
    display: none;
}
.f5b-modal-overlay.is-open {
    animation: f5b-modal-fade-in 0.2s ease;
}
.f5b-modal {
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    outline: none;
}
.f5b-modal-overlay.is-open .f5b-modal {
    animation: f5b-modal-slide-in 0.22s ease;
}
@keyframes f5b-modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes f5b-modal-slide-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .f5b-modal-overlay.is-open,
    .f5b-modal-overlay.is-open .f5b-modal {
        animation: none;
    }
}

.f5b-modal__bar {
    height: 4px;
    background: var(--bright-blue);
}
.f5b-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px 0;
}
.f5b-modal__header-text {
    min-width: 0;
}
.f5b-modal__title {
    font-size: 18px;
    font-weight: var(--fw-medium);
    color: var(--black);
    line-height: 1.3;
    margin: 0 0 6px;
}
.f5b-modal__desc {
    font-size: 14px;
    font-weight: var(--fw-light);
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}
.f5b-modal__close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-top: -4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--grey-4);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.f5b-modal__close:hover {
    background: var(--grey-2);
    color: var(--black);
}
.f5b-modal__close:focus-visible {
    outline: 2px solid var(--bright-blue);
    outline-offset: 2px;
}
.f5b-modal__divider {
    height: 1px;
    background: var(--grey-3);
    margin: 20px 28px 0;
}
.f5b-modal__body {
    padding: 20px 28px 4px;
}
.f5b-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 28px 24px;
}
.f5b-modal__form[hidden],
.f5b-modal__success[hidden] {
    display: none;
}
.f5b-modal__success {
    padding: 8px 28px 28px;
    text-align: center;
}
.f5b-modal__success-text {
    font-size: 14px;
    font-weight: var(--fw-light);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 20px;
}
.f5b-modal__error {
    font-size: 13px;
    font-weight: var(--fw-light);
    color: #cf0033;
    line-height: 1.5;
    margin: 0 0 16px;
    padding: 10px 12px;
    background: rgba(207, 0, 51, 0.06);
    border-radius: var(--radius-sm);
}

.f5b-field {
    margin-bottom: 16px;
}
.f5b-field:last-child {
    margin-bottom: 0;
}
.f5b-field__label {
    display: block;
    font-size: 12px;
    font-weight: var(--fw-medium);
    color: var(--black);
    margin-bottom: 6px;
}
.f5b-field__req {
    color: #cf0033;
    margin-left: 2px;
}
.f5b-field__input,
.f5b-field__textarea {
    width: 100%;
    font-family: var(--font);
    font-size: 14px;
    font-weight: var(--fw-light);
    color: var(--black);
    background: var(--white);
    border: 1.5px solid var(--grey-3);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.f5b-field__input {
    height: 42px;
    padding: 0 12px;
}
.f5b-field__textarea {
    padding: 10px 12px;
    resize: vertical;
    min-height: 96px;
    line-height: 1.5;
}
.f5b-field__input::placeholder,
.f5b-field__textarea::placeholder {
    color: var(--grey-4);
}
.f5b-field__input:focus,
.f5b-field__textarea:focus {
    border-color: var(--bright-blue);
    box-shadow: 0 0 0 3px rgba(0, 50, 255, 0.1);
}
.f5b-field__input:invalid:not(:placeholder-shown),
.f5b-field__textarea:invalid:not(:placeholder-shown) {
    border-color: #cf0033;
}

@media (max-width: 540px) {
    .f5b-modal-overlay {
        padding: 16px;
        align-items: flex-end;
    }
    .f5b-modal__header,
    .f5b-modal__body,
    .f5b-modal__footer,
    .f5b-modal__success {
        padding-inline: 20px;
    }
    .f5b-modal__divider {
        margin-inline: 20px;
    }
    .f5b-modal__footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .f5b-modal__footer .f5b-cta {
        width: 100%;
        justify-content: center;
    }
}
