 .hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  place-items: center;
  padding: 4rem 1.5rem;
  color: var(--text-inverse);
  background: linear-gradient(180deg, rgba(20, 41, 21, 0.82), rgba(16, 31, 15, 0.92)), url("../img/pages/index/4.jpg") center/cover no-repeat;
}

/* Háttérképnél nincs <picture>, ezért image-set intézi a WebP-választást.
   A @supports miatt a régebbi böngészők a fenti JPG-nél maradnak. */
@supports (background-image: image-set(url("../img/pages/index/4.webp") type("image/webp"))) {
  .hero {
    background-image: linear-gradient(180deg, rgba(20, 41, 21, 0.82), rgba(16, 31, 15, 0.92)),
      image-set(
        url("../img/pages/index/4.webp") type("image/webp"),
        url("../img/pages/index/4.jpg") type("image/jpeg")
      );
  }
}

.hero__content,
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 320ms ease-out, transform 320ms ease-out;
  will-change: opacity, transform;
}

.hero__content.visible,
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card.animate-on-scroll.visible:hover,
.feature-card.animate-on-scroll.visible:focus-within {
  transform: translateY(-6px);
}

.hero__content {
  width: min(860px, 100%);
  text-align: center;
}

.hero__eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 0.95rem;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

.hero-highlight {
  color: var(--highlight-color);
  text-shadow: 0 0 18px rgba(241, 141, 45, 0.35), 0 0 32px rgba(241, 141, 45, 0.18);
}

.hero__text {
  margin: 1.75rem auto 2.5rem;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.9;
}

/* A hero törzsszövege több bekezdésre bomlik. A ritmust innentől a wrapper
   tartja, ezért a .hero__text saját külső margóit itt nullázzuk – így a
   bekezdések közti köz egyenletes marad, és nem adódik össze a .hero__text
   alsó és a következő elem felső margója. */
.hero__body {
  margin: 1.75rem auto 2.25rem;
  max-width: 760px;
}

.hero__body .hero__text {
  margin: 0 0 1.25rem;
  max-width: none;
}

.hero__body .hero__text:last-child {
  margin-bottom: 0;
}

/* Záró, megszólító sor. A fölötte futó, széleken elhalványuló narancs
   hajszálvonal ugyanaz a formanyelv, mint a .section-header__title
   vonalai – ez köti a hero-t a lenti szekciókhoz. */
.hero__closing {
  margin: 0 auto;
  max-width: 760px;
  color: var(--highlight-color);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.7;
  text-wrap: balance;
}

.hero__closing::before {
  content: "";
  display: block;
  width: min(300px, 65%);
  height: 2px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(90deg, transparent, var(--highlight-color), transparent);
}

.about,
.features,
.footer {
  width: 100%;
}

.about {
  padding: 5rem 1.5rem;
  background: var(--panel-color);
}

.about__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: center;
}

.about__content {
  flex: 1 1 50%;
  min-width: 300px;
}

.about__media {
  flex: 1 1 40%;
  max-width: 500px;
  width: 100%;
  justify-self: end;
}

.about__media svg,
.about__media img {
  width: 100%;
  height: auto;
  display: block;
}

.section-label {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--accent-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
}

/* "Pill" formájú szekciócímke – ugyanaz a nyelv, mint az aloldalak
   hero-címkéje. Világos háttéren a márkazöld olvasható, ezért itt
   --primary-color a szöveg, nem a világos --accent-color. */
.section-header__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.45rem 1.1rem;
  background: rgba(127, 194, 156, 0.16);
  border: 1px solid rgba(127, 194, 156, 0.38);
  border-radius: 999px;
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  line-height: 1.4;
}

.section-header__label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--highlight-color);
  flex-shrink: 0;
}

/* A cégbemutató fotója – a kártyákkal azonos keret és árnyék */
.about__media-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid rgba(127, 194, 156, 0.22);
  box-shadow: 0 18px 44px -26px rgba(15, 45, 20, 0.4);
}

.about__title {
  margin: 0 0 1.5rem;
  font-size: clamp(2.25rem, 4vw, 3.4rem);
  line-height: 1.05;
  color: var(--text-color);
}

.about__text {
  margin: 0 0 2rem;
  max-width: 620px;
  color: var(--muted-color);
  line-height: 1.9;
}

.about__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

.subpage-sidebar__inner {
  display: grid;
  gap: 1.5rem;
}

.cta-card .button--primary {
  width: 100%;
}

.features {
  padding: 4rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
}

.section-header__title {
  margin: 0 auto;
  max-width: min(720px, 100%);
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--primary-color);
  /* Kiegyenlíti a sorhosszakat, így nem marad árva szó az utolsó sorban.
     Régebbi böngészőkben egyszerűen figyelmen kívül marad. */
  text-wrap: balance;
  hyphens: none;
}

/* Vékony, a széleken elhalványuló narancs csík a cím fölött ÉS alatt –
   ugyanaz a nyelv, mint az űrlap szakaszcímkéinél (.form-step). */
.section-header__title::before,
.section-header__title::after {
  content: "";
  display: block;
  width: min(300px, 65%);
  height: 2px;
  margin-inline: auto;
  background: linear-gradient(90deg, transparent, var(--highlight-color), transparent);
}

.section-header__title::before {
  margin-bottom: 1.25rem;
}

.section-header__title::after {
  margin-top: 1.25rem;
}

.features__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.cta-banner {
  background: var(--primary-color);
  color: var(--text-inverse);
  padding: 3rem 1.5rem;
  text-align: center;
  margin-bottom: 0 !important;
}

.cta-banner__text {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
}

.cta-banner__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0 !important;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.cta-banner > *:last-child,
.cta-banner__inner > *:last-child {
  margin-bottom: 0 !important;
}

main > .cta-banner:last-of-type {
  margin-bottom: 0 !important;
  padding-bottom: 40px;
  display: flow-root;
}

main > .cta-banner:last-of-type > *:last-child,
main > .cta-banner:last-of-type .cta-banner__inner > *:last-child {
  margin-bottom: 0 !important;
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .features__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .subpage-gallery img {
    min-height: 300px;
  }

  .subpage-grid {
    gap: 35px;
  }
}

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

  .subpage-sidebar__inner {
    position: static;
    top: auto;
  }

  .subpage-hero {
    padding: 45px 18px;
  }

  .subpage-gallery__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .hero h1,
  .hero h2,
  .hero__title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    line-height: 1.3;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: none;
  }

  .hero__title,
  .hero__title .hero-highlight {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 760px) {
  .subpage-hero {
    padding: 3rem 1rem;
  }

  .subpage-container {
    padding: 2rem 1rem 0;
  }

  .quick-menu {
    padding: 0.75rem;
  }

  .cta-banner__inner {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero {
    min-height: 75vh;
    padding: 3rem 1.25rem;
  }

  .hero__title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  /* Mobilon a hosszabb hero-szöveg miatt kicsit szűkebb a ritmus. */
  .hero__body {
    margin: 1.5rem auto 2rem;
  }

  .hero__body .hero__text {
    margin-bottom: 1rem;
  }

  .hero__closing {
    font-size: 1.05rem;
  }

  .hero__closing::before {
    margin-bottom: 1.25rem;
  }

  .feature-card__image {
    height: 200px;
  }
}

@media (max-width: 620px) {
  .about {
    padding: 3.5rem 1.25rem;
  }

  .about__title {
    font-size: 2.25rem;
  }

  .feature-card {
    padding: 1.75rem;
  }

  .cta-banner {
    padding: 2.5rem 1.25rem;
  }
}

@media (max-width: 560px) {
  .subpage-gallery__grid {
    grid-template-columns: 1fr;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(35px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1025px) {
  .nav__sublist {
    list-style: none;
    margin: 0;
    min-width: 260px !important;
    padding: 15px 20px !important;
  }

  .nav__subitem {
    margin: 0;
  }

  .nav__sublink {
    white-space: nowrap !important;
    padding: 8px 1rem 8px 1.8rem !important;
    line-height: 1.4;
  }
}

.nav__cta {
  flex-shrink: 0;
}


html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

body:has(.subpage-hero) main {
  padding-bottom: 0 !important;
}

main > .subpage-hero + .subpage-container + .cta-banner {
  margin-bottom: -2px !important;
  padding-bottom: 50px !important;
  border-bottom: none !important;
  display: flow-root;
}

main > .subpage-hero + .subpage-container + .cta-banner > *:last-child,
main > .subpage-hero + .subpage-container + .cta-banner .cta-banner__inner > *:last-child {
  margin-bottom: 0 !important;
}

body:has(.subpage-hero) footer {
  margin-top: -2px !important;
}

body, html {
  margin: 0 !important;
  padding: 0 !important;
}

.call-to-action-bottom,
.footer-pre-section {
  margin-bottom: 0 !important;
  padding-bottom: 50px !important;
  border-bottom: none !important;
}

footer {
  margin-top: 0 !important;
}

/* ============================================
   REDESIGNED SUBPAGE - Premium Styles
   ============================================ */

/* Modern Subpage Hero */
.subpage-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(10, 28, 12, 0.88) 0%, rgba(16, 38, 18, 0.92) 40%, rgba(22, 52, 24, 0.86) 100%);
  padding: 4rem 1rem;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* A hero háttérfotó külön <img> elem, nem background-image. Ennek oka:
   egy elmosott (filter: blur) rétegen a CSS-háttérkép néha csak késleltetve
   – vagy egyáltalán nem – kerül kirajzolásra, ha a kép dekódolása a réteg
   első kompozitálása után fejeződik be. Az <img> normál betöltési
   életciklust kap, így ez a hiba nem fordulhat elő.
   Mellékhatásként megszűnt a --hero-image CSS-változó is, amelynek relatív
   útvonala a stíluslaphoz képest oldódott fel – ez félrevezető volt. */
.subpage-hero__bg-pattern {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.subpage-hero__bg-img {
  position: absolute;
  /* túlnyúlás, hogy az elmosás ne lágyítsa el a bannersáv széleit */
  top: -40px;
  left: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  object-fit: cover;
  filter: blur(4px);
  opacity: 0.5;
}

/* A színes fények a fotó FÖLÉ kerülnek – az ::after a DOM-ban az <img>
   után rajzolódik, így nem kell z-index. */
.subpage-hero__bg-pattern::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(127, 194, 156, 0.35) 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(241, 141, 45, 0.18) 0%, transparent 55%);
}

.subpage-hero__gradient-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(10, 28, 12, 0.3) 100%),
    linear-gradient(90deg, rgba(127, 194, 156, 0.05) 0%, transparent 50%);
}

.subpage-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Kategóriajelölő az aloldalak hero-jában – a főoldali .section-label
   pill párja, sötét háttérre hangolva. */
.subpage-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.25rem;
  background: rgba(127, 194, 156, 0.15);
  border: 1px solid rgba(127, 194, 156, 0.35);
  border-radius: 999px;
  color: var(--accent-color);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  /* Szándékosan nincs backdrop-filter: a háttér itt már elmosott, így
     vizuálisan nem adna semmit, viszont egy második kompozitálási réteget
     hozna létre ugyanabban a stacking contextben – ez rontja a hero
     első kirajzolásának megbízhatóságát. */
}

.subpage-hero__label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--highlight-color);
  flex-shrink: 0;
}

.subpage-hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.subpage-hero__subtitle {
  margin: 0 auto 2rem;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  line-height: 1.85;
}

.subpage-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.subpage-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  transition: background 260ms ease, border-color 260ms ease;
}

.subpage-hero__meta-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(127, 194, 156, 0.4);
}

.subpage-hero__meta-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-color);
}

/* Bento Grid Section */
.bento-section {
  margin-bottom: 4rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  grid-auto-rows: minmax(200px, auto);
}

.bento-card {
  position: relative;
  background: var(--subpage-surface, #ffffff);
  border-radius: var(--radius, 24px);
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(15, 45, 20, 0.06),
    0 1px 3px rgba(15, 45, 20, 0.04);
  border: 1px solid rgba(127, 194, 156, 0.15);
  transition: transform 320ms var(--ease-strong, cubic-bezier(0.22, 1, 0.36, 1)),
              box-shadow 320ms ease;
  will-change: transform;
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 50px rgba(15, 45, 20, 0.12),
    0 8px 20px rgba(15, 45, 20, 0.08);
}

/* Bento Featured Card - Large */
.bento-card--featured {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-card--featured .bento-card__media {
  position: absolute;
  inset: 0;
}

.bento-card--featured .bento-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.bento-card--featured:hover .bento-card__media img {
  transform: scale(1.05);
}

.bento-card__media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 28, 12, 0.95) 0%,
    rgba(10, 28, 12, 0.6) 40%,
    rgba(10, 28, 12, 0.2) 100%
  );
}

.bento-card--featured .bento-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 2rem;
  color: #ffffff;
}

.bento-card--featured .bento-card__title {
  color: #ffffff;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.bento-card--featured .bento-card__text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin-bottom: 1rem;
}

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

.bento-card__features li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: rgba(127, 194, 156, 0.2);
  border: 1px solid rgba(127, 194, 156, 0.35);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--accent-color);
  font-weight: 500;
}

.bento-card__features li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent-color);
  border-radius: 50%;
}

/* Bento Tall Card */
.bento-card--tall {
  grid-row: span 2;
}

.bento-card--tall .bento-card__media {
  height: 50%;
}

.bento-card--tall .bento-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-card__content {
  padding: 1.5rem;
}

.bento-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--subpage-accent-soft, rgba(127, 194, 156, 0.18));
  border-radius: 16px;
  margin-bottom: 1rem;
  color: var(--primary-color);
  transition: background 260ms ease, transform 260ms ease;
}

.bento-card:hover .bento-card__icon {
  background: rgba(127, 194, 156, 0.28);
  transform: scale(1.05);
}

.bento-card__icon--accent {
  background: rgba(241, 141, 45, 0.12);
  color: var(--highlight-color);
}

.bento-card:hover .bento-card__icon--accent {
  background: rgba(241, 141, 45, 0.2);
}

.bento-card__icon svg {
  width: 28px;
  height: 28px;
}

.bento-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.3;
}

.bento-card__text {
  margin: 0;
  color: var(--muted-color);
  line-height: 1.8;
  font-size: 0.95rem;
}

.bento-card__media--bottom {
  margin: 1rem 1rem 0;
  border-radius: 16px;
  overflow: hidden;
  max-height: 140px;
}

.bento-card__media--bottom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Features Section */
.features-section {
  margin-bottom: 3rem;
}

.features-section__title {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  text-align: center;
}

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

.feature-card--horizontal {
  display: grid;
  grid-template-columns: 160px 1fr;
  background: var(--subpage-surface, #ffffff);
  border-radius: var(--radius, 24px);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 45, 20, 0.06);
  border: 1px solid rgba(127, 194, 156, 0.15);
  transition: transform 320ms ease, box-shadow 320ms ease;
}

.feature-card--horizontal:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 45, 20, 0.1);
}

.feature-card__media {
  margin: 0;
  overflow: hidden;
}

.feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 160px;
  transition: transform 500ms ease;
}

.feature-card--horizontal:hover .feature-card__media img {
  transform: scale(1.08);
}

.feature-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(127, 194, 156, 0.15);
  border-radius: 12px;
  margin-bottom: 0.85rem;
  color: var(--primary-color);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card__icon--accent {
  background: rgba(241, 141, 45, 0.12);
  color: var(--highlight-color);
}

/* Csak a vízszintes bento-kártyára: e nélkül a szelektor a főoldal
   szolgáltatás-kártyáira is ráülne (a pages.css a components.css után tölt be). */
.feature-card--horizontal .feature-card__title {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.3;
}

.feature-card--horizontal .feature-card__text {
  margin: 0;
  color: var(--muted-color);
  line-height: 1.7;
  font-size: 0.9rem;
}

/* Premium CTA Card */
.cta-card--premium {
  position: relative;
  padding: 2rem;
  background: linear-gradient(145deg, #f8fcf9 0%, #f0f6f1 100%);
  border-radius: var(--radius, 24px);
  overflow: hidden;
  border: 1px solid rgba(127, 194, 156, 0.2);
}

.cta-card__glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(241, 141, 45, 0.08) 0%, transparent 50%);
  animation: premiumGlow 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes premiumGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.cta-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.cta-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, #2d7a4a 100%);
  border-radius: 14px;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(34, 90, 54, 0.3);
}

.cta-card__icon svg {
  width: 24px;
  height: 24px;
}

.cta-card__badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: linear-gradient(135deg, var(--highlight-color) 0%, #e07820 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(241, 141, 45, 0.3);
}

.cta-card__title {
  margin: 0 0 0.85rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.25;
}

.cta-card__text {
  margin: 0 0 1.25rem;
  color: var(--muted-color);
  line-height: 1.75;
}

.cta-card__benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cta-card__benefits li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 500;
}

.cta-card__benefits li svg {
  width: 18px;
  height: 18px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.cta-card__button {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.cta-card__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.85rem;
  background: rgba(34, 90, 54, 0.06);
  border: 1px solid rgba(34, 90, 54, 0.12);
  border-radius: 12px;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: background 260ms ease, border-color 260ms ease;
}

.cta-card__phone:hover {
  background: rgba(34, 90, 54, 0.1);
  border-color: rgba(34, 90, 54, 0.25);
}

.cta-card__phone svg {
  width: 20px;
  height: 20px;
}

/* Stats Card */
.stats-card {
  background: var(--subpage-surface, #ffffff);
  border-radius: var(--radius, 24px);
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(15, 45, 20, 0.06);
  border: 1px solid rgba(127, 194, 156, 0.15);
}

.stats-card__title {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stats-card__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.stats-card__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stats-card__number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}

.stats-card__label {
  font-size: 0.75rem;
  color: var(--muted-color);
  line-height: 1.3;
}

/* Premium CTA Banner */
.cta-banner--premium {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a4a2e 50%, #0f3320 100%);
  overflow: hidden;
  padding: 4rem 1.5rem;
}

.cta-banner__pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(127, 194, 156, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(241, 141, 45, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.cta-banner--premium .cta-banner__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.cta-banner__content {
  flex: 1 1 300px;
  text-align: left;
}

.cta-banner--premium .cta-banner__text {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.cta-banner__subtext {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}

.cta-banner--premium .cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

.button--large {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
}

.cta-banner--premium .button--secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.cta-banner--premium .button--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Visually Hidden */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .subpage-hero {
    padding: 5rem 1.5rem;
    min-height: 450px;
  }

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

  .bento-card--featured {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 350px;
  }

  .bento-card--tall {
    grid-row: span 1;
  }

  .bento-card--tall .bento-card__media {
    height: 180px;
  }

  .cta-banner--premium .cta-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner__content {
    text-align: center;
  }

  .cta-banner--premium .cta-banner__actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .subpage-hero {
    padding: 4rem 1rem;
    min-height: 400px;
  }

  .subpage-hero__meta {
    gap: 0.75rem;
  }

  .subpage-hero__meta-item {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bento-card--featured {
    grid-column: span 1;
  }

  .bento-card--featured .bento-card__content {
    padding: 1.5rem;
  }

  .bento-card--featured .bento-card__title {
    font-size: 1.4rem;
  }

  .bento-card__media--bottom {
    max-height: 120px;
  }

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

  .feature-card--horizontal {
    grid-template-columns: 1fr;
  }

  .feature-card__media {
    height: 140px;
  }

  .stats-card__grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .cta-banner--premium {
    padding: 3rem 1rem;
  }

  .cta-banner__content {
    text-align: center;
  }

  .cta-banner--premium .cta-banner__actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-banner--premium .cta-banner__actions .button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .subpage-hero {
    padding: 3.5rem 0.85rem;
    min-height: 380px;
  }

  .subpage-hero__title {
    font-size: 2.2rem;
  }

  .subpage-hero__subtitle {
    font-size: 1rem;
  }

  .cta-card--premium {
    padding: 1.5rem;
  }

  .cta-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ============================================
   EDITORIAL SUBPAGE LAYOUT
   Modern editorial layout with 4-image gallery
   and sticky sidebar with quick menu + form
   ============================================ */

.subpage-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.subpage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 3rem;
  align-items: start;
}

.subpage-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.editorial-title {
  margin: 0 0 0.5rem;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.15;
  color: var(--primary-color);
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 1rem;
}

.editorial-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background: var(--highlight-color);
  border-radius: 2px;
}

.editorial-text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-color);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.editorial-text--highlight {
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, rgba(127, 194, 156, 0.12), rgba(127, 194, 156, 0.05));
  border-left: 4px solid var(--primary-color);
  border-radius: 0 16px 16px 0;
  font-style: italic;
  color: var(--primary-color);
  font-weight: 500;
  margin-top: 1rem;
}

.editorial-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.editorial-list li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 3rem;
  background: rgba(127, 194, 156, 0.06);
  border-radius: 12px;
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
  border: 1px solid rgba(127, 194, 156, 0.15);
  transition: background 260ms ease, transform 260ms ease, border-color 260ms ease;
}

.editorial-list li:hover {
  background: rgba(127, 194, 156, 0.12);
  border-color: rgba(127, 194, 156, 0.3);
  transform: translateX(4px);
}

.editorial-list li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: var(--primary-color);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============================================
   INLINE GALLERY (4-image creative row)
   ============================================ */

.inline-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  align-items: stretch;
  min-width: 0;
}

.gallery-item {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f0f0f0;
  aspect-ratio: 3 / 4;
  box-shadow: 0 6px 20px rgba(15, 45, 20, 0.08);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms ease;
  min-width: 0;
}


.gallery-item--tall {
  aspect-ratio: 3 / 4;
  margin-top: 0;
}

.gallery-item img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15, 45, 20, 0.18);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* ============================================
   STICKY SIDEBAR
   ============================================ */

.subpage-sidebar {
  align-self: start;
}

.subpage-sidebar__inner {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget {
  background: var(--panel-color, #ffffff);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 8px 30px rgba(15, 45, 20, 0.08);
  border: 1px solid rgba(127, 194, 156, 0.12);
}

/* Quick Menu Widget */
.quick-menu__title {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--primary-color);
  position: relative;
}

.quick-menu__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 40px;
  height: 2px;
  background: var(--highlight-color);
}

.quick-menu__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.quick-menu__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(127, 194, 156, 0.06);
  border-radius: 12px;
  color: var(--text-color);
  font-weight: 600;
  text-decoration: none;
  transition: background 260ms ease, color 260ms ease, transform 260ms ease, padding-left 260ms ease;
  position: relative;
  overflow: hidden;
}

.quick-menu__link::before {
  content: "→";
  color: var(--primary-color);
  font-weight: 700;
  transition: transform 260ms ease;
  display: inline-block;
}

.quick-menu__link:hover {
  background: var(--primary-color);
  color: #ffffff;
  padding-left: 1.25rem;
  transform: translateX(2px);
}

.quick-menu__link:hover::before {
  color: #ffffff;
  transform: translateX(4px);
}

/* ============================================
   SIDEBAR CONTACT FORM
   ============================================ */

.sidebar-form__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-form__desc {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--muted-color);
  line-height: 1.5;
}

.sidebar-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: 0.01em;
}

.sidebar-form input,
.sidebar-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-color);
  background: rgba(127, 194, 156, 0.05);
  border: 1.5px solid rgba(127, 194, 156, 0.25);
  border-radius: 10px;
  transition: border-color 260ms ease, background 260ms ease, box-shadow 260ms ease;
  outline: none;
  resize: vertical;
}

.sidebar-form input::placeholder,
.sidebar-form textarea::placeholder {
  color: var(--muted-color);
  opacity: 0.7;
}

.sidebar-form input:focus,
.sidebar-form textarea:focus {
  border-color: var(--primary-color);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(34, 90, 54, 0.12);
}

.sidebar-form input:hover:not(:focus),
.sidebar-form textarea:hover:not(:focus) {
  border-color: rgba(127, 194, 156, 0.5);
}

.sidebar-form textarea {
  min-height: 100px;
  line-height: 1.5;
}

.sidebar-form__submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.95rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  background: var(--primary-color);
  color: #ffffff;
  transition: background 260ms ease, transform 260ms ease, box-shadow 260ms ease;
  box-shadow: 0 4px 14px rgba(34, 90, 54, 0.25);
}

.sidebar-form__submit:hover {
  background: #1a4a2e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 90, 54, 0.35);
}

.sidebar-form__submit:active {
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE LAYOUT
   ============================================ */

@media (max-width: 1024px) {
  .subpage-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .subpage-sidebar__inner {
    position: static;
    top: auto;
  }

  .editorial-text {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .subpage-container {
    padding: 2rem 1rem 3rem;
  }

  .editorial-title {
    font-size: 2rem;
  }

  .editorial-title::after {
    width: 50px;
    height: 3px;
  }

  .editorial-text {
    font-size: 1rem;
    line-height: 1.75;
  }

  .editorial-text--highlight {
    padding: 1.25rem 1.5rem;
  }

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

  .gallery-item,
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4) {
    aspect-ratio: 1 / 1;
    margin-top: 0;
  }

  .sidebar-widget {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .editorial-title {
    font-size: 1.75rem;
  }

  .editorial-text {
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: center;
  }

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

  .sidebar-widget {
    padding: 1.25rem;
  }
}

/* ============================================
   EDITORIAL EXTRAS
   Sub-headings, tables, figures and content
   cards shared by the generated subpages.
   ============================================ */

.editorial-subtitle {
  margin: 1.25rem 0 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-color);
  letter-spacing: -0.01em;
}

.editorial-subtitle--sm {
  margin-top: 0.75rem;
  font-size: 1.1rem;
  color: var(--text-color);
}

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

.editorial-text a,
.editorial-list a {
  color: var(--primary-color);
  font-weight: 600;
  text-underline-offset: 3px;
}

.editorial-note {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted-color);
}

/* Hivatkozás-listák (pl. oldaltérkép): itt a pipa félrevezető lenne, mert
   nem teljesített pontokról van szó, hanem továbbvezető linkekről. Ugyanaz a
   narancs nyíl jelöli őket, mint a kártyák „További infó…” hivatkozásait.
   A 24px-es doboz marad, így a szöveg behúzása (padding-left: 3rem) sem
   mozdul el a pipás változathoz képest. */
.editorial-list--links li::before {
  content: "\2192";
  background: none;
  border-radius: 0;
  color: var(--highlight-color);
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ordered list mirroring .editorial-list styling */
.editorial-list--ordered {
  counter-reset: ed-item;
}

.editorial-list--ordered li {
  padding-left: 3.25rem;
}

.editorial-list--ordered li::before {
  counter-increment: ed-item;
  content: counter(ed-item);
  background-image: none;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Data tables */
.editorial-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(127, 194, 156, 0.25);
  box-shadow: 0 6px 20px rgba(15, 45, 20, 0.06);
  -webkit-overflow-scrolling: touch;
}

.editorial-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--panel-color);
  min-width: 520px;
}

.editorial-table th,
.editorial-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(127, 194, 156, 0.2);
  border-right: 1px solid rgba(127, 194, 156, 0.12);
  color: var(--text-color);
  line-height: 1.5;
}

.editorial-table th:last-child,
.editorial-table td:last-child {
  border-right: none;
}

.editorial-table thead th,
.editorial-table tr:first-child td {
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 600;
  border-bottom-color: var(--primary-color);
}

.editorial-table tbody tr:nth-child(even),
.editorial-table tr:nth-child(even) {
  background: rgba(127, 194, 156, 0.07);
}

.editorial-table tbody tr:last-child td {
  border-bottom: none;
}

/* Single figure with caption */
.editorial-figure {
  margin: 1rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f0f0f0;
  border: 1px solid rgba(127, 194, 156, 0.15);
  box-shadow: 0 6px 20px rgba(15, 45, 20, 0.08);
}

.editorial-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.editorial-figure figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted-color);
  background: var(--panel-color);
}

/* Content card grid (team, contact, imprint blocks) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 0.5rem 0;
}

.info-card {
  padding: 1.5rem 1.6rem;
  background: var(--panel-color);
  border: 1px solid rgba(127, 194, 156, 0.2);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 16px 16px 0;
  box-shadow: 0 6px 20px rgba(15, 45, 20, 0.06);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 45, 20, 0.12);
}

.info-card__name {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.info-card__role {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--highlight-color);
  font-weight: 600;
}

.info-card a {
  display: block;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.7;
}

.info-card a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Reference industry chips */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
  margin: 0.5rem 0;
}

.ref-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  background: rgba(127, 194, 156, 0.08);
  border: 1px solid rgba(127, 194, 156, 0.2);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  transition: background 240ms ease, transform 240ms ease, border-color 240ms ease;
}

.ref-chip:hover {
  background: rgba(127, 194, 156, 0.16);
  border-color: rgba(127, 194, 156, 0.4);
  transform: translateY(-3px);
}

.ref-chip::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--highlight-color);
}

/* Project cards */
.project-list {
  display: grid;
  gap: 1.25rem;
  margin: 0.5rem 0;
}

.project-card {
  padding: 1.5rem 1.6rem;
  background: var(--panel-color);
  border: 1px solid rgba(127, 194, 156, 0.2);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(15, 45, 20, 0.06);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 45, 20, 0.12);
}

.project-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.35;
}

.project-card__text {
  margin: 0;
  color: var(--muted-color);
  line-height: 1.75;
  font-size: 0.97rem;
}

/* Job accordion */
.job-item {
  border: 1px solid rgba(127, 194, 156, 0.22);
  border-radius: 14px;
  background: var(--panel-color);
  box-shadow: 0 4px 16px rgba(15, 45, 20, 0.05);
  overflow: hidden;
}

.job-item + .job-item {
  margin-top: 1rem;
}

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

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

.job-item > summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--highlight-color);
  transition: transform 240ms ease;
}

.job-item[open] > summary::after {
  transform: rotate(45deg);
}

.job-item__body {
  padding: 0 1.4rem 1.4rem;
  border-top: 1px solid rgba(127, 194, 156, 0.18);
}

.job-item__body h4 {
  margin: 1.1rem 0 0.4rem;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--highlight-color);
}

.job-item__body p {
  margin: 0.4rem 0;
  line-height: 1.7;
  color: var(--text-color);
}

.job-item__body ul {
  margin: 0.4rem 0;
  padding-left: 1.2rem;
  line-height: 1.7;
  color: var(--text-color);
}

@media (max-width: 480px) {
  .editorial-text--highlight {
    text-align: left;
  }
}

/* Clickable editorial images */
.inline-gallery .gallery-item,
.editorial-figure {
  cursor: zoom-in;
}

/* ============================================
   IMAGE LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 20, 10, 0.86);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.lightbox--open {
  opacity: 1;
  visibility: visible;
}

.lightbox__figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transform: scale(0.96);
  transition: transform 260ms var(--ease-strong, cubic-bezier(0.22, 1, 0.36, 1));
}

.lightbox--open .lightbox__figure {
  transform: scale(1);
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox__caption {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.5;
}

.lightbox__close {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: rotate(90deg);
}

@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox__figure,
  .lightbox__close {
    transition: none;
  }
}
