:root {
  --ink: #1c2735;
  --ink-soft: #4a5666;
  --muted: #6b7684;
  --bg: #faf8f5;
  --surface: #ffffff;
  --line: #e6e1d9;
  --accent: #a3332b;
  --accent-dark: #842820;
  --navy: #1f3047;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; }
.brand strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; display: block; line-height: 1.1; }
.brand small { font-size: .78rem; color: var(--muted); display: block; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.lang { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang a { padding: 3px 11px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--navy); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font: 600 .98rem var(--sans); text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* Hero: teljes szélességű sötét sáv, mint az eredetin.
   Háttérkép betehető: .hero { --hero-img: url(img/hero.jpg); } */
.hero {
  position: relative; overflow: hidden;
  min-height: min(78vh, 680px);
  display: flex; align-items: center;
  padding: 96px 0;
  color: #fff;
  background-color: var(--navy);
  background-image:
    linear-gradient(100deg, rgba(20, 31, 46, .94) 0%, rgba(20, 31, 46, .82) 45%, rgba(20, 31, 46, .55) 100%),
    var(--hero-img, radial-gradient(1200px 600px at 85% 20%, #34507a 0%, rgba(52, 80, 122, 0) 60%)),
    linear-gradient(135deg, #1a2a40 0%, #22385a 100%);
  background-size: cover; background-position: center;
}
.hero::after {
  content: ''; position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: 560px; height: 560px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .025), 0 0 0 140px rgba(255, 255, 255, .02);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-text { max-width: 680px; }
.hero-art { position: relative; width: 100%; max-width: 520px; margin-left: auto; }
.hero-art img { width: 100%; animation: float 7s ease-in-out infinite; }

/* Fordító buborékok (animált, site.js tölti) */
.bubble {
  position: absolute; z-index: 2;
  border-radius: 18px; padding: 12px 18px 14px;
  box-shadow: 0 18px 36px -14px rgba(8, 14, 24, .6);
  transition: opacity .35s ease, transform .35s ease;
}
.bubble .tag {
  display: inline-flex; align-items: center; gap: 6px;
  font: 700 .72rem var(--sans); letter-spacing: .04em;
  padding: 3px 10px 3px 7px; border-radius: 999px; margin-bottom: 6px;
}
.flag { display: inline-block; width: 12px; height: 9px; border-radius: 1px; }
.flag-de { background: linear-gradient(#000 0 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }
.flag-hu { background: linear-gradient(#ce2939 0 33.3%, #fff 33.3% 66.6%, #477050 66.6%); }
.bubble .txt {
  margin: 0; font-family: var(--serif); font-weight: 600;
  font-size: 1.55rem; line-height: 1.2; min-height: 1.2em;
}
.bubble .txt.long { font-size: 1.12rem; line-height: 1.3; }
.bubble .txt.typing::after {
  content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 3px;
  vertical-align: -0.12em; background: currentColor; animation: caret .8s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.bubble.out { opacity: 0; transform: translateY(6px); }

.bubble-de {
  left: 0; bottom: 34%; max-width: 62%;
  background: #fff; color: var(--ink);
  border-bottom-left-radius: 4px;
}
.bubble-de .tag { background: var(--navy); color: #fff; }
.bubble-de::after {
  content: ''; position: absolute; left: 22px; bottom: -14px;
  border: 8px solid transparent; border-top: 8px solid #fff; border-left: 8px solid #fff;
}
.bubble-hu {
  right: 0; top: 70%; max-width: 62%;
  background: linear-gradient(135deg, #b8443a, #8e2a22); color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble-hu .tag { background: rgba(255, 255, 255, .18); color: #fff; }
.bubble-hu::after {
  content: ''; position: absolute; right: 22px; bottom: -14px;
  border: 8px solid transparent; border-top: 8px solid #8e2a22; border-right: 8px solid #8e2a22;
}
.arrows {
  position: absolute; z-index: 1; left: 50%; top: 58%; width: 80px; height: 60px;
  stroke: #f3b2aa; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 5 6;
  opacity: .35; transition: opacity .3s ease;
}
.arrows .a2 { stroke-opacity: .55; }
.arrows.active { opacity: 1; }
.arrows.active path { animation: dash .9s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero .eyebrow { color: #f0a59d; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 4.4rem); -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.hero h1 span { display: block; color: #f3b2aa; }
.hero .lead { font-size: 1.2rem; color: #d3dae3; max-width: 540px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); }

/* Services */
.services { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.card .icon { width: 52px; height: 52px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; margin-bottom: 22px; }
.card .icon svg { width: 26px; height: 26px; }
.card p, .card li { color: var(--ink-soft); }
.card ul { margin: 0; padding-left: 1.1em; }
.card li { margin-bottom: .4em; }

/* About: bal oldalt fotó, jobb oldalt szöveg (az eredeti elrendezés) */
.about .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.about-photo { position: relative; }
.about-photo img { border-radius: 20px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; width: 100%; box-shadow: 0 30px 60px -30px rgba(28, 39, 53, .45); }
.about-photo .flags {
  position: absolute; right: -24px; bottom: 28px;
  background: var(--surface); border-radius: 14px; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 12px 30px -12px rgba(28, 39, 53, .35);
  font-size: .88rem; font-weight: 600;
}
.about-photo .flags img { width: 40px; box-shadow: none; border-radius: 0; aspect-ratio: auto; }
.about-text p { color: var(--ink-soft); }
.facts { list-style: none; margin: 28px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.facts b { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--navy); }
.facts span { font-size: .86rem; color: var(--muted); line-height: 1.4; display: block; }

/* Why + quote */
.why { background: var(--navy); color: #e8ecf1; }
.why h2 { color: #fff; }
.why .eyebrow { color: #f0a59d; }
.why .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
.why p { color: #c9d1db; font-size: 1.06rem; }
blockquote { margin: 0; padding: 32px 0 32px 32px; border-left: 3px solid var(--accent); }
blockquote p { font-family: var(--serif); font-size: 1.7rem; line-height: 1.35; color: #fff; margin-bottom: 1rem; }
blockquote footer { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: #c9d1db; }
blockquote footer img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
input, textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid #d6d0c6; border-radius: 10px;
  padding: 13px 14px; width: 100%;
}
input:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31, 48, 71, .15); }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: 10px; font-weight: 500; display: none; }
.form-status.ok { display: block; background: #e7f3ea; color: #1f5b30; }
.form-status.err { display: block; background: #fbe9e7; color: #8a2a20; }
.info { display: grid; gap: 22px; align-content: start; }
.info-item { display: flex; gap: 14px; }
.info-item .ic { flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.info-item .ic svg { width: 20px; height: 20px; }
.info-item b { display: block; font-size: 1.02rem; }
.info-item b a { color: var(--ink); text-decoration: none; }
.info-item b a:hover { color: var(--accent); }
.info-item span { font-size: .9rem; color: var(--muted); }
.map { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.map img { margin: 0 auto; }
.map p { font-size: .88rem; color: var(--muted); text-align: center; margin: 8px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
  section { padding: 72px 0; }
  .hero { padding: 72px 0; min-height: 0; }
  .hero::after { display: none; }
  .hero-art { display: none; }  .hero .wrap, .about .wrap, .why .wrap, .contact .wrap { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 420px; }
  .about-photo .flags { right: 16px; bottom: 16px; }
  .cards { grid-template-columns: 1fr; }
  .nav > a:not(.nav-cta) { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .site-header .wrap { height: 64px; gap: 12px; }
  .brand small { display: none; }
  .brand img { width: 38px; }
  .nav { gap: 12px; }
  .nav-cta { display: none; }
  .card { padding: 26px 22px; }
  .facts { grid-template-columns: 1fr; }
  form { grid-template-columns: 1fr; }
  blockquote { padding-left: 20px; }
  blockquote p { font-size: 1.4rem; }
}

/* Süti-banner */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  max-width: 720px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 50px -20px rgba(28, 39, 53, .45);
  padding: 20px 22px; display: flex; gap: 20px; align-items: center;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-actions .btn { padding: 10px 20px; font-size: .9rem; }
.footer-link-btn { color: var(--ink-soft); text-decoration: none; }
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}

/* Halvány háttérmotívumok a világos szekciókban (§, mérleg, beszédbuborék, idézőjel) */
.services, .about, .contact { position: relative; overflow: hidden; }
.services > .wrap, .about > .wrap, .contact > .wrap { position: relative; z-index: 1; }
.services::before, .services::after,
.about::before, .contact::before, .contact::after {
  content: ''; position: absolute; pointer-events: none; z-index: 0;
  background-repeat: no-repeat; background-size: contain;
}
/* nagy § jobb fent */
.services::before {
  width: 340px; height: 420px; right: -40px; top: -60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 130'%3E%3Ctext x='50' y='105' text-anchor='middle' font-family='Georgia,serif' font-size='130' fill='%231f3047' fill-opacity='.045'%3E%C2%A7%3C/text%3E%3C/svg%3E");
}
/* mérleg bal lent */
.services::after {
  width: 260px; height: 260px; left: -50px; bottom: -70px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23a3332b' stroke-opacity='.08' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M50 15v68M36 83h28M18 28h64M50 15l0 0'/%3E%3Ccircle cx='50' cy='15' r='4'/%3E%3Cpath d='M18 28 6 56M18 28l12 28M4 56q14 14 28 0z'/%3E%3Cpath d='M82 28 70 56M82 28l12 28M68 56q14 14 28 0z'/%3E%3C/svg%3E");
}
/* beszédbuborékok a Rólam rész jobb felső sarkában */
.about::before {
  width: 300px; height: 240px; right: -30px; top: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 96' fill='none' stroke='%231f3047' stroke-opacity='.07' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M8 8h60a6 6 0 0 1 6 6v26a6 6 0 0 1-6 6H30l-12 11V46H8a6 6 0 0 1-6-6V14a6 6 0 0 1 6-6z'/%3E%3Cpath d='M52 40h60a6 6 0 0 1 6 6v26a6 6 0 0 1-6 6h-10v11L90 78H52a6 6 0 0 1-6-6V46a6 6 0 0 1 6-6z' stroke='%23a3332b' stroke-opacity='.08'/%3E%3Cpath d='M16 22h40M16 31h28M60 54h40M60 63h26'/%3E%3C/svg%3E");
}
/* idézőjel + § a kapcsolat részben */
.contact::before {
  width: 220px; height: 180px; left: -30px; top: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 67 49'%3E%3Cpath fill='%23a3332b' fill-opacity='.06' d='M57 48H43l9.5-19H38V1h28.5v28.2zM4.8 48l9.5-19H0V1h28.5v28.2L19 48z'/%3E%3C/svg%3E");
}
.contact::after {
  width: 240px; height: 300px; right: -50px; bottom: -80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 130'%3E%3Ctext x='50' y='105' text-anchor='middle' font-family='Georgia,serif' font-size='130' fill='%231f3047' fill-opacity='.04'%3E%C2%A7%3C/text%3E%3C/svg%3E");
}
@media (max-width: 900px) {
  .services::before, .contact::after { width: 200px; height: 250px; }
  .services::after, .about::before, .contact::before { width: 160px; height: 140px; }
}

/* Hover-effektek */
.btn { transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { box-shadow: 0 10px 24px -10px rgba(163, 51, 43, .7); }
.btn:active { transform: translateY(0); }

.nav > a { position: relative; transition: color .2s; }
.nav > a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav > a:hover::after { transform: scaleX(1); }
.lang a { transition: background .2s, color .2s; }
.lang a:not([aria-current="true"]):hover { background: var(--bg); color: var(--ink); }
.brand img { transition: transform .3s ease; }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }

.card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease; }
.card:hover { transform: translateY(-6px); background: var(--surface); border-color: #d9cfc2; box-shadow: 0 24px 48px -28px rgba(28, 39, 53, .45); }
.card .icon { transition: background .25s ease, transform .25s ease; }
.card:hover .icon { background: var(--accent); transform: rotate(-6deg); }

.facts li { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.facts li:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 14px 28px -20px rgba(163, 51, 43, .55); }

.about-photo img { transition: transform .5s ease, box-shadow .5s ease; }
.about-photo:hover img { transform: scale(1.015); box-shadow: 0 36px 70px -30px rgba(28, 39, 53, .55); }

blockquote footer img { transition: filter .3s ease; }
blockquote:hover footer img { filter: grayscale(0); }

.info-item .ic { transition: background .2s, color .2s, border-color .2s, transform .2s; }
.info-item:hover .ic { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }
.map { transition: box-shadow .25s ease, border-color .25s ease; }
.map:hover { border-color: #d9cfc2; box-shadow: 0 18px 40px -26px rgba(28, 39, 53, .45); }

input, textarea { transition: border-color .2s, box-shadow .2s; }
input:hover, textarea:hover { border-color: #b9b1a5; }

.site-footer a { transition: color .2s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
