/* ============================================================
   Közös komponensek – Excelből Rendszerre
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.container-narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-section); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #eef4f0; }
.section-dark .section-title, .section-dark h2 { color: #fff; }
.section-dark p { color: #b9c8bf; }

.kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.section-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: 2.5rem;
}
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 650;
  font-size: .98rem;
  line-height: 1.25;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline {
  border-color: var(--border-strong);
  color: var(--ink);
  background: #fff;
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { color: var(--brand); padding-inline: .5rem; }
.btn-ghost:hover { text-decoration: underline; }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--brand-light); }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }

.link-arrow {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--brand);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -.01em;
  flex-shrink: 0;
}
.logo-text strong { color: var(--ink); font-weight: 800; }

.nav-list {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  padding: 0;
}
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  display: inline-block;
  padding: .55rem .65rem;
  text-decoration: none;
  font-size: .93rem;
  font-weight: 550;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.nav-link:hover { color: var(--brand); background: var(--brand-lighter); }
.nav-link[aria-current="page"] { color: var(--brand); }

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  padding: .55rem .3rem .55rem .1rem;
  color: var(--ink-muted);
}
.nav-dropdown-toggle svg { transition: transform .15s ease; }

.nav-dropdown {
  position: absolute;
  top: calc(100% - .2rem);
  left: 0;
  min-width: 270px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nav-dropdown a {
  display: block;
  padding: .55rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  text-decoration: none;
  color: var(--ink-soft);
}
.nav-dropdown a:hover { background: var(--brand-lighter); color: var(--brand); }
.has-dropdown:hover > .nav-dropdown,
.has-dropdown:focus-within > .nav-dropdown,
.has-dropdown.open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.has-dropdown.open > .nav-dropdown-toggle svg { transform: rotate(180deg); }

.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero demo ---------- */
.hero {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--brand-lighter), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -.03em;
  margin-bottom: 1.1rem;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: .8rem;
}
.hero-note {
  font-size: .95rem;
  color: var(--ink-muted);
  margin-bottom: 1.8rem;
  max-width: 52ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.1rem; }
.hero-micro {
  font-size: .88rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero-micro svg { flex-shrink: 0; color: var(--brand); }

.demo {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  padding: 1.1rem;
}
.demo-label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--ink-muted);
  margin-bottom: .55rem;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.demo-label::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--brand);
}
.demo-excel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.demo-excel table {
  width: 100%;
  border-collapse: collapse;
  font-size: .74rem;
}
.demo-excel th, .demo-excel td {
  text-align: left;
  padding: .42rem .55rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.demo-excel th {
  background: var(--bg-alt);
  font-weight: 700;
  color: var(--ink-soft);
}
.demo-excel tr:last-child td { border-bottom: 0; }
.demo-excel .status {
  display: inline-block;
  padding: .1rem .45rem;
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 700;
}
.status-new { background: var(--accent-light); color: var(--warn); }
.status-prog { background: #e8f0fb; color: #175cd3; }
.status-done { background: var(--brand-light); color: var(--brand); }

.demo-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin: .8rem 0;
  color: var(--ink-muted);
  font-size: .78rem;
  font-weight: 600;
}
.demo-arrow svg { color: var(--brand); animation: demoFlow 2.2s ease-in-out infinite; }
@keyframes demoFlow {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(4px); opacity: .6; }
}
.demo-system {
  border: 1.5px solid var(--brand);
  border-radius: var(--radius);
  padding: .9rem;
  background: var(--brand-lighter);
}
.demo-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.demo-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .5rem .65rem;
  font-size: .74rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: .45rem;
}
.demo-stat strong { font-size: 1rem; color: var(--ink); }
.demo-stat .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: var(--brand); }
.dot-amber { background: var(--accent); }
.dot-blue { background: #175cd3; }
.dot-red { background: var(--danger); }

/* ---------- Kártyarácok ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.card h3 {
  font-size: 1.08rem;
  letter-spacing: -.01em;
  margin-bottom: .5rem;
}
.card p { font-size: .92rem; color: var(--ink-soft); flex-grow: 1; }
.card .card-link { margin-top: .9rem; font-size: .9rem; }
.card-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .9rem;
}

/* Probléma-kártyák */
.problem-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
}
.problem-card h3 {
  font-size: 1rem;
  font-style: italic;
  color: var(--ink);
  margin-bottom: .4rem;
}
.problem-card p { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: .7rem;
}
.checklist li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .98rem;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: .15rem;
  border-radius: 50%;
  background: var(--brand-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' stroke='%230e6b3c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.checklist-warn li::before {
  background: var(--accent-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M10 5.5v5.5M10 14.2v.3' stroke='%23b45309' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

.highlight-box {
  background: var(--brand-lighter);
  border: 1px solid var(--brand-light);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  font-size: 1.05rem;
  font-weight: 550;
  color: var(--ink);
}
.section-dark .highlight-box {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.15);
  border-left-color: var(--accent);
  color: #fff;
}

/* ---------- Lépések / folyamat ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.step-num {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 700;
  color: var(--brand);
  display: block;
  margin-bottom: .5rem;
}
.step h3 { font-size: 1rem; margin-bottom: .45rem; }
.step p { font-size: .86rem; color: var(--ink-soft); }

/* ---------- Összehasonlító táblázat ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: #fff;
}
table.compare {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: .93rem;
}
.compare th, .compare td {
  text-align: left;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--border);
}
.compare thead th {
  background: var(--bg-alt);
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 550; }
.mark-ok { color: var(--ok); font-weight: 700; }
.mark-warn { color: var(--warn); font-weight: 700; }
.mark-mid { color: var(--ink-muted); font-size: .85rem; }

/* ---------- Kalkulátor ---------- */
.calc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
}
.calc-question { margin-bottom: 1.5rem; }
.calc-question label,
.calc-question .calc-label {
  display: block;
  font-weight: 600;
  font-size: .98rem;
  margin-bottom: .6rem;
}
.calc-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.calc-option input { position: absolute; opacity: 0; pointer-events: none; }
.calc-option span {
  display: inline-block;
  padding: .5rem 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 550;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s ease;
}
.calc-option input:checked + span {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.calc-option input:focus-visible + span {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.calc-result {
  margin-top: 1.8rem;
  border-top: 1px dashed var(--border-strong);
  padding-top: 1.6rem;
}
.calc-score-label {
  display: inline-block;
  padding: .3rem .9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: .7rem;
}
.score-low { background: var(--brand-light); color: var(--brand); }
.score-mid { background: var(--accent-light); color: var(--warn); }
.score-high { background: #fdecea; color: var(--danger); }
.calc-result h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.calc-result p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.1rem; }
.calc-disclaimer { font-size: .8rem; color: var(--ink-muted); margin-top: 1rem; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem .25rem;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}
.faq-question:hover { color: var(--brand); }
.faq-icon { flex-shrink: 0; transition: transform .18s ease; color: var(--ink-muted); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 .25rem 1.25rem; color: var(--ink-soft); max-width: 68ch; }

/* ---------- CTA ---------- */
.cta-section { padding-block: var(--space-section); }
.cta-box {
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.cta-box h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.02em; margin-bottom: .8rem; }
.cta-box p { color: #b9c8bf; max-width: 58ch; margin: 0 auto 1.8rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------- Morzsa ---------- */
.breadcrumb { padding-top: 1.1rem; }
.breadcrumb ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  font-size: .82rem;
  color: var(--ink-muted);
}
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .4rem; color: var(--border-strong); }
.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Űrlap ---------- */
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow-sm);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.form-field-full { grid-column: 1 / -1; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
}
.req { color: var(--danger); }
.optional { color: var(--ink-muted); font-weight: 400; font-size: .82rem; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="file"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: .95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}
.form-field input[aria-invalid="true"], .form-field select[aria-invalid="true"], .form-field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
.field-error { color: var(--danger); font-size: .82rem; margin-top: .35rem; }
.field-hint { color: var(--ink-muted); font-size: .8rem; margin-top: .35rem; }
.checkbox {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  font-size: .88rem;
  font-weight: 400 !important;
  color: var(--ink-soft);
  cursor: pointer;
}
.checkbox input { margin-top: .25rem; width: 16px; height: 16px; accent-color: var(--brand); flex-shrink: 0; }
.form-actions { margin-top: 1.5rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.form-note { font-size: .82rem; color: var(--ink-muted); }
.form-status { margin-top: 1rem; font-size: .95rem; }
.form-status.success {
  background: var(--brand-light);
  border: 1px solid var(--brand);
  color: var(--brand-dark);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  font-weight: 550;
}
.form-status.error { color: var(--danger); font-weight: 550; }
/* Honeypot – láthatatlan a felhasználóknak, a botok kitöltik */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: #b9c8bf;
  padding: 3.5rem 0 7rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.logo-footer { color: #fff; margin-bottom: .8rem; }
.logo-footer .logo-text strong { color: #fff; }
.footer-brand p { font-size: .9rem; max-width: 32ch; }
.footer-title {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.footer-col a { color: #b9c8bf; text-decoration: none; font-size: .9rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  font-size: .82rem;
  color: #8fa398;
}

/* ---------- Mobil sticky CTA ---------- */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: .9rem;
  z-index: 90;
  background: var(--brand);
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding: .95rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
}

/* ---------- Fókusz ---------- */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}
