* { box-sizing: border-box; }
html { width: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-y: scroll; scrollbar-gutter: stable; background: #000; }
body { width: 100%; min-height: calc(100vh + 2px); margin: 0; overflow-x: hidden; font-family: Arial, sans-serif; background: #000; color: #fff; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { overflow-wrap: anywhere; }
a:focus-visible { outline: 2px solid #ffcc00; outline-offset: 4px; }

/* A fejléc mérete és képernyőn elfoglalt helye minden asztali oldalon azonos. */
.dark-header { position: relative; width: 100%; height: 300px; min-height: 300px; background: #000; overflow: hidden; }
.header-inner, .dark-header > .container { width: 100% !important; max-width: none !important; height: 300px !important; margin: 0 !important; padding: 0 !important; }
.site-logo, .dark-header > .container > img { position: absolute; top: 35px; left: 50vw; transform: translateX(-50%); display: block; width: 460px; height: 160px; object-fit: contain; margin: 0; }
.dark-header nav { position: absolute !important; top: 217px; left: 50vw !important; transform: translateX(-50%) !important; width: 810px; max-width: calc(100vw - 32px); height: 54px; text-align: center; }
.dark-header nav ul { height: 54px; list-style: none; display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 26px; margin: 0; padding: 0; white-space: nowrap; }
.dark-header nav li { flex: 0 0 auto; margin: 0; padding: 0; }
.dark-header nav a { display: block; padding: 8px 0; color: #fff; text-decoration: none; font-size: 24px; line-height: 1.25; font-weight: 400; transition: color .3s ease; }
.dark-header nav a:hover { color: #ff0000; }

.container { width: 1040px; max-width: calc(100vw - 32px); margin: 0 auto; padding: 20px 8px; }
/* A háttér a képernyőhöz igazodik, ezért a tartalom hosszától függetlenül minden oldalon ugyanaz. */
.hero { width: 100%; min-height: calc(100vh - 300px); margin: 0; background-color: #000; background-image: url('images/hero-bg.jpg'); background-position: center top; background-size: cover; background-repeat: no-repeat; background-attachment: fixed; color: #fff; text-align: center; padding: 40px 0 60px; }
.hero > .container { width: 1040px; max-width: calc(100vw - 32px); min-height: 200px; margin: 0 auto; padding: 20px 8px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 auto 24px; }
.hero p { max-width: 960px; margin: 0 auto; font-size: 1.2rem; overflow-wrap: anywhere; }
.hero p img { vertical-align: middle; }
.cta-button { display: inline-block; padding: 10px 20px; background: #ffcc00; color: #121212; text-decoration: none; border-radius: 5px; transition: background-color .3s ease; }
.cta-button:hover { background: #f2b900; }
.dark-footer { background: #000; padding: 20px 0; text-align: center; }
.footer-icons { margin-top: 20px; }
.footer-icons a { display: inline-block; margin: 0 10px; }
.footer-icons a img { width: 50px; }
.styled-table { width: 100%; max-width: 960px; table-layout: fixed; border-collapse: collapse; margin: 20px auto; }
.styled-table th, .styled-table td { padding: 10px 12px; text-align: center; vertical-align: top; overflow-wrap: anywhere; }
.styled-table td:first-child { width: 24%; white-space: nowrap; }
.styled-table th { background: #f2f2f2; color: #333; }
.embed { max-width: 100%; margin: 0 auto; }
.embed-video iframe { display: block; width: 100%; height: auto; aspect-ratio: var(--embed-ratio); border: 0; }
.embed-post { overflow-x: auto; }
.embed-post iframe { display: block; max-width: none; margin: 0 auto; border: 0; }
.embed-link { display: block; margin: 8px auto 16px; color: #fff; font-size: .9rem; }

@media (max-width: 850px) {
  .dark-header { height: auto !important; min-height: 0 !important; overflow: visible; }
  .header-inner, .dark-header > .container { width: 100% !important; max-width: 100% !important; height: auto !important; padding: 18px 16px 20px !important; }
  .site-logo, .dark-header > .container > img { position: static; transform: none; width: min(460px, 100%); height: auto; aspect-ratio: 500 / 174; margin: 0 auto 16px; }
  .dark-header nav { position: static !important; top: auto !important; left: auto !important; transform: none !important; width: 100% !important; max-width: 100% !important; height: auto !important; }
  .dark-header nav ul { width: 100%; height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; white-space: normal; }
  .dark-header nav a { font-size: 18px; padding: 10px 4px; }
  .container, .hero > .container { width: 100%; max-width: calc(100vw - 24px); padding: 16px 0; }
  .hero { min-height: calc(100vh - 360px); padding: 24px 0 40px; background-attachment: scroll; background-size: auto 725px; }
  .hero p { font-size: 1rem; }
  .styled-table { font-size: .875rem; }
  .styled-table th, .styled-table td { padding: 10px 4px; }
  .styled-table td:first-child { width: 30%; }
}
