/* ============================================
   Brand check — kvíz „Je vaše značka hotová?“ (/brand-check)
   Vše scoped pod .bc a třídy s prefixem bc-, ať nekolidují se style.css
   (.btn, .nav, .logo, .hero…). Jen černá a bílá, barva jen v ilustracích.
   Pozadí je ve všech krocích bílé (žádné přeskakování černá/bílá).
   ============================================ */

.bc {
    --ink: var(--black);
    --paper: var(--white);
    --display: "novecento-sans-condensed", "Arial Narrow", sans-serif;
    --sans: var(--font-body);
    --pill: 999px;
    --card: 24px;

    min-height: 100svh;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

/* style.css nastavuje p na šedou s line-height 1.8 a h1–h3 vlastní řádkování — tady přebijeme */
.bc p,
.bc h1,
.bc h2,
.bc h3 {
    color: inherit;
    margin: 0;
}

.bc-screen {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    /* místo pro absolutní header webu */
    padding: 120px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px));
    animation: bc-in 0.35s ease both;
}

@keyframes bc-in {
    from { opacity: 0.001; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

.bc-wrap {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
    flex: 1;
}

.bc-top { display: flex; justify-content: flex-start; align-items: center; gap: 12px; }

.bc-tag {
    align-self: flex-start;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
    padding: 7px 12px;
    border-radius: var(--pill);
    background: var(--ink);
    color: var(--paper);
    white-space: nowrap;
}
.bc-top .bc-tag { align-self: center; }

.bc .bc-hxl,
.bc .bc-h {
    font-family: var(--display);
    font-weight: 800;
    text-transform: uppercase;
    text-wrap: balance;
}
.bc .bc-hxl   { line-height: 0.96; font-size: clamp(64px, 15vw, 128px); }
.bc .bc-hgate { font-size: clamp(56px, 13vw, 112px); }
.bc .bc-h     { line-height: 1.04; font-size: clamp(42px, 9vw, 76px); }
.bc .bc-hoffer { font-size: clamp(36px, 8vw, 60px); }

.bc .bc-sub  { font-weight: 700; font-size: clamp(18px, 4.4vw, 24px); line-height: 1.25; max-width: 30ch; }
.bc .bc-body { font-size: 17px; line-height: 1.45; max-width: 52ch; }
.bc .bc-label { font-weight: 700; font-size: 12px; letter-spacing: 0.14em; line-height: 1.3; text-transform: uppercase; }

.bc-btn {
    display: inline-block;
    font-family: var(--display);
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 28px;
    line-height: 1;
    border: 0;
    border-radius: var(--pill);
    padding: 18px 34px 16px;
    cursor: pointer;
    background: var(--ink);
    color: var(--paper);
    align-self: flex-start;
    transition: transform 0.12s;
}
.bc-btn:hover { transform: translateY(-2px); }
.bc-btn:active { transform: none; }
.bc-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

.bc button:focus-visible,
.bc a:focus-visible,
.bc input:focus-visible,
.bc-opt:focus-within { outline: 3px solid currentColor; outline-offset: 3px; }

.bc-ghost {
    font-family: var(--sans);
    background: none;
    border: 0;
    color: inherit;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
    align-self: flex-start;
}

/* ---- Úvod ---- */
/* Podle Figmy (rámec 1920 × 802, obsah 1236 široký). --u = jeden pixel návrhu. */
.bc.bc--intro { min-height: 0; }

.bc-screen--intro {
    --u: min(calc(100vw / 1320), 1px);
    display: block;
    min-height: calc(802 * var(--u));
    padding: 0;
    overflow: hidden;
}

.bc-screen--intro .bc-wrap {
    display: block;
    position: relative;
    width: calc(1236 * var(--u));
    max-width: none;
    min-height: calc(802 * var(--u));
}

/* Fotka přesahuje spodní hranu sekce, ořízne ji overflow */
.bc-intro-photo {
    position: absolute;
    left: 0;
    top: calc(72 * var(--u));
    width: calc(635 * var(--u));
    height: calc(1021 * var(--u));
    max-width: none;
    pointer-events: none;
}

.bc-intro-text {
    position: relative;
    margin-left: calc(623 * var(--u));
    padding-top: calc(165 * var(--u));
}

.bc-intro-label {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    line-height: 22px;
    text-transform: uppercase;
    margin-bottom: calc(28 * var(--u));
}

.bc .bc-intro-text .bc-hxl {
    font-size: calc(96 * var(--u));
    line-height: 1.04;
    white-space: nowrap;
    text-wrap: nowrap;
    margin-bottom: calc(4 * var(--u));
}

.bc .bc-intro-sub {
    max-width: max(280px, calc(434 * var(--u)));
    font-size: max(16px, calc(18 * var(--u)));
    line-height: 1.5;
    margin-bottom: calc(28 * var(--u));
}

.bc-intro-text .bc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: calc(140 * var(--u));
    min-height: max(44px, calc(51 * var(--u)));
    padding: 0 max(16px, calc(30 * var(--u)));
    font-family: var(--sans);
    font-size: max(12px, calc(14 * var(--u)));
    font-weight: 700;
    white-space: nowrap;
}

/* Užší okna — text nahoře, fotka pod ním (návrh pro mobil ve Figmě není) */
@media (max-width: 1100px) {
    .bc-screen--intro {
        --u: 0.8px;
        min-height: 0;
        padding: 120px 2rem 0;
    }

    .bc-screen--intro .bc-wrap {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: auto;
        min-height: 0;
    }

    .bc-intro-text {
        order: -1;
        margin-left: 0;
        padding-top: 0;
    }

    .bc .bc-intro-text .bc-hxl {
        font-size: clamp(3rem, 13vw, 5.5rem);
        white-space: normal;
        text-wrap: balance;
        margin-bottom: 1.25rem;
    }

    .bc .bc-intro-sub { max-width: 30rem; }

    .bc-intro-photo {
        position: relative;
        left: auto;
        top: auto;
        width: min(78vw, 460px);
        height: auto;
        margin: 2.5rem auto 0;
    }
}

/* ---- Otázky ---- */
.bc-progress { display: flex; gap: 6px; }
.bc-progress i { flex: 1; height: 5px; border-radius: 3px; background: var(--ink); opacity: 0.12; }
.bc-progress i.bc-on { opacity: 1; }
.bc-qhead { display: flex; align-items: flex-end; gap: 18px; }
.bc-qhead .bc-label { padding-bottom: 10px; }
.bc-num { font-family: var(--display); font-weight: 800; font-size: clamp(96px, 22vw, 168px); line-height: 0.78; }

.bc-opts { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.bc-opt {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 3px solid var(--ink);
    border-radius: 18px;
    padding: 16px 18px;
    cursor: pointer;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.3;
    transition: background 0.12s, color 0.12s;
}
.bc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.bc-box { flex: none; width: 26px; height: 26px; border: 4px solid currentColor; border-radius: 6px; display: grid; place-items: center; }
.bc-opt:hover { background: #f2f2f2; }
.bc-sel, .bc-sel:hover { background: var(--ink); color: var(--paper); }
.bc-sel .bc-box::after { content: ""; width: 10px; height: 10px; background: currentColor; border-radius: 2px; }
.bc-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: auto; padding-top: 8px; }
.bc-nav .bc-ghost { align-self: center; }

/* ---- E-mail ---- */
.bc-form { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.bc-field { display: flex; flex-direction: column; gap: 6px; }
.bc-field input {
    font: inherit;
    font-size: 18px;
    padding: 15px 18px;
    border-radius: 14px;
    border: 3px solid var(--ink);
    background: transparent;
    color: var(--ink);
}
.bc-field input::placeholder { color: var(--ink); opacity: 0.45; }
.bc-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; }
.bc-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); flex: none; }
.bc .bc-err { font-size: 14px; font-weight: 700; min-height: 1.2em; }
.bc .bc-note { font-size: 13px; line-height: 1.5; opacity: 0.75; }
.bc-note a { color: inherit; text-decoration: underline; }

/* ---- Výsledek ---- */
/* Horní část podle Figmy (rámec 1920, obsah 1236 široký). --u = jeden pixel návrhu. */
.bc-result-hero {
    --u: min(calc(100vw / 1320), 1px);
    position: relative;
    isolation: isolate;
    width: calc(1236 * var(--u));
    min-height: calc(723 * var(--u));
    margin: 0 auto calc(56 * var(--u));
}

.bc-result-text {
    position: relative;
    z-index: 2;
    padding: calc(165 * var(--u)) 0 0 calc(63 * var(--u));
}

.bc-result-text .bc-intro-label { margin-bottom: calc(45 * var(--u)); }

.bc .bc-result-lead { font-size: 1rem; line-height: 22px; }

.bc-result-score {
    display: flex;
    align-items: baseline;
    gap: calc(48 * var(--u));
    margin-top: calc(-7 * var(--u));
    font-family: var(--display);
    font-weight: 800;
}

.bc-result-num { font-size: calc(186.776 * var(--u)); line-height: 0.8; }
.bc-result-of { font-size: calc(55.254 * var(--u)); line-height: 1; color: #6c6c6c; white-space: nowrap; }

.bc .bc-result-text .bc-h {
    max-width: calc(537 * var(--u));
    margin: calc(50 * var(--u)) 0 0 calc(-10 * var(--u));
    font-size: calc(96 * var(--u));
    line-height: 1.04;
}

.bc-result-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bc-result-box {
    position: absolute;
    z-index: 0;
    left: calc(656 * var(--u));
    top: calc(155 * var(--u));
    width: calc(430 * var(--u));
    height: calc(568 * var(--u));
    box-sizing: border-box;
    border: 1px solid var(--ink);
    border-radius: calc(19 * var(--u));
}

.bc-result-photo {
    position: absolute;
    z-index: 1;
    left: calc(495 * var(--u));
    top: calc(16 * var(--u));
    width: calc(720 * var(--u));
    height: calc(707 * var(--u));
    max-width: none;
}

@media (min-width: 1101px) {
    .bc-screen--result { padding-top: 0; }
}

/* Užší okna — text nahoře, fotka v rámečku pod ním (návrh pro mobil ve Figmě není) */
@media (max-width: 1100px) {
    .bc-result-hero {
        --u: min(calc((100vw - 2rem) / 720), 0.8px);
        width: auto;
        min-height: 0;
        margin-bottom: 2rem;
    }

    .bc-result-text { padding: 0; }

    .bc-result-text .bc-intro-label { margin-bottom: 1rem; }

    .bc-result-score { gap: 1rem; margin-top: 0.5rem; }

    .bc-result-num { font-size: clamp(110px, 26vw, 190px); }
    .bc-result-of { font-size: clamp(32px, 7vw, 55px); }

    .bc .bc-result-text .bc-h {
        max-width: none;
        margin: 1.5rem 0 0;
        font-size: clamp(3rem, 13vw, 5.5rem);
    }

    .bc-result-visual {
        position: relative;
        inset: auto;
        width: calc(720 * var(--u));
        height: calc(707 * var(--u));
        margin: 2rem auto 0;
    }

    .bc-result-box { left: calc(161 * var(--u)); top: calc(139 * var(--u)); }
    .bc-result-photo { left: 0; top: 0; }
}

.bc-gaps-wrap { display: flex; flex-direction: column; gap: 12px; }
.bc-gaps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.bc-gaps li { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; padding: 16px 0; border-top: 3px solid var(--ink); }
.bc-gaps li:last-child { border-bottom: 3px solid var(--ink); }
.bc-n { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 0.9; grid-row: span 2; }
.bc-gaps b { font-size: 17px; }
.bc-gaps li > span:last-child { font-size: 15px; line-height: 1.4; opacity: 0.85; min-width: 0; }

/* Nabídka a konzultace vedle sebe, na užších oknech pod sebou */
.bc-offers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.bc-offer,
.bc-consult {
    border-radius: var(--card);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bc-offer { background: var(--ink); color: var(--paper); }
.bc-consult { border: 1px solid var(--ink); }

.bc-offers .bc-btn { margin-top: auto; }

.bc-offer .bc-tag,
.bc-offer .bc-btn { background: var(--paper); color: var(--ink); }

.bc .bc-offers .bc-hoffer { font-size: clamp(36px, 5vw, 44px); }

.bc-consult-num {
    font-family: var(--display);
    font-weight: 800;
    line-height: 0.9;
    text-transform: uppercase;
}

.bc-consult-num span { display: inline-block; font-size: 22px; }
.bc-consult-num span:first-child { font-size: 56px; margin-right: 6px; }

@media (max-width: 640px) {
    .bc-offers { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .bc-screen { padding-top: 104px; }
    .bc-screen--intro { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (max-width: 480px) {
    .bc-opt { font-size: 16px; padding: 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .bc-screen { animation: none; }
    .bc-btn { transition: none; }
}
.bc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
