/* ============================================================
   Hodent Implantátum Akció 2026 — landing-2026.css
   Landing-specifikus stílusok. A theme CSS-t NEM módosítja.
   Brand: #751c5c (primary) · #4dc4c8 (teal)
   ============================================================ */

:root {
  --primary: #751c5c;
  --primary-hover: #91226f;
  --primary-overlay: rgba(118, 28, 88, .8);
  --primary-overlay-mobile: rgba(118, 28, 88, .9);
  --teal: #4dc4c8;
  --teal-light: #9ae2f0;
  --text: #333;
  --paragraph: #434343;
  --white: #fff;
  --faint: #fbfbfc;
  --grey: #f1f2f4;
  --muted: #aaa;
  --border: #ccc;

  --maxw: 1200px;
  --radius-card: 8px;
  --radius-btn: 3px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, .2);
  --shadow-soft: 0 2px 12px rgba(0, 0, 0, .07);

  /* Proxima Nova helyettesítő — a theme örökli az igazit */
  --font: "Mulish", "Proxima Nova", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px)  { .inner { padding: 0 40px; } }
@media (min-width: 1024px) { .inner { padding: 0 60px; } }

/* ---------- Tipográfia ---------- */
h1, h2, h3 { margin: 0; font-weight: 700; }

.label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.section { padding: 40px 0; }
@media (min-width: 1024px) { .section { padding: 60px 0; } }
.section.grey  { background: var(--grey); }
.section.faint { background: var(--faint); }

.section-title {
  font-size: clamp(24px, 5vw, 35px);
  letter-spacing: .01em;
  text-align: center;
  margin-bottom: 8px;
}
.section-title.primary { color: var(--primary); }
.section-title.dark    { color: var(--text); }
.section-intro {
  text-align: center;
  color: var(--paragraph);
  max-width: 620px;
  margin: 0 auto 44px;
}
.tealrule {
  width: 60px; height: 3px;
  background: var(--teal);
  margin: 0 auto 18px;
  border-radius: 2px;
}

/* ---------- Gombok ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
  border-radius: var(--radius-btn);
  padding: 10px 16px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  white-space: normal;
  text-align: center;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, opacity .18s ease;
}
.button:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.button.bordered { background: transparent; color: var(--primary); }
.button.bordered:hover { background: var(--primary); color: var(--white); }
.button.writeus { background: var(--white); color: var(--primary); border-color: var(--white); }
.button.writeus:hover { opacity: .88; }
.button.block { display: flex; width: 100%; }
.button.lg { font-size: 16px; padding: 14px 22px; max-width: none; }

/* ============================================================
   PLACEHOLDER (striped, monospace felirat)
   ============================================================ */
.ph {
  position: relative;
  background-color: #e9e6ec;
  background-image: repeating-linear-gradient(
    -45deg, rgba(117,28,92,.08) 0 10px, rgba(117,28,92,0) 10px 20px);
  display: flex; align-items: center; justify-content: center;
  color: #8a7d90;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: .04em; text-align: center;
  padding: 12px;
}
.ph.dark {
  background-color: #5d2350;
  background-image: repeating-linear-gradient(
    -45deg, rgba(255,255,255,.06) 0 10px, rgba(255,255,255,0) 10px 20px);
  color: rgba(255,255,255,.7);
}

/* ============================================================
   THEME HEADER / FOOTER (placeholder — örökli a hodent.hu)
   ============================================================ */
.theme-note {
  background: repeating-linear-gradient(-45deg,#f3eef5 0 8px,#fff 8px 16px);
  border-bottom: 1px dashed #d9cbd6;
  text-align: center;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px; color: #9b87a0; padding: 6px;
}
.theme-header {
  background: var(--white);
  border-bottom: 1px solid #ececec;
  position: relative; z-index: 50;
}
.theme-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo {
  font-weight: 800; font-size: 26px; letter-spacing: -.5px;
  color: var(--primary); text-decoration: none;
}
.logo span { color: var(--teal); }
.theme-nav { display: flex; gap: 26px; }
.theme-nav a {
  color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600;
}
.theme-nav a:hover { color: var(--primary); }
.theme-nav .lang { color: var(--muted); }
@media (max-width: 860px) { .theme-nav { display: none; } }

.theme-footer {
  background: #2a1424; color: rgba(255,255,255,.78);
  padding: 40px 0; font-size: 13px; line-height: 1.7;
}
.theme-footer a { color: var(--teal-light); text-decoration: none; }
.theme-footer .legal { color: rgba(255,255,255,.5); margin-top: 14px; font-size: 12px; }

/* ============================================================
   STICKY BAR
   ============================================================ */
#akcio-sticky-bar {
  position: sticky; top: 0; z-index: 999;
  background: var(--primary); color: var(--white);
  font-weight: 700; font-size: 14px;
  transition: transform .4s ease, opacity .4s ease;
}
#akcio-sticky-bar.hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }
#akcio-sticky-bar .bar-inner {
  max-width: var(--maxw); margin: 0 auto;
  min-height: 44px; padding: 6px 48px 6px 20px;
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap; text-align: center;
}
#akcio-sticky-bar .bar-logo {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  height: 22px; width: auto;
}
#akcio-sticky-bar .bolt { color: var(--teal-light); }
#akcio-sticky-bar .sep { opacity: .5; }
#akcio-sticky-bar .button.writeus { padding: 8px 14px; font-size: 12px; }
#akcio-sticky-bar .bar-close {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #fff; font-size: 20px;
  line-height: 1; cursor: pointer; opacity: .8; padding: 4px;
}
#akcio-sticky-bar .bar-close:hover { opacity: 1; }
@media (max-width: 620px) {
  #akcio-sticky-bar .bar-dates { display: none; }
  #akcio-sticky-bar .bar-logo { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background-color: #4a1340;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
}
.hero .hero-photo {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 14px, rgba(255,255,255,0) 14px 28px);
}
.hero .overlay { position: absolute; inset: 0; background: var(--primary-overlay); }
.hero .inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr; gap: 40px;
  padding-top: 56px; padding-bottom: 56px;
  min-height: 600px; align-items: center;
}
@media (min-width: 1024px) {
  .hero .inner {
    grid-template-columns: 58% 42%;
    min-height: calc(100vh - 120px);
    padding-top: 40px; padding-bottom: 40px;
  }
}

.hero-copy { color: #fff; max-width: 620px; }
.hero-copy .eyebrow {
  display: inline-block; color: var(--teal-light);
  margin-bottom: 18px;
}
.hero-copy h1 {
  font-size: 30px; line-height: 1.1; text-transform: uppercase;
  margin-bottom: 16px;
}
@media (min-width: 1024px) { .hero-copy h1 { font-size: 48px; } }
.hero-copy .subtitle {
  font-size: 22px; font-weight: 400; line-height: 1.3; margin-bottom: 18px;
  color: rgba(255,255,255,.95);
}
.hero-copy .lead { font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.9); margin-bottom: 26px; }

/* Hero fontos info */
.hero-notice {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(255,255,255,.1);
  border-left: 3px solid var(--teal);
  border-radius: 0 6px 6px 0;
  padding: 12px 16px; margin-bottom: 22px;
  color: #fff; font-size: 14px; line-height: 1.45; max-width: 560px;
}
.hero-notice strong { color: var(--teal-light); }
.hero-notice-tag {
  flex: none; align-self: center;
  background: var(--teal); color: #fff;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  padding: 3px 9px; border-radius: 999px;
}

/* Countdown */
.countdown-label { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.85); margin-bottom: 10px; font-weight: 600; }
.countdown { display: flex; gap: 10px; }
.cd-box {
  background: var(--teal); color: #fff;
  border-radius: 6px; padding: 10px 6px; min-width: 64px; text-align: center;
}
.cd-box .num { font-size: 32px; font-weight: 800; line-height: 1; }
.cd-box .unit { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; opacity: .9; }
@media (max-width: 380px) { .cd-box { min-width: 54px; } .cd-box .num { font-size: 26px; } }

/* ---------- FORM kártya ---------- */
.form-card {
  background: var(--white); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 20px;

  @media (min-width: 768px) { padding: 32px; }

  .form-head {
    color: var(--primary); font-size: 18px; font-weight: 700;
    text-transform: uppercase; line-height: 1.25; margin-bottom: 18px;
  }

  /* CF7 saját wrapperei/hibaüzenete ne törjön el semmit - a thankyou overlay helyettesíti */
  form.wpcf7-form { display: block; }
  .wpcf7-response-output { display: none; }
  .wpcf7-not-valid-tip { color: #b3261e; font-size: 12px; margin-top: 4px; display: block; }
  .hidden-fields-container { display: none; }

  /* CF7 screen-reader-response: hallható marad, csak vizuálisan tűnjön el */
  .screen-reader-response {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

.field {
  margin-bottom: 16px;

  > label.flabel {
    display: block; font-size: 13px; font-weight: 700; color: var(--text);
    margin-bottom: 6px;
  }
  .req { color: var(--primary); }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select {
    width: 100%; border: 1px solid var(--border); border-radius: var(--radius-btn);
    padding: 10px 12px; font-family: var(--font); font-size: 15px; color: var(--text);
    background: #fff; transition: border-color .15s ease, box-shadow .15s ease;

    &:focus {
      outline: none; border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(117,28,92,.12);
    }
  }
  .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
}
.refcode {
  > label.flabel {
    display: block; font-size: 13px; font-weight: 700; color: var(--text);
    margin-bottom: 6px;
  }
  input[type="text"]{
    width: 100%; border: 1px solid var(--border); border-radius: var(--radius-btn);
    padding: 10px 12px; font-family: var(--font); font-size: 15px; color: var(--text);
    background: #fff; transition: border-color .15s ease, box-shadow .15s ease;

    &:focus {
      outline: none; border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(117,28,92,.12);
    }
  }
}
.row2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  @media (max-width: 480px) { grid-template-columns: 1fr; }
}

/* Játék kérdés blokk */
.quiz {
  border: 1px solid #eee; border-radius: 6px; padding: 16px;
  background: #faf7f9; margin-bottom: 18px;

  .q { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 12px; }

  /* a CF7 [radio use_label_element] valódi markup-ja:
     span.wpcf7-radio > span.wpcf7-list-item > label > input + span.wpcf7-list-item-label
     -> a checked stílust az input:checked + span.wpcf7-list-item-label adja */
  .wpcf7-form-control.wpcf7-radio {
    display: flex; gap: 10px; flex-wrap: wrap; width: 100%;
  }
  .wpcf7-list-item {
    flex: 1; min-width: 70px; margin: 0;

    label { display: block; position: relative; margin: 0; cursor: pointer; }
    input[type="radio"] { position: absolute; opacity: 0; }

    .wpcf7-list-item-label {
      display: block; text-align: center;
      border: 1px solid var(--border); border-radius: 6px; padding: 12px 8px;
      font-weight: 700; font-size: 16px; color: var(--text); background: #fff;
      transition: all .15s ease;
    }
    label:hover .wpcf7-list-item-label { border-color: var(--primary); }
    input:checked + .wpcf7-list-item-label {
      border-color: var(--primary); background: var(--primary); color: #fff;
      box-shadow: 0 0 0 3px rgba(117,28,92,.12);
    }
  }
}
/* Ajánlói kód */
.refcode {
  border: 1.5px dashed var(--teal); border-radius: 6px;
  background: rgba(77,196,200,.06); padding: 14px; margin-bottom: 16px;

  .flabel { color: var(--primary); }
  input { border-color: var(--teal) !important; }
  .valid-msg { display: none; color: #0f7a4d; font-size: 13px; font-weight: 700; margin-top: 8px; }

  &.valid {
    background: rgba(77,196,200,.14);
    .valid-msg { display: block; }
  }
}

/* checkboxok - .checks > .check > CF7 [acceptance]/[checkbox use_label_element] mezők */
.checks {
  margin: 6px 0 18px;

  .check {
    margin-bottom: 12px;

    .wpcf7-list-item { display: block; margin: 0; }

    label {
      display: block; position: relative; cursor: pointer;
      font-size: 13px; color: var(--paragraph); line-height: 1.45;
    }
    input[type="checkbox"] { position: absolute; opacity: 0; }

    .wpcf7-list-item-label {
      position: relative; display: block; padding-left: 30px;

      &::before {
        content: ""; position: absolute; left: 0; top: 1px;
        width: 20px; height: 20px; border: 1px solid var(--border);
        border-radius: 4px; background: #fff; transition: all .15s ease;
      }
      &::after {
        content: ""; position: absolute; left: 6px; top: 6px; width: 5px; height: 10px;
        border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
        opacity: 0; transition: opacity .1s ease;
      }
    }
    input:checked + .wpcf7-list-item-label::before { background: var(--primary); border-color: var(--primary); }
    input:checked + .wpcf7-list-item-label::after { opacity: 1; }
    input:focus + .wpcf7-list-item-label::before { box-shadow: 0 0 0 3px rgba(117,28,92,.15); }

    a { color: var(--primary); }

    .wpcf7-not-valid-tip { display: block; color: #b3261e; font-size: 12px; margin: 4px 0 0 30px; }
  }
}

.submit-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 12px; }

/* a CF7 saját "küldés" spinnerét hagyjuk élni, a régi kézi .spinner nem kell */
.wpcf7-spinner { margin-left: 8px; }

/* ============================================================
   3 LÉPÉS
   ============================================================ */
.steps { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-soft);
  padding: 32px 24px; position: relative;
}
.step-card .step-num { color: var(--primary); font-size: 40px; font-weight: 600; line-height: 1; }
.step-card .step-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(77,196,200,.16); color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  margin: 14px 0 16px;
}
.step-card h3 { font-size: 22px; color: var(--text); margin-bottom: 8px; }
.step-card p { color: var(--paragraph); margin: 0; }

/* ============================================================
   4 PILLÉR
   ============================================================ */
.pillars { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .pillars { grid-template-columns: 1fr 1fr; } }
.pillar {
  border-left: 4px solid var(--primary);
  background: #fff; box-shadow: var(--shadow-soft); border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 24px 24px 24px 28px;
}
.pillar .picon { width: 40px; height: 40px; color: var(--primary); margin-bottom: 14px; }
.pillar h3 { color: var(--primary); font-size: 22px; margin-bottom: 10px; line-height: 1.25; }
.pillar p { color: var(--paragraph); margin: 0 0 14px; }
.pillar .pillar-link { color: var(--primary); font-weight: 700; font-size: 14px; text-decoration: none; }
.pillar .pillar-link:hover { text-decoration: underline; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* Partner logók */
.partner-logos {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  margin: 2px 0 16px; padding: 14px 0; border-top: 1px solid #eee;
}
.partner-logos img { height: 30px; width: auto; object-fit: contain; }
.badge {
  background: var(--teal); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}

/* ============================================================
   SZAKÉRTŐK — flip kártyák
   ============================================================ */
.experts { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 768px) { .experts { grid-template-columns: repeat(3, 1fr); } }
.flip-container { perspective: 1200px; }
.bigflip { position: relative; width: 100%; height: 360px; }
.flipper {
  position: relative; width: 100%; height: 100%;
  transition: transform .6s; transform-style: preserve-3d;
}
.flip-container:hover .flipper,
.flip-container:focus-within .flipper { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; backface-visibility: hidden;
  border-radius: var(--radius-card); overflow: hidden;
}
.flip-front .photo { position: absolute; inset: 0; }
.flip-front .front-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, var(--primary-overlay) 40%, var(--primary));
  color: #fff; padding: 20px 18px 16px;
}
.flip-front .front-info .name { font-size: 20px; font-weight: 800; }
.flip-front .front-info .title { font-size: 13px; opacity: .9; }
.flip-front .flip-hint {
  display: none;
}
.flip-back {
  transform: rotateY(180deg);
  background: var(--primary); color: #fff;
  padding: 26px 22px; display: flex; flex-direction: column; justify-content: center;
}
.flip-back .name { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.flip-back .title { font-size: 13px; color: var(--teal-light); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.flip-back p { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.92); margin: 0 0 12px; }
.flip-back .creds { font-size: 13px; color: var(--teal-light); font-weight: 700; }

/* ============================================================
   ESETBEMUTATÓK
   ============================================================ */
.cases { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 768px) { .cases { grid-template-columns: repeat(3, 1fr); } }
.case-card { background: #fff; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-soft); }
.case-photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 200px; }
.case-photos .ba { position: relative; }
.case-photos .ba .ba-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--text); color: #fff; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; padding: 3px 8px; border-radius: 3px;
}
.case-photos .divider { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--primary); transform: translateX(-1px); }
.case-body { padding: 20px; }
.case-body .quote-mark { color: var(--teal); font-size: 48px; line-height: .6; font-family: Georgia, serif; }
.case-body .quote { color: var(--paragraph); font-size: 15px; font-style: italic; line-height: 1.5; margin: 6px 0 14px; }
.case-body .who { color: var(--text); font-size: 14px; font-weight: 700; }
.case-body .meta { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 800px; margin: 0 auto; }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; text-align: left;
  font-family: var(--font); font-size: 16px; font-weight: 700; color: var(--text);
}
.acc-item.open .acc-q { color: var(--primary); }
.acc-q .arrow { color: var(--primary); flex: none; transition: transform .3s ease; font-size: 18px; }
.acc-item.open .acc-q .arrow { transform: rotate(180deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-a .acc-a-inner { color: var(--paragraph); font-size: 15px; line-height: 1.6; padding: 0 0 16px; }

/* ============================================================
   MÁSODIK CTA
   ============================================================ */
.cta-band { background: var(--primary); color: #fff; padding: 48px 0; text-align: center; }
.cta-band h2 { font-size: 30px; margin-bottom: 12px; }
.cta-band p { font-size: 16px; color: rgba(255,255,255,.92); max-width: 560px; margin: 0 auto 24px; }

/* ============================================================
   KÖSZÖNŐ overlay
   ============================================================ */
.thankyou-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(42,20,36,.6); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.thankyou-overlay.show { display: flex; }
.thankyou-card {
  background: var(--faint); border-radius: 14px; max-width: 560px; width: 100%;
  padding: 48px 36px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: pop .35s ease;
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.thankyou-card .checkmark {
  width: 80px; height: 80px; border-radius: 50%; background: var(--teal);
  margin: 0 auto 22px; display: flex; align-items: center; justify-content: center;
}
.thankyou-card .checkmark svg { width: 40px; height: 40px; }
.thankyou-card h1 { font-size: 30px; color: var(--text); margin-bottom: 14px; }
.thankyou-card p { color: var(--paragraph); font-size: 16px; line-height: 1.55; margin: 0 auto 10px; max-width: 420px; }
.thankyou-card .button { margin-top: 18px; }
.thankyou-card .small { font-size: 12px; color: var(--muted); margin-top: 14px; }
.thankyou-card .ty-close {
  position: absolute; top: 16px; right: 18px; background: none; border: none;
  font-size: 26px; color: var(--muted); cursor: pointer;
}

/* ============================================================
   JÁTÉKSZABÁLYZAT overlay (beépített)
   ============================================================ */
.rules-overlay {
  position: fixed; inset: 0; z-index: 2500;
  background: var(--faint);
  display: none; flex-direction: column;
}
.rules-overlay.show { display: flex; }
.rules-overlay .rules-head {
  background: var(--primary); color: #fff; flex: none;
}
.rules-overlay .rules-head .inner {
  display: flex; align-items: center; gap: 16px; height: 64px;
  max-width: 880px;
}
.rules-overlay .rules-head img { height: 26px; width: auto; }
.rules-overlay .rules-head .titles { border-left: 1px solid rgba(255,255,255,.3); padding-left: 16px; flex: 1; }
.rules-overlay .rules-head h2 { font-size: 19px; text-transform: uppercase; letter-spacing: .5px; line-height: 1.1; }
.rules-overlay .rules-head .sub { font-size: 12px; color: var(--teal-light); margin-top: 3px; }
.rules-overlay .rules-close {
  background: rgba(255,255,255,.14); border: none; color: #fff;
  width: 38px; height: 38px; border-radius: 50%; font-size: 22px; cursor: pointer;
  flex: none; transition: background .15s ease;
}
.rules-overlay .rules-close:hover { background: rgba(255,255,255,.28); }
.rules-overlay .rules-scroll { overflow-y: auto; flex: 1; }
.rules-overlay .doc { max-width: 880px; margin: 0 auto; padding: 36px 20px 70px; }
@media (min-width: 768px) { .rules-overlay .doc { padding: 44px 40px 80px; } }
.rules-overlay .doc .meta {
  color: var(--muted); font-size: 13px; margin-bottom: 26px;
  border-bottom: 1px solid #e7e3ea; padding-bottom: 16px;
}
.rules-overlay .doc h3 {
  color: var(--primary); font-size: 17px; text-transform: uppercase;
  letter-spacing: .5px; margin: 30px 0 8px;
  display: flex; gap: 10px; align-items: baseline;
}
.rules-overlay .doc h3 .n { color: var(--teal); font-size: 15px; font-weight: 800; flex: none; }
.rules-overlay .doc p, .rules-overlay .doc li { color: var(--paragraph); font-size: 15px; line-height: 1.65; }
.rules-overlay .doc p { margin: 0 0 12px; }
.rules-overlay .doc ul, .rules-overlay .doc ol { margin: 0 0 12px; padding-left: 20px; }
.rules-overlay .doc li { margin-bottom: 7px; }
.rules-overlay .doc strong { color: var(--text); }
.rules-overlay .doc a { color: var(--primary); }
.rules-overlay .doc .callout {
  background: #fff; border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0; padding: 16px 18px; margin: 14px 0 18px;
  box-shadow: var(--shadow-soft); font-size: 15px; color: var(--paragraph);
}
.rules-overlay .doc .contact {
  background: #fff; border: 1px solid #e7e3ea; border-radius: 8px;
  padding: 20px 22px; margin-top: 32px; font-size: 15px; color: var(--paragraph);
}
.rules-overlay .doc .contact strong { display: block; color: var(--primary); margin-bottom: 6px; font-size: 16px; }
.rules-overlay .doc .back { margin-top: 30px; }
