﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: linear-gradient(rgba(10, 15, 26, 0.45), rgba(10, 15, 26, 0.6)), url('images/bg-pozadi.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
}

/* 1. HORNÍ BANNER S PLYNULÝM ROZPUŠTĚNÍM DO ZTRACENA */
.hero-banner {
    position: relative;
    width: 100%;
    height: 340px;
    overflow: hidden;
    background-color: transparent;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 15, 26, 0.1) 0%, rgba(10, 15, 26, 0.7) 70%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    color: #ffffff;
    text-align: center;
    padding: 0.4rem 1rem;
}

    .banner-overlay h1 {
        font-size: 3rem;
        font-weight: 800;
        letter-spacing: 5px;
        margin-bottom: 0.15rem;
        line-height: 1.1;
        background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.9));
    }

    .banner-overlay p {
        font-size: 0.95rem;
        font-weight: 400;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #cbd5e1;
        max-width: 800px;
        margin-bottom: 0.2rem;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    }

/* 2. ROZVRŽENÍ STRÁNKY */
.layout-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    display: flex;
    gap: 2.2rem;
    padding: 0 1.5rem;
    align-items: flex-start;
}

/* LEVÝ PANEL */
.sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
    background: rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

    .menu a {
        color: #cbd5e1;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
        border-radius: 10px;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: block;
    }

        .menu a:hover {
            background: rgba(255, 255, 255, 0.14);
            color: #ffffff;
            border-color: rgba(255, 255, 255, 0.35);
            transform: translateY(-2px);
            box-shadow: 0 4px 20px rgba(255, 255, 255, 0.08);
        }

/* PRAVÝ OBSAH - SKLENĚNÉ KARTY */
.content {
    flex-grow: 1;
    max-width: 880px;
    min-width: 0;
}

.card {
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2.2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

h2 {
    font-size: 1.85rem;
    color: #ffffff;
    margin-bottom: 1.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 0.6rem;
    letter-spacing: -0.5px;
}

h3 {
    margin-top: 1.4rem;
    margin-bottom: 0.5rem;
    color: #f8fafc;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.2px;
}

strong {
    color: #ffffff;
    font-weight: 600;
}

/* PROJEKTY */
.project-item {
    position: relative;
}

.title-link {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
}

    .title-link:hover {
        color: #38bdf8;
        border-bottom-color: #38bdf8;
    }

.project-img-box {
    margin: 1.2rem 0;
}

.project-img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* GALERIE A DVOJICE OBRÁZKŮ */
.project-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 1.5rem 0;
}

.project-gallery-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 1.5rem 0;
}

.gallery-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: block;
}

/* SKRYTÝ BLOK DETAILŮ PROJEKTU */
.project-details {
    display: none;
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    animation: fadeInFade 0.35s ease forwards;
}

    .project-details.is-open {
        display: block;
    }

@keyframes fadeInFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-action-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.4rem;
}

/* SKLENĚNÁ TLAČÍTKA */
.btn-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.55rem 1.15rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

    .btn-toggle:hover {
        background: rgba(255, 255, 255, 0.16);
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.38);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.08);
    }

.btn-read-more {
    margin-top: 0.8rem;
}

.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 2.2rem 0;
}

/* =========================================================
   STRUKTUROVANÝ CENÍK
========================================================= */

.pricing-category-box {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 1.6rem;
    margin-bottom: 1.6rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.category-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

    .category-header h3 {
        margin-top: 0;
        margin-bottom: 0.2rem;
        font-size: 1.4rem;
        color: #ffffff;
    }

/* Karta Konzultace */
.pricing-consult-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 1.6rem;
    margin-top: 1.6rem;
    margin-bottom: 1.6rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    box-sizing: border-box;
}

    .pricing-consult-card h3 {
        margin-top: 0;
        margin-bottom: 0.2rem;
        font-size: 1.4rem;
        color: #ffffff;
    }

    .pricing-consult-card p {
        margin: 0;
        color: #cbd5e1;
        font-size: 0.95rem;
    }

/* Štítek Zdarma */
.price-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.55rem 1.15rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: default;
    user-select: none;
    white-space: nowrap;
}

/* Ceník – trvale zobrazený */
.pricing-web-dropdown {
    display: block;
    margin-top: 1rem;
    padding-top: 1.2rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

/* Mřížka balíčků */
.web-tier-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Karta pro balíček */
.tier-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, border-color 0.25s ease;
    box-sizing: border-box;
    min-width: 0;
}

    .tier-card:hover {
        transform: translateY(-3px);
        border-color: rgba(255, 255, 255, 0.3);
    }

.tier-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.6rem;
    gap: 0.8rem;
}

    .tier-head h4 {
        color: #ffffff;
        font-size: 1.15rem;
        font-weight: 700;
        margin: 0;
        line-height: 1.3;
    }

.tier-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.tier-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.tier-list {
    margin: 0 0 0 1.2rem;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cbd5e1;
}

    .tier-list li {
        margin-bottom: 0.35rem;
    }

/* BLOK PROVOZNÍCH NÁKLADŮ A SPRÁVY */
.pricing-notes-box {
    width: 100%;
    margin-top: 2rem;
    padding-top: 1.8rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    box-sizing: border-box;
}

    .pricing-notes-box h3 {
        color: #ffffff;
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
        margin-top: 0;
    }

.notes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    width: 100%;
    box-sizing: border-box;
}

.note-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1.2rem;
    box-sizing: border-box;
}

    .note-item h4 {
        color: #f8fafc;
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }

    .note-item p {
        font-size: 0.88rem;
        color: #cbd5e1;
        line-height: 1.55;
        margin: 0;
    }

    .note-item strong {
        color: #68d391;
    }

/* KONTAKT */
.contact-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.2rem;
    margin-top: 1.2rem;
}

.contact-photo {
    width: 380px;
    height: 230px;
    object-fit: cover;
    object-position: left center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
}

    .contact-details p {
        margin-bottom: 0.75rem;
        font-size: 1rem;
    }

    .contact-details a {
        color: #ffffff;
        text-decoration: underline;
        text-underline-offset: 3px;
        transition: opacity 0.2s;
    }

        .contact-details a:hover {
            opacity: 0.8;
        }

/* 3. MOBILNÍ ZOBRAZENÍ (RESPONZIVITA) */
@media (max-width: 820px) {
    .hero-banner {
        height: 250px;
    }

    .banner-overlay {
        padding: 0.4rem 0.8rem;
    }

        .banner-overlay h1 {
            font-size: 2.1rem;
        }

        .banner-overlay p {
            font-size: 0.9rem;
        }

    .layout-wrapper {
        flex-direction: column;
        padding: 0 1rem;
        margin: 1.5rem auto;
        width: 100%;
        overflow-x: hidden;
    }

    .sidebar {
        width: 100%;
        position: static;
        padding: 1rem;
    }

    .menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

        .menu a {
            text-align: center;
            padding: 0.8rem 0.5rem;
        }

    .content {
        width: 100%;
        max-width: 100%;
    }

    .card {
        padding: 1.2rem;
    }

    .project-row-2 {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .project-gallery-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .project-action-row {
        justify-content: flex-end;
    }

    /* Úprava ceníku a karet pro mobil */
    .pricing-category-box {
        padding: 1.2rem 1rem;
    }

    .web-tier-grid,
    .notes-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    .tier-card {
        width: 100% !important;
        padding: 1.2rem 1rem;
    }

    /* Název a cena na mobilu bezpečně pod sebou */
    .tier-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

        .tier-head h4 {
            font-size: 1.15rem;
            word-break: normal;
            overflow-wrap: break-word;
        }

    .tier-price {
        font-size: 1.35rem;
    }

    .contact-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.4rem;
    }

    .contact-photo {
        width: 100%;
        max-width: 360px;
        height: 220px;
        object-fit: cover;
        object-position: left center;
    }
}
