:root {
    --color-light-gray: #DAD7CD;
    --color-sage: #A3B18A;
    --color-fern-green: #588157;
    --color-hunter-green: #3A5A40;
    --color-dark-green: #344E41;
    --color-white: #ffffff;
}

body {
    background-color: var(--color-light-gray);
    font-family: sans-serif;
}

.hero-pletivo {
    position: relative;
    width: 100%;
    height: 65vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('./images/plot1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
}

.hero-text {
    padding: 20px;
}

.hero-pletivo h1 {
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.hero-pletivo p {
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0;
}

.page-content {
    max-width: 960px;
    margin: 40px auto;
    padding: 20px;
    line-height: 1.6;
}

.info-section {
    width: 100%;
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5rem;
}

.info-container {
    max-width: 90vw;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
}

.info-text-content {
    flex: 2;
}

.info-text-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.info-text-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
}

.info-image-content {
    flex: 2;
    height: 450px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.info-box {
    background-color: #f9f9f9;
    border-left: 5px solid #4a6f4e;
    padding: 18px 25px;
    margin-top: 15px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}

.info-box p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── MOBILE TILES (≤ 768px) ─────────────────────────── */
@media (max-width: 768px) {

    .hero-pletivo {
        height: 40vh; /* Trochu zmenšíme fotku, ať se uživatel dostane rychleji k obsahu */
        min-height: 250px;
    }

    .info-section {
        box-sizing: border-box;
        padding-left: 10px;
        padding-right: 10px;
        gap: 24px; /* Příjemnější mezera mezi jednotlivými kartami */
        background-color: #f3f3f3;
        display: flex;
        flex-direction: column;
    }

    /* Vytvoření zřetelné karty */
    .info-container {
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 6px 15px rgba(0,0,0,0.08); /* Jemnější a modernější stín */
        background: #fff;
        border: 1px solid #eaeaea; /* Lehký rámeček kartu jasně ohraničí */
    }

    /* Fotka nahoře */
    .info-image-content {
        flex: none;
        width: 100%;
        height: 220px;
        border-radius: 0;
        box-shadow: none;
        order: -1; /* Vždy první */
    }

    /* Obsah karty pod fotkou */
    .info-text-content {
        padding: 24px 20px;
        text-align: center; /* Zarovnání na střed působí u produktových karet lépe */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .info-text-content h2 {
        font-size: 1.5rem;
        margin-top: 0;
        margin-bottom: 12px;
        color: var(--color-dark-green);
    }

    /* Zobrazení jen krátkého úryvku textu (max 3 řádky) místo jeho úplného skrytí */
    .info-text-content p {
        
        
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.95rem;
        color: #555;
        margin-top: 0;
        margin-bottom: 24px;
        line-height: 1.5;
    }

    /* Výrazné tlačítko na celou šířku karty */
    .info-text-content .btn-primary {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 14px 0;
        font-size: 1rem;
        border-radius: 8px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-top: auto; /* Zajistí, že tlačítko bude vždy dole, i když se liší délka textu */
    }
}

@media print {
    body {
        font-family: Georgia, serif;
        font-size: 11pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
        margin: 0;
        padding: 0;
    }

    * {
        color: #000 !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .main-header,
    .hero-pletivo,
    .btn-primary,
    .main-footer {
        display: none;
    }

    main {
        padding: 0;
    }

    .info-section {
        padding: 0;
        display: block;
    }

    .info-container {
        flex-direction: column;
        gap: 15px;
        max-width: 100%;
        margin-bottom: 30px;
        page-break-inside: avoid;
    }

    .info-text-content {
        text-align: left;
    }

    h2 {
        font-size: 16pt;
        margin-bottom: 10px;
        page-break-after: avoid;
    }

    p {
        font-size: 11pt;
    }

    .info-image-content img {
        width: 100%;
        max-width: 450px;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }

    .info-box {
        padding: 10px;
        margin: 15px 0;
        border: 1px solid #666 !important;
    }

    .info-box p {
        margin: 0;
    }
}
