/* ==========================================================================
   Wattkontroll.hu – aloldal-komponensek
   A style.css után töltődik, annak tokenjeit (változóit) használja.
   1. Aktív menüpont, morzsamenü   5. Kártyák, ikonok      9. Ugró navigáció
   2. Aloldal-fejléc (page hero)   6. Listák, idézet       10. Referencialista
   3. Osztott blokkok              7. Lépések (függőleges) 11. GYIK oldal
   4. Világos figyelmeztetés       8. Tényblokk            12. Szöveges (jogi) oldal
   ========================================================================== */

/* 1. AKTÍV MENÜPONT, MORZSAMENÜ ========================================== */
.main-nav a[aria-current="page"] { border-color: var(--c-accent); color: var(--c-petrol-dark); font-weight: 600; }
.mobile-nav a[aria-current="page"] { color: var(--c-accent); }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-text-soft);
}
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--c-line); }
.breadcrumb a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.breadcrumb a:hover { text-decoration-color: var(--c-accent); }
.breadcrumb [aria-current="page"] { color: var(--c-petrol); }

/* 2. ALOLDAL-FEJLÉC ====================================================== */
.page-hero { padding-block: clamp(40px, 5vw, 72px) clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--c-line); }
.page-hero .breadcrumb { margin-bottom: clamp(32px, 5vw, 64px); }
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 64px;
  align-items: end;
}
.page-title {
  font-size: clamp(38px, 5.2vw, 76px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--c-petrol-dark);
  overflow-wrap: break-word;
}
.page-title__light { font-weight: 300; color: var(--c-petrol); }
.page-lead { max-width: 34em; margin-top: 28px; font-size: clamp(17px, 1.4vw, 19px); color: var(--c-text-muted); }
.page-hero__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--c-petrol); }
.page-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero .eyebrow--brand { margin-bottom: 20px; }

.page-hero--plain { padding-bottom: clamp(40px, 5vw, 64px); }
.page-hero--plain .page-title { font-size: clamp(34px, 4.4vw, 60px); }
.page-meta { margin-top: 20px; }

@media (max-width: 1100px) {
  .page-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .page-hero__media { aspect-ratio: 16 / 10; }
}
@media (max-width: 420px) {
  .page-title { font-size: 32px; hyphens: auto; -webkit-hyphens: auto; }
}
@media (max-width: 720px) {
  .page-hero__media { aspect-ratio: 4 / 3; margin-inline: calc(var(--gutter) * -1); }
  .page-hero .btn-row .btn { width: 100%; }
}

/* 3. OSZTOTT BLOKKOK ===================================================== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 96px;
  align-items: start;
}
.split--sticky > :first-child { position: sticky; top: calc(var(--header-h) + 44px); }
.split .h-section + .text-muted { margin-top: 24px; }
.lead-text p { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--c-text-muted); }
.lead-text p + p { margin-top: 18px; }
.lead-text p:first-child { color: var(--c-petrol-dark); font-weight: 500; }
.section-intro { max-width: 760px; margin-bottom: 56px; }
.section-intro .text-muted { margin-top: 20px; font-size: 18px; }
.section--dark .h-section, .section--dark .h-display { color: #fff; }
.section--dark .section-intro .text-muted { color: var(--c-on-dark); }

@media (max-width: 1100px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split--sticky > :first-child { position: static; }
}
@media (max-width: 720px) {
  .section-intro { margin-bottom: 36px; }
}

/* 4. VILÁGOS FIGYELMEZTETÉS ============================================== */
.notice--light { background: rgba(216, 137, 66, .12); margin-top: 32px; }
.notice--light strong { color: var(--c-petrol-dark); }
.notice--light span { color: var(--c-text-muted); }

/* 5. KÁRTYÁK, IKONOK ===================================================== */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  display: flex;
  flex-direction: column;
  padding: 32px 32px 36px;
  background: var(--c-paper);
  border-top: 3px solid var(--c-petrol);
}
.section--muted .card { background: var(--c-paper); }
.section:not(.section--muted):not(.section--dark) .card { background: var(--c-paper-muted); }
.card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card__num { font-size: 40px; font-weight: 300; line-height: 1; letter-spacing: -.03em; color: var(--c-petrol); }
.card__icon { width: 44px; height: 44px; flex: none; color: var(--c-accent); }
.card__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card__title { margin-top: 24px; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.3; font-weight: 700; letter-spacing: -.01em; color: var(--c-petrol-dark); }
.card__sub { margin-top: 6px; font-weight: 600; color: var(--c-petrol); }
.card p.text-muted { margin-top: 12px; }
.card .bullets { margin-top: 18px; }

.section--dark .card { background: rgba(255, 255, 255, .05); border-top-color: var(--c-accent); }
.section--dark .card__num { color: var(--c-accent); }
.section--dark .card__title { color: #fff; }
.section--dark .card__sub { color: var(--c-on-dark-soft); }
.section--dark .card .text-muted, .section--dark .card .bullets li { color: var(--c-on-dark); }

.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; margin-top: 56px; border-top: 1px solid rgba(220, 233, 232, .28); }
.benefit { padding-top: 24px; }
.benefit h3 { font-size: 18px; font-weight: 700; color: #fff; }
.benefit p { margin-top: 6px; color: var(--c-on-dark); }
.section--dark .btn-row { margin-top: 48px; }

@media (max-width: 1100px) {
  .card-grid { grid-template-columns: 1fr; }
  .card-grid--2 { grid-template-columns: 1fr 1fr; }
  .benefits { grid-template-columns: 1fr; gap: 0; }
  .benefit { padding-block: 20px; border-bottom: 1px solid rgba(220, 233, 232, .18); }
}
@media (max-width: 720px) {
  .card-grid--2 { grid-template-columns: 1fr; }
  .card { padding: 26px 22px 28px; }
}

/* 6. LISTÁK, IDÉZET ====================================================== */
.bullets li { position: relative; padding-left: 22px; color: var(--c-text-muted); }
.bullets li + li { margin-top: 10px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--c-accent); }

.checklist { border-top: 1px solid var(--c-ink); }
.checklist li {
  position: relative;
  padding: 18px 0 18px 40px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink);
  font-weight: 500;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--c-petrol);
  border-radius: var(--radius);
  background: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23D88942' stroke-width='2'%3E%3Cpath d='M2.5 7.5l3 3 6-7'/%3E%3C/svg%3E");
}
.checklist small { display: block; margin-top: 2px; font-weight: 400; color: var(--c-text-muted); font-size: 14px; }

.quote-block {
  max-width: 980px;
  margin-inline: auto;
  padding-left: clamp(20px, 3vw, 40px);
  border-left: 3px solid var(--c-accent);
}
.quote-block p {
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.2;
  font-weight: 300;
  letter-spacing: -.02em;
  color: var(--c-petrol-dark);
}
.quote-block strong { font-weight: 700; }

/* 7. LÉPÉSEK (FÜGGŐLEGES) ================================================ */
.v-steps { border-top: 1px solid var(--c-ink); }
.v-step {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  padding-block: 28px;
  border-bottom: 1px solid var(--c-line);
}
.v-step__num { font-size: 48px; font-weight: 300; line-height: 1; letter-spacing: -.04em; color: var(--c-petrol); }
.v-step:first-child .v-step__num { color: var(--c-accent); }
.v-step h3 { font-size: clamp(19px, 1.7vw, 22px); font-weight: 700; color: var(--c-petrol-dark); }
.v-step p { margin-top: 6px; color: var(--c-text-muted); }

@media (max-width: 720px) {
  .v-step { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding-block: 22px; }
  .v-step__num { font-size: 32px; }
}

/* 8. TÉNYBLOKK =========================================================== */
.fact-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--c-ink); }
.fact-strip > div { padding: 18px 20px 0 0; }
.fact-strip dd { margin-top: 6px; font-size: clamp(20px, 2vw, 26px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--c-petrol-dark); }

@media (max-width: 720px) {
  .fact-strip { grid-template-columns: 1fr 1fr; row-gap: 20px; }
}

/* 9. UGRÓ NAVIGÁCIÓ ====================================================== */
.jump-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: rgba(247, 246, 242, .97);
  border-bottom: 1px solid var(--c-line);
}
.jump-nav ul {
  display: flex;
  gap: 8px 28px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.jump-nav ul::-webkit-scrollbar { display: none; }
.jump-nav a {
  display: block;
  padding: 16px 0;
  white-space: nowrap;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--c-petrol);
  border-bottom: 2px solid transparent;
}
.jump-nav a:hover, .jump-nav a.is-active { border-color: var(--c-accent); color: var(--c-petrol-dark); }
.jump-nav__count { margin-left: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--c-text-soft); }

/* 10. REFERENCIALISTA ==================================================== */
.ref-group + .ref-group { margin-top: clamp(72px, 8vw, 112px); }
.ref-group__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; align-items: end; margin-bottom: 40px; }
.ref-group__head .text-muted { max-width: 34em; }
.ref-list { border-top: 1px solid var(--c-ink); }
.ref-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 8px 96px;
  padding-block: 22px;
  border-bottom: 1px solid var(--c-line);
}
.ref-row__title { font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--c-petrol-dark); }
.ref-row__place { display: block; margin-top: 4px; }
.ref-row .bullets li + li { margin-top: 6px; }
.ref-row > p { color: var(--c-text-muted); }
.ref-subhead { margin: 48px 0 16px; font-size: 20px; font-weight: 700; color: var(--c-petrol-dark); }
.ref-note { margin-top: 24px; color: var(--c-text-muted); font-size: 15px; }

@media (max-width: 1100px) {
  .ref-group__head { grid-template-columns: 1fr; gap: 16px; }
  .ref-row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 40px; }
}
@media (max-width: 720px) {
  .ref-row { grid-template-columns: 1fr; padding-block: 18px; }
}

/* 11. GYIK OLDAL ========================================================= */
.faq-section + .faq-section { margin-top: clamp(64px, 7vw, 96px); }
.faq-section .accordion { margin-top: 8px; }
.acc-panel .prose { padding: 0 56px 28px 0; max-width: 46em; }
.acc-panel .prose > :first-child { margin-top: 0; }

@media (max-width: 560px) {
  .acc-panel .prose { padding-right: 0; }
}

/* 12. SZÖVEGES (JOGI) OLDAL ============================================== */
.text-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 96px; align-items: start; }
.text-page > .prose { min-width: 0; }
.text-page__aside { position: sticky; top: calc(var(--header-h) + 32px); padding: 28px; background: var(--c-paper-muted); border-top: 3px solid var(--c-petrol); }
.text-page__aside h2 { font-size: 18px; font-weight: 700; color: var(--c-petrol-dark); }
.text-page__aside p { margin-top: 10px; font-size: 15px; color: var(--c-text-muted); }
.text-page__aside .btn { margin-top: 20px; width: 100%; }

@media (max-width: 1100px) {
  .text-page { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .text-page__aside { position: static; }
}

/* Harmonikán belüli szöveg: a style.css .acc-panel p térközét itt a .prose kezeli */
.acc-panel .prose p { padding: 0; }
.acc-panel .prose > p:first-child { margin-top: 0; }

/* Sötét blokkban lévő felsorolás */
.section--dark .bullets li { color: var(--c-on-dark); }
