body {
    background: linear-gradient(180deg, #f6f7f9 0%, #eef1f3 100%);
    font-size: 16px;
    font-family: "Montserrat", Gill Sans, Helvetica, Arial, sans-serif;
    color: #222;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    padding: 1rem 0;
}
h1, h2, h3, h4, h5, h6 {
    font-family: "Merriweather", Georgia, serif;
    font-weight: 300;
    color: #222;
    margin: 0.25rem 0 0.7rem 0;
}
.final #page {
    display: flex;
    flex-flow: row wrap;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1rem;
}
.final header,
.final #news,
.final #intro,
.final #aboutme,
.final #place,
.final #workinghours,
.final #pricelist,
.final #workshops,
.final #articles,
.final #links {
    flex: 1 100%;
}

/* Karty sekcí */
.final section {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(30,30,30,0.06);
    padding: 1rem;
    margin: 0.9rem 0;
    font-size: 0.95rem;
}

/* Header */
.final header {
    color: #1e1c0b;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0 0 0 0;
}
.final .background {
    padding: 0.8rem;
    border-radius: 8px;
}

/* Titul */
.final #title-header {
    flex: 1 100%;
    background: linear-gradient(90deg,#e6e9ea,#dadddc);
    padding: 0.8rem 1rem;
    margin: 0 0 0.6rem 0;
    border-radius: 8px;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #3b3b3b;
}

.final .background.header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.final #title-left { flex: 0 0 auto; }
.final #title-right { flex: 1 1 auto; min-width: 200px; }
.final #title-menu {
    /* v normálním stavu necháme menu ve své položce, ale dovolíme mu zabrat celý řádek */
    flex: 1 1 100%;
    min-width: 220px;
    box-sizing: border-box;
}

/* Obrázky a figure */
.final .photo img,
.final .title-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}
.final .photo {
    display: table;        /* shrink-to-fit podle obsahu (obrázku) */
    margin: 0.6rem auto;   /* centrovat podle šířky obrázku, ne okna */
    text-align: center;
}
.final .photo figcaption {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* Navigace */
.final .menu { text-align: right; margin: 0.2rem 0; }
.final .menu-toggle {
    background: #ffffffaa;
    border: 1px solid #d3d3d3;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: #7b0805;
}
.final nav { display: none; transition: max-height 0.25s ease; overflow: visible; }
.final nav.open { display: block; }

/* Desktop nav (přes medium.css) - drobné zlepšení stylu odkazů */
/* Upravena pravidla tak, aby se položky menu zalamovaly do dalších řádků při nedostatku šířky */
.final nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;       /* povolit zalamování položek */
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}
.final nav ul li {
    display: inline-flex;
    flex: 0 1 auto;        /* umožní položkám zmenšit se a přejít na další řádek */
}
.final nav > ul > li > a {
    display: inline-block;
    padding: 0.45rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    color: #a81c15;
    background: linear-gradient(180deg,#fff,#f6f6f6);
    border: 1px solid #eee;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    white-space: nowrap;   /* zachovat jednotlivé položky neporušené */
}

/* Footer */
.final footer { display:flex; gap:0.5rem; align-items:center; padding:0.6rem; margin-top:0.6rem; border-radius:8px; background:transparent; }
.final #copyright { margin-left:auto; color:dimgray; }

/* drobné typografické opravy */
.final p { text-indent: 1.1em; margin: 0.5rem 0; color:#333; }

.wireframe {
    margin: 0;
    padding: 0;
}
.wireframe section,
.wireframe nav,
.wireframe .menu {
    margin: 1em;
    background-color: whitesmoke;
    border: 1px solid gainsboro;
    font: small sans-serif;
    text-align: center;
    color: silver;
}
.wireframe h1 {
    font-weight: 100;
}
.wireframe .menu {
    position: absolute;
    top: 0;
    right: 0;
    background-color: gainsboro;
    padding: 0.5em;
}
/*.wireframe #title { height: 10em; }
.wireframe #intro { height: 30em; }
.wireframe #aboutme { height: 20em; }
.wireframe #place { height: 10em; }
.wireframe #pricelist { height: 7em; }
.wireframe #workshops { height: 15em; }
.wireframe #articles { height: 15em; }
.wireframe #links { height: 20em; }
.wireframe nav { height: 10em; }*/
