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

:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --text: #333;
  --muted: #666;
  --muted-2: #777;
  --border: #e6e6e6;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 1px 6px rgba(0, 0, 0, 0.06);
  --brand: #2b6cb0;
  --brand-hover: #1e4e8c;
  --nav-h: 84px;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

body {
  font-family: Cambria, Georgia, "Times New Roman", Times, serif;
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
}

a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.14em;
  text-decoration-color: rgba(43, 108, 176, 0.5);
}

a:visited {
  color: var(--brand);
}

a:hover,

a:focus-visible {
  color: var(--brand-hover);
  text-decoration-color: rgba(30, 78, 140, 0.9);
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  transform: translateY(-140%);
  transition: transform 140ms ease;
  z-index: 9999;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  border-radius: 12px;
}

.brand:focus-visible {
  outline: 3px solid rgba(43, 108, 176, 0.55);
  outline-offset: 4px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-title strong {
  font-size: 1rem;
  color: var(--text);
}

.brand-title span {
  font-size: 0.85rem;
  color: var(--muted);
}


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

.nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(43, 108, 176, 0.10);
  color: var(--brand-hover);
}

.nav a[aria-current="page"] {
  background: rgba(43, 108, 176, 0.14);
  color: var(--brand-hover);
  font-weight: 700;
}

.main {
  max-width: 1020px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem 1rem;
}

.card {
  width: 100%;
  background-color: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 2rem;
  margin: 1.35rem 0;
}

.hero {
  padding: 2.25rem 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: center;
}

.hero-grid--single {
  grid-template-columns: 1fr;
}

.hero-grid--media {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.hero-grid--balanced {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.hero-grid--balanced .hero-media {
  display: flex;
  justify-content: center;
}

.hero-grid--balanced .hero-media img {
  max-width: 300px;
}

.contact-layout {
  align-items: start;
}

.contact-layout .hero-media img {
  border: 0;
  box-shadow: none;
}

.intro-logo-layout {
  align-items: start;
}

.intro-copy p {
  text-align: justify;
}

.intro-copy p:first-child {
  margin-top: 0;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.intro-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: start;
  margin: 0;
}

.intro-logo img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  object-fit: contain;
}

.tanacsadas-flow::after {
  content: "";
  display: table;
  clear: both;
}

.tanacsadas-flow ul {
  margin-top: 0.05rem;
  margin-left: 0;
  padding-left: 1rem;
}

.section-anchor-link {
  margin: -0.2rem 0 0.65rem 0;
}

.section-anchor-link a {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(43, 108, 176, 0.24);
  background: rgba(43, 108, 176, 0.08);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.2;
}

.section-anchor-link a:hover,
.section-anchor-link a:focus-visible {
  background: rgba(43, 108, 176, 0.14);
  border-color: rgba(30, 78, 140, 0.4);
}

.tanacsadas-figure {
  float: right;
  width: 42%;
  max-width: 360px;
  min-width: 220px;
  margin: 0.25rem 0 1rem 1.5rem;
}

.tanacsadas-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.hero-media {
  margin: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--text);
  background: #fff;
  font-weight: 700;
}

.btn-primary {
  background: rgba(43, 108, 176, 0.12);
  border-color: rgba(43, 108, 176, 0.22);
  color: var(--brand-hover);
}

.btn:hover,
.btn:focus-visible {
  border-color: rgba(43, 108, 176, 0.45);
}

h1 {
  color: var(--text);
  font-size: 2.5rem;
  margin: 0 0 1rem 0;
}

h2 {
  color: #444;
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h3 {
  color: var(--text);
  font-size: 1.15rem;
  margin: 0;
}

p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: left;
}

ul {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: left;
  list-style-position: inside;
}

ol {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: left;
  list-style-position: inside;
}

ul ul {
  margin-left: 2rem;
  list-style-type: disc;
}

.muted {
  color: var(--muted);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0 0;
  padding: 0;
  list-style: none;
}

.pill {
  display: inline-flex;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--muted);
  font-size: 0.95rem;
}

.contact {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.contact strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.15rem;
}

.contact-title {
  margin: 0;
}

.contact-links {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.25rem;
}

.contact a {
  word-break: break-word;
}

.site-footer {
  max-width: 1020px;
  margin: 0 auto 2rem auto;
  padding: 0 1rem;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
  padding-top: 0.5rem;
  color: rgba(51, 51, 51, 0.62);
  font-size: 0.95rem;
}

.site-footer-inner a {
  color: rgba(51, 51, 51, 0.62);
  text-decoration-color: rgba(51, 51, 51, 0.28);
}

.site-footer-inner a:hover,
.site-footer-inner a:focus-visible {
  color: rgba(30, 78, 140, 0.82);
  text-decoration-color: rgba(30, 78, 140, 0.45);
}

.bemutatkozas-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-top: 1.5rem;
}

.home-intro {
  margin-top: 1.5rem;
  align-items: start;
  margin-bottom: 0;
  gap: 1.25rem;
}

.home-intro .bemutatkozas-collage {
  max-width: 340px;
}

.bemutatkozas-szoveg {
  flex: 1 1 360px;
  min-width: 280px;
}

.bemutatkozas-szoveg p {
  text-align: justify;
}

.home-intro-copy p {
  margin: 0;
}

.home-intro-copy p + p {
  margin-top: 0.35rem;
}

.home-intro-copy p:first-of-type + p {
  margin-top: 1rem;
}

.home-intro-copy p:last-child {
  margin-bottom: 0;
}

.szolgaltatasok-block {
  margin-top: 1.6rem;
}

.szolgaltatasok-block h2 {
  margin-top: 0;
  margin-bottom: 1.1rem;
}

.szolgaltatasok-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.2rem;
}

.szolgaltatasok-item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1rem 0.9rem 1rem;
  background: #fff;
}

.szolgaltatasok-item h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.szolgaltatasok-item p {
  margin: 0;
}

.szolgaltatasok-item p + p {
  margin-top: auto;
  padding-top: 0.65rem;
}

.home-intro + p {
  margin-top: 0.35rem;
}

.bemutatkozas-collage {
  display: block;
  flex: 1 1 360px;
  min-width: 280px;
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  object-fit: cover;
}

.events {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.event-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.event-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.event-image {
  display: block;
  width: min(420px, 40%);
  max-width: 420px;
  height: auto;
  flex: 0 0 auto;
  object-fit: cover;
}

.event-body {
  padding: 1rem;
}

.event-meta {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: var(--muted-2);
}

.map {
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.map iframe {
  display: block;
  width: 100%;
  height: min(420px, 70vh);
  border: 0;
}

.gallery {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}


.gallery a {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 1 1 calc(25% - 0.8rem);
  max-width: calc(25% - 0.8rem);
}

.gallery figure {
  margin: 0;
}

.gallery img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.gallery a:hover img,
.gallery a:focus-visible img {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

@media (max-width: 900px) {
  .hero-grid,
  .hero-grid--media,
  .hero-grid--balanced {
    grid-template-columns: 1fr;
  }

  .szolgaltatasok-grid {
    grid-template-columns: 1fr;
  }

  .tanacsadas-figure {
    float: none;
    width: 100%;
    max-width: 420px;
    margin: 1rem auto 1.25rem auto;
  }

  .bemutatkozas-szoveg,
  .bemutatkozas-collage {
    flex-basis: 100%;
    min-width: 0;
  }

  .gallery a {
    flex: 1 1 calc(50% - 0.8rem);
    max-width: calc(50% - 0.8rem);
  }
  .gallery img {
    height: 200px;
  }
}

@media (max-width: 520px) {
  .site-footer-inner {
    justify-content: flex-start;
  }

  .gallery a {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .gallery img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

body.lightbox-open {
  overflow: hidden;
}

.pp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.86);
}

.pp-lightbox__content {
  position: relative;
  width: min(1100px, 96vw);
}

.pp-lightbox__close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(20, 20, 20, 0.6);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}

.pp-lightbox__close:hover,
.pp-lightbox__close:focus-visible {
  background: rgba(20, 20, 20, 0.82);
  outline: 3px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.pp-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(20, 20, 20, 0.6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.pp-lightbox__prev {
  left: -0.5rem;
}

.pp-lightbox__next {
  right: -0.5rem;
}

.pp-lightbox__nav:hover,
.pp-lightbox__nav:focus-visible {
  background: rgba(20, 20, 20, 0.82);
  outline: 3px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.pp-lightbox__nav[disabled],
.pp-lightbox__nav[aria-disabled="true"] {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 600px) {
  .pp-lightbox__prev {
    left: 0.25rem;
  }

  .pp-lightbox__next {
    right: 0.25rem;
  }
}

.pp-lightbox__figure {
  margin: 0;
}

.pp-lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.pp-lightbox__caption {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-inner {
    flex-wrap: wrap;
  }

  .brand {
    flex: 1 0 100%;
  }

  .nav {
    flex: 1 0 100%;
    justify-content: flex-start;
    gap: 0.25rem;
    padding-bottom: 0.25rem;
  }

  .nav a {
    padding: 0.6rem 0.7rem;
    border-radius: 999px;
  }
}

@media (max-width: 600px) {
  .main {
    padding: 1rem 1rem 2.25rem 1rem;
  }

  .card {
    padding: 1.25rem;
    border-radius: 12px;
    margin: 1rem 0;
  }

  .hero {
    padding: 1.5rem 1.25rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
  }

  h3 {
    font-size: 1.05rem;
  }

  p,
  ul {
    font-size: 1rem;
  }

  ul {
    line-height: 1.7;
  }

  .contact {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }
}

@media (max-width: 700px) {
  .event-card {
    flex-direction: column;
    align-items: stretch;
  }

  .event-image {
    width: 100%;
    max-width: none;
    height: auto;
    flex: 0 0 auto;
  }
}
