/* KOEN Security – statikus oldal */
:root {
  --ink: #18191c;
  --ink-2: #222327;
  --ink-3: #2c2d32;
  --line-dark: rgba(255, 255, 255, 0.09);
  --paper: #f4f4f5;
  --paper-2: #e9e9ec;
  --white: #ffffff;
  --text: #1d1e22;
  --muted: #62646b;
  --muted-dark: #a3a5ad;
  --line: #dededf;
  --accent: #d7263d;
  --accent-ink: #ffffff;
  --radius: 14px;
  --max: 1180px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 16px 24px 0;
  color: var(--white);
  pointer-events: none;
}
.site-header .container {
  pointer-events: auto;
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  max-width: calc(var(--max) - 48px); height: 64px;
  padding: 0 10px 0 22px;
  background: rgba(28, 29, 33, 0.55);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background .25s, box-shadow .25s;
}
.site-header.scrolled .container { background: rgba(24, 25, 28, 0.78); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 19px; letter-spacing: 0.04em; line-height: 1; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 10.5px; letter-spacing: 0.22em; color: var(--muted-dark); margin-top: 4px; text-transform: uppercase; }
.site-header .brand-mark { width: 30px; height: 30px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; font-size: 15px; color: #d6d7db; padding: 8px 14px; border-radius: 9px; transition: color .15s, background .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.nav .btn { color: var(--accent-ink); margin-left: 10px; padding: 10px 18px; border-radius: 9px; }
.nav .btn:hover { background: #e8394f; }
.nav-toggle { display: none; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--white); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle svg { margin: auto; }

@media (max-width: 860px) {
  .site-header { padding: 12px 16px 0; }
  .site-header .container { height: 60px; padding: 0 8px 0 16px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(24, 25, 28, 0.88);
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px;
    padding: 10px; display: none;
    box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.6);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 14px; font-size: 17px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #e8394f; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.25); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--white);
  padding: 190px 0 110px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, #18191c 0%, #1c1b1e 45%, #2e1418 78%, #4a141c 100%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.08; font-weight: 700; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 19px; color: #c6c7cc; max-width: 600px; margin-bottom: 16px; }
.hero .lead:last-of-type { margin-bottom: 36px; }
.hero .lead { font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 380px; justify-self: end; width: 100%; }
.hero-visual svg { width: 100%; height: 100%; }
.pulse { transform-origin: 50% 50%; animation: pulse 4s ease-out infinite; }
.pulse.d2 { animation-delay: 1.33s; }
.pulse.d3 { animation-delay: 2.66s; }
@keyframes pulse { 0% { transform: scale(.35); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.scan { transform-origin: 190px 190px; animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pulse, .scan { animation: none; } }

@media (max-width: 860px) {
  .hero { padding: 140px 0 80px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { justify-self: start; max-width: 240px; }
}

/* ---------- Pillars strip ---------- */
.strip { background: var(--ink-2); color: var(--white); border-top: 1px solid var(--line-dark); }
.strip .container { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-item { padding: 30px 28px; border-left: 1px solid var(--line-dark); }
.strip-item:first-child { border-left: 0; padding-left: 0; }
.strip-item strong { display: block; font-family: var(--font-head); font-size: 17px; margin-bottom: 4px; }
.strip-item span { color: var(--muted-dark); font-size: 15px; }
@media (max-width: 760px) {
  .strip .container { grid-template-columns: 1fr; }
  .strip-item { border-left: 0; border-top: 1px solid var(--line-dark); padding: 22px 0; }
  .strip-item:first-child { border-top: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--white); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head .eyebrow { color: #b3192e; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.section-head p { color: var(--muted); font-size: 18px; }
@media (max-width: 760px) { .section { padding: 72px 0; } .section-head { margin-bottom: 36px; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 30px; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(24,25,28,.35); border-color: #cfcfd4; }
.service-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(180deg, #2a2b30, #18191c);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 20px -12px rgba(0,0,0,.55);
  display: grid; place-items: center; margin-bottom: 26px;
}
.service-icon svg { width: 36px; height: 36px; }
.service-num { font-family: var(--font-head); font-size: 13px; color: var(--muted); letter-spacing: .1em; margin-bottom: 8px; }
.service h3 { font-size: 23px; }
.service > p { color: var(--muted); font-size: 16px; }
.service ul { list-style: none; padding: 0; margin: auto 0 0; border-top: 1px solid var(--line); }
.service li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); position: relative; font-size: 15.5px; }
.service li:last-child { border-bottom: 0; padding-bottom: 0; }
.service li::before {
  content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 7px;
  border-left: 2px solid #b3192e; border-bottom: 2px solid #b3192e; transform: rotate(-45deg);
}
@media (max-width: 960px) { .services { grid-template-columns: 1fr; } }

/* Approach */
.approach { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.approach-intro p { color: var(--muted); font-size: 18px; }
.quote {
  margin-top: 32px; padding: 26px 28px; border-left: 3px solid var(--accent);
  background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-head); font-size: 20px; line-height: 1.4; color: var(--ink);
}
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 26px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: "0" counter(step); font-family: var(--font-head); font-weight: 700; font-size: 15px; color: #b3192e; padding-top: 3px; }
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; font-size: 16px; }
@media (max-width: 960px) { .approach { grid-template-columns: 1fr; gap: 40px; } }

/* Contact */
.contact { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.contact .section-head .eyebrow { color: var(--accent); }
.contact .section-head p { color: #b9bbc1; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card {
  border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}
.contact-card .label { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.contact-card .label svg { color: var(--accent); }
.contact-card .value { font-family: var(--font-head); font-size: 21px; line-height: 1.35; }
.contact-card a.value { text-decoration: none; }
.contact-card a.value:hover { color: var(--accent); }
.contact-card .note { color: var(--muted-dark); font-size: 14.5px; margin: 10px 0 0; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #111214; color: var(--muted-dark); font-size: 14.5px; padding: 48px 0 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line-dark); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 28px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; color: #c6c7cc; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
/* hely az infoblokknak, hogy ne takarja a lábléc tartalmát */
@media (max-width: 760px) { .site-footer { padding-bottom: 120px; } }
.site-footer { padding-bottom: 160px; }

/* ---------- Széchenyi Terv Plusz infoblokk ---------- */
.infoblokk {
  position: fixed; right: 0; bottom: 0; z-index: 60;
  display: block; line-height: 0;
  box-shadow: 0 -6px 24px -8px rgba(0,0,0,.35);
}
.infoblokk img { width: 420px; height: auto; }
@media (max-width: 600px) { .infoblokk img { width: 300px; } }

/* ---------- Subpages ---------- */
.page-hero { background: var(--ink); color: var(--white); padding: 160px 0 64px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #1f2024 0%, #18191c 100%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 48px); max-width: 860px; }
.page-hero p { color: #b9bbc1; font-size: 18px; max-width: 720px; margin: 0; }
.crumbs { font-size: 14px; color: var(--muted-dark); margin-bottom: 22px; }
.crumbs a { color: var(--muted-dark); text-decoration: none; }
.crumbs a:hover { color: var(--white); }

.prose { max-width: 780px; }
.prose h2 { font-size: 26px; margin-top: 56px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin-top: 32px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: #b3192e; }
.prose .ref { color: var(--muted); font-size: 14.5px; }

.callout { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin: 28px 0; }
.callout h3 { margin-top: 0; }
.callout dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 0; }
.callout dt { color: var(--muted); }
.callout dd { margin: 0; font-weight: 500; }
@media (max-width: 600px) { .callout dl { grid-template-columns: 1fr; gap: 2px; } .callout dd { margin-bottom: 10px; } }

.timeline { list-style: none; padding: 0; margin: 24px 0; }
.timeline li { position: relative; padding: 0 0 24px 34px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline strong { display: block; font-family: var(--font-head); }

/* Project data table */
.project-layout { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.project-facts { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: 96px; }
.project-facts h2 { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; margin: 0; padding: 18px 24px; background: var(--ink); color: var(--white); }
.project-facts dl { margin: 0; }
.project-facts div { padding: 16px 24px; border-bottom: 1px solid var(--line); }
.project-facts div:last-child { border-bottom: 0; }
.project-facts dt { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.project-facts dd { margin: 0; font-weight: 600; font-family: var(--font-head); font-size: 17px; line-height: 1.35; }
@media (max-width: 960px) { .project-layout { grid-template-columns: 1fr; } .project-facts { position: static; order: -1; } }

.todo { background: #fff4d6; border: 1px dashed #d9a521; border-radius: 6px; padding: 1px 6px; font-weight: 500; }

.docs, .prose .docs { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.docs a {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; text-decoration: none; color: var(--text);
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, transform .15s;
}
.docs a:hover { border-color: #c9a1a7; transform: translateX(2px); }
.docs .file-ic { width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--paper-2); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #b3192e; letter-spacing: .05em; }
.docs .meta { display: block; color: var(--muted); font-size: 14px; }
.docs .arrow { margin-left: auto; color: var(--muted); }

/* Főoldali pályázati blokk */
.grant { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 40px 44px; }
.grant h2 { font-size: clamp(24px, 2.6vw, 32px); }
.grant p { color: var(--muted); }
.grant dl { margin: 0; display: grid; gap: 14px; }
.grant dt { font-size: 13px; color: var(--muted); }
.grant dd { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 18px; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #2c2d32; transform: translateY(-1px); }
@media (max-width: 860px) { .grant { grid-template-columns: 1fr; padding: 28px 22px; gap: 28px; } }
.thanks { font-family: var(--font-head); font-size: 20px; color: var(--ink); margin-bottom: 28px; }

@media (max-width: 860px) { .page-hero { padding-top: 130px; } }

/* Kapcsolat – egy kártyás elrendezés */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact-layout .section-head { margin-bottom: 0; }
.contact-layout .contact-card { padding: 36px 36px 32px; }
.contact-layout .contact-card .value { font-size: 26px; }
.contact-layout .contact-card .note { margin-bottom: 0; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; gap: 32px; } .contact-layout .contact-card { padding: 28px 24px; } .contact-layout .contact-card .value { font-size: 22px; } }

/* Infoblokk – oldalra rakható */
.infoblokk { transition: transform .35s cubic-bezier(.4,0,.2,1); }
.infoblokk-link { display: block; line-height: 0; }
.infoblokk-close {
  position: absolute; bottom: calc(100% + 10px); right: 10px; z-index: 1;
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff;
  background: var(--accent); color: #fff; cursor: pointer;
  display: grid; place-items: center; padding: 0;
  box-shadow: 0 4px 12px -2px rgba(0,0,0,.4);
  transition: background .15s, transform .15s, opacity .2s;
}
.infoblokk-close:hover { background: #b3192e; transform: scale(1.06); }
.infoblokk-close:focus-visible, .infoblokk-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.infoblokk-tab {
  position: absolute; right: 100%; bottom: 16px;
  display: none; align-items: center; gap: 4px;
  height: 48px; padding: 0 6px 0 8px; border: 0; cursor: pointer;
  background: #fff; color: #1d4f9c; border-radius: 10px 0 0 10px;
  box-shadow: -4px 4px 16px -4px rgba(0,0,0,.35);
}
.infoblokk-tab-logo {
  width: 36px; height: 36px; display: block;
  background: url("../img/infoblokk.png") no-repeat; background-size: 421px auto; background-position: -19px -25px;
}
.infoblokk.is-collapsed { transform: translateX(100%); box-shadow: none; }
.infoblokk.is-collapsed .infoblokk-close { opacity: 0; pointer-events: none; }
.infoblokk.is-collapsed .infoblokk-tab { display: flex; }
.infoblokk.no-anim { transition: none; }
