html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset, calc(5.75rem + 1px));
}
#top {
  scroll-margin-top: calc(-1 * var(--header-offset, 5.75rem));
}
body { font-family: Raleway, Arial, sans-serif; color: #444; }
.box-rule::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  margin: 20px auto 0;
  background: #4FB448;
}
.box-rule-left::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 13px;
  background: #4FB448;
}
.box-rule-sm::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 23px auto 0;
  background: #4FB448;
}
#menu-toggle:checked ~ #mobile-panel { max-height: 80vh; }
.site-header {
  isolation: isolate;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  backdrop-filter: saturate(180%) blur(28px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 8px 28px rgba(29, 44, 57, 0.06);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.08) 42%,
    rgba(255, 255, 255, 0) 100%
  );
}
.site-header > * {
  position: relative;
  z-index: 1;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(255, 255, 255, 0.92); }
}
.site-nav a {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #4FB448;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a.is-active { color: #4FB448; }
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* Alapkép a táblák alatt: betöltés közben és reduced-motion esetén ez látszik.
   A home.js ugyanezt a WebP fájlt kéri, így egyszer töltődik. */
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-1920.webp?v=2');
  background-size: cover;
  background-position: center;
  filter: saturate(0.6) brightness(0.85);
}
.hero-panes {
  position: absolute;
  inset: 0;
  perspective: 900px;
}
.hero-pane {
  position: absolute;
  display: block;
  background-repeat: no-repeat;
  transform:
    rotateX(calc(var(--rx, 0) * 1deg))
    rotateY(calc(var(--ry, 0) * 1deg))
    translateZ(calc(var(--lift, 0) * 1px))
    scale(var(--scale, 1));
  filter: saturate(var(--sat, 0.6)) brightness(var(--bright, 0.85));
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.5s ease;
  backface-visibility: hidden;
  will-change: transform, filter;
}
.hero-pane::before,
.hero-pane::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-pane::before {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.hero-pane::after {
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.5) 47%,
    rgba(190, 245, 185, 0.32) 56%,
    transparent 73%
  );
  opacity: var(--glare, 0);
  mix-blend-mode: screen;
  transition: opacity 0.45s ease;
}
.hero-pane.is-pulse::before {
  animation: hero-pane-ring 0.7s ease-out var(--delay, 0s);
}
.hero-pane.is-pulse::after {
  animation: hero-pane-flash 0.7s ease-out var(--delay, 0s);
}
@keyframes hero-pane-ring {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
  30% { box-shadow: inset 0 0 0 2px rgba(79, 180, 72, 0.85), inset 0 0 26px rgba(79, 180, 72, 0.45); }
}
@keyframes hero-pane-flash {
  0% { opacity: var(--glare, 0); }
  30% { opacity: 0.9; }
  100% { opacity: var(--glare, 0); }
}
.hero-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(98deg, rgba(29, 44, 57, 0.94) 0%, rgba(29, 44, 57, 0.7) 34%, rgba(29, 44, 57, 0.14) 68%, rgba(29, 44, 57, 0.28) 100%),
    radial-gradient(120% 95% at 10% 48%, rgba(29, 44, 57, 0.55), transparent 68%);
}
.hero-card {
  animation: hero-card-in 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.hero-title {
  max-width: 11.5em;
  font-size: clamp(1.85rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 24px rgba(29, 44, 57, 0.55);
}
.hero-title-end {
  color: #d9d9d9;
  text-shadow: 0 2px 20px rgba(29, 44, 57, 0.45);
}
.hero-card p {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 14px rgba(29, 44, 57, 0.75);
}
.hero-title::after {
  content: "";
  display: block;
  width: 5rem;
  height: 3px;
  margin-top: 1.3rem;
  background: #4FB448;
}
.hero-cta:hover {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
@keyframes hero-card-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.hero-scroll-link {
  bottom: calc(1.25rem + var(--cookie-offset, 0px));
  transition: bottom 0.28s ease;
}
.hero-scroll-cue {
  animation: hero-scroll-bounce 1.9s ease-in-out infinite;
}
@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-panes { display: none; }
  .hero-card { animation: none; }
  .hero-scroll-cue { animation: none; }
  .hero-scroll-link { transition: none; }
  .faq-item summary::after { transition: none; }
}
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.modal-toggle:checked + .project-modal { display: flex; }
body:has(.modal-toggle:checked) { overflow: hidden; }
.gallery-modal-panel {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 64rem;
  height: min(88vh, calc(8.25rem + 3 * 190px + 2 * 1rem + 2.75rem + 24px));
  overflow: hidden;
  background: #fff;
  border: 12px solid #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.gallery-overview .gallery-modal-panel {
  height: min(88vh, calc(8.25rem + 3 * 190px + 2 * 1rem + 2.75rem + 24px + 3.25rem));
}
.gallery-slider {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-slider::-webkit-scrollbar { display: none; }
/* JS nélkül a noscript-páros adja a képet: a wrapper ne törje meg a rácsot. */
.gallery-slider noscript,
.gallery-overview-grid noscript { display: contents; }
.gallery-slider img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.gallery-dots {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transform: translateX(-50%);
  padding: 0.35rem 0.55rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.38);
}
.gallery-dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.gallery-dot:hover { background: rgba(255, 255, 255, 0.85); }
.gallery-dot.is-on {
  background: #4FB448;
  transform: scale(1.25);
}
.gallery-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 1.25rem;
  list-style: none;
  overflow: hidden;
}
.gallery-overview-grid > li {
  display: block;
  min-height: 0;
}
.gallery-overview-grid > li.is-tag-hidden,
.gallery-overview-grid > li.is-page-hidden { display: none; }
.gallery-tag-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.22rem 0.28rem;
  padding: 0 1.25rem 0.55rem;
  line-height: 1.15;
}
.gallery-tag-filter .docs-filter-btn {
  padding: 0.22rem 0.55rem;
  font-size: 10px;
  line-height: 1.15;
  letter-spacing: 0.4px;
}
.gallery-tag-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1.5rem;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}
.gallery-tag-empty[hidden] { display: none; }
.gallery-overview-pager {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.2rem 1.25rem 0.85rem;
}
.gallery-overview-pager[hidden] { display: none; }
.gallery-overview-prev,
.gallery-overview-next {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  background: #F5F5F5;
  color: #1D2C39;
  cursor: pointer;
}
.gallery-overview-prev:hover:not(:disabled),
.gallery-overview-next:hover:not(:disabled) {
  background: #4FB448;
  color: #fff;
}
.gallery-overview-prev:disabled,
.gallery-overview-next:disabled {
  cursor: default;
  opacity: 0.35;
}
.gallery-overview-prev svg,
.gallery-overview-next svg {
  pointer-events: none;
}
.gallery-overview-page {
  margin: 0;
  min-width: 4.5rem;
  color: #1D2C39;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
.gallery-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
}
.gallery-item-tags li {
  border-radius: 9999px;
  background: #F5F5F5;
  color: #1D2C39;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 0.2rem 0.65rem;
}
.team-slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.team-slider::-webkit-scrollbar { display: none; }
.team-slider > li {
  flex: 0 0 85%;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 8px;
}
@media (min-width: 640px) {
  .team-slider > li { flex-basis: calc((100% - 2rem) / 2); }
}
@media (min-width: 1024px) {
  .team-slider > li { flex-basis: calc((100% - 6rem) / 4); }
}
.partner-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.partner-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: partner-marquee-scroll 32s linear infinite;
}
.partner-marquee-track > li {
  flex: 0 0 200px;
  margin-right: 2rem;
}
.partner-emblem {
  display: flex;
  height: 80px;
  align-items: center;
  justify-content: center;
  border: 1px solid #E2E6E7;
  background: #fff;
  padding: 0 1.25rem;
}
.partner-emblem img {
  display: block;
  max-height: 56px;
  max-width: 176px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(0.78) brightness(1.22);
  opacity: 0.78;
}
@keyframes partner-marquee-scroll {
  from { transform: translateX(calc(-100% / var(--copies, 2))); }
  to { transform: translateX(0); }
}
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-panel #contact-form {
  transition: opacity 0.4s ease;
}
.contact-panel.is-sent #contact-form {
  opacity: 0;
  pointer-events: none;
}
.contact-done {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.contact-panel.is-sent .contact-done {
  opacity: 1;
  pointer-events: auto;
}
.contact-done-icon {
  display: flex;
  height: 4.5rem;
  width: 4.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 2px solid #4FB448;
  color: #4FB448;
}
.contact-done-icon svg {
  width: 2.25rem;
  height: 2.25rem;
}
.contact-done-text {
  max-width: 22rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.55;
  color: #1D2C39;
}
.field-wrap {
  position: relative;
}
.field-tip {
  position: absolute;
  left: 0;
  top: calc(100% + 7px);
  z-index: 6;
  max-width: min(100%, 18rem);
  padding: 0.42rem 0.7rem;
  border-radius: 4px;
  background: #1D2C39;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-3px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.field-tip::before {
  content: "";
  position: absolute;
  left: 14px;
  bottom: 100%;
  border: 6px solid transparent;
  border-bottom-color: #1D2C39;
}
.field-tip:not(:empty) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.field-tip-over {
  top: auto;
  bottom: calc(100% + 8px);
}
.field-tip-over::before {
  bottom: auto;
  top: 100%;
  border-bottom-color: transparent;
  border-top-color: #1D2C39;
}
.field-tip-in {
  top: auto;
  bottom: 10px;
  left: 12px;
}
.field-tip-in::before {
  display: none;
}
#contact-form .is-invalid {
  border-color: #d92d20;
}
#contact-form .is-invalid:focus {
  border-color: #d92d20;
}
#contact-form button[disabled] {
  opacity: 0.65;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .contact-panel #contact-form,
  .contact-done,
  .field-tip {
    transition: none;
  }
}
.docs-filter-btn {
  border: 0;
  border-radius: 9999px;
  padding: 0.7rem 1.15rem;
  background: transparent;
  color: #1D2C39;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.docs-filter-btn.is-on {
  background: #4FB448;
  color: #fff;
}
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: 0 0 10px;
  height: 10px;
  margin-top: -4px;
  border-right: 2px solid #4FB448;
  border-bottom: 2px solid #4FB448;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  margin-top: 4px;
  transform: rotate(225deg);
}
.faq-item .faq-a {
  padding: 0 1.75rem 1.1rem 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.7;
}
@media (prefers-reduced-motion: reduce) {
  .partner-marquee {
    mask-image: none;
    -webkit-mask-image: none;
    overflow-x: auto;
  }
  .partner-marquee-track { animation: none; }
}
#contact a.group > span,
#contact a.group svg {
  color: #fff;
}
