/* =========================================================
   SZiFON Központ – landing v2
   ========================================================= */

@font-face {
  font-family: "Karla";
  src: url("../fonts/Karla-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("../fonts/Karla-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Titan One";
  src: url("../fonts/TitanOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --blue: #275dad;
  --navy: #20355e;
  --sage: #91b6b1;
  --sage-light: #c9dbd8;
  --coral: #ec6a52;
  --yellow: #f8b042;
  --bg: #e7efee;
  --bg-card: #f4f5f4;
  --white: #fff;
  --text: #20355e;

  --font: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-fun: "Titan One", "Karla", sans-serif;

  /* <1500px-en legfeljebb ~20% üres sáv, széles kijelzőn 1600px a plafon */
  --container: min(1600px, max(1180px, 88vw));
  --gutter: 16px;
  --radius-lg: 48px;
  --radius: 24px;
  --section-y: clamp(56px, 8vw, 104px);
  --header-h: 72px;
}

/* ---------- alapok ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(16px, 0.35vw + 15px, 18px);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  padding-top: var(--header-h); /* a fixed fejléc helye */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
address { font-style: normal; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* rövid kötőszó ne maradjon a sor végén: a span tartalma együtt törik */
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 640px) { :root { --gutter: 32px; } }

.c-blue { color: var(--blue); }
.c-navy { color: var(--navy); }
.c-sage { color: var(--sage); }
.c-coral { color: var(--coral); }
.c-yellow { color: var(--yellow); }

.ico { width: 1.6em; height: 1.6em; flex: none; }
.ico--flip { transform: scaleX(-1) rotate(90deg); }

/* ---------- gomb ---------- */
.btn {
  display: inline-block;
  padding: 0.7em 2.2em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn--coral { background: var(--coral); color: #fff; box-shadow: 0 6px 18px rgba(236, 106, 82, .3); }
.btn--coral:hover { background: #dd5a42; transform: translateY(-2px); }

/* ---------- fejléc ---------- */
/* fixed, nem sticky: tört skálázásnál (125%, 150%) a sticky fejléc görgetés közben
   1 px-eket ugrál, mert a görgetett réteggel együtt mindig újra pixelhez igazodik */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(231, 239, 238, .94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(32, 53, 94, .1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; min-height: var(--header-h); }
.brand img { width: 76px; height: auto; }

.main-nav ul { list-style: none; display: flex; gap: clamp(16px, 2.6vw, 40px); }
.main-nav a {
  font-weight: 700; color: var(--navy); text-decoration: none; padding: 6px 0;
  background: linear-gradient(var(--coral), var(--coral)) left bottom / 0 3px no-repeat;
  transition: background-size .2s ease;
}
.main-nav a:hover, .main-nav a.is-active { background-size: 100% 3px; }

.nav-toggle { display: none; }

@media (max-width: 899px) {
  .header-inner { justify-content: space-between; }
  .nav-toggle {
    display: grid; place-items: center; width: 48px; height: 48px;
    border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--navy);
    transition: transform .2s ease, background-color .2s ease; content: "";
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before { position: absolute; top: -8px; }
  .nav-toggle-bar::after { position: absolute; top: 8px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-8px) rotate(-45deg); }

  .main-nav {
    position: absolute; inset: var(--header-h) 0 auto 0;
    background: var(--bg); box-shadow: 0 12px 24px rgba(32, 53, 94, .12);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .main-nav a { display: block; padding: 12px 0; font-size: 1.15rem; border-bottom: 1px solid rgba(32, 53, 94, .1); background: none; }
}

/* ---------- hero ---------- */
.hero { overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  gap: clamp(8px, 3vw, 48px);
  padding-top: clamp(24px, 4vw, 48px);
}
.hero-fig { width: 100%; max-width: 330px; }
.hero-fig--left { justify-self: end; }
.hero-fig--right { justify-self: start; }
.hero-text { text-align: center; align-self: center; padding-bottom: clamp(24px, 6vw, 80px); }
.hero h1 {
  font-family: var(--font-fun); font-weight: 400; color: var(--blue);
  font-size: clamp(2.6rem, 5.5vw, 4.6rem); line-height: 1.08; max-width: 7.5em; margin-inline: auto;
}
.hero-sub { margin: 14px 0 28px; font-weight: 700; color: var(--blue); font-size: clamp(1rem, 1.3vw, 1.2rem); }

@media (max-width: 719px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .hero-text { grid-column: 1 / -1; grid-row: 1; padding-bottom: 8px; }
  .hero-fig { max-width: 200px; }
}

/* ---------- szekciók ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--blue { background: var(--blue); color: #fff; }
.section--sage { background: var(--sage); }
.section-title { font-size: clamp(2rem, 3.2vw, 2.75rem); font-weight: 800; color: var(--navy); margin-bottom: 0.6em; letter-spacing: -0.01em; }
.section-title--light { color: #fff; }
.lead { font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.25rem); }
.lead--light { color: #fff; }
.section--sage .lead { color: var(--navy); }
.fun-title { font-family: var(--font-fun); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: clamp(40px, 5vw, 64px) 0 32px; }
.fun-title + .lead { margin-top: -16px; margin-bottom: 32px; }

/* ---------- szolgáltatás-pillek ---------- */
.pills { list-style: none; display: grid; gap: 16px 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pills { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .pills { grid-template-columns: repeat(3, 1fr); } }
.pill {
  display: flex; align-items: center; gap: 18px; min-height: 84px; height: 100%;
  padding: 12px 28px; border-radius: 999px; background: var(--bg);
  color: var(--blue); font-weight: 800; font-size: 1.05rem; line-height: 1.35; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pill .ico { width: 42px; height: 42px; }
.pill:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(10, 30, 70, .25); }

/* ---------- Szakterületeink ---------- */
.intro-split { display: grid; gap: 40px; align-items: center; margin-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .intro-split { grid-template-columns: 1fr 1.15fr; } }

.framed-quote { position: relative; margin: 40px 0 0 clamp(0px, 4vw, 48px); padding: 28px 40px; max-width: 400px; text-align: center; }
.framed-quote-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.framed-quote p { font-family: var(--font-fun); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.3; margin: 0; }
.framed-quote--coral { color: var(--coral); }
.framed-quote--navy { color: var(--navy); }

.sofa-visual { position: relative; aspect-ratio: 1.6; max-width: 640px; width: 100%; justify-self: center; }
.sofa-sun { position: absolute; left: 8%; top: 4%; width: 52%; height: auto; aspect-ratio: 1; }
.sofa-star { position: absolute; right: 6%; top: 0; width: 50%; height: auto; aspect-ratio: 1; }
.sofa-img { position: absolute; left: 3%; right: 6%; bottom: 14%; width: 95%; }
/* top: 82% = asztali nézetben ~320px, de keskenyebb dobozban is a kép alján marad */
.sofa-visual .ribbon { position: absolute; left: 0; right: 0; bottom: 0; top: 82%; margin-top: -20px; }

.ribbon { display: flex; align-items: center; justify-content: center; gap: 14px; }
.ribbon-label {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--coral); color: #fff; border-radius: 999px;
  padding: 0.35em 1.3em; margin: 0;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; text-align: center;
  font-size: clamp(0.85rem, 1.4vw, 1.25rem); line-height: 1.3;
}
.ribbon-label img { width: 1.2em; height: auto; filter: brightness(0) invert(1); }
.ribbon-label--white { background: var(--white); color: var(--blue); font-size: clamp(0.7rem, 3.6vw, 1.5rem); white-space: nowrap; }
.ribbon-label--white svg { width: 1.3em; height: 1.3em; flex: none; }
.ribbon-rays { width: clamp(28px, 3.6vw, 46px); height: auto; aspect-ratio: 110 / 150; flex: none; }
.ribbon-rays--r { transform: scaleX(-1); } /* a pálcikák a szalagtól kifelé nyílnak */
@media (max-width: 479px) { .ribbon { gap: 6px; } .ribbon-rays { width: 24px; } }

.cards-2col { display: grid; gap: 28px; }
.cards-col { display: grid; gap: 28px; align-content: start; }
@media (min-width: 900px) { .cards-2col { grid-template-columns: 1fr 1fr; } }

.svc-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 44px) clamp(24px, 3.5vw, 48px);
  color: var(--blue); scroll-margin-top: calc(var(--header-h) + 16px);
}
.svc-title { display: flex; align-items: center; gap: 14px; font-size: clamp(1.25rem, 1.6vw, 1.5rem); font-weight: 800; margin-bottom: 20px; }
.svc-title .ico { width: 40px; height: 40px; }
.svc-card h4 { font-size: 1.08rem; font-weight: 800; margin: 1.2em 0 0.35em; }
.svc-strong { font-weight: 700; font-size: 1.08rem; }

/* ---------- Szakértőink ---------- */
.team-grid { display: grid; gap: 28px; margin-top: 40px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

.expert {
  /* a fotó a kártyaszélesség ~42%-a (cqi = a kártya szélességének 1%-a) */
  container-type: inline-size;
  --photo: 42cqi;
  position: relative; overflow: hidden;
  background: var(--bg-card); border-radius: 22px;
  box-shadow: 0 10px 30px rgba(32, 53, 94, .14);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
@media (hover: hover) {
  .expert:hover {
    transform: scale(1.025);
    box-shadow: 0 16px 40px rgba(32, 53, 94, .22);
    z-index: 1;
  }
}
/* dekorsarkok a Canva-kártyák mintájára */
.expert::before, .expert::after { content: ""; position: absolute; z-index: 2; pointer-events: none; }
.expert::before {
  top: 0; left: 0; width: 44px; height: 140px;
  background:
    radial-gradient(circle at 0 0, var(--coral) 0 34px, transparent 35px) 0 0 / 44px 44px no-repeat,
    linear-gradient(var(--sage), var(--sage)) 0 48px / 36px 36px no-repeat,
    radial-gradient(circle at 0 100%, var(--yellow) 0 34px, transparent 35px) 0 88px / 44px 44px no-repeat;
}
.expert::after {
  top: 0; right: 0; width: 46px; height: 150px;
  background:
    radial-gradient(circle at 100% 50%, var(--yellow) 0 40px, transparent 41px) 0 0 / 46px 80px no-repeat,
    radial-gradient(circle, var(--sage) 0 18px, transparent 19px) 4px 86px / 40px 40px no-repeat;
}
.expert-top {
  position: relative; background: var(--bg);
  padding: 30px 56px 0;
}
.expert-top::before, .expert-top::after {
  content: ""; position: absolute; width: 26px; height: 26px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M44 0h12v34L80 10l9 9-24 24h35v12H66l24 25-9 9-25-25v36H44V65L19 90l-9-9 25-25H0V44h35L10 19l9-9 25 25z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M44 0h12v34L80 10l9 9-24 24h35v12H66l24 25-9 9-25-25v36H44V65L19 90l-9-9 25-25H0V44h35L10 19l9-9 25 25z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.expert-top::before { top: 6px; left: 46px; color: var(--blue); }
.expert-top::after { top: 6px; right: 50px; color: var(--coral); }

.expert-role {
  text-align: center; text-transform: uppercase; font-weight: 800; color: var(--navy);
  font-size: clamp(0.5rem, 2.4cqi, 0.8rem); letter-spacing: 0.01em; line-height: 1.4; margin: 0 -24px 16px;
  /* minden kártyán azonos magasság: a JS a leghosszabbhoz igazítja, alapból 6 sor */
  min-height: var(--role-h, 8.1em); display: flex; flex-direction: column; align-items: center; justify-content: center;
}
/* egy titulus = egy sor, mint a Canva-kártyákon (a betűméret a kártyaszélességhez igazodik) */
.expert-role > span { display: block; white-space: nowrap; }
/* nagyon keskeny kártyán inkább törjön, mint hogy a díszekbe lógjon */
@container (max-width: 310px) {
  .expert-role { margin-inline: 0; }
  .expert-role > span { white-space: normal; text-wrap: balance; }
}
.expert-head { display: grid; grid-template-columns: minmax(0, 1fr) var(--photo); align-items: center; gap: 10px; margin-inline: -28px -36px; }
.expert-name {
  font-family: var(--font-fun); font-weight: 400; text-transform: uppercase; color: var(--navy);
  font-size: clamp(0.9rem, 5.2cqi, 1.6rem); line-height: 1.15;
  border-left: 4px solid var(--navy); padding: 4px 0 4px 12px;
  /* mindig 3 sornyi hely, így a háttérsáv nem ugrál */
  height: calc(3 * 1.15em + 8px); display: flex; align-items: center;
}
.expert-photo {
  width: var(--photo); height: var(--photo); border-radius: 50%; object-fit: cover;
  border: 8px solid var(--bg-card); margin-bottom: calc(var(--photo) * -0.3); position: relative; z-index: 1;
  background: var(--bg-card);
}
.expert-body { padding: 18px 26px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; font-size: 0.93rem; line-height: 1.45; color: #2a2a2a; }
.expert-body h4 { text-transform: uppercase; font-weight: 500; font-size: 1.15rem; color: var(--navy); letter-spacing: 0.02em; margin-top: 4px; }
.expert-list { padding-left: 1.1em; display: grid; gap: 4px; }
.expert-list li::marker { color: var(--blue); }
.expert-place { margin: 0; color: var(--navy); font-weight: 600; font-size: 0.88rem; }
.expert-contact { list-style: none; display: grid; gap: 6px; font-size: 0.88rem; margin-top: auto; padding-top: 4px; }
.expert-contact li { display: flex; gap: 8px; align-items: flex-start; }
.expert-contact a { color: var(--blue); text-decoration: none; word-break: break-word; font-weight: 600; }
.expert-contact a:hover { text-decoration: underline; }
.ico-s { width: 18px; height: 18px; flex: none; color: var(--blue); margin-top: 1px; }

/* ---------- Központ: galéria ---------- */
.carousel { position: relative; margin-top: 8px; }
/* végtelenített, transform-alapú csúszka; a lépésközt a JS a --slide-w + gap alapján számolja */
.carousel-viewport { overflow: hidden; border-radius: var(--radius); touch-action: pan-y; }
.carousel-track {
  --gap: 16px; --slide-w: 82%;
  display: flex; gap: var(--gap);
  transition: transform .7s cubic-bezier(.45, .05, .25, 1);
  will-change: transform;
}
.carousel-track.is-instant { transition: none; }
@media (min-width: 640px) { .carousel-track { --slide-w: calc((100% - var(--gap)) / 2); } }
@media (min-width: 960px) { .carousel-track { --slide-w: calc((100% - 2 * var(--gap)) / 3); } }
.carousel-slide { flex: 0 0 var(--slide-w); border-radius: var(--radius); overflow: hidden; aspect-ratio: 2 / 3; background: var(--sage-light); user-select: none; }
.carousel-slide img { -webkit-user-drag: none; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }

.carousel-btn {
  position: absolute; top: 50%; translate: 0 -70%;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--navy);
  box-shadow: 0 6px 18px rgba(32, 53, 94, .2);
  transition: opacity .2s ease, transform .15s ease;
}
.carousel-btn svg { width: 26px; height: 26px; }
.carousel-btn--prev { left: 10px; }
.carousel-btn--prev svg { transform: scaleX(-1); }
.carousel-btn--next { right: 10px; }
.carousel-btn:hover { transform: scale(1.06); }
.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.carousel-dots button {
  width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--sage); transition: background-color .2s ease, transform .2s ease;
}
.carousel-dots button[aria-current="true"] { background: var(--coral); transform: scale(1.25); }

.interview {
  position: relative; display: grid; gap: 28px; margin-top: clamp(36px, 5vw, 56px);
  padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 56px);
}
.interview > div { position: relative; z-index: 1; }
.interview-quote {
  position: absolute; width: clamp(56px, 7vw, 96px); height: auto; aspect-ratio: 94 / 80;
  color: var(--sage); opacity: 0.45; pointer-events: none;
}
.interview-quote--open { left: 0; top: 0; }
.interview-quote--close { right: 0; bottom: 0; transform: rotate(180deg); }
@media (min-width: 800px) { .interview { grid-template-columns: 1fr 1fr; gap: 56px; } }
.interview h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); font-weight: 800; margin-bottom: 10px; color: #1b1b1b; }
.interview p { color: #2a2a2a; }

.press {
  display: grid; gap: 24px 48px; align-items: center; margin-top: clamp(40px, 6vw, 72px);
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .press { grid-template-columns: 1fr 1fr; } }
.press .framed-quote { margin: 0 auto; }
.press-visual { position: relative; width: min(100%, 380px); aspect-ratio: 1.2; justify-self: center; }
.press-circle { position: absolute; right: 0; top: 0; width: 64%; height: auto; aspect-ratio: 1; }
.press-star { position: absolute; left: 0; top: 24%; width: 44%; height: auto; aspect-ratio: 1; }
.press-cover {
  position: absolute; left: 22%; top: 4%; width: 52%;
  transform: rotate(7deg); border-radius: 3px;
  box-shadow: -10px 14px 24px rgba(0, 0, 0, .25);
}
.press-source { grid-column: 1 / -1; text-align: right; font-style: italic; color: #2a2a2a; }
@media (max-width: 799px) { .press-source { text-align: center; } }

/* ---------- Áraink ---------- */
.prices-wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .prices-wrap { grid-template-columns: 1fr 300px; gap: 72px; } }
.prices { margin: 0; display: grid; gap: 14px; }
.prices > div { display: flex; align-items: baseline; gap: 12px; }
.prices dt { font-weight: 800; flex: none; max-width: 62%; }
.prices dt::after { content: none; }
.prices > div::after { content: none; }
.prices dd {
  margin: 0; flex: 1; display: flex; align-items: baseline; gap: 12px; white-space: nowrap;
}
.prices dd::before {
  content: ""; flex: 1; min-width: 24px; border-bottom: 3px dotted rgba(255, 255, 255, .9); transform: translateY(-5px);
}
@media (max-width: 559px) {
  .prices > div { flex-direction: column; gap: 2px; padding-bottom: 12px; border-bottom: 1px dashed rgba(255, 255, 255, .35); }
  .prices dt { max-width: none; }
  .prices dd::before { content: none; }
}

.arch-visual { position: relative; width: min(100%, 300px); justify-self: center; padding-top: 24%; }
.arch-half { position: absolute; top: 0; left: 22%; width: 78%; height: auto; aspect-ratio: 2; }
.arch-star { position: absolute; top: 8%; left: -16%; width: 50%; height: auto; aspect-ratio: 1; }
.arch-visual img { position: relative; width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 30%; border-radius: 6px 120px 6px 6px; }

/* ---------- Kapcsolat: lépések ---------- */
.steps-wrap { position: relative; max-width: 1000px; margin: 120px auto 0; }
/* az SVG (240,260) pontja a kártya felső élének közepére, azaz a csillag középpontjára esik */
.steps-arc {
  position: absolute; left: 50%; top: -260px; width: 360px; height: 280px; margin-left: -240px;
  z-index: 2; pointer-events: none; overflow: visible; transform-origin: 240px 260px;
}
.steps-arc text { font-family: var(--font); font-weight: 800; font-size: 32px; letter-spacing: 0.01em; fill: #111; }
.steps {
  list-style: none; position: relative; display: grid; gap: 200px 32px; grid-template-columns: 1fr;
  padding-top: 130px;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); row-gap: 64px; } }
/* szaggatott idővonal a lépések alatt */
@media (min-width: 760px) {
  .steps::after {
    content: ""; position: absolute; left: calc(100% / 6); right: calc(100% / 6); bottom: -34px;
    border-top: 2px dashed #8c94a6;
  }
}
.step { position: relative; display: flex; height: 100%; flex-direction: column; align-items: center; text-align: center; max-width: 320px; margin-inline: auto; width: 100%; }
/* a forma alsó fele a kártya mögé lóg, csak a felső fele látszik */
.step-head { position: absolute; top: -123px; left: 50%; translate: -50% 0; width: 250px; height: 125px; overflow: hidden; }
.step-head svg { width: 250px; height: 250px; }
.step-head--blue { color: var(--blue); }
.step-head--coral { color: var(--coral); }
.step-head--yellow { color: var(--yellow); }
.step-num { position: absolute; top: -58px; left: 50%; translate: -50% 0; z-index: 1; font-size: 2.6rem; line-height: 1; color: #fff; font-weight: 400; }
.step-card {
  position: relative; z-index: 1; width: 100%; flex: 1; background: var(--white); border-radius: 14px;
  padding: 28px 24px 64px; box-shadow: 0 6px 20px rgba(32, 53, 94, .06);
  color: #111;
}
.step-card h4 { font-size: 1.45rem; font-weight: 800; margin-bottom: 12px; }
.step-card p { line-height: 1.55; }
.step-icon {
  position: relative; z-index: 2; margin-top: -52px;
  width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center;
  border: 7px solid #fff; box-shadow: 8px 10px 22px rgba(32, 53, 94, .18);
}
.step-icon img { width: 58%; }
.step-icon--blue { background: var(--blue); }
.step-icon--coral { background: var(--coral); }
.step-icon--yellow { background: var(--yellow); }
@media (min-width: 760px) {
  .step::after {
    content: ""; position: absolute; bottom: -42px; left: 50%; translate: -50% 0; z-index: 1;
    width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06);
  }
  .step:nth-child(1)::after { background: var(--blue); }
  .step:nth-child(2)::after { background: var(--coral); }
  .step:nth-child(3)::after { background: var(--yellow); }
}
.steps-note { margin: 72px auto 0; max-width: 760px; padding: 0 1.5em; font-size: 1.12rem; color: #111; }
@media (max-width: 759px) { .steps-note { margin-top: 32px; } }
@media (max-width: 380px) { .steps-arc { transform: scale(.9); } }
@media (max-width: 340px) { .steps-arc { transform: scale(.8); } }

.ribbon--wide { margin: clamp(36px, 5vw, 56px) auto 0; }
.ribbon--wide .ribbon-label { font-size: clamp(0.85rem, 1.5vw, 1.2rem); }

/* Facebook-felhívás */
.fb-cta {
  margin: clamp(36px, 5vw, 56px) auto 0; max-width: 1200px;
  padding: clamp(24px, 3.5vw, 40px) clamp(20px, 3.5vw, 44px);
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(32, 53, 94, .1);
  font-size: 1.05rem; color: #111;
}
.fb-cta-title { color: var(--blue); font-weight: 800; font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-bottom: 14px; }
.fb-cta-row { display: grid; gap: 24px; align-items: center; margin-top: 1em; }
@media (min-width: 900px) { .fb-cta-row { grid-template-columns: 1fr auto; gap: 48px; } }
.fb-cta a:not(.btn-fb) { color: inherit; font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.fb-cta a:not(.btn-fb):hover { color: var(--blue); }

/* feltűnő gomb: időnként végigfutó csillanás */
.btn-fb {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0.9em 2em; border-radius: 999px;
  background: var(--blue); color: #fff; text-decoration: none;
  font-weight: 800; font-size: clamp(1.1rem, 1.5vw, 1.35rem); white-space: nowrap;
  box-shadow: 0 8px 22px rgba(39, 93, 173, .35);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-fb::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .1), transparent);
  transform: translateX(-120%) skewX(-20deg);
  animation: fb-shine 3.5s ease-in-out infinite;
}
.btn-fb > [aria-hidden] { transition: transform .15s ease; }
.btn-fb:hover { background: var(--navy); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(39, 93, 173, .45); }
.btn-fb:hover > [aria-hidden] { transform: translateX(4px); }
@keyframes fb-shine { 0%, 55% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(300%) skewX(-20deg); } }
@media (prefers-reduced-motion: reduce) { .btn-fb::after { animation: none; } }
@media (max-width: 899px) { .btn-fb { justify-self: stretch; padding-inline: 1.2em; font-size: 1.05rem; } }

.contact-row {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 48px;
  margin: 40px 0 clamp(32px, 4vw, 48px);
}
.contact-row a { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-weight: 600; }
.contact-row a:hover { color: var(--blue); text-decoration: underline; }
.ico-m { width: 30px; height: 30px; color: var(--navy); flex: none; }

.map { margin-bottom: calc(var(--section-y) * -1); }
.map iframe { display: block; width: 100%; height: clamp(300px, 34vw, 420px); border: 0; filter: saturate(.85); }

/* ---------- lábléc ---------- */
.site-footer { background: var(--bg); padding: 56px 0 32px; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-inner > img { width: 150px; }
.footer-tagline { margin: -6px 0 0; font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.site-footer address { display: grid; gap: 4px; color: var(--navy); }
.footer-social { display: flex; gap: 12px; margin-top: 6px; }
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; transition: background-color .15s ease; }
.footer-social a:hover { background: var(--blue); }
.footer-social svg { width: 24px; height: 24px; }
.footer-copy { font-size: 0.85rem; color: rgba(32, 53, 94, .7); margin-top: 8px; }

/* ---------- vissza a tetejére ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--coral); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top svg { width: 24px; height: 24px; transform: rotate(-90deg); }
