/* ==========================================================================
   ViP CMS – shared subpage components (loaded after style.css)
   Built from the "Pénzügyi – v2" frame; reused by every subpage.
   ========================================================================== */

/* ---------- Subpage hero ---------- */
.sp-hero { padding: 64px 0 112px; background: var(--bg); }
.sp-hero__grid { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.sp-hero__text { width: 590px; flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.sp-hero__text .lead { color: var(--muted); }
.sp-hero__actions { display: flex; align-items: center; gap: 28px; padding-top: 8px; }
.sp-hero__art { width: 540px; max-width: 100%; flex: none; }
.sp-hero__art img { width: 100%; height: auto; }

/* image placeholder ("Kép helye") */
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg-2);
  border-radius: 24px;
  color: var(--muted);
  font: 400 15px/1.5 var(--font-text);
}
.ph .i { width: 32px; height: 32px; }

/* ---------- Section head with lead ---------- */
.sp-head { display: flex; flex-direction: column; gap: 14px; }
.sp-head .lead { color: var(--muted); }
.section--dark .sp-head .lead { color: rgba(255, 255, 255, .75); }
.sp-head--center { align-items: center; text-align: center; margin-inline: auto; }
.sp-head + * { margin-top: 56px; }

/* ---------- "Ismerős helyzet?" problems ---------- */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.problem { display: flex; flex-direction: column; gap: 12px; padding: 28px 8px 0 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.problem__no { font: 600 44px/52px var(--font-head); letter-spacing: -.02em; }
.problem .h3 { color: var(--white); }
.problem p { color: rgba(255, 255, 255, .544); }

/* ---------- Feature cards (Card/Feature v2) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.feature::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 .5px transparent; transition: box-shadow .25s var(--ease-out); }
.feature:hover { border-color: var(--blue); box-shadow: var(--shadow-hover); }
.feature:hover::after { box-shadow: inset 0 0 0 .5px var(--blue); }
.feature__media { height: 196px; padding: 24px 24px 0; background: var(--green); overflow: hidden; flex: none; }
.feature__shot { height: 196px; display: flex; flex-direction: column; background: var(--white); border-radius: 12px 12px 0 0; box-shadow: 0 8px 24px rgba(23, 26, 51, .10); overflow: hidden; }
.feature__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot-bar { display: flex; gap: 5px; height: 25px; padding: 9px 12px; background: var(--bg); flex: none; }
.shot-bar span { width: 7px; height: 7px; border-radius: 50%; background: #c8d3da; }
.shot-ph { flex: 1; display: grid; place-items: center; padding-bottom: 25px; color: rgba(91, 107, 117, .7); font: 400 15px/1.5 var(--font-text); }
.feature__body { display: flex; flex-direction: column; gap: 8px; padding: 24px 28px 28px; }
.feature__title { font: 600 20px/1.35 var(--font-head); color: var(--navy); }
.feature__body p { color: var(--muted); }

.media--green { background: var(--green); }
.media--orange { background: var(--orange); }
.media--pink { background: var(--pink); }
.media--blue { background: var(--blue); }
.media--yellow { background: var(--yellow); }

.link-row { display: flex; justify-content: flex-end; margin-top: 56px; }

/* ---------- Approval flow diagram ---------- */
.flow { display: flex; flex-direction: column; gap: 16px; margin-top: 56px; }
.flow__bar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 600 16px/1.2 var(--font-text);
  color: var(--navy);
}
.flow__bar .i { width: 20px; height: 20px; color: var(--blue); }
.flow__steps { display: flex; align-items: center; gap: 12px; }
.flow__arrow { width: 28px; height: 28px; flex: none; color: var(--muted); display: grid; place-items: center; }
.flow__arrow .i { width: 20px; height: 20px; }
.flow-step {
  flex: 1;
  display: flex; align-items: center; gap: 16px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .25s var(--ease-out);
}
.flow-step:hover { background: var(--white); box-shadow: var(--shadow-hover); }
.flow-step__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: var(--white); flex: none; }
.flow-step__icon .i { width: 24px; height: 24px; }
.flow-step__txt { display: flex; flex-direction: column; gap: 4px; }
.flow-step__no { font: 600 14px/1.2 var(--font-text); letter-spacing: .04em; }

/* ---------- Video placeholder ---------- */
.video {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  height: 560px;
  margin-top: 56px;
  border-radius: 28px;
  background: var(--slate);
  color: var(--white);
  overflow: hidden;
}
.video__play {
  display: grid; place-items: center;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.video__play .i { width: 34px; height: 34px; margin-left: 4px; }
.video__play:hover { transform: scale(1.06); box-shadow: 0 20px 48px rgba(0, 0, 0, .3); }
.video__caption { font: 400 15px/1.5 var(--font-text); opacity: .6; }

/* ---------- "Végig számíthat ránk" stats ---------- */
.stats-sec { text-align: center; }
.stats-sec .sp-head { max-width: 468px; gap: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 28px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .15); }
.stat__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.stat__icon .i { width: 24px; height: 24px; }
.stat__title { font: 600 24px/1.3 var(--font-head); letter-spacing: -.005em; color: var(--white); }
.stat__title em { font-style: normal; color: var(--yellow); }
.stat p { color: rgba(255, 255, 255, .7); }

/* ---------- Small icon cards (4-up grid, e.g. "Amire minden nap figyelünk") ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.tile-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: padding .25s var(--ease-out), border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.tile-card .icon-tile { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 8px; }
.tile-card .icon-tile .i { width: 24px; height: 24px; }
.tile-card__title { font: 600 20px/1.35 var(--font-head); color: var(--navy); }
.tile-card p { color: var(--muted); font-size: 16px; line-height: 1.55; }
.tile-card:hover { padding-top: 22px; padding-bottom: 34px; box-shadow: var(--shadow-hover); }
.tile-card:hover .icon-tile { box-shadow: 0 8px 16px rgba(23, 26, 51, .18); }

/* ---------- Numbered step cards with arrows (3-up) ---------- */
.step-cards { display: flex; align-items: center; gap: 16px; margin-top: 56px; }
.step-card {
  flex: 1; align-self: stretch;
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: padding .25s var(--ease-out), border-color .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .25s var(--ease-out);
}
.step-card__head { display: flex; align-items: center; gap: 16px; }
.step-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--white); flex: none; }
.step-card__icon .i { width: 24px; height: 24px; }
.step-card__no { display: block; font: 600 14px/1.2 var(--font-text); letter-spacing: .04em; margin-bottom: 4px; }
.step-card p { color: var(--muted); }
.step-card:hover { background: var(--white); box-shadow: var(--shadow-hover); padding-top: 18px; padding-bottom: 30px; }
.step-card[data-accent="pink"]:hover { border-color: var(--pink); }
.step-card[data-accent="orange"]:hover { border-color: var(--orange); }
.step-card[data-accent="green"]:hover { border-color: var(--green); }
.step-card[data-accent="blue"]:hover { border-color: var(--blue); }
.step-cards > .flow__arrow { align-self: center; }

/* ---------- Split section: text list + image ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.icon-list { display: flex; flex-direction: column; gap: 28px; margin-top: 32px; }
.icon-list li { display: flex; gap: 16px; }
.icon-list .icon-tile { width: 44px; height: 44px; border-radius: 12px; }
.icon-list .icon-tile .i { width: 22px; height: 22px; }
.icon-list strong { display: block; font: 600 18px/1.3 var(--font-head); color: var(--navy); margin-bottom: 4px; }
.icon-list p { color: var(--muted); font-size: 16px; line-height: 1.55; }

/* ---------- Dark two-up model cards ---------- */
.models { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.model {
  position: relative;
  display: flex; flex-direction: column; gap: 24px;
  padding: 32px 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .06);
  border-top: 3px solid var(--green);
  transition: background-color .25s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.model:hover { background: rgba(255, 255, 255, .1); transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.model__head { display: flex; align-items: center; gap: 16px; }
.model__head .icon-tile { width: 44px; height: 44px; border-radius: 12px; }
.model__no { display: block; font: 600 14px/1.2 var(--font-text); letter-spacing: .04em; color: var(--yellow); margin-bottom: 2px; }
.model__title { font: 600 22px/1.3 var(--font-head); color: var(--white); }
.model > p { color: rgba(255, 255, 255, .8); padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.model ul { display: flex; flex-direction: column; gap: 14px; }
.model li { display: flex; align-items: center; gap: 10px; color: var(--white); font-size: 16px; }
.model li .tick { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; flex: none; color: var(--white); }
.model li .tick .i { width: 12px; height: 12px; }

@media (min-width: 1200px) {
  .problems { min-height: 258px; }
  .features { row-gap: 56px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1199px) {
  .sp-hero { padding: 64px 0 80px; }
  .sp-hero__grid { flex-direction: column; align-items: stretch; gap: 32px; }
  .sp-hero__text { width: auto; }
  .sp-hero__art { align-self: center; }

  .sp-head + * { margin-top: 40px; }
  .problems { gap: 40px; }

  .features { grid-template-columns: repeat(2, 1fr); }
  .link-row { margin-top: 40px; }

  .flow { margin-top: 40px; }
  .flow__steps { flex-direction: column; align-items: stretch; gap: 20px; }
  .flow__steps > .flow__arrow { align-self: center; transform: rotate(90deg); }

  .video { height: 387px; margin-top: 40px; }

  .stats { margin-top: 40px; }

  .tiles { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .step-cards { flex-direction: column; align-items: stretch; margin-top: 40px; }
  .step-cards > .flow__arrow { transform: rotate(90deg); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .models { grid-template-columns: 1fr; margin-top: 40px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .sp-hero { padding: 56px 0; }
  .sp-hero__grid { gap: 28px; }
  .sp-hero__actions { flex-direction: column; align-items: stretch; align-self: stretch; }
  .sp-hero__actions .btn { justify-content: space-between; }
  .sp-hero__art { width: 350px; }

  .sp-head + * { margin-top: 32px; }
  .problems { grid-template-columns: 1fr; gap: 28px; }

  .features { grid-template-columns: 1fr; }
  .link-row { margin-top: 32px; }

  .flow { margin-top: 32px; }
  .flow-step .h3 { font-size: 20px; }

  .video { height: 197px; margin-top: 32px; }

  .stats { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
  .stat + .stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 20px; }

  .tiles { grid-template-columns: 1fr; margin-top: 32px; }
  .step-cards { margin-top: 32px; }
}
