@media print {
    body,
    .dum,
    .bck {
        display: none !important;
    }
}

/* Bookman Old Style */
@font-face {
    font-family: 'Bookman Old Style';
    src: url('../fonts/bookman/Bookman Old Style.woff2') format('woff2'),
    url('../fonts/bookman/Bookman Old Style.woff') format('woff');
    src: url('../fonts/bookman/Bookman Old Style.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Jost Book */
@font-face {
    font-family: 'Jost';
    src: url('../fonts/jost/jost.book.woff2') format('woff2'),
    url('../fonts/jost/jost.book.woff') format('woff'),
    url('../fonts/jost/jost.book.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Jost Book Italic */
@font-face {
    font-family: 'Jost';
    src: url('../fonts/jost/jost.book-italic.woff2') format('woff2'),
    url('../fonts/jost/jost.book-italic.woff') format('woff'),
    url('../fonts/jost/jost.book-italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

body {
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    text-align: center;
    background: white;
    font-family: 'Bookman Old Style', serif;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    font-weight: normal;
    color: #2C2C2A;
}

h1 {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 2.2rem;
    letter-spacing: 0.02em;
    margin: 0;
}

h2, h3 {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.08em;
    font-style: normal;
    color: #888780;
    margin: 0;
}

p {
    font-family: 'Bookman Old Style', serif;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    font-weight: normal;
    color: black;
}

.meta {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 0.5px solid #D3D1C7;
}

.italian_job {
    font-style: italic;
}

.mwidth {
    width: 65%;
    min-width: 1100px;
}

#promo {
position: relative;
overflow: hidden;
z-index: 1;
}

.mwidth h3 {
    margin: -5px 0 0 -1%;
    color: #2C2C2A;
}

.mwidth h1 {
    margin: 0 0 0 -1.2%;
}

.bck, .bck span {
    position: relative;
    width: 100%;
    left: 0;
    top: 0;
    margin: 0;
    padding: 0;
    z-index: 1;
}

.bck span {
    position: absolute;
    width: 100%;
    height: 100%;
    background: silver;
    opacity: 0.1;
    z-index: 1;
}

.bck span + span {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url(../img/bcg.webp) no-repeat top;
    opacity: 0.3;
    z-index: 1;
}

.bck div {
    position: relative;
    margin: 0 auto -30px auto;
    padding-top: 30px;
    text-align: left;
    z-index: 1;
}

.dum {
    position: relative;
    width: 67% !important;
    margin: 45px auto 50px auto;
    display: block;
    opacity: 0.85;
    z-index: 1;
}

.cleanner {
    width: 99%;
    height: 0.1px;
    background: transparent;
    border: none;
    text-decoration: none;
    outline: none;
    clear: both;
}

/* Hamburger – skrytý na desktopu */
#menu-toggle {
display: none;
}

#hamburger {
display: none;
}

#menu {
background: gainsboro;
display: flex;
justify-content: center;
gap: 0;
margin: -11px 0;
padding: 0;
z-index: 10;
}

#menu a {
font-family: 'Jost', sans-serif;
font-weight: 400;
font-size: 0.95rem;
letter-spacing: 0.16em;
text-transform: uppercase;
color: #808080;
-webkit-font-smoothing: antialiased;
text-decoration: none;
width: 160px;
padding: 1.1rem 0;
text-align: center;
position: relative;
transition: color 0.35s ease;
z-index: 10;
}

#menu a::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%) scaleX(0);
width: 36px;
height: 1.5px;
background: #A0A0A0;
transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

#menu a:hover {
color: #1A1A1A;
}

#menu a:hover::after {
transform: translateX(-50%) scaleX(1);
background: #333333;
}

#menu a.active {
color: #000000;
}

#menu a.active::after {
transform: translateX(-50%) scaleX(1);
background: #1A1A1A;
}

#obsah {
position: relative;
margin: 0 auto;
padding: 2rem 10px;
text-align: left;
z-index: 10;
}

#aktuality {
margin: 0 auto;
text-align: left;
}

.aktualita {
    display: flex;
    gap: 1.2rem;
    padding: 10px;
    margin-bottom: 2rem;
    border: 0.5px solid #D3D1C7;
    align-items: flex-start;
    z-index: 20;
}

/*.aktualita:last-child {
    border-bottom: none;
}*/

.aktualita-foto img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    display: block;
}

.aktualita-text h3 {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    font-style: italic;
    letter-spacing: 0.05em;
    color: #2C2C2A;
    margin: -0.2rem 0 -0.3rem 0;
}

.aktualita-text a {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: #808080;
    text-decoration: none;
}

.aktualita-text a:hover {
    color: #2C2C2A;
}
.aktualita-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: 'Jost', sans-serif;
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #888780;
}

.meta-sep {
    color: #D3D1C7;
}

.aktualita-hr {
    border: none;
    width: calc(100% - 30px);
    border-top: .5px solid #D3D1C7;
    margin: .5rem 0 .8rem 0;
}

.noborder{
    border:none!important;
    border-top:none!important;
    border-left:none!important;
    border-right:none!important;
    border-bottom:none!important;
}

#footer p {
font-size: 70%;
margin: 0 auto;
text-align: center;
padding: 15px 0 30px 0;
}

/*        POSTUP       */

.darker{
    background:black;
}

.border{
    border:1px solid black;
}

/* ── Posty – plné zobrazení ── */
.post {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 0.5px solid #D3D1C7;
}

.post:last-of-type {
    border-bottom: none;
}

.post-titulek {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    color: #2C2C2A;
    margin: 0.3rem 0 0.8rem 0;
}

.post-perex {
    font-style: italic;
    color: #888780;
    margin-bottom: 1rem;
}

.post-obsah {
    margin-top: 1rem;
    line-height: 1.85;
}

/* ── Foto grid – čtvercové náhledy, max 2 vedle sebe ── */
.post-foto-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 1rem 0;
    float: left;
    width: 280px;
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
}

.foto-thumb {
    width: 100%;
    padding-top: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.foto-thumb:hover {
    opacity: 0.85;
}

/* ── Kompaktní posty ── */
.post-kompakt {
    border-bottom: 0.5px solid #D3D1C7;
}

.post-kompakt-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    cursor: pointer;
    transition: color 0.25s ease;
}

.post-kompakt-header:hover {
    color: #808080;
}

.post-kompakt-titulek {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    flex: 1;
}

.post-kompakt-datum {
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    color: #888780;
    white-space: nowrap;
}

.post-kompakt-arrow {
    font-size: 0.9rem;
    color: #888780;
    transition: transform 0.3s ease;
    min-width: 16px;
}

.post-kompakt-obsah {
    padding: 1rem 0 1.5rem 0;
}

/* ── Lightbox ── */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#lightbox-inner {
    position: relative;
    cursor: default;
}

#lightbox-img {
    display: block;
    max-width: none;
}

#lightbox-close {
    position: absolute;
    top: -32px;
    right: 0;
    color: #ccc;
    font-size: 1.2rem;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    letter-spacing: 0.1em;
}

#lightbox-close:hover {
    color: white;
}
.jedna {
    grid-template-columns: 1fr;
    width: 140px;
}

/* ── Clearfix po foto gridu ── */
.post::after {
    content: '';
    display: table;
    clear: both;
}

/* ===== sekce Kontakty ===== */
#forms {
max-width: 700px !important;
margin: 0 auto;
}

/* divový form */
#form-div .form-row {
display: block;
width: 100%;
margin: 0.5rem 0;
padding: 10px;
border-radius: 6px;
border: 1px solid #ccc;
box-sizing: border-box;
min-height: 1.5em;
position: relative;
color: #000;
font-family: "Montserrat", sans-serif;
transition: border 0.2s ease;
}

#form-div .form-row:empty:before {
content: attr(data-placeholder);
color: #999;
}

#form-div .form-row:focus {
outline: none;
border: 1px solid #333;
}

#form-div .textarea {
min-height: 100px;
}

#form-div .form-button {
    display: block;
    width: 100%;
    max-width: 150px;
    float: right;
    margin: 0.5rem 0;
    padding: 10px;
    border-radius: 6px;
    background-color: gainsboro;
    color: #fff;
    text-align: center;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    user-select: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#form-div .form-button:hover {
    background-color: #3B3B3B;
}

#form-div{
    margin-top:20px;
}
#response-text {
font-family: 'Jost', sans-serif;
font-weight: 400;
text-align: center;
margin-top: 1rem;
font-weight: bold;
height: 1.5rem;
}



/* ── 800px–1199px ── */
@media screen and (max-width: 1199px) {

    .mwidth {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 0 15px;
        margin: 0;
    }

    .bck div {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 20px 15px 0 15px;
    }

    h1 {
        font-size: 1.3rem;
        letter-spacing: 0.04em;
        margin: 0;
    }

    h2, h3 {
        font-size: 0.85rem;
        margin: 2px 0 0 0;
    }

    .dum {
        width: 100% !important;
        margin: 20px auto 25px auto;
        left: 0;
    }

    .bck span,
    .bck span + span {
        width: 100%;
        height: 100%;
        margin: 0;
    }

    #menu {
    flex-wrap: wrap;
    margin: 0;
    }

    #menu a {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    padding: 0.9rem 0;
    }

    #obsah {
    width: 100%;
    box-sizing: border-box;
    padding: 1.5rem 15px;
    }

    #aktuality {
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    }

    p {
        font-size: 1rem;
        letter-spacing: 0.03em;
        line-height: 1.75;
    }

    .mwidth h1 {
        margin: 0;
    }

    .mwidth h3 {
        margin: 2px 0 0 0;
    }
}

/* ── HAMBURGER pod 800px ── */
@media screen and (max-width: 799px) {

    .dum {
        margin: 20px auto 0 auto;
    }

    /* Zobraz hamburger tlačítko */
    #hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    position: relative;
    z-index: 100;
    margin: 12px 15px;
    }

    #hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #808080;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease;
    transform-origin: center;
    }

    /* Menu schované – výchozí stav */
    #menu {
    display: none;
    flex-direction: column;
    margin: 0;
    background: gainsboro;
    }

    #menu a {
    width: 100%;
    padding: 1rem 0;
    font-size: 0.85rem;
    border-bottom: 0.5px solid #D3D1C7;
    text-align: center;
    }

    #menu a:last-child {
    border-bottom: none;
    }

    /* Checkbox otevře menu */
    #menu-toggle:checked + #hamburger + #menu {
    display: flex;
    }

    /* Animace hamburger → křížek */
    #menu-toggle:checked + #hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    }

    #menu-toggle:checked + #hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
    }

    #menu-toggle:checked + #hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    }
    .aktualita {
        flex-direction: column;
    }
    .aktualita-foto img {
        width: 100%;
        height: 160px;
    }
        .post-foto-grid {
        float: none;
        width: 100%;
        margin-right: 0;
        grid-template-columns: repeat(2, 1fr);
    }

}
