/* === ZÁKLADNÍ NASTAVENÍ === */
body {
    margin: 0;
    background: #000;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

#stranka {
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
}

/* === MENU – nízké, s titulkem uprostřed === */
.menu {
    background: #111;
    color: #fff;
    padding: 1.1rem 1rem;      /* nízké menu */
    display: grid;
    grid-template-columns: 1fr auto 1fr;   /* levý – střed – pravý sloupec */
    align-items: center;       /* vertikální zarovnání */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #333;
}

/* Levá část – logo */
.menu-left img.logo-img {
    width: 75px;               /* můžeš dát 65–75 */
    height: auto;
    display: block;
}

/* Prostřední část – titulka */
.menu-title {
    flex: 1;                    /* vyplní prostor mezi logem a odkazem */
    text-align: center;
    font-size: 1.6rem;          /* výrazná titulka */
    font-weight: bold;
    color: #ecba77;             /* zlatá barva */
    white-space: nowrap;        /* nerozbije se na dva řádky na desktopu */
    margin: 0 1rem;
    line-height: 1.2;           /* nízká výška textu */
}

/* Odkaz vpravo */
.menu-right {
    display: flex;
    justify-content: flex-end;
}

.menu-right a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
}

.menu-right a:hover {
    color: #ffeb01;
}


/* Mobilní verze */
@media (max-width: 768px) {
    .menu {
        grid-template-columns: auto 1fr auto;
        padding: 0.35rem 0.8rem;
    }

    .menu-left img.logo-img {
        width: 50px;
    }

    .menu-title {
        font-size: 1.2rem;
        white-space: normal;
    }
}

/* Vycentrování hlavních bloků */
#zahlavi,
#box_nadpisy,
#box_posledni,
#box_text {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* === ZÁHLAVÍ === */
#zahlavi h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
    color: #fff;
}

#zahlavi img {
    width: 70px;
    height: auto;
}

/* === NADPISY === */
#box_nadpisy {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    align-items: center;

}

#box_nadpisy h2 {
    margin: 0;
    font-size: 1.6rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Obrázek v box_posledni přesně na střed */
#box_posledni img {
    margin-left: auto;
    margin-right: auto;
}

/* Textový blok široký jako celý grid */
#box_text {
    max-width: 1200px;
    padding: 0 1rem;
    text-align: center;
}

#box_text h2 {
    color: #3366cc;
}

#box_text p {
    font-size: 1rem;
    line-height: 1.5;
}

/* === GRID S ODKAZY === */
.grid-boxy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.box {
    background: #3366cc;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    color: #000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover efekt */
.box:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

/* Barevné varianty podle původního designu */
.box:nth-child(7),
.box:nth-child(23),
.box:nth-child(28) {
    background: #c00000;
}

.box:nth-child(18),
.box:nth-child(27),
.box:nth-child(30),
.box:nth-child(31),
.box:nth-child(32),
.box:nth-child(33) {
    background: #ffeb01;
}

.box h3 {
    margin-top: 0.5rem;
    font-size: 1rem;
    line-height: 1.2;
}

/* === ODKAZY === */
#odkazy, #dalsi {
    text-align: center;
    margin: 2rem 0 1rem 0;
}

#odkazy a {
    color: #ff0000;
    font-size: 1.1rem;
}

/* === ZÁPATÍ === */
#zapati {
    text-align: center;
    padding: 2rem 0;
    border-top: 2px solid #fff;
    margin-top: 2rem;
    font-size: 0.9rem;
}