:root {
    --beige: #EDE7CA;
    --beige-light: #FFFEF7;
    --blue: #30A85D;
    --blue-dark: #30A85D;
    --text: #2f2a24;
    --muted: #766f66;
    --white: #ffffff;
    --border: #e2d3bd;
    --shadow: 0 12px 28px rgba(47, 42, 36, 0.08);
    --hover: rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--text);
    background: var(--beige-light);
    line-height: 1.65;
}

a {
    color: var(--blue-dark);
    text-decoration: none;
    filter: brightness(1);
    transition: .2s;
}

a:hover,
a:focus {
    text-decoration: underline;
    filter: brightness(0.9);
}

.container {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--beige);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.nav-wrapper {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
}

.logo:hover {
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.main-nav a {
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--text);
    font-weight: 600;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active {
    background: var(--blue);
    text-decoration: none;
    color: var(--beige-light);
}

.site-main {
    padding-top: 72px;
}

.main {
    background: linear-gradient(135deg, var(--beige-light) 45%, var(--blue) 100%);
}

.site-main .card {
    height: stretch;
}

.hero {
    padding: 80px 0;
}

.hero-grid,
.two-columns,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: center;
}

.hero img {
    max-width: 400px;
    width: 90%;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--blue-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
}

h1,
h2 {
    line-height: 1.2;
    margin-top: 0;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.7rem);
    margin-bottom: 18px;
}

h2 {
    font-size: 1.45rem;
    margin-bottom: 12px;
}

.lead {
    font-size: 1.18rem;
    max-width: 640px;
}

.button {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--blue-dark);
    color: var(--white);
    font-weight: 700;
    box-shadow: var(--shadow);
}

.button:hover,
.button:focus {
    text-decoration: none;
    filter: brightness(0.9);
}

.hero-card,
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.placeholder-image {
    min-height: 320px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--muted);
    background:
        linear-gradient(135deg, rgba(185, 215, 232, 0.45), rgba(244, 234, 216, 0.85)),
        repeating-linear-gradient(45deg, transparent 0 12px, rgba(82, 123, 147, 0.08) 12px 24px);
}

.content-section {
    padding: 25px 0;
}

.page-heading {
    padding: 60px 0 38px;
    background: linear-gradient(135deg, var(--beige) 30%, var(--blue) 110%);
}

.page-heading p {
    max-width: 680px;
}

.card {
    padding: 28px;
}

.accent-card {
    background: #edf6fb;
    border-color: #c9e0ed;
}

.check-list {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.price-list-box {
    margin-bottom: 22px;
    padding: 18px 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: var(--shadow);
}

.price-list-box a {
    font-weight: 700;
}

.muted {
    color: var(--muted);
    font-size: 0.95rem;
}

.products-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 18px;
}

.products-table caption {
    text-align: left;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--muted);
}

.products-table tr {
    background: var(--white);
    box-shadow: var(--shadow);
}

.products-table td {
    padding: 24px;
    vertical-align: middle;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.products-table td:first-child {
    border-left: 1px solid var(--border);
    border-radius: 22px 0 0 22px;
}

.products-table td:last-child {
    border-right: 1px solid var(--border);
    border-radius: 0 22px 22px 0;
}

.product-placeholder {
    height: 200px;
    display: block;
    place-items: center;
    text-align: center;
    padding: 0;
    border: 2px solid var(--border);
    border-radius: 18px;
    background: #f3f9fc;
    color: var(--blue-dark);
    font-weight: 700;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.site-footer {
    padding: 28px 0;
    background: var(--text);
    color: var(--beige-light);
    text-align: center;
}

.site-footer p {
    margin: 0;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0 1.5rem;
}

.category-tab {
    border: 1px solid var(--blue);
    background: var(--beige-light);
    color: var(--text);
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
}

.category-tab:hover,
.category-tab.active {
    background: var(--blue-light);
}

.products-frame {
    min-height: 300px;
}

.products-frame.loading {
    opacity: 0.5;
}

.kotva35 {
    scroll-margin-top: 35vh; 
}

.kotva30 {
    scroll-margin-top: 30vh; 
}

.konfigurator-kontejner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    margin: 30px auto;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-family: sans-serif;
    user-select: none;
    position: relative;
}

.leva-strana {
    flex: 12;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    position: sticky;
    top: 120px;
    align-self: flex-start;
}

.prava-strana {
    flex: 15;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.okno-konfigurace {
    width: 100%;
    max-width: 400px;
    height: 400px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    transition: height 0.3s ease;
    z-index: 10;
}

#vrstva-deska {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.pohyblivy-doplnek {
    position: absolute;
    width: auto;
    height: 100px;
    cursor: default;
    z-index: 100;
    transform-origin: center center;
    box-sizing: border-box;
}

.pohyblivy-doplnek-text {
    position: absolute;
    cursor: move;
    z-index: 100;
    object-fit: contain;
    image-rendering: pixelated;
    transform-origin: center center;
    box-sizing: border-box;
}

.spona {
    position: absolute;
    width: auto;
    height: 100px;
    z-index: 100;
}

.skupina-checkboxu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 2%;
    width: 100%;
    margin: 10px 0 15px 0;
}

.polozka-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.polozka-checkbox input,
.polozka-checkbox span {
    vertical-align: middle;
}

.polozka-checkbox span {
    margin-left: 5px;
}

.skupina-poli {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

select {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

h3 {
    margin: 0 0 10px 0;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

.napoveda {
    font-size: 13px;
    color: #666;
    font-style: italic;
    text-align: center;
}

.vrstva-skryta {
    display: none !important;
}

.tlacitko-stahnout,
.tlacitko-poptat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-size: 16px;
    transition: background 0.2s;
}

.tlacitko-poptat {
    margin-top: 10px;
}

.tlacitko-stahnout:hover,
.tlacitko-poptat:hover {
    background-color: #218838;
}

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.galerie-grid .card {
    display: flex;
    flex-direction: column;
}

.product-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.galerie-placeholder {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
}

.galerie-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.galerie-container {
    width: min(1300px, calc(100% - 40px));
    margin: 0 auto;
    padding: 20px 0;
}

.galerie-grid .product-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    overflow: hidden;
    border-radius: 18px;
}
        
.galerie-grid .product-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-placeholder-foto {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 18px;
    background: #f3f9fc;
    border: 2px solid var(--border);
}

.product-placeholder-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

a.no-hover-effect:hover,
a.no-hover-effect:focus {
    filter: brightness(1) !important;
}

/* --- Vodorovné karty (flex) --- */
.card.card-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

.card.card-horizontal .product-placeholder-foto {
    flex: 0 0 35%;
    margin-bottom: 0;
}

.card.card-horizontal.card-reverse {
    flex-direction: row-reverse;
}

/* --- Layout: Text vlevo, karta vpravo --- */
.text-image-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: center;
    margin: 30px 0;
}

/* --- Responzivní mobilní verze pro celé CSS --- */
@media (max-width: 760px) {
    .nav-wrapper {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

    .site-main {
        padding-top: 128px;
    }

    .hero-grid,
    .two-columns,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .products-table,
    .products-table tbody,
    .products-table tr,
    .products-table td {
        display: block;
        width: 100%;
    }

    .products-table td:first-child {
        border-radius: 22px 22px 0 0;
        border-right: 1px solid var(--border);
        border-bottom: 0;
    }

    .products-table td:last-child {
        border-radius: 0 0 22px 22px;
        border-left: 1px solid var(--border);
        border-top: 0;
    }

    /* Přepnutí vodorovných karet na mobilu pod sebe */
    .card.card-horizontal {
        flex-direction: column;
        align-items: stretch;
    }
    .card.card-horizontal .product-placeholder-foto {
        width: 100%;
    }

    /* Přepnutí textu a karty vpravo na mobilu pod sebe */
    .text-image-layout {
        grid-template-columns: 1fr;
    }
}

/* Výchozí stav: Na počítači a velkých obrazovkách je upozornění úplně skryté */
.mobilni-upozorneni {
    display: none;
}

/* Zobrazení: Pouze na zařízeních užších než 760 px (mobily) */
@media (max-width: 760px) {
    .mobilni-upozorneni {
        display: block;
        font-size: 0.9rem;
        text-align: center;
        font-weight: 600;
    }
}

@media (max-width: 760px) {
    /* Roztáhne textové pole, inputy a soubory na 100% šířky displeje */
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="file"],
    .form-group textarea {
        width: 100% !important; /* Přepíše i tu pevnou šířku 483px z HTML */
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Popisky u formuláře se na mobilu hodí dát nad políčko, aby se neškodily */
    .form-group label {
        display: block;
        margin-bottom: 4px;
    }

    /* Tlačítko pro odeslání přes celou šířku pro pohodlné kliknutí prstem */
    .form-group button[type="submit"],
    form button[type="submit"] {
        width: 100%;
    }
}

/* Šířka textového pole na počítači (upravte si rozměr podle chuti) */
.form-group textarea {
    width: 100%;
    max-width: 600px; /* Zde si můžete nastavit šířku, jakou chcete mít na PC */
}

/* Na mobilu se pole automaticky roztáhne na celou šířku displeje */
@media (max-width: 760px) {
    .form-group textarea {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Styl pro cenové okénko v tabulce produktů */
.price-box {
    background: var(--beige-light);
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 12px 16px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 10px rgba(47, 42, 36, 0.04);
}

.price-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 2px;
}

.price-value {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--blue-dark);
}

/* Responzivita pro mobily: aby se cena na úzké obrazovce nerozbila */
@media (max-width: 760px) {
    .products-table td.product-price-cell {
        display: block;
        text-align: left !important;
        border-top: none;
        border-radius: 0 0 22px 22px !important;
        padding-top: 0;
    }
    
    .price-box {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
}


