* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  height: 100%;
}

body {
  position: relative; /* kell a pseudo-elemekhez */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* teljes magasság */
  overflow-x: hidden; /* ne legyen vízszintes görgetés */
}

/* Oldalsó minták alapból desktopon */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  width: 400px;
  height: 100%;
  background-size: cover;
  background-repeat: repeat-y;
  z-index: -1;
}

/* Bal oldal */
body::before {
  left: 0;
  background-image: url("images/bckg_left.png");
}

/* Jobb oldal */
body::after {
  right: 0;
  background-image: url("images/bckg_right.png");
}

header, footer {
  background: tra;
  color: #003399;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
/*  border-bottom: 1px solid #ccc; */
}

/* FOOTER */
footer {
  background: #f5f5f5;
  color: #2e3d86;
  padding: 30px 20px;
  font-size: 14px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-container div {
  flex: 1;
  min-width: 220px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 10px;
}

.footer-bottom {
  width: calc(100% - 800px);  /* középső sáv szélessége */
  margin: 20px auto 0 auto;   /* középre igazítás */
  text-align: center;
  padding-top: 10px;
  font-size: 13px;
  color: #666;
}

header {
  background: transparent;
  color: #003399;
  padding: 10px 20px;
  display: flex;
  justify-content: center; /* középre tesszük a nav-ot */
  align-items: center;
  gap: 20px; /* távolság a logo, nav és lang között */
}

/* A header három fő eleme */
header .logo {
  order: -1; /* mindig balra kerül a nav-hoz képest */
}

header nav {
  flex: 0 1 auto; /* nav tartalma a középen */
}

header .header-right {
  order: 1; /* mindig jobbra kerül */
  display: flex;
  align-items: center;
}

.lang-switcher {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lang-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #003399;
  cursor: pointer;
  padding: 0;
  background: white;
}

.lang-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

main {
  flex: 1;
  padding: 20px 100px;
}

.logo img {
  height: 40px;
  width: auto;
}

/* NAV MENU */
.active-icon {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 10.5px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav ul li {
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: #003399;
  font-weight: 500;
  padding: 8px 12px;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #20b2aa;
}

nav ul li.active a {
  color: #003399;
  background-color: rgba(0, 51, 153, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: bold;
}

nav ul li::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

nav ul li:not(.active):hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  background-image: url('images/Beholder-eye2.png');
}

/* Hamburger */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
  color: #003399;
}

.btn-offer {
  background: #1130a9;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
}

.modal-content h2 { margin-bottom: 15px; }

.modal-content input, .modal-content textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
}

.close {
  float: right;
  cursor: pointer;
  font-size: 20px;
}

.intro {
  margin-top: 40px;
  margin-bottom: 40px;
  text-align: center;
}

.intro-img {
  width: 240px;
  height: 200px;
  object-fit: cover;
  display: block;
  margin: 0 auto 40px auto;
}

.intro-text {
  font-size: 18px;
  line-height: 1.6;
  color: #2e3d86;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.intro-text ul {
  margin-left: 0;
  padding-left: 0;
  list-style: none; /* alap bullet eltűnik */
}

.intro-text ul li {
  position: relative;
  padding-left: 25px; /* hely az ikon + szöveg között */
  margin-bottom: 2px;
  line-height: 1.6;
}

.intro-text ul li::before {
  content: "";
  position: absolute;
  top: 6px;       /* az első sorhoz igazítva */
  left: 0;
  width: 16px;
  height: 16px;
  background: url("images/bullet-icon.png") no-repeat center center;
  background-size: contain;
}

/* Szekciók közötti elválasztóvonal */
.intro-text section {
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid #ccc;
}

.intro-text section:last-child {
  border-bottom: none; /* az utolsónál ne legyen */
}
.intro-pic {
  width: 100%;        /* mindig illeszkedjen a konténerhez */
  max-width: 420px;   /* de sose legyen nagyobb 420px-nél */
  height: auto;       /* arányosan méretezze */
  object-fit: cover;
  display: block;
  margin: 0 auto 40px auto; /* középre igazítva */
}

.references-title {
  text-align: center;
  font-size: 28px;
  color: #2e3d86; /* harmonizáljon a többi szöveggel */
  margin-bottom: 30px;
}

.contact-card {
  max-width: 400px;
  margin: 40px auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 18px;
  color: #2e3d86;
}

.contact-item .icon {
  width: 30px;
  text-align: center;
  margin-right: 10px;
  color: #003399;
  font-size: 20px;
}

.contact-item .label {
  font-weight: bold;
  margin-right: 8px;
}

.contact-item .value a {
  color: #2e3d86;
  text-decoration: none;
}

.contact-item .value a:hover {
  text-decoration: underline;
  color: #20b2aa;
}

/* Versions page layout */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0px;
  max-width: 800px;
  margin: 0 auto;
}

.card {
  background: transparent;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: scale(1.03);  /* enyhe nagyítás */
/*  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); /* puha árnyék */
}

.card img {
  max-width: 100%;
  border-radius: 8px;
}

.card h2 {
  margin: 15px 0 15px 0;
}

/* Versions oldali modal */
.modal-large .modal-content {
  max-width: 600px;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  text-align: left;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 22px;
  cursor: pointer;
}

/* --- 950px ALATTI ELRENDEZÉS (2 oszlopos GRID) --- */
@media (max-width: 950px) {

  body::before,
  body::after {
    display: none; /* oldalsávok eltűnnek */
  }
}

/* =========================================================
   MOBIL NÉZET (≤768px)
   ========================================================= */
@media (max-width: 768px) {

  nav {
    position: relative; /* <<< referenciapont */
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;       /* közvetlenül a nav alatt */
    right: 0;        /* a hamburger ikonhoz igazítva */
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    min-width: 160px; /* szélesség fixálható */
  }

  nav ul.show {
    display: flex;
  }
	
  nav ul li::before {
    display: none;   /* mobilon ne jelenjen meg a szem ikon */
    content: none;
  }
  .active-icon {
    display: none; /* mobilon az aktív oldalt jelölő szem is eltűnik */
  }
	
  nav ul li a {
    color: #003399;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
  }

  nav ul li a:hover {
    background-color: rgba(32, 178, 170, 0.15);
    color: #20b2aa;
  }

  .menu-toggle {
    display: block;
  }

  .header-right {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
	
  footer {
    width: 100%;
    margin: 0;
  }
}

/* =========================================================
   ALAP FOOTER – DESKTOP ( > 950px )
   Layout:
   left (2 rows) | center (2 rows) | right
                  copyright under right
   ========================================================= */
footer {
  width: calc(100% - 500px);   /* oldalsó minták miatt */
  margin: 0 auto;
  padding: 20px;
  background: transparent;
  border-top: 1px solid #ccc;
  text-align: left;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    "left center right"
    "left center copyright";
  row-gap: 5px;     /* kisebb függőleges távolság */
  column-gap: 20px; /* vízszintes térköz marad */
  max-width: 1200px;
  margin: 0 auto;
}

/* Területek hozzárendelése */
.footer-left       { grid-area: left; }
.footer-center     { grid-area: center; }
.footer-right      { grid-area: right; }
.footer-copyright  { grid-area: copyright; }

/* Left nyúljon le 2 sorra */
.footer-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
}

/* Alap méretek */
.footer-inner > div {
  min-width: 200px;
}

/* Copyright blokk desktopon */
.footer-copyright {
  font-size: 13px;
  color: #666;
  margin-top: 10px;
  text-align: left;
}


/* =========================================================
   TABLET NÉZET ( ≤ 950px )
   Layout:
   left | right
   copyright | center
   ========================================================= */
@media (max-width: 950px) {

  footer {
    width: 100%;   /* oldalsó minták eltűnnek */
  }

  .footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "left right"
      "copyright center";
    row-gap: 5px;
    column-gap: 15px;
  }

  .footer-left       { grid-area: left; }
  .footer-right      { grid-area: right; }
  .footer-copyright  { grid-area: copyright; }
  .footer-center     { grid-area: center; }
}

.footer-logo {
  width: 100px;          /* fix vagy tetszőleges méret */
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px auto;   /* <<< KÖZÉPRE IGAZÍTJA */
}


/* =========================================================
   MOBIL NÉZET ( ≤ 768px )
   Layout:
   center
   right
   left
   copyright
   ========================================================= */
@media (max-width: 768px) {

  .footer-inner {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .footer-center     { order: 1; }
  .footer-right      { order: 2; }
  .footer-left       { order: 3; }
  .footer-copyright  {
    order: 4;
    text-align: center;
    margin-top: 0;
  }

  .footer-inner > div {
    width: 100%;
    margin: 5px 0; /* kisebb függőleges távolság */	  
  }
}
