:root {
  /* Mezőgazdasági: zöld + aranysárga (sablon-szerű, letisztult) */
  --bg: #f4f6f0;
  --bg-alt: linear-gradient(160deg, #e5ede4 0%, #f2ead6 48%, #e8f0e6 100%);
  --bg-alt-solid: #e9ede6;
  --text: #152117;
  --muted: #4a5642;
  --primary: #1a4d28;
  --primary-hover: #143d20;
  --primary-soft: #2d6b3c;
  --accent: #c8941e;
  --accent-hover: #d9a728;
  --accent-muted: #9a7416;
  --gold-glow: rgba(200, 148, 30, 0.38);
  --card: #fffcf7;
  --card-edge: rgba(26, 77, 40, 0.07);
  --border: #c0c9b6;
  --border-warm: #d0c49a;
  --radius: 20px;
  --radius-sm: 12px;
  --font: "DM Sans", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-display: "Outfit", var(--font);
  --shadow-soft: 0 4px 30px rgba(21, 33, 23, 0.08);
  --shadow-card: 0 12px 40px rgba(26, 77, 40, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(rgba(45, 107, 60, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

h1,
h2,
h3,
.section-kicker,
.logo-text,
.stat-value,
.cta-title {
  font-family: var(--font-display);
}

.wrap {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.narrow {
  width: min(820px, calc(100% - 2rem));
  margin-inline: auto;
}

/* —— Fel a tetejére (úszó gomb) —— */
.scroll-top {
  position: fixed;
  z-index: 95;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(208, 196, 154, 0.75);
  border-radius: 50%;
  cursor: pointer;
  color: #f8f1d8;
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-soft) 48%, #143d22 100%);
  box-shadow:
    0 4px 18px rgba(26, 77, 40, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.6rem) scale(0.92);
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s ease,
    box-shadow 0.2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-top:hover {
  border-color: var(--accent);
  color: #fffef5;
  box-shadow:
    0 6px 26px rgba(200, 148, 30, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.scroll-top:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top {
    transition: opacity 0.15s ease, visibility 0.15s ease;
  }

  .scroll-top.is-visible {
    transform: none;
  }
}

/* —— Fejléc —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 246, 240, 0.92);
  border-bottom: 1px solid rgba(192, 201, 182, 0.6);
  box-shadow: 0 4px 24px rgba(21, 33, 23, 0.04);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--primary);
}

.logo-img {
  display: block;
  flex-shrink: 0;
  height: clamp(40px, 8vw, 52px);
  width: auto;
  max-width: min(160px, 38vw);
  object-fit: contain;
  object-position: left center;
}

.logo-text {
  font-weight: 800;
  font-size: clamp(0.9rem, 2.6vw, 1.08rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: min(300px, 50vw);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--primary);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-main a {
  color: var(--text);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav-main a:hover {
  background: rgba(26, 77, 40, 0.08);
  color: var(--primary);
}

.nav-cta {
  background: linear-gradient(180deg, #e8c03d 0%, var(--accent) 100%) !important;
  color: #142016 !important;
  font-weight: 700 !important;
  margin-left: 0.35rem;
  box-shadow: 0 2px 12px var(--gold-glow);
}

.nav-cta:hover {
  filter: brightness(1.05);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .nav-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 88vw);
    max-height: 100vh;
    padding: 5.5rem 1.25rem 2rem;
    background: var(--card);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 99;
    overflow-y: auto;
  }

  .nav-drawer.is-open {
    transform: translateX(0);
  }

  .nav-main {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-main a {
    border-radius: var(--radius-sm);
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
  }
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 97;
  background: rgba(21, 33, 23, 0.5);
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

body.nav-open .nav-backdrop {
  display: block;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(71vh, 680px);
  display: flex;
  align-items: flex-end;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
}

/* Hero háttér: több kép, lásd site.js (váltás) */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg-alt-solid);
}

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.15s ease-in-out;
  pointer-events: none;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: opacity 0.01s;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(18, 35, 22, 0.92) 0%,
    rgba(26, 48, 30, 0.55) 45%,
    rgba(40, 62, 38, 0.35) 100%
  );
}

.hero-grid {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-content {
  max-width: 38rem;
  color: #fff;
  margin-left: clamp(0.35rem, 2.2vw, 1.5rem);
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
  color: #f3e4a8;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.1rem, 5.5vw, 3.55rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-shadow:
    0 3px 28px rgba(0, 0, 0, 0.45),
    0 0 48px rgba(200, 148, 30, 0.12);
}

.hero-lead {
  margin: 0;
  max-width: 36ch;
  opacity: 0.94;
  font-size: 1.14rem;
  line-height: 1.55;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-lg {
  padding: 0.9rem 1.85rem;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(180deg, #e8c03d 0%, var(--accent) 100%);
  color: #142016;
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #f0cc4a 0%, var(--accent-hover) 100%);
  box-shadow: 0 6px 24px rgba(200, 148, 30, 0.45);
}

.btn-ghost {
  border-color: rgba(255, 248, 220, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
  background: rgba(243, 228, 168, 0.14);
  border-color: rgba(243, 228, 168, 0.55);
}

/* —— Stat sáv —— */
.stats-strip {
  position: relative;
  z-index: 3;
  margin-top: -2.5rem;
  margin-bottom: 0;
}

/* Mobil: a stat kártya továbbra is belelóg a heróba; a szöveget feljebb toljuk (nagyobb alsó padding → flex-end) */
@media (max-width: 768px) {
  .hero {
    padding-bottom: clamp(3.6rem, 11vw, 5rem);
  }
}

@media (max-width: 600px) {
  .hero {
    padding-bottom: clamp(4rem, 13vw, 5.75rem);
  }

  .hero-lead {
    max-width: none;
    font-size: clamp(1rem, 3.8vw, 1.12rem);
    line-height: 1.45;
  }
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(208, 196, 154, 0.55);
}

.stat-item {
  text-align: center;
  padding: 0.35rem;
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.4rem;
  color: var(--accent-muted);
  line-height: 0;
}

.stat-icon svg {
  width: clamp(1.45rem, 3.2vw, 1.75rem);
  height: clamp(1.45rem, 3.2vw, 1.75rem);
  opacity: 0.92;
  filter: drop-shadow(0 1px 2px rgba(26, 77, 40, 0.08));
}

.stat-value {
  display: block;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.stat-count {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  min-width: 2.75ch;
}

.stat-count--done {
  animation: stat-count-pop 0.5s ease-out;
}

@keyframes stat-count-pop {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.07);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stat-count--done {
    animation: none;
  }
}

.stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}

@media (max-width: 900px) {
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-inner {
    grid-template-columns: 1fr;
  }
}

/* —— Szekciók —— */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-alt {
  background-color: var(--bg-alt-solid);
  background-image: var(--bg-alt);
  background-size: 100% 100%;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-muted);
  margin: 0 0 0.5rem;
}

.section-kicker.light {
  color: #f5e6b0;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.grid-2 {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 880px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.about-grid .about-prose {
  padding-top: 0.25rem;
}

.about-facts-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

/* —— Szervezeti ábra (#szervezet) —— */
.org-chart {
  max-width: 58rem;
  margin: 0 auto;
  text-align: center;
  padding: 0.35rem 0 0.25rem;
}

.org-chart__levels {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
  margin-bottom: 0.35rem;
}

.org-chart__level {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Igazgatóság + Szakmai vezetés egy sorban — ugyanaz a középre igazítás, mint a többi szintnél */
.org-chart__level--pair {
  flex-wrap: wrap;
  gap: 0.95rem;
}

.org-chart__box {
  padding: 0.75rem 1rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  min-width: min(100%, 17rem);
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--border-warm);
  box-shadow:
    0 2px 10px rgba(26, 77, 40, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  text-align: center;
  hyphens: none;
  -webkit-hyphens: none;
}

.org-chart__label {
  display: block;
  width: 100%;
  line-height: 1.45;
}

.org-chart__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0 auto;
  border-radius: 999px;
  font-size: 1.05rem;
  line-height: 1;
  background: linear-gradient(160deg, rgba(45, 107, 60, 0.12) 0%, rgba(200, 148, 30, 0.1) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.org-chart__box--top,
.org-chart__box--middle,
.org-chart__box--lead {
  color: var(--text);
  font-size: 0.98rem;
}

/* Első sor: 3 kártya, második sor: 4 (12 oszlop: 4+4+4, majd 3+3+3+3) */
.org-chart__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.org-chart__box--sub:nth-child(1) {
  grid-column: 1 / span 4;
}

.org-chart__box--sub:nth-child(2) {
  grid-column: 5 / span 4;
}

.org-chart__box--sub:nth-child(3) {
  grid-column: 9 / span 4;
}

.org-chart__box--sub:nth-child(4) {
  grid-column: 1 / span 3;
}

.org-chart__box--sub:nth-child(5) {
  grid-column: 4 / span 3;
}

.org-chart__box--sub:nth-child(6) {
  grid-column: 7 / span 3;
}

.org-chart__box--sub:nth-child(7) {
  grid-column: 10 / span 3;
}

@media (max-width: 52rem) {
  .org-chart__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .org-chart__box--sub:nth-child(n) {
    grid-column: auto;
  }
}

@media (max-width: 22rem) {
  .org-chart__grid {
    grid-template-columns: 1fr;
  }
}

.org-chart__box--sub {
  width: 100%;
  min-width: 0;
  font-weight: 500;
  color: var(--text);
  font-size: 0.92rem;
  padding: 0.65rem 0.5rem 0.75rem;
  box-sizing: border-box;
}

.prose-large {
  font-size: 1.09rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.65rem;
  box-shadow: var(--shadow-soft);
}

.card-facts h3 {
  margin-top: 0;
}

.facts h3 {
  color: var(--primary);
}

.facts-photo-wrap {
  margin: 0 0 1.05rem;
}

.facts-photo-above,
.facts-photo-below {
  margin: 0;
}

.facts-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(21, 33, 23, 0.06);
}

.fact-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.fact-list dt {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fact-list dt:first-child {
  margin-top: 0;
}

.fact-list dd {
  margin: 0;
  font-weight: 500;
}

.activity-bullets {
  margin-top: 1rem;
  padding-top: 0.15rem;
}

/* —— Tevékenység kártyák —— */
.cards-services {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .cards-services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-services {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-service {
  position: relative;
  padding-top: 2.75rem;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.25s;
}

a.card-service {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.card-service:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Teljes szélességű felső sáv: a szülő overflow + a .card border-radius levágja a sarkokat */
.card-service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 3;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary-soft) 100%);
  opacity: 0.88;
}

.card-service--hover-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image: var(--card-hover-image);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.38s ease;
}

.card-service--hover-bg:hover::after,
.card-service--hover-bg:focus-visible::after {
  opacity: var(--card-hover-opacity, 0.045);
}

@media (prefers-reduced-motion: reduce) {
  .card-service--hover-bg::after {
    transition: none;
  }
}

.card-service > * {
  position: relative;
  z-index: 1;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-warm);
}

.service-num {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(26, 77, 40, 0.09);
  user-select: none;
}

.card-service h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  padding-right: 3rem;
  color: var(--text);
}

a.card-service:hover h3,
a.card-service:focus-visible h3 {
  color: var(--primary-soft);
}

.service-summary {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.more {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent-muted);
  text-decoration: none;
}

a.card-service:hover .more,
a.card-service:focus-visible .more {
  color: var(--primary);
}

/* —— CTA sáv —— */
.section-cta {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: linear-gradient(125deg, #1a3d24 0%, #234d2f 42%, #1e351f 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: "";
  position: absolute;
  right: -20%;
  top: -40%;
  width: 50%;
  height: 180%;
  background: radial-gradient(circle, rgba(200, 148, 30, 0.15) 0%, transparent 62%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-copy {
  flex: 1;
  min-width: min(100%, 280px);
}

.section-cta .section-cta-lead {
  margin: 0 0 0.65rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
  max-width: 48ch;
}

.cta-title {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 600;
  line-height: 1.35;
  max-width: 34ch;
}

/* —— Hírek —— */
.news-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.news-item.card {
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    border-color 0.2s ease;
}

.news-item.card:hover,
.news-item.card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-warm);
}

@media (prefers-reduced-motion: reduce) {
  .news-item.card:hover,
  .news-item.card:focus-within {
    transform: none;
    transition: border-color 0.2s ease, box-shadow 0.25s ease;
  }
}

.news-item time {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-muted);
  margin-bottom: 0.35rem;
}

.news-item h3 {
  margin: 0 0 0.65rem;
  font-size: 1.12rem;
  font-family: var(--font-display);
}

.news-item__body {
  position: relative;
}

.news-item--collapsible .news-item__preview {
  position: relative;
  max-height: 14rem;
  overflow: hidden;
}

.news-item--collapsible .news-item__preview::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.25rem;
  background: linear-gradient(to bottom, rgba(255, 252, 247, 0), var(--card));
  pointer-events: none;
}

.news-item--collapsible {
  cursor: pointer;
}

.news-item--collapsible:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* Mint a tevékenység kártya .more felirata — a teljes kártya kattintható */
.news-item__toggle {
  display: inline-block;
  margin: 0.75rem 0 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: inherit;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent-muted);
  text-decoration: none;
}

.news-item--collapsible:hover .news-item__toggle,
.news-item--collapsible:focus-visible .news-item__toggle {
  color: var(--primary);
}

/* Főoldal: hír teljes szövege modálban */
.news-modal[hidden] {
  display: none !important;
}

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 480;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.news-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 12, 0.55);
  cursor: pointer;
}

.news-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(640px, 94vw);
  max-height: min(90vh, 820px);
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.35rem 1.5rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  outline: none;
}

.news-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(26, 77, 40, 0.08);
  color: var(--primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.news-modal__close:hover {
  background: rgba(26, 77, 40, 0.14);
}

.news-modal__close:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.news-modal__date {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-muted);
  margin: 0 2.5rem 0.35rem 0;
}

.news-modal__title {
  margin: 0 2.5rem 0 0;
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.news-modal__body {
  margin-top: 0.85rem;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 0.35rem;
}

/* —— Kapcsolat —— */
.section-contact {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.contact-grid {
  align-items: stretch;
}

.contact-grid > .contact-card,
.contact-grid > .map-card {
  min-height: 0;
}

@media (min-width: 880px) {
  .contact-grid > .contact-card,
  .contact-grid > .map-card {
    height: 100%;
  }

  .contact-grid > .map-card {
    display: flex;
    flex-direction: column;
  }

  .contact-grid .map-embed-wrap {
    flex: 1 1 0;
    min-height: 200px;
    aspect-ratio: auto;
    max-height: none;
  }
}

.contact-company {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  margin: 0 0 1rem;
}

.contact-lines {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.contact-lines li {
  margin-bottom: 0.45rem;
}

.contact-lines span {
  color: var(--muted);
  display: inline-block;
  min-width: 8.75rem;
  font-size: 0.92rem;
}

.contact-lines a {
  color: var(--primary);
  font-weight: 600;
}

.map-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 380px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-warm);
  box-shadow: var(--shadow-soft);
  background: var(--bg-alt-solid);
}

.map-embed-wrap .map-leaflet-host,
.map-embed-wrap .leaflet-container {
  width: 100%;
  height: 100%;
}

.map-osm-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.map-osm-meta > a {
  color: var(--primary-soft);
  font-weight: 600;
}

.map-osm-meta .map-osm-copy a {
  color: var(--muted);
  font-weight: 400;
}

.map-osm-meta a:hover {
  color: var(--accent-muted);
}

.map-card h3 {
  margin-top: 0;
  font-family: var(--font-display);
}

/* —— Lábléc —— */
.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #152818 0%, #0f1d12 100%);
  color: #dce5d8;
  padding: 3rem 0 0;
  border-top: 4px solid var(--accent);
}

.site-footer__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.66;
  pointer-events: none;
}

.site-footer__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(21, 40, 24, 0.78) 0%,
    rgba(15, 29, 18, 0.84) 100%
  );
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__video {
    display: none;
  }
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

/* Szöveg balra; a blokk szélessége a szöveghez igazodik; a logó ehhez képest középen */
.footer-brand-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  max-width: 100%;
}

/* Fejléc .logo-img max ~52px; láblécben nagyobb */
.footer-brand-logo {
  display: block;
  width: auto;
  max-width: min(300px, 62vw);
  height: clamp(76px, 14vw, 104px);
  margin-top: 0.9rem;
  align-self: center;
  object-fit: contain;
  object-position: center;
}

.footer-brand-stack .footer-visit-count {
  margin: 0.85rem 0 0;
  align-self: center;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(220, 229, 216, 0.55);
}

.footer-subpage-brand {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f0d878;
  margin: 0 0 0.85rem;
}

.footer-nav ul,
.footer-contact p {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-nav li {
  margin-bottom: 0.35rem;
}

.footer-nav a,
.footer-contact a {
  color: #c8dcc6;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: #f5e6a8;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.25rem 0 1.75rem;
  font-size: 0.82rem;
  color: rgba(220, 229, 216, 0.55);
}

.footer-bottom a {
  color: #d9c878;
}

/* Nyilvános oldalak: sorkizárás, elválasztás nélkül (admin nélkül) */
body:not(.admin-body) .prose,
body:not(.admin-body) .section-lead,
body:not(.admin-body) .hero-lead,
body:not(.admin-body) .service-summary,
body:not(.admin-body) .fact-list dd,
body:not(.admin-body) .section-cta-lead,
body:not(.admin-body) .cta-title,
body:not(.admin-body) .activity-bullets {
  text-align: justify;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Szekció fejléc bevezető: a szülő .section-head középre igazítása érvényesüljön (ne írja felül a sorkizárás) */
body:not(.admin-body) .section-head .section-lead {
  text-align: center;
}

body:not(.admin-body) .prose .prose-left {
  text-align: left;
}

.prose {
  margin-bottom: 1rem;
}

.prose:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--text);
}

.prose a {
  color: var(--primary-soft);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.prose .prose-left {
  margin: 0 0 0.45rem;
}

/* TipTap táblázat (nyilvános) */
body:not(.admin-body) .prose .tableWrapper {
  overflow-x: auto;
  margin: 1rem 0;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

body:not(.admin-body) .prose .tableWrapper table,
body:not(.admin-body) .prose table.tiptap-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.65);
}

body:not(.admin-body) .prose .tableWrapper th,
body:not(.admin-body) .prose .tableWrapper td,
body:not(.admin-body) .prose table.tiptap-table th,
body:not(.admin-body) .prose table.tiptap-table td {
  border: 1px solid rgba(192, 201, 182, 0.9);
  padding: 0.5rem 0.65rem;
  vertical-align: top;
  text-align: left;
}

body:not(.admin-body) .prose .tableWrapper th,
body:not(.admin-body) .prose table.tiptap-table th {
  background: rgba(244, 246, 240, 0.95);
  font-weight: 700;
  color: var(--primary);
}

body:not(.admin-body) .prose img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 0.65rem 0;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(21, 33, 23, 0.06);
}

/*
 * Galéria: konténerszélességhez igazodik (1fr oszlopok), vízszintesen egy vonalban a szöveggel.
 */
body:not(.admin-body) .prose .prose-gallery {
  display: grid;
  gap: 0.65rem;
  margin: 0.75rem 0;
  align-items: stretch;
  justify-content: stretch;
  box-sizing: border-box;
  max-width: 100%;
}

body:not(.admin-body) .prose .prose-gallery.ql-align-left {
  justify-content: start;
}

body:not(.admin-body) .prose .prose-gallery.ql-align-right {
  justify-content: end;
}

body:not(.admin-body) .prose .prose-gallery.ql-align-justify {
  justify-content: stretch;
}

body:not(.admin-body) .prose .prose-gallery--1 {
  grid-template-columns: minmax(0, 1fr);
}

body:not(.admin-body) .prose .prose-gallery--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body:not(.admin-body) .prose .prose-gallery--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body:not(.admin-body) .prose .prose-gallery > p {
  margin: 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  box-sizing: border-box;
  background: rgba(251, 250, 247, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(21, 33, 23, 0.06);
}

body:not(.admin-body) .prose .prose-gallery > p img {
  display: block;
  margin: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: clamp(110px, 26vw, 280px);
  object-fit: contain;
  object-position: center;
  border: none;
  box-shadow: none;
  border-radius: calc(var(--radius-sm) - 3px);
}

/* Közvetlenül a div alá tett kép (ha nincs <p> köztük) */
body:not(.admin-body) .prose .prose-gallery > img {
  display: block;
  min-width: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: clamp(110px, 26vw, 280px);
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(21, 33, 23, 0.06);
}

/* Hármas galéria: egységes „keret”, a kép kitölti (cover) */
body:not(.admin-body) .prose .prose-gallery--3 > p {
  aspect-ratio: 4 / 3;
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
}

body:not(.admin-body) .prose .prose-gallery--3 > p img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

body:not(.admin-body) .prose .prose-gallery--3 > img {
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 520px) {
  body:not(.admin-body) .prose .prose-gallery,
  body:not(.admin-body) .prose .prose-gallery--1,
  body:not(.admin-body) .prose .prose-gallery--2,
  body:not(.admin-body) .prose .prose-gallery--3 {
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 0.55rem;
    margin-left: 0;
    margin-right: 0;
  }

  body:not(.admin-body) .prose .prose-gallery > p img {
    max-height: min(52vw, 320px);
  }
}

body:not(.admin-body) .prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  margin: 1.25rem 0 0.5rem;
  color: var(--primary);
}

body:not(.admin-body) .prose h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 1rem 0 0.45rem;
  color: var(--primary-soft);
}

body:not(.admin-body) .prose ul,
body:not(.admin-body) .prose ol {
  margin: 0.5rem 0 0.85rem 1.25rem;
  padding-left: 0.5rem;
}

body:not(.admin-body) .prose blockquote {
  margin: 0.75rem 0;
  padding: 0.65rem 0 0.65rem 1rem;
  border-left: 3px solid var(--accent-muted);
  background: rgba(26, 77, 40, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* HTML (Quill) kimenet: bekezdések ritmusa; a régi nl2br szöveg nem <p>-k között tördel */
body:not(.admin-body) .prose > p {
  margin: 0 0 0.65em;
}
body:not(.admin-body) .prose > p:last-child {
  margin-bottom: 0;
}

body:not(.admin-body) .prose li > p {
  margin: 0 0 0.35em;
}
body:not(.admin-body) .prose li > p:last-child {
  margin-bottom: 0;
}

/* Vetőmag tevékenység: fajtakártyák (Tradisco katalógus szövege, PDF-linkek nélkül) */
.subpage .prose .variety-showcase {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0 0;
}

.subpage .prose .variety-card {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(192, 201, 182, 0.85);
  background: rgba(255, 255, 255, 0.72);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 2px 14px rgba(26, 77, 40, 0.06);
}

.subpage .prose .variety-card .variety-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: var(--primary);
  text-wrap: balance;
}

.subpage .prose .variety-card__body.prose--compact p {
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0 0 0.65rem;
}

.subpage .prose .variety-card__body.prose--compact p:last-child {
  margin-bottom: 0;
}

.subpage .prose .variety-card__ref {
  font-size: 0.9rem;
  color: #3d4a38;
}

.subpage .prose .variety-card__note {
  font-size: 0.9rem;
  margin-top: 0.35rem !important;
}

.admin-vetomag-hr {
  margin: 1.75rem 0 1.25rem;
  border: none;
  border-top: 1px solid rgba(192, 201, 182, 0.75);
}

.admin-vetomag-varieties {
  margin-top: 0.5rem;
}

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

.small {
  font-size: 0.9rem;
}

.map-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.prose-block {
  padding: 2rem;
}

.subpage .site-header {
  position: relative;
}

/* —— Admin (tartalomkezelő) —— */
.admin-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 120% 80% at 100% 0%, rgba(200, 148, 30, 0.09), transparent 55%),
    radial-gradient(ellipse 90% 60% at 0% 100%, rgba(45, 107, 60, 0.08), transparent 50%),
    linear-gradient(168deg, #e6ede4 0%, #eef1ea 45%, #eee8d9 100%);
  background-attachment: fixed;
}

.admin-body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 300;
  background: linear-gradient(90deg, var(--primary-soft), var(--accent), var(--primary-soft));
  box-shadow: 0 2px 12px rgba(200, 148, 30, 0.25);
}

.admin-body--login {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.admin-wrap {
  width: min(1240px, calc(100% - 2rem));
  max-width: none;
  margin: 0 auto;
  padding: 2rem 0 3.5rem;
}

.admin-body--login .admin-wrap {
  width: 100%;
  max-width: 440px;
  padding: 0;
}

.admin-login-brand {
  text-align: center;
  margin-bottom: 1.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 3.5vw, 1.45rem);
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.admin-login-brand span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-muted);
}

.admin-login-lead {
  margin-top: 0.5rem;
  margin-bottom: 0;
  max-width: none;
}

.admin-btn--block {
  width: 100%;
  margin-top: 1.1rem;
}

.admin-login-card .admin-btn--block {
  margin-top: 1.65rem;
}

.admin-login-back {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.92rem;
}

.admin-login-back a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.admin-login-back a:hover {
  color: var(--accent);
}

/* 404: kép kitölti a nézetablakot (cover, pl. 16:9); szöveg alul */
.page-404-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background: var(--primary);
}

.page-404 {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

.page-404__media {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--primary);
}

.page-404__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.2);
}

.page-404__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.page-404::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.18) 42%,
    transparent 72%
  );
}

.page-404__content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
  width: min(42rem, calc(100% - 2.5rem));
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
}

.page-404 h1 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.page-404__lead {
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.page-404__actions {
  margin-top: 1.25rem;
}

.admin-card {
  position: relative;
  isolation: isolate;
  /* Mint a .card-service: a felső sáv a border-radius szerint vágódik, nem lóg túl */
  overflow: hidden;
  background: linear-gradient(165deg, rgba(255, 252, 247, 0.99) 0%, rgba(255, 253, 249, 0.97) 100%);
  border-radius: var(--radius);
  padding: 1.85rem clamp(1.25rem, 3vw, 2rem) 2rem;
  border: 1px solid rgba(192, 201, 182, 0.75);
  margin-bottom: 1.35rem;
  box-shadow:
    0 4px 28px rgba(26, 77, 40, 0.07),
    0 12px 48px rgba(21, 33, 23, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.admin-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 0;
  background: linear-gradient(90deg, var(--primary-soft), var(--accent), var(--primary));
  opacity: 0.92;
}

.admin-card > * {
  position: relative;
  z-index: 1;
}

.admin-login-card {
  padding-top: 2rem;
}

.admin-card h1 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1.15;
}

.admin-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin: 0 0 1.25rem;
}

.admin-page-head h1 {
  margin: 0;
  flex: 1 1 auto;
  min-width: min(100%, 10rem);
}

.admin-card h2 {
  margin-top: 0;
  color: var(--primary);
}

.admin-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-muted);
}

.admin-lead {
  margin: 0.65rem 0 0;
  max-width: 52ch;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
}

.admin-pv {
  width: 100%;
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(192, 201, 182, 0.55);
  box-sizing: border-box;
}

.admin-pv__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.admin-pv .admin-panel-hint {
  margin-top: 0;
  margin-bottom: 1rem;
  max-width: none;
}

.admin-pv-chart {
  display: flex;
  align-items: flex-end;
  gap: clamp(0.08rem, 0.5vw, 0.35rem);
  width: 100%;
  min-height: 140px;
  padding: 0.5rem 0 0;
  overflow: visible;
  border-bottom: 1px solid rgba(192, 201, 182, 0.45);
  box-sizing: border-box;
}

.admin-pv-chart__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.admin-pv-chart__barwrap {
  height: 120px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.admin-pv-chart__bar {
  display: block;
  width: 100%;
  max-width: none;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--accent-muted), var(--primary-soft));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.admin-pv-chart__tick {
  font-size: 0.62rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  line-height: 1;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(192, 201, 182, 0.55);
}

.admin-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(192, 201, 182, 0.85);
  box-shadow: 0 1px 3px rgba(21, 33, 23, 0.05);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.15s ease,
    box-shadow 0.18s ease;
}

.admin-nav a:hover {
  background: #fff;
  border-color: rgba(200, 148, 30, 0.55);
  color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26, 77, 40, 0.09);
}

.admin-section-title {
  margin: 2rem 0 0.85rem;
  padding-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  border-bottom: 2px solid rgba(200, 148, 30, 0.38);
}

.admin-field-group:first-of-type .admin-section-title {
  margin-top: 0.35rem;
}

.admin-field-group {
  padding: 0.15rem 0 0.35rem;
}

label.admin-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0.85rem 0 0.35rem;
  color: var(--text);
}

.admin-body input[type="text"],
.admin-body input[type="password"],
.admin-body input[type="date"],
.admin-body textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.62rem 0.8rem;
  border: 1px solid rgba(192, 201, 182, 0.95);
  border-radius: var(--radius-sm);
  font: inherit;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.admin-body input:focus,
.admin-body textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 148, 30, 0.22);
}

.admin-body textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 0.62rem 1.35rem;
  background: linear-gradient(165deg, var(--primary) 0%, var(--primary-soft) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(26, 77, 40, 0.25);
  transition:
    filter 0.15s ease,
    transform 0.12s ease,
    box-shadow 0.15s ease;
}

.admin-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(26, 77, 40, 0.28);
}

.admin-btn:active {
  transform: translateY(0);
}

.admin-btn-danger {
  background: linear-gradient(165deg, #9c3049 0%, #7a2438 100%);
  box-shadow: 0 3px 14px rgba(140, 40, 60, 0.3);
}

.admin-btn-danger:hover {
  filter: brightness(1.08);
  box-shadow: 0 5px 20px rgba(140, 40, 60, 0.35);
}

a.admin-btn {
  text-decoration: none;
  color: #fff;
}

a.admin-btn--secondary {
  background: rgba(255, 255, 255, 0.65);
  color: var(--primary);
  border: 1px solid rgba(192, 201, 182, 0.95);
  box-shadow: 0 1px 8px rgba(26, 77, 40, 0.08);
}

a.admin-btn--secondary:hover {
  filter: none;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(26, 77, 40, 0.35);
  box-shadow: 0 3px 14px rgba(26, 77, 40, 0.12);
}

button.admin-btn--secondary {
  background: rgba(255, 255, 255, 0.65);
  color: var(--primary);
  border: 1px solid rgba(192, 201, 182, 0.95);
  box-shadow: 0 1px 8px rgba(26, 77, 40, 0.08);
}

button.admin-btn--secondary:hover {
  filter: none;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(26, 77, 40, 0.35);
  box-shadow: 0 3px 14px rgba(26, 77, 40, 0.12);
  transform: translateY(-1px);
}

.settings-form .admin-btn {
  margin-top: 1.5rem;
}

.admin-wrap--wide {
  max-width: 56rem;
}

/* Tevékenységek admin: bal lista + jobb szerkesztő */
.admin-services-hub {
  display: grid;
  grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
  gap: 1.35rem 1.85rem;
  align-items: start;
  margin-top: 1.1rem;
}

.admin-services-rail {
  position: sticky;
  top: 0.75rem;
  align-self: start;
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  margin: 0;
  padding: 0.55rem 0.65rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(192, 201, 182, 0.75);
  background: rgba(255, 255, 255, 0.42);
  box-sizing: border-box;
}

.admin-services-rail__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem 0.35rem;
}

.admin-services-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-services-rail__link {
  display: block;
  padding: 0.5rem 0.55rem 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  border-left: 3px solid transparent;
  line-height: 1.3;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.admin-services-rail__link:hover {
  background: rgba(26, 77, 40, 0.07);
}

.admin-services-rail__link.is-active {
  background: rgba(255, 255, 255, 0.92);
  border-left-color: var(--accent);
  color: var(--primary-soft);
}

.admin-services-rail__meta {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.2rem;
  word-break: break-word;
}

.admin-services-main {
  min-width: 0;
}

.admin-services-current {
  margin: 0 0 0.85rem;
  padding: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}

@media (max-width: 900px) {
  .admin-services-hub {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .admin-services-rail {
    position: relative;
    top: auto;
    max-height: none;
  }

  .admin-services-rail__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .admin-services-rail__link {
    flex: 1 1 auto;
    min-width: min(100%, 11rem);
  }
}

.admin-settings-layout {
  display: grid;
  grid-template-columns: minmax(196px, 15.5rem) minmax(0, 1fr);
  gap: 1.35rem 2rem;
  align-items: start;
  margin-top: 1.2rem;
}

.admin-settings-tree {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  padding: 0.5rem 0;
  border-right: 1px solid rgba(192, 201, 182, 0.7);
  position: sticky;
  top: 0.75rem;
  align-self: start;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
}

.admin-settings-tree__btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.5rem 0.65rem 0.5rem 0.75rem;
  border: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font: inherit;
  font-size: 0.89rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  text-align: left;
  border-left: 3px solid transparent;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.admin-settings-tree__btn:hover {
  background: rgba(26, 77, 40, 0.07);
}

.admin-settings-tree__btn.is-active {
  background: rgba(255, 255, 255, 0.92);
  border-left-color: var(--accent);
  color: var(--primary-soft);
}

.admin-settings-panels {
  min-width: 0;
}

.admin-settings-pane {
  outline: none;
}

.admin-settings-pane[hidden] {
  display: none !important;
}

.admin-settings-save-row {
  margin-top: 1.65rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(192, 201, 182, 0.55);
}

.admin-settings-save-row .admin-btn {
  margin-top: 0;
}

.admin-home-extra-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
}

.admin-home-extra-toolbar .admin-btn {
  margin-top: 0;
}

.admin-home-extra-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-home-extra-card {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(192, 201, 182, 0.85);
  background: rgba(255, 255, 255, 0.5);
}

.admin-home-extra-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(192, 201, 182, 0.55);
}

.admin-home-extra-card__title {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.admin-home-extra-del {
  font-size: 0.85rem;
  color: #6a4a52;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-field-row--inline2 {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: 1rem;
  align-items: end;
}

@media (max-width: 560px) {
  .admin-field-row--inline2 {
    grid-template-columns: 1fr;
  }
}

.admin-home-extra-visible {
  padding-bottom: 0.15rem;
}

@media (max-width: 768px) {
  .admin-settings-layout {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .admin-settings-tree {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    max-height: none;
    position: relative;
    top: auto;
    padding: 0.35rem 0 0.65rem;
    border-right: none;
    border-bottom: 1px solid rgba(192, 201, 182, 0.65);
    -webkit-overflow-scrolling: touch;
    gap: 0.35rem;
  }

  .admin-settings-tree__btn {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    padding: 0.45rem 0.75rem;
  }

  .admin-settings-tree__btn.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }
}

.admin-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin: 1rem 0 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(192, 201, 182, 0.7);
}

.admin-toc a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.admin-toc a:hover {
  text-decoration: underline;
}

.admin-settings-panel {
  margin-bottom: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(192, 201, 182, 0.75);
  background: rgba(255, 255, 255, 0.42);
  overflow: hidden;
}

.admin-settings-panel summary {
  cursor: pointer;
  list-style: none;
}

.admin-settings-panel summary::-webkit-details-marker {
  display: none;
}

.admin-settings-panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  background: linear-gradient(180deg, rgba(26, 77, 40, 0.08), rgba(26, 77, 40, 0.02));
}

.admin-settings-panel-title::before {
  content: '▸';
  display: inline-block;
  transition: transform 0.15s ease;
  opacity: 0.65;
}

.admin-settings-panel[open] .admin-settings-panel-title::before {
  transform: rotate(90deg);
}

.admin-settings-panel-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(192, 201, 182, 0.45);
}

.admin-panel-hint {
  margin: 0.85rem 0 0.25rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.admin-field-row {
  margin-top: 1rem;
}

.admin-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 42rem;
  font-size: 0.92rem;
  line-height: 1.5;
  cursor: pointer;
}

.admin-checkbox-label input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--primary-soft);
}

.admin-opacity-range {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.admin-opacity-range input[type="range"],
.admin-hover-opacity-slider {
  flex: 1 1 auto;
  width: 100%;
  max-width: 22rem;
  min-width: 200px;
  height: 1.75rem;
  margin: 0;
  padding: 0;
  display: block;
  cursor: pointer;
  -webkit-appearance: auto;
  appearance: auto;
  accent-color: var(--primary-soft);
  vertical-align: middle;
}

.admin-body input.admin-hover-opacity-slider:focus {
  outline: 2px solid rgba(200, 148, 30, 0.45);
  outline-offset: 2px;
  box-shadow: none;
}

.admin-opacity-range__val {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primary);
  min-width: 3.25rem;
}

.admin-save-footer {
  margin-top: 1.75rem;
}

.admin-rich-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-tiptap-mount {
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid rgba(192, 201, 182, 0.85);
  overflow: hidden;
}

.admin-tiptap-toolbar-wrap {
  border-bottom: 1px solid rgba(192, 201, 182, 0.75);
  background: rgba(244, 246, 240, 0.85);
  padding: 0.35rem 0.5rem;
}

.admin-tiptap-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
}

.admin-tiptap-bar-btn {
  font: inherit;
  font-size: 0.82rem;
  padding: 0.28rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(170, 182, 156, 0.85);
  background: #fff;
  color: var(--text, #243018);
  cursor: pointer;
  line-height: 1.2;
}

.admin-tiptap-bar-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(26, 77, 40, 0.35);
}

.admin-tiptap-bar-btn--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.admin-tiptap-bar-btn--icon svg {
  flex-shrink: 0;
  display: block;
}

.admin-tiptap-bar-btn--hdg {
  font-weight: 700;
  letter-spacing: 0.02em;
  min-width: 2.4rem;
}

.admin-tiptap-bar-btn--narrow {
  padding-left: 0.38rem;
  padding-right: 0.38rem;
  min-width: 2rem;
  font-variant-numeric: tabular-nums;
}

.admin-tiptap-frame {
  border: none;
  min-height: 220px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.tiptap-root .tiptap-content {
  outline: none;
  min-height: 220px;
  padding: 0.65rem 0.85rem 0.85rem;
}

.tiptap-root .tiptap-content:focus {
  outline: none;
}

.tiptap-root .tiptap-content > p,
.tiptap-root .tiptap-content > h2,
.tiptap-root .tiptap-content > h3 {
  margin: 0 0 0.6em;
}

.tiptap-root .tiptap-content > blockquote {
  margin: 0 0 0.65em;
}

.tiptap-root .tiptap-content li > p {
  margin: 0 0 0.28em;
}

.tiptap-root .tiptap-content li > p:last-child {
  margin-bottom: 0;
}

.tiptap-root .tiptap-content > *:last-child {
  margin-bottom: 0;
}

.tiptap-root .tiptap-content > ol,
.tiptap-root .tiptap-content > ul {
  margin: 0 0 0.6em;
  padding-left: 1.5em;
}

.admin-tiptap-mount .tiptap-content img {
  max-width: 100%;
  height: auto;
}

.admin-tiptap-mount .tiptap-content .prose-gallery {
  display: grid;
  gap: 0.45rem;
  margin: 0.35rem 0 0.6rem;
  align-items: stretch;
  justify-content: stretch;
  box-sizing: border-box;
  max-width: 100%;
}

.admin-tiptap-mount .tiptap-content .prose-gallery.ql-align-left {
  justify-content: start;
}

.admin-tiptap-mount .tiptap-content .prose-gallery.ql-align-right {
  justify-content: end;
}

.admin-tiptap-mount .tiptap-content .prose-gallery.ql-align-justify {
  justify-content: stretch;
}

.admin-tiptap-mount .tiptap-content .prose-gallery--1 {
  grid-template-columns: minmax(0, 1fr);
}

.admin-tiptap-mount .tiptap-content .prose-gallery--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-tiptap-mount .tiptap-content .prose-gallery--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 520px) {
  .admin-tiptap-mount .tiptap-content .prose-gallery,
  .admin-tiptap-mount .tiptap-content .prose-gallery--1,
  .admin-tiptap-mount .tiptap-content .prose-gallery--2,
  .admin-tiptap-mount .tiptap-content .prose-gallery--3 {
    grid-template-columns: 1fr;
    justify-content: stretch;
    margin-left: 0;
    margin-right: 0;
  }
}

.admin-tiptap-mount .tiptap-content .prose-gallery > p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  box-sizing: border-box;
  background: rgba(251, 250, 247, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 8px rgba(21, 33, 23, 0.06);
}

.admin-tiptap-mount .tiptap-content .prose-gallery > p img {
  display: block;
  margin: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: clamp(80px, 20vw, 200px);
  object-fit: contain;
  object-position: center;
  border: none;
  box-shadow: none;
  border-radius: calc(var(--radius-sm) - 3px);
}

.admin-tiptap-mount .tiptap-content .prose-gallery > img {
  display: block;
  margin: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: clamp(80px, 20vw, 200px);
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 8px rgba(21, 33, 23, 0.06);
}

.admin-tiptap-mount .tiptap-content .prose-gallery--3 > p {
  aspect-ratio: 4 / 3;
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
}

.admin-tiptap-mount .tiptap-content .prose-gallery--3 > p img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.admin-tiptap-mount .tiptap-content .prose-gallery--3 > img {
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.admin-tiptap-mount .tiptap-content .tableWrapper {
  overflow-x: auto;
  margin: 0.5rem 0 0.85rem;
  max-width: 100%;
}

.admin-tiptap-mount .tiptap-content .tableWrapper table,
.admin-tiptap-mount .tiptap-content table.tiptap-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
}

.admin-tiptap-mount .tiptap-content .tableWrapper th,
.admin-tiptap-mount .tiptap-content .tableWrapper td,
.admin-tiptap-mount .tiptap-content table.tiptap-table th,
.admin-tiptap-mount .tiptap-content table.tiptap-table td {
  border: 1px solid rgba(192, 201, 182, 0.95);
  padding: 0.35rem 0.5rem;
  vertical-align: top;
}

.admin-tiptap-mount .tiptap-content .tableWrapper th,
.admin-tiptap-mount .tiptap-content table.tiptap-table th {
  background: rgba(244, 246, 240, 0.9);
  font-weight: 700;
}

/* Oszlop átméretezés (TipTap / ProseMirror) */
.admin-tiptap-mount .column-resize-handle {
  background: rgba(26, 77, 40, 0.25);
  bottom: -2px;
  pointer-events: none;
  position: absolute;
  right: -2px;
  top: 0;
  width: 4px;
}

.admin-rich-source {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.msg-ok {
  background: linear-gradient(135deg, #dce8d4, #ecf3e6);
  border: 1px solid rgba(138, 178, 122, 0.75);
  color: #143018;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.15rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(26, 77, 40, 0.06);
}

.msg-err {
  background: linear-gradient(135deg, #f5e4e4, #f9ecec);
  border: 1px solid rgba(180, 90, 90, 0.55);
  color: #5c1818;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.15rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(80, 20, 20, 0.06);
}

.admin-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 0.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(192, 201, 182, 0.7);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 2px 12px rgba(21, 33, 23, 0.04);
}

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

table.admin-table th,
table.admin-table td {
  border: 1px solid rgba(192, 201, 182, 0.55);
  padding: 0.65rem 0.9rem;
  text-align: left;
  vertical-align: top;
}

table.admin-table th {
  background: linear-gradient(180deg, rgba(26, 77, 40, 0.1), rgba(26, 77, 40, 0.04));
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
}

table.admin-table tbody tr:nth-child(even) {
  background: rgba(244, 246, 240, 0.65);
}

table.admin-table tbody tr:hover {
  background: rgba(255, 248, 230, 0.45);
}

table.admin-table a {
  font-weight: 600;
  color: var(--primary-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 107, 60, 0.35);
}

table.admin-table a:hover {
  color: var(--accent-muted);
  border-bottom-color: var(--accent-muted);
}

.admin-help {
  margin: 0 0 1.05rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.admin-help code {
  font-size: 0.88em;
  padding: 0.12rem 0.38rem;
  border-radius: 6px;
  background: rgba(26, 77, 40, 0.07);
  border: 1px solid rgba(192, 201, 182, 0.65);
  color: var(--primary);
}

.admin-error {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(180, 50, 60, 0.09);
  border: 1px solid rgba(180, 50, 60, 0.35);
  color: #6b1a24;
  font-weight: 600;
  font-size: 0.92rem;
}

.admin-success {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(26, 77, 40, 0.09);
  border: 1px solid rgba(26, 77, 40, 0.28);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.92rem;
}

@media (max-width: 520px) {
  .admin-card {
    padding: 1.35rem 1.2rem 1.5rem;
  }

  .admin-nav {
    gap: 0.35rem;
  }

  .admin-nav a {
    padding: 0.42rem 0.75rem;
    font-size: 0.82rem;
  }
}

/* —— Nyilvános galéria (MVP) —— */
.public-gallery-main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.public-gallery-empty {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.public-gallery-albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.home-gallery-cta {
  margin: 1.85rem 0 0;
  text-align: center;
}

.public-gallery-album-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(192, 201, 182, 0.75);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 18px rgba(21, 33, 23, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.public-gallery-album-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(21, 33, 23, 0.1);
}

.public-gallery-album-thumb-wrap {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, rgba(26, 77, 40, 0.06), rgba(244, 246, 240, 0.9));
  display: block;
  overflow: hidden;
}

.public-gallery-album-thumb-wrap--empty {
  min-height: 8rem;
}

.public-gallery-album-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.public-gallery-album-title {
  padding: 0.85rem 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--primary);
  border-top: 1px solid rgba(192, 201, 182, 0.45);
}

.public-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.15rem;
  margin-top: 1.25rem;
}

.public-gallery-item {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(192, 201, 182, 0.65);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 12px rgba(21, 33, 23, 0.05);
}

.public-gallery-link {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(26, 77, 40, 0.06);
}

.public-gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: translateZ(0);
}

.public-gallery-caption {
  padding: 0.65rem 0.85rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}

.public-gallery-invalid {
  margin: 0;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Admin galéria rács (album szerkesztő) */
.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.15rem;
  margin: 0.5rem 0 1.25rem;
}

.admin-gallery-card {
  border: 1px solid rgba(192, 201, 182, 0.65);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.5);
}

.admin-gallery-thumb {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  display: block;
  margin-bottom: 0.65rem;
  border-radius: 6px;
  background: rgba(26, 77, 40, 0.04);
}

/* Főoldal: galéria slider — radius + árnyék magán a <img>-en (nem a konténeren) */
.home-gallery-slider {
  position: relative;
  margin-top: 1.25rem;
  border: none;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.home-gallery-slider__viewport {
  position: relative;
  width: 100%;
  overflow: visible;
  aspect-ratio: 16 / 9;
  max-height: min(56vh, 520px);
  background: transparent;
}

.home-gallery-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.home-gallery-slide.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

/* Gyerek <a> alapból pointer-events: auto — felülírja a szülő none-ját; csak az aktív slide linkje kattintható */
.home-gallery-slide:not(.is-active) .home-gallery-slide__link {
  pointer-events: none;
}

.home-gallery-slide.is-active .home-gallery-slide__link {
  pointer-events: auto;
}

.home-gallery-slide__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: visible;
  z-index: 2;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}

.home-gallery-slide__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-sm);
  box-shadow: 0 5px 26px rgba(21, 33, 23, 0.07);
}

.home-gallery-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 3.25rem;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(21, 33, 23, 0.12);
  transition: background 0.15s ease, transform 0.15s ease;
}

.home-gallery-slider__btn:hover {
  background: #fff;
}

.home-gallery-slider__btn:active {
  transform: translateY(-50%) scale(0.96);
}

.home-gallery-slider__prev {
  left: 0.65rem;
}

.home-gallery-slider__next {
  right: 0.65rem;
}

@media (prefers-reduced-motion: reduce) {
  .home-gallery-slide {
    transition: opacity 0.01s;
  }
}

@media (max-width: 520px) {
  .home-gallery-slider__btn {
    width: 2.35rem;
    height: 2.85rem;
    font-size: 1.45rem;
  }

  .home-gallery-slider__prev {
    left: 0.35rem;
  }

  .home-gallery-slider__next {
    right: 0.35rem;
  }
}

/* Galéria lightbox */
.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 12, 0.88);
  cursor: pointer;
}

.gallery-lightbox__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  outline: none;
}

.gallery-lightbox__figure {
  margin: 0;
  max-height: calc(92vh - 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.gallery-lightbox__img {
  max-width: 100%;
  max-height: min(78vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox__cap {
  margin: 0;
  padding: 0 0.5rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #f0f4ec;
  max-width: 56ch;
}

.gallery-lightbox__close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.gallery-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 3.5rem;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.gallery-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gallery-lightbox__prev {
  left: 0.25rem;
}

.gallery-lightbox__next {
  right: 0.25rem;
}

@media (max-width: 640px) {
  .gallery-lightbox__nav {
    width: 2.25rem;
    height: 3rem;
    font-size: 1.5rem;
  }

  .gallery-lightbox__prev {
    left: 0;
  }

  .gallery-lightbox__next {
    right: 0;
  }
}
