*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f0f4f0;
    color: #222;
    line-height: 1.6;
}

/* HEADER */
header {
    background: #fff;
    color: #222;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-bottom: 3px solid #2d7a2d;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.8em 1.5em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7em;
}

.logo-icon {
    font-size: 2.2em;
}

.logo-icon img {
    display: block;
    width: 230px;
    max-width: 100%;
    height: auto;
}

.logo h1 {
    font-size: 1.5em;
    font-weight: 700;
    color: #111;
}

.tagline {
    font-size: 0.82em;
    color: #555;
}

nav a {
    color: #2d7a2d;
    margin-left: 1.4em;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: color 0.2s;
}

nav a:hover {
    color: #1a5c1a;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #2d7a2d 0%, #1a5c1a 60%, #0e3d0e 100%);
    color: #fff;
    text-align: center;
    padding: 5em 1.5em;
}

.hero h2 {
    font-size: 2.4em;
    font-weight: 800;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15em;
    color: #c8e6c8;
    margin-bottom: 1.5em;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background: #f5a623;
    color: #fff;
    padding: 0.75em 2em;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 4px 12px rgba(245,166,35,0.35);
}

.btn:hover {
    background: #d4891a;
    transform: translateY(-2px);
}

/* MAIN */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5em 1.5em;
}

.section-title {
    font-size: 1.8em;
    color: #1a5c1a;
    text-align: center;
    margin-bottom: 1.5em;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #f5a623;
    border-radius: 2px;
    margin: 0.4em auto 0;
}

/* KARTY NÁŘADÍ */
.karty {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5em;
    margin-bottom: 3em;
}

.karta {
    background: #fff;
    border-radius: 12px;
    padding: 1.6em;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid #2d7a2d;
}

.karta:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.karta-separator {
    background: none;
    box-shadow: none;
    border: none;
}

.karta-ikona {
    font-size: 2.5em;
    margin-bottom: 0.4em;
}
.karta-ikona img{
width: 100%;
}

.gallery-trigger {
    border: none;
    background: transparent;
    padding: 0;
    width: 100%;
    cursor: zoom-in;
}

.gallery-trigger img {
    display: block;
}

.karta h3 {
    font-size: 1.15em;
    color: #1a5c1a;
    margin-bottom: 0.4em;
}

.karta p {
    font-size: 0.92em;
    color: #555;
    margin-bottom: 1em;
}

.ceny {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    border-top: 1px solid #e8e8e8;
    padding-top: 0.8em;
    font-size: 0.88em;
    color: #444;
}

.ceny span {
    background: #f0f8f0;
    border-radius: 6px;
    padding: 0.3em 0.6em;
}

.ceny strong {
    color: #1a5c1a;
}

/* GALERIE */
#galerie {
    background: #fff;
    border-radius: 12px;
    padding: 2.2em 1.6em;
    margin-bottom: 3em;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.galerie-status {
    color: #4b5d4b;
    text-align: center;
    margin-bottom: 1em;
}

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1em;
}

.galerie-item {
    background: #f7faf7;
    border: 1px solid #dce8dc;
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
    text-align: left;
}

.galerie-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

/* JAK TO FUNGUJE */
#jak-to-funguje {
    background: #fff;
    border-radius: 12px;
    padding: 2.5em 2em;
    margin-bottom: 3em;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.kroky {
    display: flex;
    gap: 2em;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1em;
}

.krok {
    text-align: center;
    max-width: 240px;
    flex: 1;
    min-width: 180px;
}

.krok-cislo {
    width: 55px;
    height: 55px;
    background: #2d7a2d;
    color: #fff;
    border-radius: 50%;
    font-size: 1.5em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.7em;
}

.krok h3 {
    color: #1a5c1a;
    margin-bottom: 0.3em;
}

.krok p {
    font-size: 0.9em;
    color: #666;
}

/* KONTAKT */
#kontakt {
    background: #fff;
    border-radius: 12px;
    padding: 2.5em 2em;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.kontakt-wrap {
    display: flex;
    gap: 3em;
    flex-wrap: wrap;
}

.kontakt-info {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    font-size: 1em;
    color: #444;
}

.kontakt-info a {
    color: #2d7a2d;
    text-decoration: none;
    font-weight: 600;
}

.kontakt-info a:hover {
    text-decoration: underline;
}

.kontakt-form {
    flex: 2;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 0.55em;
}

.kontakt-form label {
    font-weight: 600;
    font-size: 0.9em;
    color: #333;
    margin-top: 0.3em;
}

.kontakt-form input,
.kontakt-form select,
.kontakt-form textarea {
    padding: 0.6em 0.8em;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    font-size: 0.97em;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fafafa;
}

.kontakt-form input:focus,
.kontakt-form select:focus,
.kontakt-form textarea:focus {
    outline: none;
    border-color: #2d7a2d;
    background: #fff;
}

.kontakt-form button {
    margin-top: 0.5em;
    background: #2d7a2d;
    color: #fff;
    border: none;
    padding: 0.8em;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    transition: background 0.2s, transform 0.15s;
}

.kontakt-form button:hover {
    background: #1a5c1a;
    transform: translateY(-1px);
}

/* FOOTER */
footer {
    background: #1a5c1a;
    color: #a8d5a8;
    text-align: center;
    padding: 1.2em;
    font-size: 0.9em;
    margin-top: 2em;
}

.lightbox-open {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.86);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1em;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-content {
    margin: 0;
    width: min(95vw, 1000px);
    text-align: center;
}

.lightbox-content img {
    max-height: 74vh;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    object-fit: contain;
    touch-action: pan-y;
}

.lightbox-content figcaption {
    color: #fff;
    margin-top: 0.8em;
    font-size: 0.95em;
}

.lightbox-close,
.lightbox-nav {
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.45em;
    line-height: 1;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox:not(.has-multiple) .lightbox-nav {
    display: none;
}

.lightbox-prev {
    left: 18px;
}

.lightbox-next {
    right: 18px;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* RESPONZIVITA */
@media (max-width: 600px) {
    .hero h2 { font-size: 1.6em; }
    .header-inner { flex-direction: column; align-items: flex-start; }
    .logo {
        width: 100%;
    }
    .logo-icon img {
        width: min(62vw, 210px);
    }
    nav a { margin-left: 0; margin-right: 1em; }

    #galerie {
        padding: 1.5em 1em;
    }

    .galerie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7em;
    }

    .lightbox {
        align-items: flex-start;
        padding: 0.7em;
    }

    .lightbox-content {
        width: 100%;
        margin-top: 2.2em;
    }

    .lightbox-content img {
        width: 100%;
        max-height: 66vh;
    }

    .lightbox-content figcaption {
        font-size: 0.9em;
        padding: 0 2.5em;
    }

    .lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 1.25em;
        top: auto;
        bottom: 12px;
        transform: none;
        background: rgba(255, 255, 255, 0.28);
    }

    .lightbox-prev {
        left: calc(50% - 56px);
    }

    .lightbox-next {
        right: calc(50% - 56px);
    }

    .lightbox-close {
        top: 8px;
        right: 8px;
        width: 40px;
        height: 40px;
        font-size: 1.3em;
    }
}
