/* Defensys Hungaria – közös stílus (főoldal és aloldalak) */
  /* Az arculat az EmeLOG marketing oldallal (emelog/templates/marketing.html) egyezik */
  :root {
    --steel-ink: #e9ecee;
    --steel-mid: #b7c1cc;
    --steel-soft: #7f8b98;
    --plate: #12151a;
    --paper: #1a1f26;
    --paper-2: #161b21;
    --line: #2b323b;
    --cyan: #22d3ee;
    --cyan-ink: #06222b;
    --cyan-text: #5fe1f5;

    --font-display: 'Bahnschrift', 'DIN Alternate', 'Archivo Narrow', 'Arial Narrow', sans-serif;
    --font-body: -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Consolas', 'SF Mono', 'Cascadia Mono', ui-monospace, monospace;
  }

  * { box-sizing: border-box; }
  html { background: var(--plate); scroll-behavior: smooth; }
  body {
    margin: 0;
    color: var(--steel-ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  img, svg { max-width: 100%; display: block; }

  /* RÖGZÍTETT HÁTTÉR: a kép a teljes oldal mögött áll, görgetéskor a tartalom csúszik el fölötte. Külön rétegen (nem
     background-attachment: fixed), mert azt az iOS Safari nem támogatja. A szekciók félig áttetsző fedést kapnak,
     így a kép mindenhol átdereng, a szöveg mégis olvasható marad. (A body-nak ezért nincs saját háttere.) */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url('hero_bg.jpg') center/cover no-repeat;
  }

  .wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px;
  }

  h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; letter-spacing: 0.01em; }

  .eyebrow {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cyan-text);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--cyan);
    display: inline-block;
  }

  a { color: inherit; }

  .skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    background: var(--cyan);
    color: var(--cyan-ink);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    padding: 12px 18px;
    z-index: 100;
    transition: top 0.15s ease;
    text-decoration: none;
  }
  .skip-link:focus { top: 16px; }

  /* NAV */
  nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(18, 21, 26, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
  }
  .nav-logo { height: 46px; width: auto; }
  .nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 22px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .nav-links a {
    text-decoration: none;
    color: var(--steel-mid);
    transition: color 0.2s ease;
  }
  .nav-links a:hover { color: var(--cyan-text); }
  .nav-cta {
    background: var(--cyan);
    color: var(--cyan-ink) !important;
    padding: 8px 16px;
    font-weight: 700;
    border-radius: 4px;
  }
  .nav-cta:hover { filter: brightness(1.15); }

  /* HERO */
  .hero {
    position: relative;
    padding: 72px 0 88px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(20, 24, 29, 0.92) 0%, rgba(20, 24, 29, 0.78) 100%);
    color: #ffffff;
  }
  .brand-logo {
    height: 170px;
    width: auto;
    margin: 24px auto 64px;
    filter: drop-shadow(0 2px 12px rgba(255, 255, 255, 0.15));
  }
  .hero .eyebrow { color: var(--cyan); }
  /* A H1 a kulcsszavas felirat (keresőknek), a szlogen csak megjelenésében főcím */
  .hero h1.eyebrow { font-weight: 400; line-height: 1.6; }
  .hero .hero-slogan {
    font-family: var(--font-display);
    text-wrap: balance;
    letter-spacing: 0.01em;
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 600;
    line-height: 1.08;
    margin: 18px 0 22px;
    color: #ffffff;
  }
  .hero .lede { color: #d0d7de; max-width: 60ch; }

  .stat-strip {
    margin-top: 44px;
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  .stat-strip span {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.04em;
    color: #c0caf5;
    padding: 14px 22px 14px 0;
    margin-right: 22px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }
  .stat-strip span:last-child { border-right: none; }
  .stat-strip b { color: #ffffff; font-weight: 700; }

  /* SECTION & SERVICE CARDS */
  .section { padding: 84px 0; scroll-margin-top: 80px; background: rgba(18, 21, 26, 0.95); }
  .section-head { max-width: 62ch; margin-bottom: 48px; }
  .section-head h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 600; margin-top: 14px; }
  .section-head p { color: var(--steel-mid); font-size: 16.5px; margin-top: 12px; }

  .service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .service-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    scroll-margin-top: 100px;
    transition: border-color 0.18s ease;
  }
  .service-card:hover { border-color: var(--cyan); }
  .service-card-img {
    height: 170px;
    width: 100%;
    object-fit: cover;
  }
  .service-card-body {
    padding: 24px 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
  }
  .service-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--cyan-text);
    letter-spacing: 0.08em;
  }
  .service-card h3 { font-size: 19px; font-weight: 600; }
  .service-card p { font-size: 14.5px; color: var(--steel-mid); margin: 0; }

  .service-card ul {
    list-style: none;
    margin: 6px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 9px;
  }
  .service-card li {
    font-size: 14px;
    color: var(--steel-ink);
    padding-left: 18px;
    position: relative;
    line-height: 1.45;
  }
  .service-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    background: var(--cyan);
  }

  /* EMELOG – SAJÁT FEJLESZTÉS */
  .product-panel {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
    align-items: center;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-left: 4px solid var(--cyan);
    border-radius: 8px;
    padding: 44px 44px;
  }
  .product-logo { width: 100%; max-width: 380px; height: auto; margin: 0 auto; }
  .product-panel h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 600; margin: 14px 0 14px; }
  .product-panel p { color: var(--steel-mid); font-size: 16px; margin: 0 0 18px; }
  .product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
  }
  .product-tags span {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--cyan-text);
    border: 1px solid var(--line);
    padding: 5px 10px;
    border-radius: 4px;
  }
  .btn {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--cyan);
    color: var(--cyan-ink);
    padding: 12px 22px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: filter 0.2s ease;
  }
  .btn:hover { filter: brightness(1.15); }

  /* TOVÁBBI SZOLGÁLTATÁSOK (az EmeLOG oldal .cap-group mintájára) */
  .cap-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .cap-group {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px 26px;
  }
  .cap-group h3 {
    font-size: 15px;
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--steel-soft);
    font-weight: 600;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    margin-bottom: 16px;
  }
  .cap-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
  .cap-group li {
    font-size: 15px;
    color: var(--steel-ink);
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
  }
  .cap-group li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--cyan);
  }
  .cap-group li b { display: block; font-weight: 600; margin-bottom: 2px; }
  .cap-group li span { color: var(--steel-mid); font-size: 14px; }
  .cap-group li a { color: var(--cyan-text); }

  /* KIEMELT TÉTEL (pl. Pathfinder) A SZOLGÁLTATÁS-KÁRTYÁN */
  .service-card li.highlight {
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 4px;
    padding: 8px 10px 8px 26px;
  }
  .service-card li.highlight::before { left: 10px; top: 15px; }
  .service-card li.highlight b { color: var(--cyan-text); }

  /* SZAKVIZSGÁK */
  .exam-block { margin-top: 56px; }
  .exam-title { font-size: clamp(20px, 2.2vw, 24px); font-weight: 600; margin: 14px 0 24px; }
  .exam-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 28px;
  }
  .exam-list li {
    display: flex;
    gap: 14px;
    align-items: baseline;
    font-size: 14.5px;
    color: var(--steel-mid);
    line-height: 1.5;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .exam-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--cyan-text);
    letter-spacing: 0.08em;
    flex: none;
  }

  /* HAZARD DIVIDER */
  .hazard {
    height: 10px;
    background-image: repeating-linear-gradient(
      -45deg,
      var(--cyan),
      var(--cyan) 16px,
      var(--steel-ink) 16px,
      var(--steel-ink) 32px
    );
    opacity: 0.85;
  }

  /* RÓLUNK / JOGOSULTSÁGOK */
  .badge-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
  .badge {
    background: var(--paper);
    border: 1px solid var(--line);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
    padding: 22px 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.18s ease, border-color 0.18s ease;
  }
  .badge:hover {
    transform: translateY(-4px);
    border-color: var(--cyan);
  }
  .badge-code {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    color: var(--cyan-text);
  }
  .badge h3 { font-size: 16.5px; font-weight: 700; line-height: 1.25; flex-grow: 1; }
  .badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--cyan);
  }

  /* CLOSING & CONTACT */
  .closing {
    background: rgba(20, 24, 29, 0.82);
    color: #ffffff;
    padding: 96px 0;
    scroll-margin-top: 80px;
  }
  .closing .wrap { text-align: center; }
  .closing .eyebrow { justify-content: center; color: var(--cyan); }
  .closing h2 {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 600;
    margin: 18px auto 20px;
    max-width: 20ch;
    color: #ffffff;
  }
  .closing p {
    max-width: 56ch;
    margin: 0 auto 30px;
    opacity: 0.9;
    font-size: 16.5px;
  }
  .contact-box {
    margin-top: 12px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: rgba(26, 31, 38, 0.85);
    border: 1px solid var(--line);
    padding: 24px 36px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
  }
  .contact-box h3 {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 4px;
  }
  .contact-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--steel-ink);
  }
  .contact-details a {
    color: var(--cyan);
    text-decoration: none;
  }
  .contact-details a:hover { text-decoration: underline; }

  footer {
    background: rgba(18, 21, 26, 0.96);
    padding: 30px 0 40px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--steel-soft);
  }
  footer .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  /* RESPONSIVE */
  @media (max-width: 980px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .badge-grid { grid-template-columns: repeat(2, 1fr); }
    .cap-groups { grid-template-columns: 1fr; }
    .exam-list { grid-template-columns: 1fr; }
    .product-panel { grid-template-columns: 1fr; gap: 28px; padding: 32px 28px; }
    .nav-links a:not(.nav-cta) { display: none; }
  }
  @media (max-width: 560px) {
    .wrap { padding: 0 20px; }
    .service-grid { grid-template-columns: 1fr; }
    .badge-grid { grid-template-columns: 1fr; }
    .brand-logo { height: 110px; margin: 8px auto 40px; }
    .nav-logo { height: 36px; }
    nav .wrap { min-height: 64px; }
    .hero { padding: 48px 0 56px; }
    .section { padding: 56px 0; }
    .contact-box { padding: 20px; }
    .contact-details { flex-direction: column; }
  }

  /* --- ALOLDALAK --- */
  .card-more {
    margin-top: auto;
    padding-top: 8px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan-text);
    text-decoration: none;
  }
  .card-more:hover { text-decoration: underline; }
  .cap-group .card-more { display: inline-block; margin-top: 16px; }

  .page-hero { padding: 48px 0 64px; }
  .breadcrumb {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--steel-soft);
    margin-bottom: 28px;
  }
  .breadcrumb a { color: var(--steel-mid); text-decoration: none; }
  .breadcrumb a:hover { color: var(--cyan-text); }
  .page-hero h1 {
    font-size: clamp(32px, 4.2vw, 50px);
    font-weight: 600;
    line-height: 1.1;
    margin: 16px 0 20px;
    color: #ffffff;
    max-width: 22ch;
  }
  .partner-note {
    display: inline-block;
    margin-top: 18px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.06em;
    color: var(--cyan-text);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 6px 12px;
  }

  .detail-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 44px;
    align-items: start;
  }
  .detail-img {
    width: 100%;
    height: auto;   /* különben a height attribútum felülírja a képarányt */
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
  }
  .pont-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
  .pont-lista li {
    font-size: 16px;
    color: var(--steel-ink);
    padding-left: 20px;
    position: relative;
    line-height: 1.55;
  }
  .pont-lista li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    background: var(--cyan);
  }
  .pont-lista li.highlight {
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 4px;
    padding: 10px 12px 10px 30px;
  }
  .pont-lista li.highlight::before { left: 12px; top: 19px; }
  .pont-lista li.highlight b { color: var(--cyan-text); }
  .kis-cim {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--steel-soft);
    margin: 0 0 16px;
  }

  .info-box {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--cyan);
    border-radius: 8px;
    padding: 26px 28px;
  }
  .info-box + .info-box { margin-top: 20px; }

  .steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .steps li {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px 22px;
    color: var(--steel-mid);
    font-size: 14.5px;
  }
  .steps b { display: block; color: var(--steel-ink); font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 8px 0 6px; }
  .step-num { font-family: var(--font-mono); font-size: 12px; color: var(--cyan-text); letter-spacing: 0.08em; }

  .related {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .related a {
    display: block;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px 20px;
    text-decoration: none;
    transition: border-color 0.18s ease;
  }
  .related a:hover { border-color: var(--cyan); }
  .related span { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--cyan-text); }
  .related b { display: block; margin-top: 6px; font-family: var(--font-display); font-weight: 600; font-size: 17px; }

  footer .lablec-linkek { display: flex; flex-wrap: wrap; gap: 6px 18px; }
  footer .lablec-linkek a { color: var(--steel-soft); text-decoration: none; }
  footer .lablec-linkek a:hover { color: var(--cyan-text); }

  @media (max-width: 980px) {
    .detail-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .related { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 560px) {
    .steps, .related { grid-template-columns: 1fr; }
    .page-hero { padding: 32px 0 44px; }
  }
