//* Globális reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.6;
  padding: 30px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  position: relative;
  text-align: center;
  padding: 150px 20px;
  color: white;
  background: url('focim1.jpg') no-repeat center center;
  background-size: cover;
}

header h1 {
  font-size: 2.5em;
}

header p {
  margin-top: 10px;
  font-size: 1.2em;
}

nav {
  background: #333;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

nav ul li {
  position: relative;
}

nav ul li a {
  display: block;
  padding: 15px 20px;
  color: #fff;
  text-decoration: none;
}

nav ul li a:hover {
  background: #444;
}

nav ul li ul {
  display: none;
  position: absolute;
  background: #333;
  top: 100%;
  left: 0;
  min-width: 200px;
  flex-direction: column;
  z-index: 1000;
}

nav ul li:hover > ul {
  display: block;
}

main {
  padding: 20px 0;
}

main section {
  margin-bottom: 40px;
}

main section h2 {
  margin-bottom: 30px;
}

.testimonial {
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 15px;
  background: #fafafa;
}

footer {
  background: #f4f4f4;
  text-align: center;
  padding: 20px;
  margin-top: 20px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.6);
}

.modal-content {
  background: #fff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 5px;
  text-align: center;
}

.modal-content h2 {
  margin-bottom: 15px;
}

.modal-content p {
  margin-bottom: 20px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}

.small-figure {
  float: left;
  margin: 0 20px 20px 0;
  max-width: 200px;
}

.small-figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* clearfix a lebegtetett elemek miatt */
main::after {
  content: "";
  display: table;
  clear: both;
}

/* Mobil optimalizálás */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  header {
    padding: 80px 10px;
  }

  header h1 {
    font-size: 1.8em;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li ul {
    position: static;
    min-width: 100%;
  }

  .small-figure {
    float: none;
    display: block;
    margin: 0 auto 20px;
    max-width: 100%;
  }

  .small-figure img {
    max-width: 100%;
  }

  main section h2 {
    font-size: 1.4em;
  }
}
