* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, Helvetica, sans-serif; color: #000; background: #fff; line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* Fejléc */
.hero-image {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: 140px;
  margin: 0 auto;
  background: #ddd url("images/fejlec.png") center center / cover no-repeat;
}

nav { border-bottom: 1px solid #e5e7eb; background: #fff; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: center; height: 64px; position: relative; }

.menu { display: flex; gap: 8px; }
.menu-item { position: relative; }
.menu-btn { display: flex; align-items: center; gap: 4px; padding: 8px 12px; font-size: 14px; font-weight: 500; background: none; border: none; cursor: pointer; }
.menu-btn .arrow { font-size: 12px; }
.dropdown { display: none; position: absolute; right: 0; top: 100%; min-width: 280px; background: #fff; border: 1px solid #e5e7eb; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); padding: 4px 0; z-index: 50; }
/* Nagy képernyőn hoverre nyílik, mobilon csak koppintásra. */
@media (min-width: 901px) {
  .menu-item:hover .dropdown { display: block; }
}
.dropdown a { display: block; padding: 8px 16px; font-size: 14px; }
.dropdown a:hover { background: #f3f4f6; }

/* Mobil hamburger menü */
.nav-toggle { display: none; }
.nav-toggle-btn { display: none; }

@media (max-width: 900px) {
  .nav-inner { flex-wrap: wrap; height: auto; min-height: 64px; padding: 8px 16px; justify-content: flex-end; }
  .nav-toggle-btn { display: block; position: static; font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 6px; }
  .menu { display: none; }
  .nav-toggle:checked ~ .menu { display: flex; flex-direction: column; gap: 0; position: static; flex: 0 0 100%; width: 100%; background: #fff; border-top: 1px solid #e5e7eb; margin-top: 8px; padding: 4px 0; }
  .menu-item { width: 100%; }
  .menu > .menu-btn { display: block; width: 100%; padding: 12px 16px; border-bottom: 1px solid #f3f4f6; }
  .menu-item .menu-btn { width: 100%; justify-content: space-between; padding: 12px 16px; font-weight: 600; }
  .menu .dropdown { display: none; position: static; min-width: 0; border: none; border-radius: 0; box-shadow: none; padding: 0 0 8px 0; }
  .menu-item.open .dropdown { display: block; }
  .menu-item > .menu-btn .arrow { display: inline-block; transition: transform 0.15s; }
  .menu-item.open > .menu-btn .arrow { transform: rotate(180deg); }
  .menu .dropdown a { padding: 8px 16px 8px 28px; font-size: 13px; color: #4b5563; }
}

/* Tartalom */
main { max-width: 1100px; margin: 0 auto; padding: 64px 16px; }
main h1 { font-size: 24px; margin-bottom: 16px; }
main p { color: #6b7280; }

.home-content { min-height: calc(100vh - 140px - 64px - 100px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 32px; }
.home-content h1 { font-size: 30px; }
.home-link { padding: 12px 24px; background: #000; color: #fff; border-radius: 4px; }

/* Szolgáltatás panelek */
.panel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; max-width: 1100px; }
.panel { display: block; border: 1px solid #e5e7eb; border-radius: 4px; overflow: hidden; background: #fff; transition: box-shadow 0.2s; }
.panel:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.panel span { display: block; padding: 12px 16px; font-size: 14px; font-weight: 600; color: #000; }
@media (max-width: 900px) { .panel-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 560px) { .panel-grid { grid-template-columns: 1fr; } }

/* Kapcsolat */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.contact-card { border: 1px solid #e5e7eb; border-radius: 4px; padding: 24px; }
.contact-card h2 { font-size: 18px; margin-bottom: 12px; }
.contact-card p { color: #000; margin-bottom: 6px; }
.contact-card a { color: #000; text-decoration: underline; }
.office-map { display: block; width: 100%; height: 220px; border: 0; border-top: 1px solid #e5e7eb; margin-top: 16px; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

/* Cégadatok */
.company-info { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; }
.company-info dt { font-weight: 600; }
.company-info dd { color: #000; }
@media (max-width: 640px) {
  .company-info { grid-template-columns: 1fr; gap: 2px; }
  .company-info dd { margin-bottom: 10px; }
}

/* Támogatási projekt oldal */
main h2 { font-size: 20px; margin: 32px 0 16px; }
.project-figure { display: flex; justify-content: center; margin: 32px 0; }
.project-figure img { width: 350px; max-width: 100%; height: auto; }
.project-figure img.project-banner { width: 520px; }
.project-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.project-stat { border: 1px solid #e5e7eb; border-radius: 4px; padding: 16px; }
.project-stat span { display: block; font-size: 13px; color: #6b7280; margin-bottom: 4px; }
.project-stat strong { font-size: 18px; }
.project-body p { color: #000; margin-bottom: 16px; }
.project-deadline { border: 1px solid #e5e7eb; background: #f6f7f9; border-radius: 4px; padding: 16px; }
main h3 { font-size: 17px; margin: 24px 0 12px; }
main h4 { font-size: 15px; margin-bottom: 8px; }
.project-item { border: 1px solid #e5e7eb; border-radius: 4px; padding: 16px; margin-bottom: 16px; }
.project-item .employee-count { font-size: 13px; color: #6b7280; margin-bottom: 0; }
@media (max-width: 640px) { .project-stats { grid-template-columns: 1fr; } }

/* Lábléc */
footer { background: #808080; color: #fff; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 10px 16px; font-size: 14px; text-align: center; }

/* 404 – nem található oldal */
.notfound { min-height: calc(100vh - 140px - 64px - 100px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 56px 16px; }
.notfound-code { font-size: 64px; font-weight: 700; line-height: 1; color: #d1d5db; }
.notfound h1 { font-size: 24px; margin: 12px 0 8px; }
.notfound p { max-width: 520px; }
.notfound-link { display: inline-block; margin-top: 24px; padding: 14px 32px; min-width: 240px; background: #000; color: #fff; border-radius: 4px; font-size: 16px; font-weight: 600; text-align: center; }
.notfound-link:hover { background: #1f2937; }
@media (max-width: 560px) {
  .notfound { padding: 40px 16px; }
  .notfound-code { font-size: 52px; }
  .notfound-link { display: block; width: 100%; max-width: 320px; }
}