/* Robo-brains Kft. – weboldal stíluslap
   Arculati alapszín: #063A61 (a logó sötétkékje) */

:root {
  --navy: #063a61;
  --navy-900: #04263f;
  --navy-700: #0a4d7f;
  --blue: #2f7fb8;
  --blue-100: #e6f0f8;
  --signal: #d98a1c;       /* csak a "veszteség" kiemelésére */
  --signal-100: #fbf0df;
  --ink: #12202e;
  --text: #33475b;
  --muted: #5d7186;
  --line: #d9e3ec;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(6, 58, 97, .06), 0 8px 24px rgba(6, 58, 97, .06);
  --wrap: 1160px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-700); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); font-weight: 720; }
h3 { font-size: 1.2rem; font-weight: 680; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.35em; border-radius: 10px; font-weight: 650; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  font-family: inherit; line-height: 1.2;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-900); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-100); color: var(--navy-900); }

/* ---------- Fejléc ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 2px 12px rgba(6, 58, 97, .05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; color: var(--navy); font-size: 1.2rem; letter-spacing: .04em; }
.brand-tag { font-size: .62rem; font-weight: 700; color: var(--navy); letter-spacing: .14em; margin-top: 3px; }

.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center; }
.nav a { display: block; padding: .5em .8em; color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; border-radius: 8px; }
.nav a:hover { background: var(--bg-soft); color: var(--navy); }
.nav .btn { margin-left: 8px; color: #fff; padding: .65em 1.1em; }
.nav .btn:hover { background: var(--navy-900); color: #fff; }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--navy); position: relative; transition: transform .2s, background .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(6, 58, 97, .08);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 20px; gap: 2px; }
  .nav a { padding: .85em .6em; font-size: 1.05rem; }
  .nav .btn { margin: 10px 0 0; }
}

/* ---------- Szekciók ---------- */
section { padding: 88px 0; scroll-margin-top: 72px; }
.section-soft { background: var(--bg-soft); }
@media (max-width: 600px) { section { padding: 64px 0; } .hero { padding: 48px 0 64px; } .chart-card { padding: 16px 12px 12px; } }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--text); max-width: 46em; }
.section-head { max-width: 760px; margin-bottom: 48px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; background:
  radial-gradient(1200px 500px at 85% -10%, var(--blue-100), transparent 60%), #fff; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 .accent { color: var(--navy-700); }
.hero .lead { margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 22px; font-size: .92rem; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.hero-note svg { flex: none; margin-top: 3px; }

figure { margin: 0; }
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 22px 22px 16px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.chart-title { font-weight: 700; color: var(--ink); font-size: .98rem; }
.chart-sub { font-size: .8rem; color: var(--muted); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--muted); margin-top: 8px; }
.chart-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart svg { width: 100%; height: auto; }
.chart text { font-family: var(--font); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Kártyák ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--blue-100); color: var(--navy);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.icon.signal { background: var(--signal-100); color: #a86410; }

.callout {
  margin-top: 36px; padding: 22px 26px; border-left: 4px solid var(--navy); background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.08rem; color: var(--ink); box-shadow: var(--shadow);
}

/* ---------- Lépések ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 24px; box-shadow: var(--shadow); }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-weight: 800; font-size: 1.6rem; color: var(--navy); margin-bottom: 10px; letter-spacing: .02em;
}
.steps li p { font-size: .97rem; margin: 0; }
@media (max-width: 1060px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

.honest {
  margin-top: 32px; display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px;
  background: var(--blue-100); border-radius: var(--radius); color: var(--ink);
}
.honest svg { flex: none; color: var(--navy); margin-top: 2px; }
.honest p { margin: 0; }

/* ---------- Szerződés lejárata (sötét sáv) ---------- */
.band { background: var(--navy); color: #d6e4f0; position: relative; overflow: hidden; }
.band::after {
  content: ""; position: absolute; right: -120px; top: -60px; width: 520px; height: 620px;
  background: url("../img/logo-mark-white.svg") no-repeat center / contain; opacity: .05; pointer-events: none;
}
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: #8fc0e6; }
.band .lead { color: #d6e4f0; }
.band-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; position: relative; z-index: 1; }
@media (max-width: 960px) { .band-grid { grid-template-columns: 1fr; gap: 32px; } }
.check { list-style: none; padding: 0; margin: 0 0 1.4em; }
.check li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.check li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23063A61' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 13px;
}
.band-box { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; padding: 30px; }
.band-box h3 { margin-bottom: .8em; }
.band-box .check li::before { background-color: #fff; }

/* ---------- Szolgáltatások ---------- */
.service { display: flex; flex-direction: column; }
.service h3 { font-size: 1.22rem; }
.service dl { margin: 6px 0 0; }
.service dt { font-size: .78rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-top: 16px; }
.service dd { margin: 4px 0 0; }
.service dd.q { font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.note-line { margin-top: 32px; color: var(--muted); font-size: .98rem; max-width: 52em; }

/* ---------- Kiknek ---------- */
.audience h3 { display: flex; align-items: center; gap: 12px; }
.audience ul { margin: 0; padding-left: 1.2em; }
.audience li { margin-bottom: 6px; }

/* ---------- Miért mi ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.why > div { padding: 30px 28px 6px 0; }
.why > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.why .num { font-weight: 800; color: var(--blue); font-size: .85rem; letter-spacing: .12em; margin-bottom: 10px; }
@media (max-width: 960px) {
  .why { grid-template-columns: 1fr; border-top: 0; }
  .why > div, .why > div + div { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
}

.person {
  margin-top: 48px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
  background: var(--bg-soft); border-radius: 18px; padding: 28px;
}
.avatar {
  width: 88px; height: 88px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 750; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center; letter-spacing: .04em;
}
.person h3 { margin-bottom: .2em; }
.person .role { color: var(--muted); margin-bottom: .6em; }
.person p:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .person { grid-template-columns: 1fr; } }

/* ---------- Kapcsolat ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.bring { margin: 24px 0 28px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { width: 42px; height: 42px; margin: 0; border-radius: 10px; flex: none; }
.contact-list small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.3; }
.contact-list a { font-weight: 650; text-decoration: none; color: var(--ink); font-size: 1.05rem; }
.contact-list a:hover { color: var(--navy-700); text-decoration: underline; }

.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.form h3 { margin-bottom: .3em; }
.form > p { color: var(--muted); font-size: .95rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } .form { padding: 22px; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #c3d1de; border-radius: 10px; padding: .7em .85em; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 127, 184, .2); }
.field.invalid input, .field.invalid textarea { border-color: #c0392b; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 6px 0 20px; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--navy); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
.form-status { margin-top: 14px; font-size: .95rem; padding: 0; border-radius: 10px; }
.form-status.ok { background: #e7f5ec; color: #1d6b3a; padding: 12px 14px; }
.form-status.err { background: #fdecea; color: #a12a1d; padding: 12px 14px; }

/* ---------- Lábléc ---------- */
.site-footer { background: var(--navy-900); color: #a9c0d4; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #dbe8f3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer .brand-name, .site-footer .brand-tag { color: #fff; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-motto { margin-top: 16px; max-width: 30em; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }

/* ---------- Jogi aloldalak ---------- */
.legal { padding: 64px 0 88px; }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .97rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { width: 38%; color: var(--ink); font-weight: 650; }
.todo { background: var(--signal-100); color: #8a520c; padding: 0 .3em; border-radius: 4px; font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* ---------- Megjelenési animáció ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Nyomtatás ---------- */
@media print {
  .site-header, .form, .menu-toggle { display: none !important; }
  section { padding: 24px 0; }
  .band { background: #fff; color: var(--text); }
  .band h2, .band h3 { color: var(--ink); }
}

/* ---------- Nyelvváltó ---------- */
.nav a.lang { font-weight: 700; color: var(--navy); border: 1px solid var(--line); padding: .35em .6em; font-size: .85rem; letter-spacing: .06em; }
@media (max-width: 960px) { .nav a.lang { display: inline-block; margin-top: 6px; } }

/* ---------- GYIK ---------- */
.faq-wrap { max-width: 900px; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-weight: 650; color: var(--ink); font-size: 1.08rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq-item summary:hover { color: var(--navy-700); }
.faq-item p { margin: 0 0 22px; max-width: 46em; }

address { font-style: normal; font-weight: 600; color: var(--ink); }
.footer-company { font-size: .85rem; line-height: 1.6; color: #8faac0; }

/* ---------- Süti-sáv ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 760px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(6, 58, 97, .18);
  padding: 18px 20px; display: flex; gap: 18px; align-items: center; font-size: .93rem;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie .btn { padding: .65em 1.1em; font-size: .93rem; }
@media (max-width: 640px) {
  .cookie { flex-direction: column; align-items: stretch; }
  .cookie-actions .btn { flex: 1; }
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-link { font-weight: 700; color: var(--navy); text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: .35em .6em; font-size: .85rem; letter-spacing: .06em; }
@media (max-width: 480px) { .header-actions .btn { padding: .6em .8em; font-size: .85rem; } .header-inner:has(.header-actions) .brand-text { display: none; } }
