/* ============================================================================
   PDZ1 — E-SHOP HOMEPAGE (Landing Page Styly) — V10
   ----------------------------------------------------------------------------
   V10:
   • Media queries sjednoceny na Shoptet nativní rozsahy:
     MOBIL ≤990  |  TABLET 991–1250  |  DESKTOP ≥1251
     (dřív byly rozházené na 991 / 768 / 600 / min-769 — čtyři různé hranice).
   • Vše, co jde vyřešit fluidně (clamp / auto-fit grid), zůstává mimo
     media query; v nich je jen strukturální reflow.
   • Sekce „Proč chtít kompletní řešení": na mobilu zůstávají jen tučné
     nadpisy bodů, doplňující věty se skrývají (šetří ~2/3 výšky sekce).
   ============================================================================ */

/* --- SKRYTÍ SIDEBARU & RESET ŠÍŘKY POUZE PRO ID 754 --- */
body.id-754 .sidebar-left {
    display: none !important;
}

body.id-754 main#content.narrow {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
}

/* --- ZÁKLADNÍ KONTEJNER (Napojeno na globální clamp padding) --- */
.pdz-lp-container {
    max-width: var(--content-max-width, 1600px);
    margin: 0 auto;
    padding-left: var(--content-padding-x);
    padding-right: var(--content-padding-x);
    box-sizing: border-box;
}

.pdz-lp-center { text-align: center; }

/* ============================================================================
   2) SEKCE 1: Hero Banner — fluidní a vycentrovaný obsah
   ============================================================================ */
.pdz-lp-hero {
    background: transparent !important;
    padding: var(--section-padding-y) 0 !important;
    color: #ffffff !important;
}

.pdz-lp-hero .pdz-lp-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pdz-lp-hero .pdz-eyebrow {
    align-self: center !important;
}

.pdz-lp-hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.75rem) !important;
    margin-bottom: clamp(16px, 2.5vw, 24px) !important;
    max-width: 900px;
    color: #ffffff !important;
    text-align: center !important;
}

.pdz-lp-hero p {
    font-size: clamp(1.15rem, 2vw, 1.375rem) !important;
    max-width: 750px;
    margin-bottom: clamp(28px, 4vw, 40px) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-align: center !important;
}

/* ============================================================================
   3) SEKCE 2: The Tech Grid
   Grid se přelévá sám (auto-fit + minmax) → žádné breakpointy:
   4 sloupce na desktopu → 2 na tabletu → 1 na mobilu, plynule.
   ============================================================================ */
.pdz-lp-grid-sec {
    background-color: #F8FAFC !important;
    padding: var(--section-padding-y) 0 !important;
}

.pdz-lp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(16px, 2.5vw, 28px);
}

.pdz-lp-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pdz-lp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(26, 107, 155, 0.15);
}

.pdz-lp-card-img {
    /* Fluidní výška: na mobilu neklesne pod 160px, na 3K nepřesáhne 220px */
    height: clamp(160px, 14vw, 220px);
    /* 'contain' místo 'cover' — obrázek se raději zmenší, než aby se ořízl */
    background-size: contain;
    background-origin: content-box;
    padding: clamp(12px, 1.5vw, 20px);
    background-position: center;
    background-color: #e8edf1;
    background-repeat: no-repeat;
    box-sizing: border-box;
}

.pdz-lp-card-content {
    padding: clamp(16px, 2vw, 24px);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pdz-lp-card-content h3 {
    color: #1A1A1A !important;
    font-size: clamp(1.2rem, 2vw, 1.45rem) !important;
    margin: 0 0 12px 0 !important;
}

.pdz-lp-card-content p {
    color: #555555 !important;
    font-size: clamp(1rem, 1.5vw, 1.15rem) !important;
    line-height: 1.5 !important;
    margin: 0 0 clamp(16px, 2.4vw, 24px) 0 !important;
}

.pdz-lp-card-link {
    color: #1A6B9B !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    font-size: clamp(1.05rem, 1.5vw, 1.1rem);
    margin-top: auto; /* Tlačí odkaz vždy dolů nezávisle na množství textu */
    transition: color 0.3s ease;
}

.pdz-lp-card:hover .pdz-lp-card-link { color: #14567d !important; }

/* ============================================================================
   4) SEKCE 3: Prodejní argument (Proč chtít kompletní řešení)
   ============================================================================ */
.pdz-lp-why-sec {
    background-color: #F8FAFC !important;
    padding: 0 0 var(--section-padding-y) 0 !important;
}

.pdz-lp-why-box {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid #3098C2;
    padding: clamp(24px, 4vw, 50px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.pdz-lp-why-box h2 {
    color: #1A1A1A !important;
    margin-bottom: clamp(20px, 3vw, 30px) !important;
}

.pdz-lp-why-list {
    list-style: none;
    padding: 0;
    margin: 0 0 clamp(24px, 3.5vw, 35px) 0;
}

.pdz-lp-why-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: clamp(14px, 2vw, 20px);
    font-size: clamp(1.1rem, 1.8vw, 1.25rem);
    line-height: 1.6;
}

.pdz-lp-why-list li,
.pdz-lp-why-list li span,
.pdz-lp-why-list li strong {
    color: #1a1a1a !important;
}

.pdz-lp-why-list li strong {
    font-weight: 700 !important;
}

.pdz-lp-why-list .pdz-icon {
    flex-shrink: 0;
    width: clamp(24px, 2.4vw, 28px);
    height: clamp(24px, 2.4vw, 28px);
    margin-right: clamp(12px, 1.4vw, 15px);
    margin-top: 2px;
}

/* ============================================================================
   5) SEKCE 4: Tříkrokový proces — osa shodná s B2B Partneři
   ============================================================================ */
body.id-754 .pdz-steps-section {
    background-color: #ffffff !important;
    padding: var(--section-padding-y) 0 !important;
    position: relative;
    z-index: 10;
}

body.id-754 .pdz-steps-inner {
    max-width: var(--content-max-width, 1600px);
    margin: 0 auto;
    padding: 0 var(--content-padding-x);
}

body.id-754 .pdz-steps-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(40px, 5vw, 60px) auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.id-754 .pdz-steps-header .pdz-eyebrow {
    align-self: center !important;
}

body.id-754 .pdz-steps-header h2 {
    color: #1a1a1a !important;
    margin-bottom: 20px !important;
}

body.id-754 .pdz-steps-header p {
    color: #1a1a1a !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

body.id-754 .pdz-steps-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 40px);
    position: relative;
}

/* Vodorovná spojnice mezi kroky (jen když jsou vedle sebe, tj. ≥991px) */
@media (min-width: 991px) {
    body.id-754 .pdz-steps-timeline::before {
        content: "";
        position: absolute;
        top: 32px;
        left: 16%;
        right: 16%;
        height: 2px;
        background: rgba(48, 152, 194, 0.2);
        z-index: 1;
    }
}

body.id-754 .pdz-step-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: default;
}

body.id-754 .pdz-step-num {
    width: clamp(54px, 4.5vw, 64px);
    height: clamp(54px, 4.5vw, 64px);
    background: linear-gradient(135deg, #3098C2 0%, #1A6B9B 100%);
    color: #ffffff;
    font-size: clamp(1.25rem, 1.9vw, 1.5rem);
    font-weight: 800;
    font-family: var(--template-headings-font);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(26, 107, 155, 0.25);
    border: 4px solid #ffffff;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

body.id-754 .pdz-step-text {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

body.id-754 .pdz-step-item h3 {
    color: #1a1a1a !important;
    font-size: clamp(1.2rem, 2vw, 1.45rem) !important;
    font-weight: 800 !important;
    margin-bottom: 12px !important;
    transition: color 0.3s ease;
}

body.id-754 .pdz-step-item p {
    color: #1a1a1a !important;
    font-size: clamp(1.1rem, 1.6vw, 1.25rem) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    transition: color 0.3s ease;
}

body.id-754 .pdz-step-item:hover .pdz-step-num {
    transform: scale(1.15);
    box-shadow: 0 12px 30px rgba(26, 107, 155, 0.35);
}

body.id-754 .pdz-step-item:hover .pdz-step-text {
    transform: translateY(-6px);
}

body.id-754 .pdz-step-item:hover h3 {
    color: #1A6B9B !important;
}

body.id-754 .pdz-step-item:hover p {
    color: #1a1a1a !important;
}

/* ============================================================================
   6) SEKCE 5: Last-Chance CTA
   ============================================================================ */
.pdz-lp-cta-sec {
    background: transparent !important;
    padding: var(--section-padding-y) 0 !important;
    color: #ffffff !important;
}

.pdz-lp-cta-sec h2 {
    color: #ffffff !important;
    margin-bottom: 20px !important;
}

.pdz-lp-cta-sec p {
    font-size: clamp(1.15rem, 2vw, 1.375rem) !important;
    max-width: 700px;
    margin: 0 auto clamp(24px, 3.5vw, 35px) auto !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ============================================================================
   7) RESPONZIVITA — Shoptet nativní rozsahy
   ----------------------------------------------------------------------------
   MOBIL ≤990  |  TABLET 991–1250  |  DESKTOP ≥1251

   Kartová mřížka (.pdz-lp-grid) se přelévá sama přes auto-fit → není tu.
   Zbývá jen strukturální reflow, který fluidně vyřešit nejde.
   ============================================================================ */

/* --- MOBIL (do 990 px) --- */
@media (max-width: 990px) {

    /* Kroky pod sebe, číslo vedle textu, spojnice svisle */
    body.id-754 .pdz-steps-timeline {
        grid-template-columns: 1fr;
        gap: clamp(28px, 6vw, 40px);
    }

    body.id-754 .pdz-step-item {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: clamp(14px, 3vw, 20px);
    }

    body.id-754 .pdz-step-num {
        flex-shrink: 0;
        margin-bottom: 0;
    }

    body.id-754 .pdz-step-item:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 64px;
        bottom: -30px;
        left: 26px;
        width: 2px;
        background: rgba(48, 152, 194, 0.2);
        z-index: -1;
    }

    body.id-754 .pdz-step-item:hover .pdz-step-text {
        transform: none;
    }

    /* --- „Proč chtít kompletní řešení" — jen tučné nadpisy bodů ---
       Doplňující věty jsou holé textové uzly ve <span> (bez vlastního
       elementu), takže je nelze skrýt přes display:none. Vynulujeme font-size
       na spanu a <strong> ji dostane zpět. */
    .pdz-lp-why-list li span {
        font-size: 0 !important;
        line-height: 0 !important;
    }

    .pdz-lp-why-list li span strong {
        display: block;
        font-size: clamp(1.15rem, 3.5vw, 1.3rem) !important;
        line-height: 1.4 !important;
    }

    .pdz-lp-why-list li {
        align-items: center;
    }
}
