/* tankoloautomata.hu – fő stíluslap */

:root {
  --navy: #1d2646;
  --navy-deep: #121936;
  --blue: #0878e5;
  --blue-dark: #0663bd;
  --blue-soft: #e8f2fd;
  --text: #1c2233;
  --muted: #5b6478;
  --line: #e2e7f0;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(18, 25, 54, .08);
  --container: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.015em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .8em;
}

/* Gombok */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  padding: .85em 1.5em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-soft); }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-block { width: 100%; }

/* Fejléc */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-size: 1.15rem; }
.logo strong { color: var(--blue); }
.logo-mark { width: 30px; height: 30px; color: var(--navy); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .97rem; }
.main-nav ul a:hover, .main-nav ul a[aria-current="page"] { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 400px at 85% 10%, rgba(8,120,229,.10), transparent 60%),
    linear-gradient(180deg, #f7faff 0%, #fff 100%);
  padding: 72px 0 80px;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 26px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { position: relative; padding-left: 26px; font-weight: 600; font-size: .95rem; color: var(--navy); }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .28em;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.hero-visual { position: relative; max-width: 420px; margin: 0 auto; width: 100%; }
.dispenser { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(18,25,54,.18)); }
.float-card {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px 14px;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
}
.fc-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.fc-value { font-weight: 700; color: var(--navy); font-size: .95rem; }
.float-card-a { top: 14%; right: -4%; }
.float-card-b { bottom: 16%; left: -6%; }

/* Szekciók */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: #d7ddee; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #5fb3ff; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p:last-child { color: var(--muted); margin-bottom: 0; }

/* Kártyák */
.cards { display: grid; gap: 22px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: 0; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card-product { display: flex; flex-direction: column; border-top: 4px solid var(--blue); }
.card-product p { flex: 1; margin-bottom: 18px; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* Lépések */
.steps { list-style: none; counter-reset: lepes; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li {
  counter-increment: lepes;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
}
.steps li::before {
  content: counter(lepes);
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 1.1rem;
  margin-bottom: 18px;
}
.steps p { margin: 0; }

/* Célcsoport */
.audience { margin-top: 56px; text-align: center; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tags li { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .93rem; color: var(--navy); }

/* GYIK */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 18px 56px 18px 22px;
  font-weight: 700; color: var(--navy); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--blue);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* Ajánlatkérés */
.quote-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.quote-text p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { display: flex; flex-direction: column; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-list a { font-weight: 700; font-size: 1.15rem; color: var(--navy); text-decoration: none; }
.quote-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 32px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 12px 14px; border: 1px solid #cfd7e6; border-radius: 10px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,120,229,.18); }
.field .invalid, .field input[aria-invalid="true"] { border-color: #d33a3a; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin: 6px 0 20px; }
.check input { margin-top: .3em; width: 18px; height: 18px; accent-color: var(--blue); }
.form-note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; font-weight: 600; }
.form-status.ok { background: #e7f7ee; color: #17663a; }
.form-status.err { background: #fdecec; color: #9b2222; }

/* Lábléc */
.site-footer { background: var(--navy-deep); color: #aab3cc; padding: 56px 0 0; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.logo-light { color: #fff; margin-bottom: 10px; }
.logo-light strong { color: #5fb3ff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #d7ddee; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-company strong { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 18px; padding-bottom: 18px; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* Reszponzív */
@media (max-width: 1000px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 340px; }
  .quote-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 16px; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
  .cards-3, .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 44px 0 56px; }
  .cards-4, .field-row { grid-template-columns: 1fr; gap: 0 16px; }
  .cards-4 { gap: 16px; }
  .quote-form { padding: 22px; }
  .float-card-a { right: 0; }
  .float-card-b { left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Lábléc – elérhetőségek ikonokkal */
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.5fr 1fr; gap: 40px; }
.footer-brand p { max-width: 26em; }
.footer-title { font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #3d8bff; margin: 0 0 16px; }
.footer-col .footer-title:not(:first-child) { margin-top: 32px; }
.icon-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; color: #d7ddee; }
.icon-list svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: #3d8bff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.plain-list li { margin-bottom: 10px; }
.footer-bottom p { margin: 0 0 4px; }
.footer-bottom strong { color: #fff; }
.footer-bottom .sep { margin: 0 8px; opacity: .5; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Folyamat (kék háttér) */
.section-blue { background: var(--blue); color: #fff; }
.section-blue h2, .section-blue h3 { color: #fff; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 22px; margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.5); border-radius: 999px;
  background: rgba(255,255,255,.12);
  font-size: .85rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.process { list-style: none; padding: 0; margin: 0 0 44px; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 28px; row-gap: 32px; }
.process-top { display: flex; align-items: flex-end; margin-bottom: 26px; }
.process-step:not(:last-child) .process-top { margin-right: -28px; }
.process-top::after { content: ""; flex: 1; height: 2px; background: rgba(255,255,255,.75); }
.process-icon {
  flex: 0 0 40px; width: 40px; height: 40px; border: 2px solid #fff; border-radius: 12px;
  display: grid; place-items: center; background: var(--blue);
}
.process-icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.process-card {
  height: calc(100% - 66px);
  border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius-lg);
  background: rgba(255,255,255,.06);
  padding: 34px 36px;
}
.process-num { display: block; font-weight: 800; letter-spacing: .1em; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.process-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.process-card p { color: rgba(255,255,255,.88); margin: 0; }
.section-blue .btn-light { color: var(--blue); }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; }
  .process-step:not(:last-child) .process-top { margin-right: 0; }
  .process-card { height: auto; padding: 28px 26px; }
}

/* SEO: GYIK kérdések h3-ként */
.faq summary h3 { display: inline; font-size: inherit; margin: 0; color: inherit; }

/* Logó */
.logo img { height: 30px; width: auto; }
.logo-light { display: inline-block; margin-bottom: 18px; }
.logo-light img { height: 28px; filter: brightness(0) invert(1); }
@media (max-width: 560px) { .site-header .logo img { height: 24px; } }
