/* Marathon Model – homepage.css (šablona Merkur) */

/* ---------- Konkurenční výhody (bannery z adminu) podle návrhu ----------
   Funguje s libovolným počtem výhod z administrace: řadí se po třech,
   barvy dlaždic se opakují bílá → světle modrá → navy. */
.benefitBanner.position--benefitHomepage {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding: 32px 0 40px;
    background: var(--mm-bg);
    box-shadow: 0 0 0 100vmax var(--mm-bg);
    clip-path: inset(0 -100vmax);
}

.position--benefitHomepage .benefitBanner__item {
    display: flex;
    align-items: center;
    gap: 28px;
    width: auto;
    min-height: 148px;
    margin: 0;
    padding: 0 32px;
    border: 0;
    border-radius: var(--mm-radius);
    background: #FFFFFF;
    box-shadow: 0 6px 18px rgba(20, 18, 93, .06);
}

.position--benefitHomepage .benefitBanner__item:nth-child(3n+2) {
    background: var(--mm-sky);
    box-shadow: none;
}

.position--benefitHomepage .benefitBanner__item:nth-child(3n) {
    background: var(--mm-navy);
    box-shadow: none;
}

.position--benefitHomepage .benefitBanner__picture {
    flex: 0 0 76px;
    width: 76px;
    max-width: none;
    height: 76px;
    margin: 0;
    align-self: center;
    align-items: center;
    justify-content: center;
}

.position--benefitHomepage .benefitBanner__picture > div,
.position--benefitHomepage .benefitBanner__img {
    width: 76px;
    height: 76px;
}

.position--benefitHomepage .benefitBanner__img {
    display: block;
    max-width: none;
    object-fit: contain;
}

/* Na navy dlaždici je ikona vždy bílá, ať je v adminu nahraná v jakékoli barvě */
.position--benefitHomepage .benefitBanner__item:nth-child(3n) .benefitBanner__img {
    filter: brightness(0) invert(1);
}

.position--benefitHomepage .benefitBanner__content {
    display: block;
    padding: 0;
}

.position--benefitHomepage .benefitBanner__title {
    display: block;
    margin: 0 0 4px;
    font-family: var(--mm-font-head);
    font-weight: 800;
    font-size: 21px;
    line-height: 1.15;
    color: var(--mm-navy);
}

.position--benefitHomepage .benefitBanner__data {
    font-size: 15px;
    line-height: 1.3;
    color: var(--mm-navy);
}

.position--benefitHomepage .benefitBanner__item:nth-child(3n) .benefitBanner__title {
    color: #FFFFFF;
}

.position--benefitHomepage .benefitBanner__item:nth-child(3n) .benefitBanner__data {
    color: rgba(255, 255, 255, .85);
}

/* Čtyři výhody (Servis a ModelJOP zvlášť): na širokém displeji v jedné řadě, menší ikona a nadpis;
   čtvrtá dlaždice limetková, ať nejsou dvě bílé */
.position--benefitHomepage .benefitBanner__item:nth-child(4):last-child {
    background: var(--mm-lime);
    box-shadow: none;
}

@media (min-width: 1280px) {
    .benefitBanner.position--benefitHomepage:has(> .benefitBanner__item:nth-child(4):last-child) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .position--benefitHomepage:has(> .benefitBanner__item:nth-child(4):last-child) .benefitBanner__item {
        gap: 18px;
        padding: 0 24px;
    }

    .position--benefitHomepage:has(> .benefitBanner__item:nth-child(4):last-child) .benefitBanner__picture,
    .position--benefitHomepage:has(> .benefitBanner__item:nth-child(4):last-child) .benefitBanner__picture > div,
    .position--benefitHomepage:has(> .benefitBanner__item:nth-child(4):last-child) .benefitBanner__img {
        flex-basis: 60px;
        width: 60px;
        height: 60px;
    }

    .position--benefitHomepage:has(> .benefitBanner__item:nth-child(4):last-child) .benefitBanner__title {
        font-size: 19px;
    }
}

@media (min-width: 992px) and (max-width: 1279px) {
    .benefitBanner.position--benefitHomepage:has(> .benefitBanner__item:nth-child(4):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .benefitBanner.position--benefitHomepage { grid-template-columns: 1fr; gap: 12px; padding: 20px 0; }
    .position--benefitHomepage .benefitBanner__item { min-height: 110px; padding: 0 22px; gap: 20px; }
    .position--benefitHomepage .benefitBanner__picture,
    .position--benefitHomepage .benefitBanner__picture > div,
    .position--benefitHomepage .benefitBanner__img { flex-basis: 56px; width: 56px; max-width: none; height: 56px; }
}

/* ---------- Uvítací text: značky + O nás (HTML ze snippety/uvitaci-text-o-nas.html) ---------- */
/* Viditelný nadpis „Vítejte…“ v návrhu není; skryté H1 pro vyhledávače zůstává */
html body .welcome > .h1 {
    display: none;
}

html body .welcome-wrapper,
html body .welcome {
    margin: 0;
    padding: 0;
}

.mm-brands,
.mm-about {
    margin: 64px 0 0;
}

/* Rytmus sekcí: Merkur nad středovými bannery přidává 72 px k 100 px pod produkty
   a nad uvítacím textem 20 + 20 px. Srovnáno na zhruba 56 až 64 px. */
html body .overall-wrapper > .content-wrapper.homepage-box.middle-banners-wrapper {
    margin-top: 0;
}

html body .welcome .mm-brands {
    margin-top: 24px;
}

/* Merkur na mobilu nuluje padding prvků v uvítacím textu, proto silnější selektor */
html body .welcome .mm-about__text { padding: 32px 40px; }
html body .welcome .mm-about__tile { padding: 26px 28px; }

@media (max-width: 575px) {
    html body .welcome .mm-about__text { padding: 24px 22px 20px; }
    html body .welcome .mm-about__tile { padding: 22px; }
}

/* Merkur podtrhává odkazy v uvítacím textu */
html body .welcome .mm-brands a,
html body .welcome .mm-about a {
    text-decoration: none;
}

/* Značky */
.mm-brands__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

html body .mm-brands__head h2 {
    margin: 0;
    color: var(--mm-navy);
    font-size: 30px;
    font-weight: 800;
}

.mm-brands__all {
    border-bottom: 2px solid var(--mm-lime);
    color: var(--mm-navy);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.mm-brands__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

html body .mm-brands__list a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    color: #6E6B8F;
    font-family: var(--mm-font-head);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    text-decoration: none;
    transition: border-color .3s, color .3s;
}

html body .mm-brands__list a.mm-brands__main {
    color: var(--mm-navy);
}

/* Barevná loga ZIMO a Lenz v dlaždicích značek; ZIMO je nízké a široké, proto vyšší */
.mm-brands__list a img {
    width: auto;
    max-width: 80%;
    height: 34px;
    object-fit: contain;
}

.mm-brands__list a img[alt="ZIMO"] {
    height: 42px;
}

html body .mm-brands__list a:hover {
    border-color: var(--mm-navy);
    color: var(--mm-navy);
}

/* O nás jako bento */
.mm-about {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 270px 270px;
    gap: 14px;
}

/* Levý sloupec = dvě bubliny: text ve výšce horní řady, fotka ve výšce spodní řady */
.mm-about__main {
    grid-row: 1 / 3;
    display: grid;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.mm-about__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 40px;
    border-radius: 16px;
    background: var(--mm-bg);
}

html body .mm-about__text a {
    align-self: flex-start;
}

html body .mm-about__text h2 {
    margin: 0 0 14px;
    color: var(--mm-navy);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.08;
}

.mm-about__text p {
    margin: 0 0 12px;
    color: #46465A;
    font-size: 15px;
    line-height: 1.6;
}

html body .mm-about__text a {
    border-bottom: 2px solid var(--mm-lime);
    color: var(--mm-navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.mm-about__main > img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: 50% 50%;
    border-radius: 16px;
}

.mm-about__tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
    padding: 26px 28px;
    overflow: hidden;
    border-radius: 16px;
}

.mm-about__tile > span {
    margin-bottom: auto;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.mm-about__tile strong {
    position: relative;
    font-family: var(--mm-font-head);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
}

.mm-about__tile em {
    position: relative;
    font-size: 13.5px;
    font-style: normal;
}

.mm-about__tile--lime { background: var(--mm-lime); color: var(--mm-navy); }
.mm-about__tile--lime strong { font-size: 58px; line-height: .95; }
.mm-about__tile--lime em { margin-top: 4px; font-weight: 600; }

/* Velké „26“ v pozadí limetkové dlaždice */
.mm-about__tile--lime::after {
    content: "26";
    position: absolute;
    right: -16px;
    bottom: -44px;
    color: rgba(255, 255, 255, .18);
    font-family: var(--mm-font-head);
    font-size: 170px;
    font-weight: 800;
    line-height: 1;
}

.mm-about__tile--navy { gap: 12px; justify-content: flex-start; background: var(--mm-navy); color: #FFFFFF; }
.mm-about__tile--navy > span { margin-bottom: 0; color: var(--mm-lime); }

.mm-about__tile ul {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mm-about__tile li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 6px 0; /* 6px: 4 brands (incl. Uhlenbrock) must fit the fixed-height tile */
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    color: #D6E3F5;
    font-size: 12.5px;
}

.mm-about__tile li:last-child { border-bottom: 0; }
.mm-about__tile li b { color: #FFFFFF; font-family: var(--mm-font-head); font-size: 24px; font-weight: 800; line-height: 1.25; }

/* ModelJOP: kolejové schéma stanice ve stylu JOP (obrázek ikony/modeljop-schema.svg) */
.mm-about__tile--track { background: var(--mm-navy); color: #FFFFFF; }
.mm-about__tile--track em { color: #D6E3F5; }

.mm-about__tile--track .mm-about__jop {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: auto;
}

.mm-about__tile--green { background: #E8F5EE; color: var(--mm-navy); }
.mm-about__tile--green img { align-self: flex-start; width: auto; height: 120px; margin-bottom: auto; }
.mm-about__tile--green em { color: #46465A; }

@media (max-width: 991px) {
    .mm-about { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .mm-about__main { grid-column: 1 / 3; grid-row: auto; }
    .mm-about__main { grid-template-rows: auto auto; }
    .mm-about__main > img { height: auto; aspect-ratio: 7 / 3; }
    .mm-about__tile { min-height: 200px; }
}

@media (max-width: 575px) {
    .mm-brands, .mm-about { margin-top: 40px; }
    html body .mm-brands__head h2 { font-size: 24px; }
    .mm-brands__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    html body .mm-brands__list a { height: 56px; font-size: 13px; letter-spacing: 1px; }
    .mm-brands__list a img { height: 24px; }
    .mm-brands__list a img[alt="ZIMO"] { height: 30px; }
    .mm-about__tile { min-height: 150px; padding: 22px 22px; }
    .mm-about__tile--lime strong { font-size: 48px; }
    .mm-about { grid-template-columns: 1fr; }
    .mm-about__main { grid-column: auto; }
    .mm-about__text { padding: 24px 22px 20px; }
    html body .mm-about__text h2 { font-size: 28px; }
}

/* ---------- Rozcestník podle konektoru v uvítacím textu (nad značkami) ----------
   Vzhled .mm-conn je v mid-banner.css; tady jen umístění a pojistky proti Merkuru,
   který v uvítacím textu nuluje padding a podtrhává odkazy. */
html body .welcome .mm-conn {
    margin-top: 0;
    padding: 40px 44px;
}

html body .welcome .mm-conn a {
    text-decoration: none;
}

html body .welcome .mm-conn + .mm-brands {
    margin-top: 64px;
}

@media (max-width: 991px) {
    html body .welcome .mm-conn { padding: 28px 22px; }
}

@media (max-width: 575px) {
    html body .welcome .mm-conn { gap: 20px; padding: 24px 18px; }
    html body .welcome .mm-conn__intro h2 { font-size: 24px; }
    html body .welcome .mm-conn__list a { padding: 12px 14px; }
    html body .welcome .mm-conn + .mm-brands { margin-top: 40px; }
}

/* Merkur dává uvítacímu textu margin-top; rozcestník má sedět v rytmu sekcí pod sliderem */
html body .overall-wrapper > .content-wrapper.homepage-box.welcome-wrapper {
    margin-top: 0;
}

/* ---------- Stránka O nás (HTML ze stranky/o-nas.html), úvodní fotka, pak text (nadpis vlevo, text vpravo) se třemi malými fotkami ---------- */
/* Bez postranního menu, obsah na plnou šířku; nadpis stránky zůstává jen pro vyhledávače a čtečky */
@media screen and (min-width: 768px) {
    html body.in-o-nas .sidebar-left {
        display: none;
    }

    html body.in-o-nas #content,
    html body.in-o-nas #content .content-inner {
        flex: 0 0 100%;
        width: 100%;
        max-width: none;
    }
}

html body.in-o-nas #content h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* Úvod: fotka kolejiště přes celou šířku, text na tmavém přechodu vlevo */
.mmo-hero {
    position: relative;
    overflow: hidden;
    margin-top: 16px;
    border-radius: 24px;
    background: var(--mm-navy);
}

.mmo-hero__img {
    display: block;
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: 70% 50%;
}

.mmo-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 18, 93, .96) 0%, rgba(20, 18, 93, .88) 34%, rgba(20, 18, 93, 0) 66%);
    pointer-events: none;
}

.mmo-hero__text {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 56px;
    max-width: 500px;
    transform: translateY(-50%);
}

html body .mmo-hero h2 {
    margin: 0 0 16px;
    color: #FFFFFF;
    font-family: var(--mm-font-head);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.8px;
}

html body .mmo-hero p {
    margin: 0 0 28px;
    color: #D6E3F5;
    font-size: 18px;
    line-height: 1.6;
}

.mmo-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

html body a.mmo-btn {
    display: inline-flex;
    align-items: center;
    min-height: 50px;
    padding: 0 26px;
    border-radius: 999px;
    font-family: var(--mm-font-head);
    font-size: 16px;
    font-weight: 800;
    text-decoration: none !important;
    transition: background-color .15s, border-color .15s;
}

html body a.mmo-btn--lime { background: var(--mm-lime); color: var(--mm-navy); }
html body a.mmo-btn--lime:hover { background: #FFFFFF; color: var(--mm-navy); }
html body a.mmo-btn--ghost { border: 2px solid rgba(255, 255, 255, .5); color: #FFFFFF; }
html body a.mmo-btn--ghost:hover { border-color: #FFFFFF; color: #FFFFFF; }

/* Textové části: nadpis vlevo, text vpravo, oddělené tenkou linkou */
.mmo-row {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 48px;
    padding: 56px 0;
    border-bottom: 1px solid var(--mm-line);
}

.mmo-hero + .mmo-row {
    margin-top: 24px;
}

html body .mmo-row h2 {
    margin: 0;
    color: var(--mm-navy);
    font-family: var(--mm-font-head);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.3px;
}

.mmo-row__text {
    max-width: 680px;
}

html body .mmo-row p {
    margin: 0 0 16px;
    color: #3A3A5C;
    font-size: 18px;
    line-height: 1.7;
}

html body .mmo-row p:last-child { margin-bottom: 0; }

html body .mmo-row p.mmo-lead {
    color: var(--mm-navy);
    font-family: var(--mm-font-head);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.55;
}

html body .mmo-row__text a {
    color: var(--mm-navy);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--mm-lime-dark);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

html body .mmo-row__text a:hover { text-decoration-color: var(--mm-navy); }

html body .mmo-row__text a.mmo-more {
    font-family: var(--mm-font-head);
    font-size: 16px;
}

/* Tři malé fotky kolejišť pod textem první části */
.mmo-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.mmo-thumbs img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    object-fit: cover;
}

/* Kontakt: bez linky pod sebou, kontakty větším písmem */
.mmo-row--contact { border-bottom: 0; }

html body .mmo-row p.mmo-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
    margin: 24px 0 12px;
}

html body .mmo-row p.mmo-contact a {
    font-family: var(--mm-font-head);
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 3px solid var(--mm-lime);
}

html body .mmo-row p.mmo-address {
    color: #5B5A7A;
    font-size: 15px;
}

@media (max-width: 991px) {
    .mmo-row { grid-template-columns: 1fr; gap: 16px; padding: 44px 0; }
    .mmo-hero__text { left: 40px; max-width: 440px; }
    html body .mmo-hero h2 { font-size: 40px; }
}

@media (max-width: 767px) {
    .mmo-hero { border-radius: 20px; }
    .mmo-hero__img { height: 240px; object-position: 75% 50%; }
    .mmo-hero::after { display: none; }
    .mmo-hero__text { position: static; max-width: none; padding: 28px 22px 30px; transform: none; }
    html body .mmo-hero h2 { font-size: 30px; }
    html body .mmo-hero p { margin-bottom: 22px; font-size: 16px; }
    html body a.mmo-btn { min-height: 46px; padding: 0 20px; font-size: 15px; }
    .mmo-thumbs { gap: 8px; margin-top: 22px; }
    .mmo-thumbs img { border-radius: 10px; }
    .mmo-row { padding: 36px 0; }
    html body .mmo-row h2 { font-size: 25px; }
    html body .mmo-row p { font-size: 16px; }
    html body .mmo-row p.mmo-lead { font-size: 19px; }
    html body .mmo-row p.mmo-contact a { font-size: 20px; }
}

/* Diskuze pod informačními stránkami (O nás, podmínky, doprava) e-shop nepoužívá */
html body.type-page .content-inner > .pageArticleDetail ~ h2,
html body.type-page .discussionContainer {
    display: none;
}

/* ---------- Stránka Návody a manuály: tabulky z editoru (klient přidává řádky) ---------- */
html body .mm-navody {
    width: 100%;
    margin: 12px 0 32px;
    border-collapse: collapse;
}

html body .mm-navody th {
    padding: 10px 14px;
    border-bottom: 2px solid var(--mm-navy);
    background: transparent;
    color: var(--mm-navy);
    font-family: var(--mm-font-head);
    font-weight: 800;
    text-align: left;
}

html body .mm-navody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--mm-line);
    vertical-align: top;
}

html body .mm-navody td:first-child {
    width: 50%;
}

html body .mm-navody td:first-child a {
    color: var(--mm-navy);
    font-weight: 700;
}

@media (max-width: 575px) {
    html body .mm-navody, html body .mm-navody tbody, html body .mm-navody tr, html body .mm-navody td { display: block; width: 100%; }
    html body .mm-navody thead { display: none; }
    html body .mm-navody td { padding: 4px 0; border: 0; }
    html body .mm-navody tr { padding: 12px 0; border-bottom: 1px solid var(--mm-line); }
    html body .mm-navody td:first-child { width: 100%; }
}

/* Mobil: odkazy „Všechny kategorie“ / „Všichni výrobci“ se nezalamují vedle nadpisu */
html body .mm-fav-cat__all,
html body .mm-brands__all {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Mobil: tabulky na obsahových stránkách (Doprava a platby, GDPR) se posouvají uvnitř, stránka nepřetéká */
@media (max-width: 767px) {
    html body.type-page .content-inner table:not(.mm-navody) {
        display: block;
        width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    html body.type-page .content-inner table:not(.mm-navody) th,
    html body.type-page .content-inner table:not(.mm-navody) td {
        min-width: 120px;
    }
}

/* Proklik z banneru Novinky (/#products-1): plynulý posun a nad produkty zůstane vidět nadpis bloku */
@media (prefers-reduced-motion: no-preference) {
    html:has(#products-1) {
        scroll-behavior: smooth;
    }
}

#products-1 {
    scroll-margin-top: 140px;
}

/* ---------- ModelJOP: logo přes celou dlaždici (logo od klienta, bez deformace) ----------
   Výhoda: v adminu má výhoda ModelJOP jako obrázek logo-modeljop-pruhledne.png.
   Pravidla se uplatní jen tehdy, když je v ní toto logo, jinak zůstane původní vzhled.
   Černé pozadí = stejné jako pozadí loga, aby logo splynulo bez rámečku. */
html body .benefitBanner.position--benefitHomepage .benefitBanner__item:has(img[src*="logo-modeljop"], img[data-src*="logo-modeljop"]) {
    background: #000000 !important;
    padding: 0 !important;
}

html body .benefitBanner.position--benefitHomepage .benefitBanner__item:has(img[src*="logo-modeljop"], img[data-src*="logo-modeljop"]) .benefitBanner__link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
}

html body .benefitBanner.position--benefitHomepage .benefitBanner__item:has(img[src*="logo-modeljop"], img[data-src*="logo-modeljop"]) .benefitBanner__picture {
    flex: 0 0 78% !important;
    flex-basis: 78% !important;
    width: 78% !important;
    height: auto !important;
    margin: 0 !important;
}

/* Merkur obaluje ikonu divem 60×60 px, ten se musí roztáhnout na celou šířku */
html body .benefitBanner.position--benefitHomepage .benefitBanner__item:has(img[src*="logo-modeljop"], img[data-src*="logo-modeljop"]) .benefitBanner__picture > div {
    flex: 1 1 100% !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
}

/* Poměr stran loga se nikdy nemění: šířka podle dlaždice, výška automaticky */
html body .benefitBanner.position--benefitHomepage .benefitBanner__item:has(img[src*="logo-modeljop"], img[data-src*="logo-modeljop"]) .benefitBanner__img {
    position: static !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
}

/* Nadpis a text zůstávají pro vyhledávače a čtečky, vizuálně je nahrazuje logo */
html body .benefitBanner.position--benefitHomepage .benefitBanner__item:has(img[src*="logo-modeljop"], img[data-src*="logo-modeljop"]) .benefitBanner__content {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

/* Dlaždice ModelJOP v bloku O nás na titulce */
html body .mm-about__tile.mm-about__tile--jop {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
    background: #000000 !important;
}

html body .mm-about__tile--jop .mm-about__jop-logo {
    display: block;
    width: 82%;
    height: auto;
    margin: 0;
    object-fit: contain;
}
