* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Základní nastavení */
body {
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

header, nav, footer {
    flex-shrink: 0; /* aby se nezmenšovaly */
}

/* Hlavní obsah */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Flexbox pro logo + text vedle sebe */
.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo obrázek vlevo */
.logo-container img {
    height: 100%;
    width: auto;
    display: block;
}

/* Textová část – aby text byl vycentrovaný vedle loga */
.logo-container .text {
    flex: 1; /* zabere zbytek místa */
    display: flex;
    flex-direction: column;
    justify-content: center;  /* vertikální vycentrování textu */
    align-items: center;      /* horizontální vystředění textu */
}

/* Nadpis */
.logo-container .text h1 {
    font-size: 2.2em;
    margin: 0 0 5px 0;
}

/* Podnadpis */
.logo-container .text p {
    font-size: 1.1em;
    margin: 0;
}

/* Navigace */
nav {
    background-color: #222;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    transition: background 0.3s;
    flex: 1 0 auto;
    text-align: center;
    min-width: 100px;
}

nav a:hover {
    background-color: #444;
}

/* Hrdinská sekce */
.hero-image {
  background: url('sledujte nas.jpg') center/cover no-repeat;
  height: 100vh;  /* výška na celou obrazovku */
  position: relative;
}

/* Překryv (tmavý filtr), pokud chceš */
.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.4);
  z-index: 1;
}

.welcome-text {
  max-width: 1100px;
  margin: 20px auto 60px auto;
  padding: 0 20px;
  text-align: center;
  color: #0d0de4;
}

.welcome-text h2 {
  font-weight: bold;
  font-size: 2.5em;
}

/* Sekce */
section {
    margin-bottom: 50px;
}

section h2 {
    color: #0d0de4;
    margin-bottom: 15px;
    font-size: 1.8em;
}

section h3 {
    font-weight: bold;    /* tučné */
    font-style: italic;   /* kurzíva */
    font-size: 1.5em;     /* větší písmo, 1.5 násobek základní velikosti */
}

/* Kontakt */
#kontaktujte-nas {
    padding: 40px 20px;
    background-color: #eef1f8;
    text-align: center;
}

#kontaktujte-nas h2 {
    color: #0d0de4;
    margin-bottom: 20px;
}

#kontakt-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

#kontakt-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

#kontakt-form textarea,
#kontakt-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

#kontakt-form button {
    background-color: #0d0de4;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

#kontakt-form button:hover {
    background-color: #000080;
}

/* Podporují nás */
#podporuji-nas {
    padding: 40px 0;
    background-color: #f5f5f5;
    width: 100%;
    text-align: center;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 30px;
    padding: 20px;
    box-sizing: border-box;
    max-width: 100%;
}

.partner-logos img {
    max-width: 180px;
    height: auto;
    transition: transform 0.3s ease;
}

/* Patička */
footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.95em;
}

/* Responsivita */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.7em;
    }

    .hero {
        padding: 80px 20px;
    }

    .hero h2 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 1em;
    }

    nav {
        flex-direction: column;
    }

    nav a {
        border-top: 1px solid #444;
        width: 100%;
        flex: none;
    }

    main {
        padding: 0 15px;
    }

    section h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 600px) {
    .logo-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo-container img {
        height: 60px;
    }

    .logo-container .text h1 {
        font-size: 1.6em;
    }

    .logo-container .text p {
        font-size: 1em;
    }

    .partner-logos img {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.5em;
    }

    .hero p {
        font-size: 0.95em;
    }

    header p {
        font-size: 1em;
    }
}