/* ==========================================================
   Internetový marketing – průvodce
   Samostatný soubor: assets/css/internetovy-marketing.css
   Všechny selektory používají prefix im-, aby se nemíchaly se
   stávajícím main.min.css a custom.css.
   ========================================================== */

:root {
    --im-blue: #1f3f7a;
    --im-blue-dark: #122751;
    --im-blue-soft: #eaf0f9;
    --im-orange: #e95314;
    --im-orange-dark: #c94008;
    --im-orange-soft: #fff1eb;
    --im-ink: #152033;
    --im-muted: #667085;
    --im-line: #dce3ed;
    --im-bg: #f5f7fa;
    --im-white: #fff;
    --im-shadow: 0 1.8rem 4.5rem rgba(31, 63, 122, 0.12);
    --im-radius: 2.2rem;
    --im-reading-width: 88rem;
    --im-navigation-width: 22rem;
}

html { scroll-behavior: smooth; }
body { color: var(--im-ink); }

.im-page { background: var(--im-bg); }
.im-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 0.35rem; background: rgba(31,63,122,.08); }
.im-progress span { display: block; width: 0; height: 100%; background: var(--im-orange); transition: width .12s linear; }
.im-eyebrow { margin: 0 0 .9rem; color: var(--im-orange); font-size: 1.25rem; font-weight: 800; letter-spacing: .13em; line-height: 1.25; text-transform: uppercase; }

/* Hero */
.im-hero {
    overflow: hidden;
    background: #fff;
}

.im-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(38rem, 0.88fr);
    gap: 5rem;
    align-items: stretch;
    min-height: 58rem;
}

.im-hero__content { display: flex; flex-direction: column; justify-content: center; padding: 7.5rem 0 8rem; }


.im-hero h1 {
    max-width: 81rem;
    margin: 0;
    color: var(--im-blue-dark);
    font-size: clamp(3.2rem, 4vw, 5.2rem);
    line-height: 1.03;
    letter-spacing: -.045em;
    font-weight: 800;
}


.im-hero__lead { max-width: 75rem; margin: 2.4rem 0 0; color: #35435c; font-size: 1.95rem; line-height: 1.62; }
.im-hero__actions { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 3.2rem; }
.im-hero__meta { margin: 2.6rem 0 0; color: var(--im-muted); font-size: 1.35rem; }

.im-hero__visual {
    position: relative;
    min-height: 58rem;
    background: #fff;
}

/* Původní modrý přechod přes spodní část obrázku již nechceme */

.im-hero__visual::after {
    display: none;
}

.im-hero__visual img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

/* Data */
.im-stats { position: relative; z-index: 3; padding: 0 0 2rem; background: #fff; }
.im-stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; transform: translateY(-2.4rem); }
.im-stat { display: flex; flex-direction: column; gap: .7rem; min-height: 15rem; padding: 2.4rem; background: #fff; border: 1px solid var(--im-line); border-top: .45rem solid var(--im-orange); box-shadow: 0 1.2rem 2.5rem rgba(31,63,122,.08); }
.im-stat strong { color: var(--im-blue); font-size: 3.2rem; line-height: 1; letter-spacing: -.04em; }
.im-stat span { color: #4b5870; font-size: 1.45rem; line-height: 1.48; }
.im-stats__sources { margin-top: -1rem; color: var(--im-muted); font-size: 1.2rem; }
.im-stats__sources a { color: var(--im-blue); }

/* Rychlé odkazy */
.im-jumpbar { position: sticky; top: 0; z-index: 40; background: rgba(18,39,81,.97); box-shadow: 0 .5rem 1.8rem rgba(18,39,81,.18); backdrop-filter: blur(12px); }
.im-jumpbar__inner { display: flex; align-items: center; gap: 1.7rem; min-height: 5.4rem; overflow: hidden; color: rgba(255,255,255,.8); font-size: 1.25rem; }
.im-jumpbar__inner strong { flex: 0 0 auto; color: #fff; }
.im-jumpbar__links { display: flex; gap: .85rem; overflow-x: auto; padding: .8rem 0; scrollbar-width: thin; }
.im-jumpbar__links a { flex: 0 0 auto; padding: .7rem 1.05rem; color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; text-decoration: none; transition: .18s ease; }
.im-jumpbar__links a:hover { color: #fff; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.08); }

/* Úvod */
.im-introduction { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; align-items: end; padding-top: 7rem; padding-bottom: 4.5rem; }
.im-introduction h2 { margin: 0; color: var(--im-blue-dark); font-size: clamp(3.2rem, 4vw, 5.2rem); line-height: 1.03; letter-spacing: -.045em; }
.im-introduction p:not(.im-eyebrow) { max-width: 82rem; margin: 1.5rem 0 0; color: #4f5d73; font-size: 1.7rem; line-height: 1.65; }
.im-introduction__controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .8rem; }
.im-control { cursor: pointer; padding: 1rem 1.35rem; color: var(--im-blue); background: #fff; border: 1px solid #bfcce0; border-radius: .8rem; font: inherit; font-size: 1.35rem; font-weight: 750; transition: .18s ease; }
.im-control:hover { border-color: var(--im-blue); background: var(--im-blue-soft); }
.im-control--quiet { color: var(--im-muted); }

/* Obsah + článek */
.im-layout {
    display: grid;
    grid-template-columns: var(--im-navigation-width) minmax(0, var(--im-reading-width)) var(--im-navigation-width);
    gap: 2.5rem;
    justify-content: center;
    align-items: start;
    padding-bottom: 8rem;
}

/* Prázdný pravý sloupec vyvažuje navigaci. Čtecí sloupec díky tomu
   zůstává opticky uprostřed stránky i ve chvíli, kdy navigace odscrolluje. */
.im-layout::after {
    content: "";
    grid-column: 3;
    grid-row: 1;
}

.im-toc {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 7.7rem;
}
.im-toc__inner { max-height: calc(100vh - 10rem); overflow: auto; padding: 1.7rem; background: #fff; border: 1px solid var(--im-line); border-radius: 1.6rem; box-shadow: 0 .9rem 2rem rgba(31,63,122,.06); }
.im-toc ol { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.im-toc a { display: grid; grid-template-columns: 2.4rem 1fr; gap: .7rem; padding: .74rem .7rem; color: #526176; border-radius: .75rem; font-size: 1.27rem; line-height: 1.32; text-decoration: none; transition: .18s ease; }
.im-toc a span { color: #93a0b1; font-size: 1.12rem; font-weight: 800; }
.im-toc a:hover, .im-toc a.is-active { color: var(--im-blue); background: var(--im-blue-soft); }
.im-toc a.is-active span { color: var(--im-orange); }
.im-article { grid-column: 2; grid-row: 1; min-width: 0; }

/* Kapitoly */
.im-chapter { scroll-margin-top: 7.4rem; margin: 0 0 3rem; padding: 3.5rem; background: #fff; border: 1px solid var(--im-line); border-radius: var(--im-radius); box-shadow: 0 1.2rem 3rem rgba(31,63,122,.055); }
.im-chapter__header { display: grid; grid-template-columns: 5.6rem minmax(0,1fr); gap: 1.6rem; align-items: center; margin-bottom: 2.7rem; }
.im-chapter__number { display: inline-flex; align-items: center; justify-content: center; width: 5.6rem; height: 5.6rem; color: #fff; background: var(--im-blue); border-radius: 1.35rem; font-size: 2rem; font-weight: 850; line-height: 1; letter-spacing: -.04em; }
.im-chapter h2 { margin: 0; color: var(--im-blue-dark); font-size: clamp(2.8rem, 2.9vw, 3.9rem); line-height: 1.08; letter-spacing: -.045em; }

/* Obsahové bloky */
.im-block { margin-top: 1.6rem; padding: 2rem 0 0; border-top: 1px solid var(--im-line); }
.im-block:first-of-type { margin-top: 0; }
.im-block h3 { margin: 0 0 1.15rem; color: var(--im-blue); font-size: 2.55rem; line-height: 1.13; letter-spacing: -.035em; }
.im-prose > p, .im-detail__body > p { max-width: 92ch; margin: 0 0 1.25rem; color: #3e4d64; font-size: 1.58rem; line-height: 1.68; }
.im-prose a { color: var(--im-blue); text-decoration-thickness: .1em; text-underline-offset: .16em; }
.im-prose a:hover { color: var(--im-orange-dark); }
.im-block--summary { margin: 2.2rem 0; padding: 2.3rem; background: var(--im-blue-soft); border: 0; border-left: .5rem solid var(--im-blue); border-radius: 1.4rem; }
.im-block--summary h3 { color: var(--im-blue-dark); }
.im-block--actions { margin-top: 2.2rem; padding: 2.3rem; background: #f6faf6; border: 1px solid #dceadb; border-left: .5rem solid #4f8c52; border-radius: 1.4rem; }
.im-block--warning { margin-top: 2.2rem; padding: 2.3rem; background: #fff7f5; border: 1px solid #f3d4ce; border-left: .5rem solid #c8482e; border-radius: 1.4rem; }
.im-subheading { margin: 2rem 0 1rem; color: var(--im-blue-dark); font-size: 2.05rem; line-height: 1.22; letter-spacing: -.02em; }
.im-subheading--warning { color: #9d321d; }


/* ==========================================================
   Výhody a nevýhody online marketingu
   Dva samostatné boxy pro rychlé porovnání.
   ========================================================== */

.im-pros-cons {
    display: grid;
    gap: 1.5rem;

    margin: 2.2rem 0;
}

.im-balance-card {
    overflow: hidden;

    padding: 2.3rem;

    border: 1px solid;
    border-left-width: 0.5rem;
    border-radius: 1.4rem;
}

.im-balance-card--positive {
    background: #f4faf5;
    border-color: #d6e8d8;
    border-left-color: #4f8c52;
}

.im-balance-card--negative {
    background: #fff6f5;
    border-color: #efd8d4;
    border-left-color: #c8482e;
}

.im-balance-card__header {
    display: flex;
    align-items: center;
    gap: 1.15rem;

    margin-bottom: 1.45rem;
}

.im-balance-card__symbol {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    width: 4.4rem;
    height: 4.4rem;

    color: #fff;

    border-radius: 1.05rem;

    font-size: 3.15rem;
    font-weight: 850;
    line-height: 1;
}

.im-balance-card--positive .im-balance-card__symbol {
    background: #4f8c52;
}

.im-balance-card--negative .im-balance-card__symbol {
    background: #c8482e;
}

.im-balance-card h3 {
    margin: 0;

    color: var(--im-blue-dark);

    font-size: 2.55rem;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.im-balance-card__header p {
    margin: 0.35rem 0 0;

    color: #647084;

    font-size: 1.38rem;
    line-height: 1.45;
}

.im-balance-list {
    display: grid;
    gap: 0.75rem;

    margin: 0;
    padding: 0;

    list-style: none;
}

.im-balance-list li {
    position: relative;

    margin: 0;
    padding: 1.1rem 1.2rem 1.1rem 4.25rem;

    color: #3e4d64;
    background: rgba(255, 255, 255, 0.7);

    border: 1px solid rgba(31, 63, 122, 0.1);
    border-radius: 0.9rem;

    font-size: 1.5rem;
    line-height: 1.58;
}

.im-balance-list li::before {
    position: absolute;
    top: 1.02rem;
    left: 1.15rem;

    display: grid;
    place-items: center;

    width: 2.2rem;
    height: 2.2rem;

    color: #fff;

    border-radius: 0.62rem;

    font-size: 1.7rem;
    font-weight: 850;
    line-height: 1;
}

.im-balance-card--positive .im-balance-list li::before {
    content: "+";
    background: #4f8c52;
}

.im-balance-card--negative .im-balance-list li::before {
    content: "−";
    background: #c8482e;
}

@media (max-width: 575px) {
    .im-balance-card {
        padding: 1.6rem;
    }

    .im-balance-card__symbol {
        width: 3.8rem;
        height: 3.8rem;

        border-radius: 0.9rem;

        font-size: 2.7rem;
    }

    .im-balance-card h3 {
        font-size: 2.2rem;
    }

    .im-balance-card__header p {
        font-size: 1.28rem;
    }

    .im-balance-list {
        gap: 0.6rem;
    }

    .im-balance-list li {
        padding: 1rem 1rem 1rem 3.75rem;

        font-size: 1.44rem;
        line-height: 1.56;
    }

    .im-balance-list li::before {
        top: 0.94rem;
        left: 0.95rem;

        width: 2.05rem;
        height: 2.05rem;

        border-radius: 0.58rem;

        font-size: 1.55rem;
    }
}

/* Seznamy */
.im-list { display: grid; gap: .55rem; margin: 1.2rem 0 1.6rem; padding: 0; list-style: none; }
.im-list li { position: relative; padding-left: 2rem; color: #3e4d64; font-size: 1.5rem; line-height: 1.58; }
.im-list li::before { content: ""; position: absolute; top: .86em; left: 0; width: .72rem; height: .72rem; background: var(--im-orange); border-radius: 50%; transform: translateY(-50%); }
.im-list--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.im-list--cards li { padding: 1.15rem 1.2rem 1.15rem 3.1rem; background: rgba(255,255,255,.72); border: 1px solid rgba(31,63,122,.12); border-radius: .9rem; }
.im-list--cards li::before { left: 1.25rem; }
.im-list--compact li { font-size: 1.43rem; }

/* Rozbalovací podrobnosti */
.im-detail { margin: .8rem 0; border: 1px solid var(--im-line); border-radius: 1rem; background: #fff; }
.im-detail summary { position: relative; cursor: pointer; padding: 1.25rem 4.4rem 1.25rem 1.35rem; color: var(--im-blue-dark); font-size: 1.55rem; font-weight: 780; line-height: 1.35; list-style: none; transition: .18s ease; }
.im-detail summary::-webkit-details-marker { display: none; }
.im-detail summary::after { content: "+"; position: absolute; top: 50%; right: 1.35rem; width: 2.2rem; height: 2.2rem; color: var(--im-blue); border: 1px solid #c4d1e4; border-radius: 50%; font-size: 1.75rem; line-height: 1.88rem; text-align: center; transform: translateY(-50%); }
.im-detail[open] summary { color: var(--im-orange-dark); background: #fffaf7; border-radius: 1rem 1rem 0 0; }
.im-detail[open] summary::after { content: "−"; color: var(--im-orange-dark); border-color: #edb092; }
.im-detail__body { padding: 1.3rem 1.4rem .4rem; border-top: 1px solid var(--im-line); }
.im-detail--tip { border-color: #f0c5ae; background: #fffaf7; }
.im-detail--tip summary { color: var(--im-orange-dark); }

/* Ilustrace */
.im-illustration { display: grid; grid-template-columns: minmax(0, 1fr) 28rem; gap: 1.5rem; align-items: end; margin: 0 0 2.4rem; padding: 1rem; background: #f8fafc; border: 1px solid var(--im-line); border-radius: 1.5rem; }
.im-illustration__frame { overflow: hidden; min-height: 22rem; border-radius: 1rem; background: linear-gradient(135deg, #dfe7f2, #f4f7fb); }
.im-illustration img { display: block; width: 100%; height: 100%; min-height: 22rem; object-fit: cover; }
.im-illustration figcaption { padding: 1.2rem .9rem; color: #637187; font-size: 1.32rem; line-height: 1.55; }


/* ==========================================================
   Celostránkové odbočky z průvodce
   Pozadí vystupuje přes celou šířku obrazovky. Samotný text ale
   zůstává v centrálním čtecím sloupci, aby se po přerušení toku
   neposouval doleva ani se zbytečně neroztahoval.
   ========================================================== */

.im-page {
    overflow-x: clip;
}

.im-breakout {
    position: relative;
    left: 50%;
    isolation: isolate;
    overflow: hidden;

    width: 100vw;
    max-width: none;

    margin-top: 4.6rem;
    margin-bottom: 4.8rem;
    margin-left: 0;
    padding: 5.2rem 0;

    transform: translateX(-50%);
}

/* Stejná maximální šířka jako u hlavního čtecího sloupce.
   Pruh je celostránkový, text nikoliv. */
.im-breakout__container {
    max-width: var(--im-reading-width);
}

.im-breakout::before,
.im-breakout::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border: 1px solid rgba(31, 63, 122, 0.08);
    border-radius: 50%;
}

.im-breakout::before {
    right: 8vw;
    top: -17rem;
    width: 37rem;
    height: 37rem;
}

.im-breakout::after {
    right: -10rem;
    bottom: -18rem;
    width: 43rem;
    height: 43rem;
}

/* Případové studie: světlejší samostatný pruh bez vnitřní karty. */
.im-breakout--case {
    color: var(--im-ink);
    background:
        radial-gradient(circle at 86% 4%, rgba(31, 63, 122, 0.055), transparent 24rem),
        #eef1f4;
    /* Tmavě modrá odděluje obsahový pruh „Z praxe“ od oranžové lišty průběhu čtení. */
    border-top: 0.35rem solid var(--im-blue-dark);
    border-bottom: 1px solid #dce3ed;
}

/* Autorův CTA pruh zůstává tmavý: slouží jako výraznější obchodní odbočka. */
.im-breakout--author {
    padding-top: 4.8rem;
    padding-bottom: 4.8rem;
    color: #fff;
    background:
        radial-gradient(circle at 88% 18%, rgba(233, 83, 20, 0.24), transparent 22rem),
        linear-gradient(120deg, #122751, #1f3f7a);
    box-shadow: 0 1.8rem 3.8rem rgba(18, 39, 81, 0.14);
}

.im-breakout--author::before,
.im-breakout--author::after {
    border-color: rgba(255, 255, 255, 0.11);
}

.im-breakout__skip {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.55rem;

    width: fit-content;
    margin: 0 0 1.6rem auto;

    color: rgba(255, 255, 255, 0.72);
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    transition: 180ms ease;
}

.im-breakout--case .im-breakout__skip {
    color: #68768a;
}

.im-breakout__skip:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.22em;
}

.im-breakout--case .im-breakout__skip:hover {
    color: var(--im-blue-dark);
}

/* ==========================================================
   Samostatné pruhy „Z praxe“
   ========================================================== */

.im-case-study {
    position: relative;
    z-index: 1;
    color: var(--im-ink);
}

.im-case-study__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 14rem;
    gap: 3rem;
    align-items: start;
}

.im-case-study__eyebrow,
.im-author-cta__eyebrow {
    margin: 0 0 0.8rem;
    color: var(--im-orange);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.3;
    text-transform: uppercase;
}

.im-case-study__intro h3 {
    max-width: 76rem;
    margin: 0;
    color: var(--im-blue-dark);
    font-size: clamp(3.2rem, 3.7vw, 4.8rem);
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.im-case-study__intro p:not(.im-case-study__eyebrow) {
    max-width: 78rem;
    margin: 1.25rem 0 0;
    color: #536176;
    font-size: 1.58rem;
    line-height: 1.62;
}

/* Zkušenost autora je jen drobný akcent, ne další box uvnitř boxu. */
.im-case-study__proof {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.25rem 0 0.25rem 1.25rem;
    border-left: 0.3rem solid var(--im-orange);
}

.im-case-study__proof strong {
    color: var(--im-orange);
    font-size: 2.55rem;
    line-height: 1;
}

.im-case-study__proof span {
    color: #68768a;
    font-size: 1.18rem;
    line-height: 1.4;
}

/* Výsledky jsou oddělené pouze svislou linkou. Nevznikají další kapsle. */
.im-case-study__highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
    margin-top: 2.4rem;
}

.im-case-study__highlights span {
    display: block;
    min-width: 0;
    padding: 0.25rem 0 0.25rem 1.05rem;
    color: #647187;
    border-left: 0.22rem solid rgba(233, 83, 20, 0.78);
    font-size: 1.22rem;
    line-height: 1.42;
}

.im-case-study__highlights strong {
    display: block;
    margin-bottom: 0.18rem;
    color: var(--im-blue-dark);
    font-size: 1.38rem;
}

/* Vlastní text případovek teče přímo po pozadí pruhu.
   Maximální šířka odstavců chrání čitelnost. */
.im-case-study__body {
    position: relative;
    z-index: 1;
    margin-top: 3rem;
    padding: 0;
    color: var(--im-ink);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.im-case-study__body > p,
.im-case-study__body .im-detail__body > p,
.im-case-study__body .im-detail__body > ul {
    max-width: 82ch;
}

.im-case-study__body > .im-subheading:first-child {
    margin-top: 0;
}

.im-case-study__body > .im-subheading:not(:first-child) {
    margin-top: 2.8rem;
    padding-top: 2.45rem;
    border-top: 1px solid #d7dee8;
}

/* Rozbalovací inspirace zůstává praktická, ale bez samostatných rámečků. */
.im-case-study .im-detail,
.im-case-study .im-detail--tip {
    margin: 0.9rem 0 1rem;
    background: transparent;
    border: 0;
    border-top: 1px solid #d7dee8;
    border-radius: 0;
}

.im-case-study .im-detail summary,
.im-case-study .im-detail--tip summary {
    padding: 1.15rem 3.4rem 1.15rem 0;
    color: var(--im-blue-dark);
    background: transparent;
    border-radius: 0;
}

.im-case-study .im-detail summary::after {
    right: 0;
}

.im-case-study .im-detail[open] summary {
    color: var(--im-orange-dark);
    background: transparent;
    border-radius: 0;
}

.im-case-study .im-detail__body {
    padding: 0.15rem 0 0.45rem;
    border-top: 0;
}

/* Volitelný prostor pro budoucí doprovodný obrázek případovky. */
.im-case-study__visual {
    overflow: hidden;
    margin: 2rem 0 0;
    border-radius: 1.3rem;
    background: #e2e8f0;
}

.im-case-study__visual img {
    display: block;
    width: 100%;
    height: auto;
}

.im-case-study__footer {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    margin-top: 2.6rem;
    padding-top: 2.25rem;
    border-top: 1px solid #cfd8e5;
}

.im-case-study__footer strong {
    display: block;
    color: var(--im-blue-dark);
    font-size: 1.9rem;
    line-height: 1.2;
}

.im-case-study__footer span {
    display: block;
    max-width: 62rem;
    margin-top: 0.45rem;
    color: #637187;
    font-size: 1.4rem;
    line-height: 1.5;
}

.im-case-study__actions,
.im-author-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.im-case-study__button,
.im-author-cta__button {
    display: inline-flex;
    justify-content: center;
    padding: 1.15rem 1.5rem;
    color: #fff;
    background: var(--im-orange);
    border: 1px solid var(--im-orange);
    border-radius: 0.85rem;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: 180ms ease;
}

.im-case-study__button:hover,
.im-author-cta__button:hover {
    color: #fff;
    background: var(--im-orange-dark);
    border-color: var(--im-orange-dark);
    text-decoration: none;
}

.im-case-study__phone,
.im-author-cta__phone {
    display: inline-flex;
    padding: 1.1rem 0.2rem;
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.im-case-study__phone {
    color: var(--im-blue);
}

.im-author-cta__phone {
    color: rgba(255, 255, 255, 0.82);
}

.im-case-study__phone:hover {
    color: var(--im-blue-dark);
    text-decoration: underline;
}

.im-author-cta__phone:hover {
    color: #fff;
    text-decoration: underline;
}

/* ==========================================================
   Průběžný celostránkový CTA pruh autora
   ========================================================== */

.im-author-cta {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 3rem;
    align-items: center;
    color: #fff;
}

.im-author-cta h3 {
    max-width: 72rem;
    margin: 0;
    color: #fff;
    font-size: clamp(3.1rem, 3.5vw, 4.5rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.im-author-cta__content > p:not(.im-author-cta__eyebrow) {
    max-width: 74rem;
    margin: 1.2rem 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.55rem;
    line-height: 1.62;
}

.im-author-cta__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.65rem;
}

.im-author-cta__stats span {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    padding: 0.68rem 0.88rem;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 1.16rem;
    line-height: 1.3;
}

.im-author-cta__stats strong {
    color: #f06a2d;
    font-size: 1.32rem;
}

.im-author-cta__actions {
    position: relative;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
}

.im-author-cta__button {
    text-align: center;
}

.im-author-cta__phone {
    justify-content: center;
}

/* ==========================================================
   Responzivní chování celostránkových pruhů
   ========================================================== */

@media (max-width: 767px) {
    .im-breakout {
        margin-top: 3rem;
        margin-bottom: 3.2rem;
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .im-breakout__skip {
        justify-content: flex-start;
        margin-right: auto;
        margin-left: 0;
        font-size: 1.16rem;
    }

    .im-case-study__intro,
    .im-case-study__footer,
    .im-author-cta {
        grid-template-columns: 1fr;
    }

    .im-case-study__proof {
        max-width: 16rem;
    }

    .im-case-study__highlights {
        grid-template-columns: 1fr;
        gap: 0.95rem;
    }

    .im-case-study__body {
        margin-top: 2.2rem;
    }

    .im-case-study__actions,
    .im-author-cta__actions {
        align-items: stretch;
    }

    .im-case-study__button,
    .im-author-cta__button {
        width: 100%;
        text-align: center;
    }

    .im-case-study__phone,
    .im-author-cta__phone {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .im-case-study__intro h3 {
        font-size: 2.85rem;
    }

    .im-author-cta h3 {
        font-size: 2.75rem;
    }

    .im-case-study__footer strong {
        font-size: 1.72rem;
    }
}

/* Závěr */
.im-feedback { padding: 7rem 0; color: #fff; background: linear-gradient(125deg, var(--im-blue-dark), var(--im-blue)); }
.im-feedback__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; align-items: center; }
.im-feedback h2 { max-width: 78rem; margin: 0; color: #fff; font-size: clamp(3.4rem, 4.4vw, 5.6rem); line-height: 1.03; letter-spacing: -.05em; }
.im-feedback p:not(.im-eyebrow) { max-width: 76rem; margin: 1.5rem 0 0; color: rgba(255,255,255,.82); font-size: 1.65rem; line-height: 1.65; }
.im-feedback__actions { display: flex; flex-direction: column; gap: 1rem; min-width: 30rem; }
.im-feedback .btn--border { color: #fff; border-color: rgba(255,255,255,.48); }
.im-feedback .btn--border:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Lokální preview */
.im-preview-header { display: flex; align-items: center; justify-content: space-between; padding: 1.7rem 4vw; color: var(--im-blue); background: #fff; border-bottom: 1px solid var(--im-line); font-family: "Mona Sans", sans-serif; }
.im-preview-header strong { font-size: 2.3rem; }
.im-preview-header span { color: var(--im-muted); font-size: 1.35rem; }
.im-preview-note { padding: .8rem 4vw; color: #725200; background: #fff4c2; font-family: "Mona Sans", sans-serif; font-size: 1.25rem; }
.im-preview-footer { padding: 3rem 4vw; color: rgba(255,255,255,.78); background: #101d36; font-family: "Mona Sans", sans-serif; font-size: 1.35rem; }

/* Responzivita */
@media (max-width: 1199px) {
    .im-hero__grid { grid-template-columns: minmax(0,1fr) 36rem; gap: 3rem; min-height: 52rem; }
    .im-hero__visual { min-height: 52rem; }
    .im-layout {
        grid-template-columns: minmax(0, var(--im-reading-width));
        gap: 2rem;
        justify-content: center;
    }
    .im-layout::after { display: none; }
    .im-toc, .im-article { grid-column: 1; grid-row: auto; }
    .im-toc { position: static; }
    .im-toc__inner { max-height: none; }
    .im-toc ol { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .im-chapter { padding: 2.8rem; }
    .im-illustration { grid-template-columns: 1fr; }
    .im-illustration figcaption { padding: .35rem .5rem .5rem; }
}

@media (max-width: 991px) {
    .im-hero { background: #fff; }
    .im-hero__grid { grid-template-columns: 1fr; min-height: auto; }
    .im-hero__content { padding: 6rem 0 2rem; }
    .im-hero__visual { min-height: 34rem; max-height: 44rem; margin: 0 -2rem; }
    .im-stats__grid { grid-template-columns: 1fr; gap: .7rem; transform: translateY(-1.2rem); }
    .im-stat { min-height: 0; padding: 1.8rem; }
    .im-introduction { grid-template-columns: 1fr; gap: 1.7rem; padding-top: 5.5rem; }
    .im-introduction__controls { justify-content: flex-start; }
    .im-layout { grid-template-columns: 1fr; }
    .im-toc, .im-article { grid-column: 1; grid-row: auto; }
    .im-toc { position: static; }
    .im-toc__inner { max-height: none; }
    .im-toc ol { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .im-chapter { scroll-margin-top: 6rem; }
    .im-feedback__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .im-feedback__actions { min-width: 0; }
}

@media (max-width: 575px) {
    .im-hero__content { padding-top: 4rem; }

.im-hero h1 { font-size: 3.2rem; }


    .im-hero__lead { font-size: 1.65rem; }
    .im-hero__actions { flex-direction: column; }
    .im-hero__actions .btn { width: 100%; text-align: center; }
    .im-hero__visual { min-height: 26rem; }
    .im-jumpbar__inner { gap: 1rem; }
    .im-jumpbar__inner strong { display: none; }
    .im-introduction { padding-top: 4rem; padding-bottom: 3rem; }
    .im-control { width: 100%; }
    .im-toc ol { grid-template-columns: 1fr; }
    .im-chapter { margin-bottom: 1.7rem; padding: 1.7rem; border-radius: 1.35rem; }
    .im-chapter__header { grid-template-columns: 4.4rem minmax(0,1fr); gap: 1rem; margin-bottom: 1.8rem; }
    .im-chapter__number { width: 4.4rem; height: 4.4rem; border-radius: 1rem; font-size: 1.55rem; }
    .im-chapter h2 { font-size: 2.55rem; line-height: 1.1; letter-spacing: -.035em; }
    .im-block h3 { font-size: 2.2rem; }
    .im-block--summary, .im-block--actions, .im-block--warning { padding: 1.45rem; }
    .im-list--cards { grid-template-columns: 1fr; }
    .im-illustration { margin-left: -.45rem; margin-right: -.45rem; padding: .6rem; }
    .im-illustration__frame, .im-illustration img { min-height: 17rem; }
    .im-feedback { padding: 5rem 0; }
    .im-feedback__actions .btn { width: 100%; text-align: center; }
}

@media print {
    .im-progress, .im-jumpbar, .im-toc, .im-introduction__controls, .im-feedback__actions { display: none !important; }
    .im-page, .im-feedback { background: #fff !important; }
    .im-layout { display: block; }
    .im-chapter { break-inside: avoid; box-shadow: none; }
    .im-detail > .im-detail__body { display: block !important; }
    .im-feedback, .im-feedback h2, .im-feedback p:not(.im-eyebrow) { color: #111 !important; }
}

/* ==========================================================
   Blok „Stručně“ ve všech kapitolách
   Budík je vložen přímo v CSS jako SVG data URI.
   Není potřeba kopírovat samostatný obrázek do složky img.
   ========================================================== */

.im-summary {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    margin: 2.2rem 0;
    padding: 2.2rem 2.4rem;

    background: var(--im-blue-soft);

    border: 0;
    border-left: 0.5rem solid var(--im-blue);
    border-radius: 1.4rem;
}

/* Dekorativní budík v pravém horním rohu */

.im-summary::after {
    content: "";

    position: absolute;
    top: 1.15rem;
    right: 1.4rem;
    z-index: 0;

    width: 12rem;
    height: 12rem;

    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20512%20512%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%231f3f7a%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M144%20112c-28%2011-48%2032-59%2060%22%20stroke-width%3D%2218%22%2F%3E%3Cpath%20d%3D%22M368%20112c28%2011%2048%2032%2059%2060%22%20stroke-width%3D%2218%22%2F%3E%3Cpath%20d%3D%22M132%20103c20-13%2045-23%2069-25%22%20stroke-width%3D%2216%22%2F%3E%3Cpath%20d%3D%22M380%20103c-20-13-45-23-69-25%22%20stroke-width%3D%2216%22%2F%3E%3Cpath%20d%3D%22M226%2073h60%22%20stroke-width%3D%2218%22%2F%3E%3Cpath%20d%3D%22M256%2074v35%22%20stroke-width%3D%2216%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22270%22%20r%3D%22145%22%20stroke-width%3D%2220%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22270%22%20r%3D%22121%22%20stroke-width%3D%227%22%20opacity%3D%22.42%22%2F%3E%3Cpath%20d%3D%22M256%20157v18M256%20365v18M143%20270h18M351%20270h18%22%20stroke-width%3D%2212%22%2F%3E%3Cpath%20d%3D%22M176%20190l13%2013M323%20337l13%2013M336%20190l-13%2013M189%20337l-13%2013%22%20stroke-width%3D%229%22%20opacity%3D%22.74%22%2F%3E%3Cpath%20d%3D%22M256%20270v-66%22%20stroke-width%3D%2218%22%2F%3E%3Cpath%20d%3D%22M256%20270l58%2037%22%20stroke-width%3D%2218%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22270%22%20r%3D%2215%22%20fill%3D%22%231f3f7a%22%20stroke%3D%22none%22%2F%3E%3Cpath%20d%3D%22M173%20392l-31%2045%22%20stroke-width%3D%2220%22%2F%3E%3Cpath%20d%3D%22M339%20392l31%2045%22%20stroke-width%3D%2220%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;

    opacity: 0.075;

    pointer-events: none;
}

/* Text boxu musí zůstat před ilustrací */

.im-summary > * {
    position: relative;
    z-index: 1;
}

/* Nadpis */

.im-summary__heading {
    margin-bottom: 0.65rem;
}

.im-summary__heading h3 {
    margin: 0;

    color: var(--im-blue-dark);

    font-size: 2.35rem;
    line-height: 1.1;
}

/* Číslované body */

.im-summary__list {
    display: grid;
    gap: 0.45rem;

    margin: 0;
    padding: 0;

    list-style: none;
    list-style-type: none;

    counter-reset: im-summary-point;
}

.im-summary__list li {
    display: grid;
    grid-template-columns: 2.8rem minmax(0, 1fr);
    gap: 1.1rem;
    align-items: start;

    margin: 0;
    padding: 0.62rem 0;

    color: #3e4d64;

    border: 0;

    font-size: 1.58rem;
    line-height: 1.68;

    list-style: none;

    counter-increment: im-summary-point;
}

.im-summary__list li + li {
    border-top: 0;
}

.im-summary__list li::marker {
    content: "";
}

.im-summary__list li::before {
    content: counter(im-summary-point);

    display: grid;
    place-items: center;

    box-sizing: border-box;

    width: 2.8rem;
    height: 2.8rem;
    margin-top: 0.05rem;

    color: #fff;
    background: var(--im-blue);

    border-radius: 0.8rem;

    font-size: 1.35rem;
    font-weight: 850;
    line-height: 1;

    text-align: center;
}


/* Rozbalovací a doplňující obsah následuje pod číslovaným shrnutím */

.im-summary__more {
    margin-top: 1rem;
}

/* Mobil */

@media (max-width: 575px) {
    .im-summary {
        padding: 1.8rem;
    }

    .im-summary::after {
        top: 0.8rem;
        right: 0.75rem;

        width: 8.5rem;
        height: 8.5rem;

        opacity: 0.06;
    }

    .im-summary__heading h3 {
        font-size: 2.1rem;
    }

    .im-summary__list {
        gap: 0.3rem;
    }

    .im-summary__list li {
        grid-template-columns: 2.55rem minmax(0, 1fr);
        gap: 0.9rem;

        padding: 0.55rem 0;

        font-size: 1.48rem;
        line-height: 1.62;
    }

    .im-summary__list li::before {
        width: 2.55rem;
        height: 2.55rem;

        border-radius: 0.7rem;

        font-size: 1.25rem;
    }
}

/* ==========================================================
   Časté chyby podnikatelů
   Samostatný světle červený blok — vizuální protějšek zeleného
   boxu „Co přesně potřebujete udělat?“.
   ========================================================== */

.im-block--mistakes {
    margin-top: 2.2rem;
    padding: 2.3rem;

    background: #fff4f1;

    border: 1px solid #f0cec7;
    border-left: 0.5rem solid #c8482e;
    border-radius: 1.4rem;
}

.im-block--mistakes h3 {
    margin: 0 0 1.15rem;

    color: #a23520;

    font-size: 2.55rem;
    font-weight: 820;
    line-height: 1.13;
    letter-spacing: -0.035em;
}

.im-block--mistakes .im-detail {
    border-color: #efd3cd;
    background: rgba(255, 255, 255, 0.86);
}

.im-block--mistakes .im-detail summary {
    color: #7f3022;
}

.im-block--mistakes .im-detail summary::after {
    color: #a23520;
    border-color: #dfb8b0;
}

.im-block--mistakes .im-detail[open] summary {
    color: #922f1d;
    background: #fffaf8;
}

.im-block--mistakes .im-detail[open] summary::after {
    color: #922f1d;
    border-color: #dca79b;
}

@media (max-width: 575px) {
    .im-block--mistakes {
        padding: 1.45rem;
    }

    .im-block--mistakes h3 {
        font-size: 2.2rem;
    }
}

/* ==========================================================
   CTA pruhy za případovými studiemi
   Samostatná tmavá plocha záměrně odděluje obchodní výzvu od
   obsahové případové studie. Vizuálně navazuje na výrazné CTA
   pruhy na osobním webu, ale zůstává kompaktní.
   ========================================================== */

.im-case-study-cta {
    position: relative;
    left: 50%;
    isolation: isolate;
    overflow: hidden;

    width: 100vw;
    margin: 4.4rem 0 -5.2rem;
    padding: 4.2rem max(2rem, calc((100vw - var(--im-reading-width)) / 2));

    color: #fff;
    text-align: center;

    background:
        radial-gradient(circle at 88% 12%, rgba(233, 83, 20, 0.18), transparent 19rem),
        linear-gradient(120deg, #122751, #172f5e);
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: 0 -0.8rem 2.4rem rgba(18, 39, 81, 0.08);

    transform: translateX(-50%);
}

.im-case-study-cta::before,
.im-case-study-cta::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 50%;
}

.im-case-study-cta::before {
    right: 8vw;
    top: -15rem;
    width: 31rem;
    height: 31rem;
}

.im-case-study-cta::after {
    right: -8rem;
    bottom: -18rem;
    width: 35rem;
    height: 35rem;
}

.im-case-study-cta__inner {
    max-width: 76rem;
    margin: 0 auto;
}

.im-case-study-cta h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.8rem, 3.2vw, 4rem);
    line-height: 1.07;
    letter-spacing: -0.045em;
}

.im-case-study-cta p {
    max-width: 68rem;
    margin: 1rem auto 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.5rem;
    line-height: 1.58;
}

.im-case-study-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 1.25rem;
    margin-top: 2.25rem;
}

.im-case-study-cta__button {
    display: inline-flex;
    justify-content: center;
    padding: 1.4rem 2rem;
    color: #fff;
    background: var(--im-orange);
    border: 1px solid var(--im-orange);
    border-radius: 0.2rem;
    font-size: 1.42rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: 180ms ease;
}

.im-case-study-cta__button:hover {
    color: #fff;
    background: var(--im-orange-dark);
    border-color: var(--im-orange-dark);
    text-decoration: none;
}

.im-case-study-cta__phone {
    display: inline-flex;
    padding: 1rem 0.2rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.3rem;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
}

.im-case-study-cta__phone:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.22em;
}

@media (max-width: 767px) {
    .im-case-study-cta {
        margin-top: 3.2rem;
        margin-bottom: -3.5rem;
        padding: 3.2rem 2rem;
    }

    .im-case-study-cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .im-case-study-cta__button {
        width: 100%;
        text-align: center;
    }

    .im-case-study-cta__phone {
        justify-content: center;
    }
}

