#preloader {
  position: fixed;
  inset: 0;
  background-color: #ffffff;
  z-index: 999999;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.toast {
  position: fixed;
  inset: auto 1rem 1rem auto;
  min-width: 240px;
  max-width: 92vw;
  padding: 0.95rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(34, 90, 54, 0.95);
  color: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease;
  z-index: 250;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #1caf5b;
  font-size: 1rem;
}

.toast__message {
  margin: 0;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--highlight-color);
  color: var(--text-inverse);
  border: 1px solid transparent;
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #ffffff;
  color: var(--highlight-color);
  border-color: var(--highlight-color);
  box-shadow: 0 18px 40px rgba(241, 141, 45, 0.22);
}

.button--secondary {
  background: rgba(34, 90, 54, 0.1);
  color: var(--text-color);
}

.cta-banner__actions .button--secondary {
  color: #ffffff;
  background: rgba(127, 194, 156, 0.18);
  border: 1px solid rgba(127, 194, 156, 0.45);
  box-shadow: 0 0 0 6px rgba(127, 194, 156, 0.08);
}

.cta-banner__actions .button--secondary:hover,
.cta-banner__actions .button--secondary:focus-visible {
  background: rgba(127, 194, 156, 0.26);
  color: #ffffff;
}

.cookie-banner__actions .cookie-decline {
  color: #097601;
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: rgba(34, 90, 54, 0.18);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  background: rgba(8, 14, 9, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
  will-change: opacity;
}

.modal-overlay.show,
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-container {
  position: relative;
  width: min(920px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 18px;
  background: radial-gradient(circle at top right, rgba(243, 156, 18, 0.16), transparent 32%), linear-gradient(155deg, #163016 0%, #1a3619 65%, #11260f 100%);
  color: #f4f0e6;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  padding: clamp(1.15rem, 2.2vw, 1.95rem);
  transform-origin: center center;
  will-change: opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
  -webkit-overflow-scrolling: touch;
}

.modal-container::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

.modal-container::-webkit-scrollbar-thumb {
  background: transparent;
}

.modal-overlay.show .modal-container,
.modal-overlay.active .modal-container {
  opacity: 1;
  visibility: visible;
}

.modal-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 0 1.35rem;
}

.modal-title-icon {
  width: 1.6rem;
  height: 1.6rem;
  color: #f39c12;
  flex-shrink: 0;
}

.modal-container h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  color: #fff5e5;
}

.modal-close,
.modal-close-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close:hover,
.modal-close-btn:hover {
  background: rgba(243, 156, 18, 0.2);
  transform: scale(1.04);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem 1rem;
  align-items: start;
}

/* A .checkbox-item kimarad a nullázásból: az a "pill" formájú kapcsoló,
   aminek saját belső tere és kerete van. Enélkül ez a szabály – mert
   elem+osztály révén erősebb – felülírná a paddingjét és a border-ét. */
.contact-form label:not(.checkbox-item),
.contact-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.contact-form .checkbox-item {
  margin: 0;
  min-width: 0;
}

/* Szintén csak a valódi mezőcímkékre: a pill belsejében lévő <span>-eket
   nem szabad blokkosítani és alsó margóval megtolni, mert kibillentik a
   szöveget a lekerekített keretből. */
.contact-form label:not(.checkbox-item) > span,
.contact-form legend {
  display: block;
  margin-bottom: 0.4rem;
  color: #f5efde;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: none;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  padding: 12px 15px;
  font-size: 1rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 8px 22px rgba(0, 0, 0, 0.18);
  transition: box-shadow 0.22s ease, background 0.22s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px #f39c12;
}

.contact-form select option {
  color: #163016;
}

.contact-form label.full-width,
.contact-form textarea,
.form-actions,
.modal-note,
.contact-form .topics,
.contact-form .sources {
  grid-column: 1 / -1;
}

.contact-form textarea {
  min-height: 135px;
  resize: none;
}

.modal-group-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* A választható témák "pill" formában – ugyanaz a nyelv, mint a
   .ref-chip / .bento-card__features elemek az aloldalakon. */
.checkbox-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  color: #fff6e8;
  /* Bőséges belső tér: a magyar ékezetes nagybetűk (Ő, Ű, Á) magasak,
     szűk padding mellett kilógnak a lekerekített keretből. */
  padding: 0.7rem 1.2rem;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.92rem;
  line-height: 1.5;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.checkbox-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(243, 156, 18, 0.5);
}

.checkbox-item:has(input:checked) {
  background: rgba(243, 156, 18, 0.16);
  border-color: #f39c12;
}

.checkbox-item:has(input:focus-visible) {
  outline: 2px solid #f39c12;
  outline-offset: 2px;
}

.checkbox-item span:last-child {
  min-width: 0;
  white-space: normal;
  word-break: normal;
  /* csak akkor tör szót, ha az önmagában szélesebb a doboznál */
  overflow-wrap: break-word;
}

.checkbox-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-box {
  width: 17px;
  height: 17px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-box {
  background: #f39c12;
  border-color: #f39c12;
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #173019;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.modal-note {
  margin: 0.2rem 0;
  color: rgba(245, 240, 230, 0.76);
  font-size: 0.85rem;
  font-style: italic;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.35rem;
}

.modal-submit {
  border: none;
  border-radius: 12px;
  background: #f39c12;
  color: #1a3619;
  font-weight: 700;
  font-size: 1rem;
  min-height: 52px;
  padding: 0.95rem 1.8rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.modal-submit:hover,
.modal-submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(243, 156, 18, 0.35);
  filter: brightness(1.03);
}

/* ============================================
   KAPCSOLATI ŰRLAP – kiegészítő elemek
   ============================================ */

.modal-lead {
  margin: -0.6rem 0 1.4rem;
  text-align: center;
  color: rgba(245, 240, 230, 0.82);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Szakaszcímke: kis narancs vonal + nagybetűs felirat */
.form-step {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.6rem 0 0;
  color: #f39c12;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-step::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(243, 156, 18, 0.45), transparent);
}

.contact-form .field {
  display: flex;
  flex-direction: column;
}

/* Spamcsapda – a látogató nem látja, a robot kitölti */
.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.consent-item {
  grid-column: 1 / -1;
  align-items: flex-start;
  border-radius: 12px;
  background: transparent;
  border-color: transparent;
  padding: 0.25rem 0;
  font-size: 0.88rem;
}

.consent-item:hover {
  background: transparent;
  border-color: transparent;
}

.consent-item:has(input:checked) {
  background: transparent;
  border-color: transparent;
}

.consent-item .checkbox-box {
  margin-top: 0.15rem;
}

.consent-item a {
  color: #f8c471;
  text-underline-offset: 3px;
}

.consent-item a:hover {
  color: #ffffff;
}

/* Visszajelzés a küldés után */
.form-status {
  grid-column: 1 / -1;
  margin: 0.2rem 0 0;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.55;
  border: 1px solid transparent;
}

.form-status--ok {
  background: rgba(127, 194, 156, 0.16);
  border-color: rgba(127, 194, 156, 0.5);
  color: #d8f3e4;
}

.form-status--error {
  background: rgba(255, 143, 122, 0.14);
  border-color: rgba(255, 143, 122, 0.5);
  color: #ffd3c9;
}

/* Küldés közbeni állapot */
.modal-submit[disabled] {
  opacity: 0.75;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

.modal-submit.is-sending::before {
  content: "";
  width: 15px;
  height: 15px;
  margin-right: 0.6rem;
  border: 2px solid rgba(26, 54, 25, 0.35);
  border-top-color: #1a3619;
  border-radius: 50%;
  display: inline-block;
  animation: modalSpin 0.7s linear infinite;
}

@keyframes modalSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-actions {
    justify-content: stretch;
  }

  .modal-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .checkbox-item,
  .modal-submit {
    transition: none;
  }

  .modal-submit.is-sending::before {
    animation: none;
  }
}

/* A sötétzöld modálon a tiszta piros olvashatatlan, ezért világosabb jelzőszín. */
.has-error {
  box-shadow: inset 0 0 0 2px #ff8f7a, 0 8px 22px rgba(0, 0, 0, 0.18) !important;
  background: rgba(255, 143, 122, 0.12) !important;
}

.error-msg {
  color: #ffb9aa;
  font-size: 0.82rem;
  margin-top: 0.3rem;
  display: block;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--panel-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(127, 194, 156, 0.22);

  /* Nyugalmi állapotban is ugyanaz a NÉGY árnyékréteg szerepel, csak
     a narancs fények alfája 0. Így a böngésző rétegről rétegre tud
     interpolálni, és az izzás lágyan úszik be – nem ugrik. */
  box-shadow:
    inset 0 0 0 1px rgba(241, 141, 45, 0),
    0 0 16px -1px rgba(241, 141, 45, 0),
    0 0 38px -6px rgba(241, 141, 45, 0),
    0 6px 24px rgba(15, 45, 20, 0.06);

  transition:
    transform 420ms var(--ease-strong),
    box-shadow 480ms ease,
    border-color 480ms ease;
  cursor: pointer;
}

/* Hoverre a keret felizzik – finom narancs neonfény a kártya körül. */
.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(241, 141, 45, 0.6);
  box-shadow:
    /* belső fénykontúr: vastagabbnak, világítónak mutatja a keretet */
    inset 0 0 0 1px rgba(241, 141, 45, 0.3),
    /* szoros izzás közvetlenül a kártya körül */
    0 0 16px -1px rgba(241, 141, 45, 0.4),
    /* lágy, szélesebb fényudvar */
    0 0 38px -6px rgba(241, 141, 45, 0.26),
    /* mélységárnyék */
    0 26px 54px -30px rgba(15, 45, 20, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .feature-card {
    transition: none;
  }
}

.feature-card:focus-within {
  outline: 3px solid rgba(126, 194, 156, 0.35);
  outline-offset: 4px;
}

.feature-card__thumb {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 1.35rem;
  background: rgba(127, 194, 156, 0.08);
}

.feature-card__image {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 600ms var(--ease-strong);
}

.feature-card:hover .feature-card__image {
  transform: scale(1.06);
}

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

.feature-card__text {
  margin: 0.7rem 0 1.4rem;
  line-height: 1.75;
  color: var(--muted-color);
}

.feature-card__link {
  /* margin-top:auto -> a link minden kártyán az aljára kerül, így a
     különböző hosszúságú leírások mellett is egy vonalban állnak. */
  margin-top: auto;
  align-self: flex-start;
  /* static, hogy az ::after a kártyához igazodjon, ne a linkhez */
  position: static;
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 0.45rem;
  color: var(--highlight-color);
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition);
}

/* row-reverse miatt a nyíl a szöveg után jelenik meg */
.feature-card__link::before {
  content: "\2192";
  font-size: 1.05em;
  line-height: 1;
  transition: transform 260ms var(--ease-strong);
}

.feature-card:hover .feature-card__link::before {
  transform: translateX(4px);
}

/* Az egész kártya kattinthatóvá tétele: a link ::after eleme kifeszül
   a kártyára. Így egyetlen fókuszálható elem marad, és nem kell
   linket linkbe ágyazni. */
.feature-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.feature-card__link:hover {
  color: #d97b12;
}

.card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.card h2,
.card h3 {
  margin-top: 0;
  color: var(--text-color);
}

.card p {
  margin: 0.9rem 0 0;
  color: var(--muted-color);
  line-height: 1.75;
}

.card--image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(22, 73, 39, 0.82);
  color: rgba(238, 245, 236, 0.96);
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 22px;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 99999;
  box-shadow: 0 18px 42px rgba(5, 18, 7, 0.22);
}

.cookie-banner.cookie-banner--hidden,
.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner p {
  margin: 0;
  color: rgba(242, 247, 239, 0.96);
  font-size: 0.95rem;
  line-height: 1.65;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cookie-banner__actions button {
  border-radius: 999px;
  padding: 0.92rem 1.35rem;
  min-width: 138px;
  font-weight: 700;
  transition: transform 250ms ease, box-shadow 250ms ease, background 250ms ease, color 250ms ease;
}

.cookie-banner__actions .cookie-decline {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(226, 243, 228, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.cookie-banner__actions .cookie-decline:hover,
.cookie-banner__actions .cookie-decline:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.cookie-banner__actions .cookie-accept {
  background: rgba(250, 248, 240, 0.96);
  color: var(--primary-color);
  border: 1px solid rgba(34, 90, 54, 0.12);
  box-shadow: 0 10px 28px rgba(34, 90, 54, 0.12);
}

.cookie-banner__actions .cookie-accept:hover,
.cookie-banner__actions .cookie-accept:focus-visible {
  transform: translateY(-1px);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(34, 90, 54, 0.16);
}

@media (max-width: 760px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
  }

  .cookie-banner__actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .modal-container {
    width: 95% !important;
    height: auto !important;
    max-height: 95vh !important;
    border-radius: 12px !important;
    margin: auto !important;
    padding: 1.15rem 1rem 1.5rem !important;
    overflow-y: auto !important;
  }

  .modal-overlay {
    padding: 0 !important;
    align-items: stretch;
  }

  .contact-form,
  .contact-form .modal-group-options,
  .contact-form .topics,
  .contact-form .sources {
    grid-template-columns: 1fr !important;
  }

  .contact-form {
    gap: 0.85rem;
  }

  .contact-form label,
  .contact-form fieldset,
  .contact-form input,
  .contact-form select,
  .contact-form textarea,
  .contact-form .topics,
  .contact-form .sources,
  .contact-form .checkbox-item,
  .contact-form .modal-group-options,
  .form-actions,
  .modal-submit {
    width: 100% !important;
  }

  .contact-form .topics,
  .contact-form .sources {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .contact-form .topics,
  .form-actions,
  .contact-form textarea,
  .contact-form select {
    grid-column: auto;
  }

  .form-actions {
    justify-content: stretch;
  }

  .modal-submit {
    width: 100% !important;
  }
}
