* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.media {
    display: none;
}

body {
  background-color: #fffbee;
  color: #333;
  line-height: 1.6;
}

main {
  padding: 70px 40px 20px; 
}

#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffeb70;
  padding: 10px 20px;
  border-bottom: 3px solid #ffb300;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

#header-img {
  height: 60px;
  order: 2;
}

h1 {
  text-align: center;
  font-size: 3em;
  color: #3e2723;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

#nav-bar {
  display: flex;
  gap: 40px;
  font-size: 1.3em;
  background-color: #ffeb70;
  padding: 10px 20px;
  border: 2px solid #ffb300;
  border-radius: 8px;
}

.nav-link {
  text-decoration: none;
  color: #3e2723;
  font-weight: bold;
}

.nav-link:hover {
  color: #6d4c41;
}

#divVideo {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

video {
  border: 3px solid #ffb300;
  border-radius: 10px;
  width: 500px;
  max-width: 100%;
}

h2 {
  text-align: center;
  margin: 20px 0 20px 0px;
  color: #5d4037;
  font-size: 2em;
}

p {
  margin-bottom: 15px;
  text-indent: 2em;
}

section ul {
  list-style: none;
  padding: 0;
}

section ul > li {
  background-color: #fff3e0;
  border-left: 5px solid #ffb300;
  padding: 20px;
  margin: 10px 0;
  border-radius: 8px;
}

section ul > li.parametr, 
section ul > li.med {
  border-left: none;
  padding-left: 20px;
  background-color: #fff8e1;
}

section ul > li h3 {
  margin-bottom: 10px;
  color: #4e342e;
}

#flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  margin: 40px auto;
  max-width: 1000px;
}

.box {
  background-color: #fff3e0;
  border: 2px solid #ffb300;
  border-radius: 10px;
  padding: 25px;
  width: 280px;
  text-align: center;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.box ul {
  padding-left: 0;
  text-align: center;
}

ul.parametry {
  list-style-type: square;
  list-style-position: inside;
  padding-left: 0;
  text-align: left;
  border: none;
}

ul.parametry > li, ul.cenaMedu > li {
  border: none;
}

ul.cenaMedu {
  list-style-type: square;
  list-style-position: inside;
  padding-left: 0;
  text-align: center;
  border: none;
  line-height: 0.1em;
}

.cena {
  font-weight: bold;
  color: #e65100;
  font-style: italic;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 50px 0;
}

label {
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

input[type="email"] {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 250px;
  margin-bottom: 10px;
}

input[type="submit"] {
  background-color: #ffb300;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #fb8c00;
}

@media (max-width: 768px) {
  #header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  #video {
    width: 100%;
  }

  h1 {
    text-align: center;
    font-size: 2em;
    position: static;
    transform: none;
    margin: 0 auto;
  }

  #nav-bar {
    flex-direction: row;
    gap: 15px;
    border: 2px solid #ffb300;
    border-radius: 8px;
    background-color: #ffeb70;
  }

  .box {
    width: 100%;
  }

  #header-img {
    display: none;
  }

  .media {
    
    display: block;
    text-align: center;
    font-size: 2.5em;
    margin-top: 80px;
    margin-bottom: 10px;
    color: #3e2723;
  }

  h1 {
    display: hidden;
  }
}