/* ==========================================================
   ONI SYSTEM – STAVEBNICTVÍ A STROJE
   Stránka:
   /reseni-pro-firmy/stavebnictvi-a-stroje/

   Toto CSS používá vlastní prefix:
   oni-construction-
   a neovlivňuje stránku Logistika a doprava.
   ========================================================== */


/* ==========================================================
   ZÁKLADNÍ PROMĚNNÉ A OCHRANA STRÁNKY
   STAVEBNICTVÍ A STROJE
   ========================================================== */

html:has(body .oni-construction-tech),
body:has(.oni-construction-tech) {
    overflow-x: clip;
}

/* Zabrání oříznutí full-width hero banneru */
body:has(.oni-construction-tech) #content-wrapper,
body:has(.oni-construction-tech) #content-wrapper .content-wrapper-in,
body:has(.oni-construction-tech) #content-wrapper .content,
body:has(.oni-construction-tech) #content-wrapper .content-inner,
body:has(.oni-construction-tech) #content-wrapper article,
body:has(.oni-construction-tech) #content-wrapper .text {
    overflow: visible !important;
}


/* ==========================================================
   ZÁKLADNÍ NASTAVENÍ
   ========================================================== */

.oni-construction-tech,
.oni-construction-monitoring {
    font-family: "Open Sans", Arial, sans-serif;
    color: #222;
    box-sizing: border-box;
}

.oni-construction-tech *,
.oni-construction-tech *::before,
.oni-construction-tech *::after,
.oni-construction-monitoring *,
.oni-construction-monitoring *::before,
.oni-construction-monitoring *::after {
    box-sizing: border-box;
}


/* ==========================================================
   ODSTRANĚNÍ HORNÍ ČÁSTI STRÁNKY
   Drobečková navigace + hlavní název článku
   Pouze: Stavebnictví a stroje
   ========================================================== */

body:has(.oni-construction-tech) .next-prev,
body:has(.oni-construction-tech) .breadcrumbs,
body:has(.oni-construction-tech) .breadcrumbs-wrapper,
body:has(.oni-construction-tech) .navigation-breadcrumb,
body:has(.oni-construction-tech) .p-breadcrumbs,
body:has(.oni-construction-tech) h1[data-testid="textArticleTitle"],
body:has(.oni-construction-tech) .content-inner > h1 {
    display: none !important;
}

body:has(.oni-construction-tech) h1[data-testid="textArticleTitle"],
body:has(.oni-construction-tech) h1[data-testid="textArticleTitle"]::before,
body:has(.oni-construction-tech) h1[data-testid="textArticleTitle"]::after,
body:has(.oni-construction-tech) .content-inner,
body:has(.oni-construction-tech) .content-inner > article,
body:has(.oni-construction-tech) .content-inner .text {
    border-top: none !important;
    border-bottom: none !important;
}

body:has(.oni-construction-tech) .content-inner::before,
body:has(.oni-construction-tech) .content-inner::after,
body:has(.oni-construction-tech) .content-inner > article::before,
body:has(.oni-construction-tech) .content-inner > article::after {
    content: none !important;
    display: none !important;
}

body:has(.oni-construction-tech) #content-wrapper,
body:has(.oni-construction-tech) .content-wrapper-in,
body:has(.oni-construction-tech) .content,
body:has(.oni-construction-tech) .content-inner,
body:has(.oni-construction-tech) .content-inner > article,
body:has(.oni-construction-tech) .content-inner .text {
    padding-top: 0 !important;
    margin-top: 0 !important;
}


/* ==========================================================
   FULL-WIDTH HERO BANNER
   Pouze: Stavebnictví a stroje
   ========================================================== */

body:has(.oni-construction-tech) {
    --oni-content-width: 1380px;
    --oni-page-gap: 48px;
    --oni-page-gap-mobile: 24px;
}

html:has(body .oni-construction-tech),
body:has(.oni-construction-tech) {
    overflow-x: clip;
}

body:has(.oni-construction-tech) #content-wrapper,
body:has(.oni-construction-tech) #content-wrapper .content-wrapper-in,
body:has(.oni-construction-tech) #content-wrapper .content,
body:has(.oni-construction-tech) #content-wrapper .content-inner,
body:has(.oni-construction-tech) #content-wrapper article,
body:has(.oni-construction-tech) #content-wrapper .text {
    overflow: visible !important;
}

body:has(.oni-construction-tech) #content .hero,
body:has(.oni-construction-tech) .content-inner .hero,
body:has(.oni-construction-tech) article .hero {
    position: relative !important;
    left: 50% !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

body:has(.oni-construction-tech) #content .hero > img,
body:has(.oni-construction-tech) .content-inner .hero > img,
body:has(.oni-construction-tech) article .hero > img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 470px !important;
    min-height: 470px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
}

body:has(.oni-construction-tech) #content .hero .hero-bg,
body:has(.oni-construction-tech) .content-inner .hero .hero-bg,
body:has(.oni-construction-tech) article .hero .hero-bg {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

body:has(.oni-construction-tech) #content .hero .hero-inner,
body:has(.oni-construction-tech) .content-inner .hero .hero-inner,
body:has(.oni-construction-tech) article .hero .hero-inner {
    position: relative !important;
    z-index: 2;
    width: min(
        var(--oni-content-width),
        calc(100% - var(--oni-page-gap))
    ) !important;
    max-width: var(--oni-content-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}


/* ==========================================================
   FULL-WIDTH BANNER – MOBIL
   ========================================================== */

@media (max-width: 680px) {

    body:has(.oni-construction-tech) {
        --oni-page-gap: var(--oni-page-gap-mobile);
    }

    body:has(.oni-construction-tech) #content .hero > img,
    body:has(.oni-construction-tech) .content-inner .hero > img,
    body:has(.oni-construction-tech) article .hero > img {
        height: 320px !important;
        min-height: 320px !important;
    }

    body:has(.oni-construction-tech) #content .hero .hero-inner,
    body:has(.oni-construction-tech) .content-inner .hero .hero-inner,
    body:has(.oni-construction-tech) article .hero .hero-inner {
        width: calc(100% - var(--oni-page-gap-mobile)) !important;
    }
}


/* ==========================================================
   1. PRO JAKOU TECHNIKU JE ŘEŠENÍ VHODNÉ?
   Styl sjednocený s kartami Logistika a doprava
   ========================================================== */

.oni-construction-tech {
    width: 100%;
    padding: 45px 0 35px;
    background: #ffffff;
}

.oni-construction-tech__inner {
    width: min(var(--oni-content-width), calc(100% - var(--oni-page-gap)));
    max-width: var(--oni-content-width);
    margin: 0 auto;
    padding: 0;
}

.oni-construction-tech__title,
.oni-construction-tech h2 {
    margin: 0 0 28px;
    padding: 0;
    text-align: center;
    font-family: "Open Sans", sans-serif !important;
    font-size: 27px !important;
    line-height: 1.2;
    font-weight: 700;
    color: #1F1F1F;
    border: 0 !important;
    background: none !important;
}

.oni-construction-tech__title::before,
.oni-construction-tech__title::after,
.oni-construction-tech h2::before,
.oni-construction-tech h2::after {
    display: none !important;
}


/* ----------------------------------------------------------
   GRID – 6 KARET V JEDNÉ ŘADĚ
   ---------------------------------------------------------- */

.oni-construction-tech__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}


/* ----------------------------------------------------------
   KARTA
   ---------------------------------------------------------- */

.oni-construction-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.04),
        0 10px 25px rgba(0, 0, 0, 0.03);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

@media (hover: hover) {
    .oni-construction-card:hover {
        transform: translateY(-4px);
        box-shadow:
            0 8px 20px rgba(0, 0, 0, 0.07),
            0 18px 35px rgba(0, 0, 0, 0.05);
    }
}


/* ----------------------------------------------------------
   HORNÍ TEXTOVÁ ČÁST
   ---------------------------------------------------------- */

.oni-construction-card__content {
    flex: 1;
    min-height: 180px;
    padding: 22px 16px 18px;
}

.oni-construction-card__heading {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    column-gap: 12px;
    margin: 0 0 10px;
}

.oni-construction-card__icon {
    display: block;
    grid-column: 1;
    width: 38px;
    height: 38px;
    margin: 0 auto;
    object-fit: contain;
}

.oni-construction-card__heading h3 {
    grid-column: 2;
    margin: 0;
    padding: 0;
    font-family: "Open Sans", sans-serif !important;
    font-size: 17px !important;
    line-height: 1.35;
    font-weight: 700;
    color: #1F1F1F;
    border: 0 !important;
    background: none !important;
}

.oni-construction-card__content p {
    margin: 12px 0 0 60px;
    padding: 0;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    color: #343a40;
}


/* ----------------------------------------------------------
   FOTOGRAFIE DOLE
   ---------------------------------------------------------- */

.oni-construction-card__image {
    display: block;
    width: 100%;
    height: 155px;
    margin: auto 0 0;
    padding: 0;
    object-fit: cover;
    object-position: center;
    border: 0;
}


/* ==========================================================
   RESPONZIVITA – KARTY STAVEBNÍ TECHNIKY
   ========================================================== */

@media (max-width: 1200px) {

    .oni-construction-tech__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .oni-construction-card__content {
        min-height: 220px;
        padding: 26px 22px 20px;
    }

    .oni-construction-card__heading {
        grid-template-columns: 62px minmax(0, 1fr);
        column-gap: 16px;
    }

    .oni-construction-card__icon {
        width: 44px;
        height: 44px;
    }

    .oni-construction-card__heading h3 {
        font-size: 17px !important;
    }

    .oni-construction-card__content p {
        margin-left: 78px;
        font-size: 14px;
    }

    .oni-construction-card__image {
        height: 180px;
    }
}

@media (max-width: 800px) {

    .oni-construction-tech {
        padding: 35px 0;
    }

    .oni-construction-tech__inner {
        width: calc(100% - var(--oni-page-gap-mobile));
    }

    .oni-construction-tech__title,
    .oni-construction-tech h2 {
        margin-bottom: 22px;
        font-size: 27px !important;
    }

    .oni-construction-tech__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .oni-construction-card__content {
        min-height: 210px;
    }
}

@media (max-width: 550px) {

    .oni-construction-tech__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .oni-construction-card__content {
        min-height: auto;
        padding: 24px 20px;
    }

    .oni-construction-card__heading {
        grid-template-columns: 54px minmax(0, 1fr);
        column-gap: 14px;
    }

    .oni-construction-card__icon {
        width: 42px;
        height: 42px;
    }

    .oni-construction-card__heading h3 {
        font-size: 17px !important;
    }

    .oni-construction-card__content p {
        margin-left: 68px;
        font-size: 14px;
    }

    .oni-construction-card__image {
        height: 200px;
    }
}


/* ==========================================================
   2. CO MŮŽETE SLEDOVAT A ŘÍDIT
   ========================================================== */

.oni-construction-monitoring {
    width: 100%;
    margin: 0;
    padding: 24px 0;
    font-family: "Open Sans", Arial, sans-serif;
    color: #222;
    box-sizing: border-box;
}

.oni-construction-monitoring *,
.oni-construction-monitoring *::before,
.oni-construction-monitoring *::after {
    box-sizing: border-box;
}

.oni-construction-monitoring__inner {
    width: min(var(--oni-content-width), calc(100% - var(--oni-page-gap)));
    max-width: var(--oni-content-width);
    margin-left: auto;
    margin-right: auto;
    transform: none;
    padding: 24px 35px 30px;
    background: #f7f7f7;
    border-radius: 6px;
}


/* ----------------------------------------------------------
   HLAVNÍ NADPIS – SJEDNOCENO NA 27 PX
   ---------------------------------------------------------- */

.oni-construction-monitoring h2 {
    margin: 0 0 34px !important;
    padding: 0 !important;
    text-align: center;
    font-family: "Open Sans", sans-serif !important;
    font-size: 27px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: #1F1F1F !important;
    border: 0 !important;
    background: none !important;
}

.oni-construction-monitoring h2::before,
.oni-construction-monitoring h2::after {
    display: none !important;
}


/* ----------------------------------------------------------
   GRID – 7 POLOŽEK V JEDNÉ ŘADĚ
   ---------------------------------------------------------- */

.oni-construction-monitoring__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
    width: 100%;
}

.oni-construction-monitoring__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 0;
    text-align: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
}

.oni-construction-monitoring__item:nth-child(5),
.oni-construction-monitoring__item:nth-child(6),
.oni-construction-monitoring__item:nth-child(7),
.oni-construction-monitoring__item:last-child {
    grid-column: auto;
    width: 100%;
}

.oni-construction-monitoring__item:hover {
    transform: none;
    box-shadow: none;
}


/* ----------------------------------------------------------
   IKONA
   ---------------------------------------------------------- */

.oni-construction-monitoring__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 15px;
    padding: 0;
}

.oni-construction-monitoring__icon img {
    display: block;
    width: 52px;
    height: 52px;
    margin: 0;
    padding: 0;
    object-fit: contain;
}


/* ----------------------------------------------------------
   NADPIS POLOŽKY
   ---------------------------------------------------------- */

.oni-construction-monitoring__item h3 {
    margin: 0 0 10px !important;
    padding: 0 !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 17px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #1F1F1F !important;
    text-align: center;
    border: 0 !important;
    background: none !important;
}


/* ----------------------------------------------------------
   POPIS
   ---------------------------------------------------------- */

.oni-construction-monitoring__item p {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    font-weight: 400;
    color: #222 !important;
    text-align: center;
}


/* ==========================================================
   MENŠÍ DESKTOP / NOTEBOOK – MONITORING
   ========================================================== */

@media (max-width: 1400px) {

    .oni-construction-monitoring__inner {
        width: min(1240px, calc(100vw - 40px));
        max-width: 1240px;
        padding-left: 25px;
        padding-right: 25px;
    }

    .oni-construction-monitoring__grid {
        gap: 18px;
    }

    .oni-construction-monitoring h2 {
        font-size: 27px !important;
    }

    .oni-construction-monitoring__item h3 {
        font-size: 17px !important;
    }

    .oni-construction-monitoring__item p {
        font-size: 14px !important;
    }
}


/* ==========================================================
   TABLET – MONITORING
   ========================================================== */

@media (max-width: 991px) {

    .oni-construction-monitoring__inner {
        width: min(1240px, calc(100vw - 30px));
        max-width: 1240px;
        padding: 30px 24px;
    }

    .oni-construction-monitoring__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 27px 20px;
    }

    .oni-construction-monitoring h2 {
        margin-bottom: 30px !important;
        font-size: 27px !important;
    }

    .oni-construction-monitoring__item,
    .oni-construction-monitoring__item:nth-child(5),
    .oni-construction-monitoring__item:nth-child(6),
    .oni-construction-monitoring__item:nth-child(7),
    .oni-construction-monitoring__item:last-child {
        grid-column: auto;
        width: 100%;
    }
}


/* ==========================================================
   MOBIL – MONITORING
   ========================================================== */

@media (max-width: 600px) {

    .oni-construction-monitoring {
        padding: 15px 0;
    }

    .oni-construction-monitoring__inner {
        width: calc(100% - var(--oni-page-gap-mobile));
        max-width: 1240px;
        padding: 28px 18px;
        border-radius: 6px;
    }

    .oni-construction-monitoring h2 {
        margin-bottom: 26px !important;
        font-size: 27px !important;
        line-height: 1.25 !important;
    }

    .oni-construction-monitoring__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .oni-construction-monitoring__icon {
        margin-bottom: 10px;
    }

    .oni-construction-monitoring__item h3 {
        margin-bottom: 7px !important;
        font-size: 17px !important;
    }

    .oni-construction-monitoring__item p {
        font-size: 15px !important;
    }
}


/* ==========================================================
   FINÁLNÍ OCHRANA – VŠECHNA H2 NA TÉTO STRÁNCE
   Toto pravidlo je záměrně úplně na konci CSS.
   Přepíše případné starší styly Shoptetu nebo jiných sekcí.
   ========================================================== */

body:has(.oni-construction-tech) #content h2,
body:has(.oni-construction-tech) .content-inner h2,
body:has(.oni-construction-tech) article h2 {
    font-family: "Open Sans", sans-serif !important;
    font-size: 27px !important;
}

/* ==========================================================
   FINÁLNÍ OCHRANA – VŠECHNA H3 NA TÉTO STRÁNCE
   Sjednocení fontu a velikosti napříč všemi sekcemi.
   ========================================================== */

body:has(.oni-construction-tech) #content h3,
body:has(.oni-construction-tech) .content-inner h3,
body:has(.oni-construction-tech) article h3 {
    font-family: "Open Sans", sans-serif !important;
    font-size: 17px !important;
}

/* ==========================================================
   KARTY „PRO JAKOU TECHNIKU JE ŘEŠENÍ VHODNÉ?“ – BEZ IKON
   Styl podobný sekci na stránce Firemní vozidla a flotily.
   Ikony mohou zůstat v HTML, ale na stránce se nezobrazí
   a nezůstane po nich žádný prázdný prostor.
   ========================================================== */

.oni-construction-card__icon {
    display: none !important;
}

.oni-construction-card__heading {
    display: block !important;
    margin: 0 0 10px !important;
}

.oni-construction-card__heading h3 {
    display: block !important;
    grid-column: auto !important;
    margin: 0 !important;
}

.oni-construction-card__content p {
    margin: 12px 0 0 !important;
}

@media (max-width: 1200px) {
    .oni-construction-card__content p {
        margin-left: 0 !important;
    }
}

@media (max-width: 550px) {
    .oni-construction-card__heading {
        display: block !important;
    }

    .oni-construction-card__content p {
        margin-left: 0 !important;
    }
}
