:root {
  --bg: #f4f7f6;
  --bg-alt: #e8efed;
  --surface: #ffffff;
  --ink: #14201e;
  --muted: #4a5c58;
  --brand: #0b3d3a;
  --brand-2: #165e59;
  --accent: #c9860d;
  --accent-soft: #f3e4c4;
  --line: #d5e0dd;
  --ok: #1a7a4c;
  --radius: 6px;
  --shadow: 0 8px 28px rgba(11, 61, 58, 0.08);
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max: 1100px;
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    linear-gradient(180deg, #eef4f2 0%, var(--bg) 220px),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--brand);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
  color: var(--muted);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 247, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--brand);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand img {
  width: 40px;
  height: 40px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--bg-alt);
  color: var(--brand);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--brand);
  margin: 4px auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.75rem 1.15rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-2);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
}

.btn-secondary:hover {
  background: var(--bg-alt);
  color: var(--brand);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: #b0740a;
  color: #fff;
}

/* Hero */
.hero {
  padding: 3.2rem 0 2.4rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(200, 134, 13, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(11, 61, 58, 0.08), transparent 50%);
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: end;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  max-width: 16ch;
  margin-bottom: 0.5rem;
}

.hero .lead {
  font-size: 1.08rem;
  max-width: 42ch;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.meta-list li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.92rem;
}

.meta-list strong {
  color: var(--brand);
}

.meta-list span,
.meta-list a {
  color: var(--muted);
  text-decoration: none;
}

.meta-list a:hover {
  color: var(--accent);
}

/* Sections */
section {
  padding: 3rem 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head p {
  max-width: 55ch;
}

.grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.topic {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.topic h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.topic p {
  margin: 0;
  font-size: 0.95rem;
}

/* Visual media */
.visual-bleed {
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.visual-bleed img {
  width: 100%;
  max-height: min(52vh, 480px);
  object-fit: cover;
}

.media-caption {
  width: min(100% - 2rem, var(--max));
  margin: 0.65rem auto 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

.gallery-item {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
  text-align: left;
  font: inherit;
  color: inherit;
  display: block;
  width: 100%;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.03);
}

.gallery-item figcaption,
.gallery-item .cap {
  display: block;
  padding: 0.65rem 0.8rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
}

.tab-media {
  margin: 0 0 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.tab-media img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}

.about-visual {
  margin: 0 0 1.4rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.about-visual img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 28, 0.72);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  background: var(--surface);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.lightbox-dialog img {
  width: 100%;
  max-height: min(78vh, 640px);
  object-fit: contain;
  background: #0b3d3a;
}

.lightbox-dialog p {
  margin: 0;
  padding: 0.85rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.lightbox-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  border: 0;
  background: rgba(244, 247, 246, 0.92);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--brand);
}

.band {
  background: var(--brand);
  color: #e8f2f0;
}

.band h2,
.band p {
  color: inherit;
}

.band p {
  opacity: 0.88;
}

.band .btn-secondary {
  border-color: #cde4df;
  color: #fff;
}

.band .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Accordion */
.accordion {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.acc-item + .acc-item {
  border-top: 1px solid var(--line);
}

.acc-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 1rem 1.1rem;
  font: inherit;
  font-weight: 700;
  color: var(--brand);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.acc-btn::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
}

.acc-btn[aria-expanded="true"]::after {
  content: "–";
}

.acc-panel {
  display: none;
  padding: 0 1.1rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.acc-panel.open {
  display: block;
}

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tab-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn[aria-selected="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.tab-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.tab-panel.active {
  display: block;
}

/* Forms */
.form {
  display: grid;
  gap: 0.85rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.form-success {
  display: none;
  padding: 0.9rem 1rem;
  background: #e7f6ee;
  border: 1px solid #b7e0c8;
  color: var(--ok);
  border-radius: var(--radius);
  font-weight: 600;
}

.form-success.show {
  display: block;
}

/* Contact blocks */
.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.contact-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.contact-block h3 {
  font-size: 1.05rem;
}

.contact-block ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.contact-block li + li {
  margin-top: 0.35rem;
}

/* Legal */
.legal {
  padding: 2.5rem 0 3.5rem;
}

.legal article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.legal h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.legal h2 {
  font-size: 1.15rem;
  margin-top: 1.6rem;
}

.legal ul {
  color: var(--muted);
  padding-left: 1.2rem;
}

.legal li + li {
  margin-top: 0.35rem;
}

.updated {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

/* Vacancies */
.job {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.job summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 700;
  color: var(--brand);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.job summary::-webkit-details-marker {
  display: none;
}

.job summary::after {
  content: "Megnyitás";
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.job[open] summary::after {
  content: "Bezárás";
}

.job-body {
  padding: 0 1.1rem 1.1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 28, 0.55);
}

.modal-dialog {
  position: relative;
  width: min(100%, 480px);
  background: var(--surface);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: 0;
  background: var(--bg-alt);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--brand);
}

/* Cookie */
.cookie-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 150;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: none;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 900px;
  margin-inline: auto;
}

.cookie-bar.show {
  display: flex;
}

.cookie-bar p {
  margin: 0;
  flex: 1 1 260px;
  font-size: 0.9rem;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #0b3d3a;
  color: #d7e8e5;
  padding: 2.4rem 0 1.4rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.4fr 1fr 1fr;
  margin-bottom: 1.6rem;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-size: 1rem;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: #c5d9d5;
  font-size: 0.92rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: #f0c56a;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #a9c4bf;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 300;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

@media (max-width: 860px) {
  .grid-3,
  .contact-grid,
  .footer-grid,
  .grid-2,
  .gallery {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0.9rem;
  }

  .meta-list li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .hero {
    padding-top: 2.2rem;
  }
}

@media (min-width: 861px) {
  .hero-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
