/* ==========================================================================
   Lilly HU – Kardiometabolikus stand webapp
   Méretezés: minden rem-ben, a gyökér betűméret a képernyő szélességéhez
   igazodik (1080 px széles kijelzőn 1rem = 16px). Lásd TECHNIKAI.md.
   ========================================================================== */

/* ---------- Fontok (Archivo, OFL licenc, helyben tárolva) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokenek (színek az e-mail anyagokból mintázva) ---------- */
:root {
  --red: #e1251b;
  --red-deep: #a81b13;
  --brown: #521207;
  --bg: #fdeeeb;
  --bg-soft: #fef5f4;
  --pink-1: #fde8e5;
  --pink-2: #fbd3cd;
  --pink-3: #faccc7;
  --panel: #fde6e3;
  --salmon: #f7b0a3;
  --salmon-2: #f19288;
  --salmon-3: #f39385;
  --line: #f6c2bb;
  --footer-bg: #f5e1de;
  --white: #fff;

  --app-width: 67.5rem;
  --gutter: 4.5rem;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: "Archivo", Arial, Helvetica, sans-serif;
}

/* ---------- Alapok ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* 1080 px szélességnél 16px. Fekvő (asztali) nézetben a magasság korlátoz,
     így teszteléskor is álló "telefon" arányú oszlop látszik. */
  font-size: calc(min(100vw, 75vh) / 67.5);
  -webkit-text-size-adjust: 100%;
  background: #ecd3cf;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.6rem;
  line-height: 1.42;
  color: var(--brown);
  background: #ecd3cf;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  touch-action: pan-y;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
  pointer-events: none;
}

sup {
  font-size: 0.58em;
  line-height: 0;
  vertical-align: 0.75em;
  margin-left: 0.04em;
  white-space: nowrap;
}

b,
strong {
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

.app {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--app-width);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow-x: clip;
  box-shadow: 0 0 5rem rgba(82, 18, 7, 0.18);
}

.wrap {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.view[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Megjelenési animációk (scroll reveal) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(3rem);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal="left"] {
  transform: translateX(-5rem);
}
.js [data-reveal="right"] {
  transform: translateX(5rem);
}
.js [data-reveal="zoom"] {
  transform: scale(0.82);
}
.js [data-reveal="spin"] {
  transform: rotate(-30deg) scale(0.75);
  transition-duration: 1.4s;
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Dekoráció: hullámvonalak és hurkok (JS generálja) ---------- */
.decor-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.decor-waves path {
  fill: none;
  stroke: var(--wave-color, #efb3aa);
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
  opacity: 0.75;
  animation: wave-drift 14s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.9s);
}
@keyframes wave-drift {
  from {
    transform: translate3d(-3%, -1.5%, 0);
  }
  to {
    transform: translate3d(3%, 1.5%, 0);
  }
}

.decor-swirl {
  position: absolute;
  pointer-events: none;
  fill: none;
  stroke: var(--swirl-color, #fcdcd7);
  stroke-linecap: round;
  animation: swirl-float 18s ease-in-out infinite alternate;
}
@keyframes swirl-float {
  from {
    transform: rotate(-4deg) translateY(-2%);
  }
  to {
    transform: rotate(4deg) translateY(2%);
  }
}

.decor-loops {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.decor-loops path {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.13;
}
.decor-loops g {
  animation: loop-float 16s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -1.7s);
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes loop-float {
  from {
    transform: translate(-6px, -4px) rotate(-6deg);
  }
  to {
    transform: translate(6px, 4px) rotate(6deg);
  }
}

/* ==========================================================================
   KEZDŐLAP
   ========================================================================== */
/* A kezdőlap a lábléccel együtt kitölti a képernyőt görgetés nélkül:
   a fölösleges magasságot a csempék kapják meg (lásd .tiles). */
.view-home {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 3.6rem var(--gutter) 2.6rem;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}
.home-hero .decor-waves {
  top: 30%;
  height: 80%;
}
.home-logo {
  position: absolute;
  top: 3rem;
  right: var(--gutter);
  width: 13rem;
}
.home-eyebrow {
  position: relative;
  margin: 0 0 0.8rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.home-title {
  position: relative;
  margin: 0;
  font-size: 6rem;
  line-height: 1;
  font-weight: 900;
  font-style: italic;
  font-stretch: 80%;
  letter-spacing: -0.02em;
}
.home-lead {
  position: relative;
  margin: 1.2rem 0 0;
  font-size: 2rem;
}

.tiles {
  flex: 1 0 auto;
  display: grid;
  grid-auto-rows: 1fr;
  gap: 2.4rem;
  padding: 0.6rem var(--gutter) 3.4rem;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 26rem;
  padding: 3rem 3.6rem 2.8rem;
  border-radius: 3rem;
  overflow: hidden;
  text-decoration: none;
  isolation: isolate;
  box-shadow:
    0 1.2rem 0 var(--shadow-solid),
    0 2.5rem 4rem rgba(82, 18, 7, 0.18);
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
  animation: tile-breathe 5s ease-in-out infinite;
}
.tile:nth-child(2) {
  animation-delay: -2.5s;
}
.tile:active {
  transform: translateY(0.8rem) scale(0.985);
  box-shadow:
    0 0.4rem 0 var(--shadow-solid),
    0 1rem 2rem rgba(82, 18, 7, 0.18);
  animation: none;
}
@keyframes tile-breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.5rem);
  }
}
/* fényvillanás, ami időnként végigfut a csempén – érintésre csábít */
.tile::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 1;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.45) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: tile-sheen 7s ease-in-out infinite;
  pointer-events: none;
}
.tile:nth-child(2)::after {
  animation-delay: 3.5s;
}
@keyframes tile-sheen {
  0%,
  70% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.tile > * {
  position: relative;
  z-index: 2;
}
.tile .decor-waves,
.tile .decor-loops,
.tile .decor-swirl {
  position: absolute;
  z-index: 0;
}

.tile-kicker {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tile-title {
  margin-top: 1rem;
  font-size: 5.6rem;
  line-height: 1;
  font-weight: 900;
  font-style: italic;
  font-stretch: 72%;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.tile-sub {
  margin-top: 1.2rem;
  max-width: 48rem;
  font-size: 2rem;
  line-height: 1.25;
}
.tile-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 2rem;
}
.tile-icons {
  display: flex;
  gap: 1rem;
}
.tile-icons img {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  box-shadow: 0 0.4rem 1rem rgba(82, 18, 7, 0.15);
}
.tile-cta {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.3rem 1.6rem 1.3rem 2.6rem;
  border-radius: 99rem;
  font-size: 2rem;
  font-weight: 700;
}
.tile-cta svg {
  width: 3.4rem;
  height: 3.4rem;
  animation: cta-nudge 1.6s ease-in-out infinite;
}
@keyframes cta-nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(0.6rem);
  }
}

.tile--obes {
  --shadow-solid: #e9b4ac;
  color: var(--brown);
  background: linear-gradient(160deg, #fff7f6 0%, var(--pink-1) 100%);
  border: 0.2rem solid #f7cfc9;
}
.tile--obes .tile-kicker {
  color: var(--red);
}
.tile--obes .tile-cta {
  background: var(--red);
  color: #fff;
}
.tile--obes .decor-waves {
  top: 35%;
  height: 70%;
}
.tile--obes .decor-swirl {
  right: -10rem;
  top: -16rem;
  width: 40rem;
  height: 40rem;
  opacity: 0.7;
}

.tile--pato {
  --shadow-solid: var(--red-deep);
  color: #fff;
  background: var(--red);
}
.tile--pato .tile-cta {
  background: #fff;
  color: var(--red);
}

/* rejtett statisztika gomb (bal felső sarok, többszöri érintésre nyílik) */
.stats-trigger {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 8rem;
  height: 8rem;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0;
  cursor: default;
}

.stats-panel {
  position: fixed;
  left: 50%;
  bottom: 3rem;
  z-index: 60;
  width: min(100vw - 4rem, 46rem);
  padding: 2.2rem 2.4rem;
  border-radius: 1.6rem;
  background: rgba(82, 18, 7, 0.92);
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.3);
  transform: translateX(-50%);
  animation: stats-in 0.35s var(--ease-out);
}
.stats-panel[hidden] {
  display: none;
}
@keyframes stats-in {
  from {
    opacity: 0;
    transform: translate(-50%, 1.5rem);
  }
}
.stats-panel h2 {
  margin: 0 0 1.2rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}
.stats-table {
  width: 100%;
  border-collapse: collapse;
}
.stats-table th,
.stats-table td {
  padding: 0.6rem 0;
  text-align: left;
  font-weight: 400;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.stats-table td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.stats-table thead th {
  font-size: 1.2rem;
  opacity: 0.65;
}
.stats-table thead th + th {
  text-align: right;
}
.stats-table tbody td:nth-child(2) {
  font-weight: 700;
  font-size: 1.9rem;
}
.stats-meta {
  margin: 1.2rem 0 0;
  font-size: 1.2rem;
  opacity: 0.65;
}
.stats-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
}
.stats-actions button {
  padding: 0.9rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.8rem;
  background: transparent;
  font-size: 1.4rem;
}
.stats-actions .is-armed {
  background: var(--red);
  border-color: var(--red);
}

/* ==========================================================================
   FIX ELEMEK: görgetés jelző, kezdőlap gomb, görgetési tipp
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 50;
  width: min(100vw, var(--app-width));
  height: 0.6rem;
  background: rgba(225, 37, 27, 0.12);
  transform: translateX(-50%);
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--red);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}

.home-button {
  position: fixed;
  right: max(3rem, calc(50vw - var(--app-width) / 2 + 3rem));
  bottom: 3rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2.6rem 1.5rem 2rem;
  border: 0.3rem solid #fff;
  border-radius: 99rem;
  background: var(--red);
  color: #fff;
  font-size: 1.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow:
    0 0.6rem 0 var(--red-deep),
    0 1.5rem 3rem rgba(82, 18, 7, 0.3);
  transition: transform 0.2s var(--ease-out);
}
.home-button:active {
  transform: translateY(0.4rem);
}
.home-button svg {
  width: 3rem;
  height: 3rem;
}
.home-button[hidden],
.scroll-progress[hidden] {
  display: none;
}

.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: 3.4rem;
  z-index: 49;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1.2rem 2.4rem 0.8rem;
  border-radius: 99rem;
  background: rgba(82, 18, 7, 0.82);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  pointer-events: none;
  transform: translateX(-50%);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.scroll-hint svg {
  width: 2.8rem;
  height: 2.8rem;
  animation: hint-bounce 1.4s ease-in-out infinite;
}
.scroll-hint.is-hidden {
  opacity: 0;
  transform: translate(-50%, 2rem);
}
@keyframes hint-bounce {
  0%,
  100% {
    transform: translateY(-0.3rem);
  }
  50% {
    transform: translateY(0.5rem);
  }
}

/* ==========================================================================
   KÖZÖS TARTALMI ELEMEK
   ========================================================================== */
.section {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.lead {
  font-size: 2.1rem;
  line-height: 1.4;
}

/* Piros kiemelő doboz ikonnal, tömör árnyékkal és lefelé mutató nyíllal */
.callout {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2.6rem;
  margin: 0 0 4.5rem;
  padding: 2.6rem 3.4rem;
  border-radius: 3rem;
  background: var(--red);
  color: #fff;
  font-size: 2.5rem;
  line-height: 1.25;
  box-shadow: 0 0.9rem 0 var(--red-deep);
}
.callout::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2.9rem;
  border: 2rem solid transparent;
  border-top: 1.4rem solid var(--red-deep);
  border-bottom: 0;
  transform: translateX(-50%);
}
.callout--no-notch::after {
  display: none;
}
.callout-icon {
  flex: none;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: #fff;
}
.callout p {
  margin: 0;
}
.callout--title {
  font-size: 5rem;
  font-weight: 700;
}

.band-dark {
  display: grid;
  grid-template-columns: 9rem 1fr;
  align-items: center;
  gap: 3rem;
  padding: 4.5rem var(--gutter);
  background: var(--brown);
  color: #fff;
  font-size: 2.3rem;
  line-height: 1.38;
}
.band-dark img {
  width: 9rem;
  height: 9rem;
}
.band-dark p {
  margin: 0;
}

/* Összegzés: sötét doboz pipákkal */
.summary {
  margin: 0;
  padding: 1rem 3.6rem;
  border-radius: 3rem;
  background: var(--brown);
  color: #fff;
  list-style: none;
  font-size: 2rem;
  line-height: 1.38;
}
.summary li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  align-items: center;
  gap: 2.8rem;
  padding: 2.8rem 0;
}
.summary li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.summary p {
  margin: 0;
}
.check {
  display: grid;
  place-items: center;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  background: #fff;
}
.check svg {
  width: 4.6rem;
  height: 4.6rem;
  stroke: var(--red);
  stroke-width: 3.2;
  stroke-linecap: square;
  fill: none;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}
.is-visible .check svg,
.check.is-visible svg {
  animation: check-draw 0.7s var(--ease-out) forwards;
  animation-delay: calc(var(--delay, 0s) + 0.35s);
}
@keyframes check-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* Rövidítések, irodalom */
.refs {
  padding: 4.5rem var(--gutter) 5rem;
  font-size: 1.3rem;
  line-height: 1.55;
}
.refs h2 {
  margin: 2.4rem 0 0.6rem;
  font-size: 1.6rem;
  font-weight: 700;
}
.refs ol {
  margin: 0;
  padding-left: 2.2rem;
}
.refs li {
  padding-left: 0.3rem;
}

/* ==========================================================================
   LÁBLÉC (kötelező tartalom, HU_nonbranded_landing_footer_202611.docx)
   ========================================================================== */
.site-footer {
  flex: none;
  padding: 2.6rem var(--gutter) 12rem;
  background: var(--footer-bg);
  color: var(--brown);
  font-size: 1.15rem;
  line-height: 1.5;
}
/* a kezdőlapon nincs fix Kezdőlap gomb, nem kell neki hely a lábléc alján */
html[data-page="home"] .site-footer {
  padding-bottom: 2.6rem;
}
.site-footer p {
  margin: 0 0 1rem;
}
.footer-links {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.url {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
}
.footer-meta p {
  margin: 0;
}
.footer-logo {
  flex: none;
  width: 13rem;
}

/* ==========================================================================
   1. ANYAG: TESTTÖMEGCSÖKKENÉS (obezitással összefüggő szövődmények)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero--obes {
  min-height: 36rem;
  padding: 7rem var(--gutter) 6rem;
  background: var(--bg-soft);
}
.hero--obes .decor-waves {
  top: 25%;
  height: 85%;
}
.hero--obes .decor-swirl {
  right: -12rem;
  top: -16rem;
  width: 46rem;
  height: 46rem;
}
.hero-title {
  position: relative;
  margin: 0;
  font-size: 7.4rem;
  line-height: 1;
  font-weight: 900;
  font-style: italic;
  font-stretch: 78%;
  letter-spacing: -0.015em;
}
.hero-sub {
  position: relative;
  margin: 2.2rem 0 0;
  max-width: 50rem;
  font-size: 2.9rem;
  line-height: 1.22;
}
.hero-logo {
  position: absolute;
  right: var(--gutter);
  bottom: 3.5rem;
  width: 14rem;
}
.hero--obes .hero-title {
  font-size: 6.6rem;
  font-stretch: 72%;
  white-space: nowrap;
}
.hero--obes .hero-sub {
  max-width: 44rem;
}

/* Az obezitás: három kártya */
.obes-intro {
  padding: 4.5rem 2.5rem;
  background: var(--pink-2);
}
.obes-panel {
  margin: 0 2rem;
  padding-bottom: 3rem;
  border-radius: 2.5rem;
  background: var(--panel);
}
.obes-panel-head {
  margin: 0 0 3rem;
  padding: 1.4rem 2rem;
  border-radius: 2.5rem 2.5rem 0 0;
  background: var(--red);
  color: #fff;
  font-size: 2.8rem;
  font-weight: 400;
  text-align: center;
}
.obes-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin: 0 -2rem;
  padding: 0;
  list-style: none;
}
.obes-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.4rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1rem 2.5rem rgba(82, 18, 7, 0.1);
}
.obes-card-icon {
  display: grid;
  place-items: center;
  height: 12rem;
  background: var(--red);
}
.obes-card-icon img {
  width: 7.5rem;
  transition: transform 0.6s var(--ease-out);
}
.obes-card.is-visible .obes-card-icon img {
  animation: icon-pop 0.8s var(--ease-out) both;
  animation-delay: calc(var(--delay, 0s) + 0.3s);
}
@keyframes icon-pop {
  0% {
    transform: scale(0.6);
  }
  60% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}
.obes-card p {
  margin: 0;
  padding: 2rem 2rem 2.4rem;
  font-size: 1.65rem;
  line-height: 1.35;
}

/* >200 szövődmény */
.big-number {
  padding-top: 4.5rem;
  text-align: center;
}
.big-number-pre {
  margin: 0;
  font-size: 3rem;
}
.big-number-value {
  margin: 0.5rem 0 0;
  font-size: 14rem;
  line-height: 1;
  font-weight: 400;
  font-style: italic;
  font-stretch: 90%;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.big-number-unit {
  margin: 0.4rem 0 0;
  font-size: 3.5rem;
  color: var(--red);
}

.pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 4.5rem 0 0;
  padding: 0;
  list-style: none;
}
.pill {
  position: relative;
  display: flex;
  align-items: center;
  height: 6.6rem;
}
.pill img {
  position: relative;
  z-index: 1;
  flex: none;
  width: 6.6rem;
  height: 6.6rem;
}
.pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 5rem;
  margin-left: -1.4rem;
  padding-left: 1.4rem;
  border: 0.2rem solid var(--brown);
  border-radius: 0 1.2rem 1.2rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  font-stretch: 92%;
}
.pill--metabolic span {
  background: var(--pink-1);
}
.pill--biomechanical span {
  background: var(--salmon-3);
  color: #fff;
}
.pill--mental span {
  background: var(--red);
  color: #fff;
}

/* Betegségek sorai */
.disease-list {
  display: grid;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.disease {
  display: grid;
  grid-template-columns: 24rem 1fr;
  align-items: center;
}
.disease-tag {
  position: relative;
  display: flex;
  align-items: center;
  height: 8rem;
}
.disease-tag img {
  position: relative;
  z-index: 2;
  flex: none;
  width: 8rem;
  height: 8rem;
  box-shadow: 0 0.5rem 1.2rem rgba(225, 37, 27, 0.35);
  border-radius: 50%;
}
.disease-tag span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 6rem;
  margin-left: -2.5rem;
  padding: 0 2.6rem 0 3.2rem;
  font-size: 1.85rem;
  font-weight: 700;
  white-space: nowrap;
  isolation: isolate;
}
.disease-tag span::before,
.disease-tag span::after {
  content: "";
  position: absolute;
  z-index: -1;
  clip-path: polygon(0 0, calc(100% - 2rem) 0, 100% 50%, calc(100% - 2rem) 100%, 0 100%);
}
.disease-tag span::before {
  inset: 0;
  background: var(--salmon-2);
}
.disease-tag span::after {
  inset: 0.2rem 0.3rem 0.2rem 0;
  background: var(--pink-1);
}
.disease-desc {
  margin: 0 0 0 1rem;
  padding: 1.8rem 2.2rem;
  border: 0.2rem solid var(--salmon-2);
  border-radius: 1.2rem;
  background: #fff;
  font-size: 1.5rem;
  line-height: 1.38;
}

/* Sávdiagram */
.chart {
  margin: 0;
  padding: 3.2rem 2.6rem 2.6rem;
  border: 0.3rem solid #f6b8b1;
  border-radius: 3rem;
  background: var(--bg);
}
.chart-title {
  margin: 0 0 2.4rem;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.3;
}
.chart-grid {
  --label-w: 12rem;
  position: relative;
}
.chart-axis-top {
  position: relative;
  height: 3.6rem;
  margin: 0 0 1.2rem var(--label-w);
  background: linear-gradient(90deg, rgba(255, 247, 247, 0) 0%, #f7c3bb 40%, #eb5a4c 100%);
  clip-path: polygon(0 0, calc(100% - 2rem) 0, 100% 50%, calc(100% - 2rem) 100%, 0 100%);
}
.chart-axis-top span {
  position: absolute;
  top: 50%;
  left: calc(var(--x) * 1%);
  font-size: 1.6rem;
  font-weight: 800;
  transform: translate(-50%, -50%);
}
.chart-rows {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* szaggatott függőleges segédvonalak a 3–5–10–15% értékeknél */
.chart-gridlines {
  position: absolute;
  top: 4.8rem;
  bottom: 2.8rem;
  left: var(--label-w);
  right: 0;
  z-index: 0;
  pointer-events: none;
}
.chart-gridlines span {
  position: absolute;
  top: -0.6rem;
  bottom: -0.6rem;
  left: calc(var(--x) * 1%);
  border-left: 0.15rem dashed #f3a9a0;
}
.bar-row {
  position: relative;
  display: grid;
  grid-template-columns: var(--label-w) 1fr;
  align-items: center;
  height: 2.75rem;
}
/* vékony vezetővonal a címkétől a sáv elejéig */
.bar-row::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: calc(var(--label-w) + (100% - var(--label-w)) * var(--l) / 100);
  height: 0.15rem;
  background: #f8d3ce;
}
.bar-label {
  position: relative;
  z-index: 1;
  justify-self: start;
  padding-right: 0.8rem;
  background: var(--bg);
  font-size: 1.35rem;
  white-space: nowrap;
}
.bar-track {
  position: relative;
  height: 100%;
}
.bar {
  z-index: 1;
  position: absolute;
  top: 50%;
  left: calc(var(--l) * 1%);
  width: calc(var(--w) * 1%);
  height: 1.7rem;
  margin-top: -0.85rem;
  /* a színátmenet a teljes tengelyhez igazodik, ahogy az eredetiben */
  background: linear-gradient(90deg, #fde0dc 0%, #e9473a 100%);
  background-size: calc(10000% / var(--w)) 100%;
  background-position: calc(var(--l) / (100 - var(--w)) * 100%) 0;
  clip-path: polygon(0 0, calc(100% - 0.9rem) 0, 100% 50%, calc(100% - 0.9rem) 100%, 0 100%);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--row) * 0.06s + 0.2s);
}
.chart.is-visible .bar,
html:not(.js) .bar {
  transform: scaleX(1);
}
.chart-axis-bottom {
  position: relative;
  height: 2.6rem;
  margin: 1.4rem 0 0 var(--label-w);
}
.chart-axis-bottom span {
  position: absolute;
  top: 0;
  left: calc(var(--x) * 1%);
  font-size: 1.3rem;
  font-weight: 800;
  transform: translateX(-50%);
}

/* Záró állítás háttérdekorációval */
.closing {
  position: relative;
  overflow: hidden;
  padding: 6rem var(--gutter);
  background: var(--pink-1);
  font-size: 3.3rem;
  line-height: 1.3;
}
.closing p {
  position: relative;
  margin: 0;
}
.closing .decor-waves {
  top: 40%;
  height: 70%;
}
.closing .decor-swirl {
  right: -14rem;
  top: -10rem;
  width: 50rem;
  height: 50rem;
}

/* ==========================================================================
   2. ANYAG: A ZSÍRSZÖVET (patofiziológia)
   ========================================================================== */
.view-pato {
  background: #fff;
}
.hero--pato {
  min-height: 34rem;
  padding: 6.5rem var(--gutter) 11rem;
  background: var(--red);
  color: #fff;
}
.hero--pato .hero-title {
  font-size: 7rem;
}
.hero--pato .hero-title span {
  display: block;
  margin-top: 0.15em;
  font-size: 0.86em;
}
.hero--pato .hero-logo {
  width: 13rem;
}

.oma {
  padding: 4.5rem var(--gutter) 5rem;
  background: var(--pink-3);
}
.box-red {
  margin: 0;
  padding: 2.2rem 3rem;
  border-radius: 1.4rem;
  background: var(--red);
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.oma-steps {
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
}
.oma-step {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  border-radius: 1.4rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0.8rem 2rem rgba(82, 18, 7, 0.08);
}
.oma-step b {
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-size: 3rem;
}
.oma-step p {
  margin: 0;
  padding: 2.2rem 2.6rem;
  font-size: 2rem;
  line-height: 1.38;
}
/* pöttyözött összekötő a lépések között */
.oma-link {
  height: 4.2rem;
  margin: 0 auto;
  width: 0.5rem;
  background: radial-gradient(circle, var(--red) 0.22rem, transparent 0.24rem) 0 0 / 0.5rem 1.05rem repeat-y;
  background-position: center 0.3rem;
}
.oma-arrow {
  width: 0;
  height: 0;
  margin: 2rem auto;
  border: 1.4rem solid transparent;
  border-top: 1.6rem solid var(--red);
  border-bottom: 0;
}

/* Számozott fejezetfejléc */
.sec-head {
  display: grid;
  grid-template-columns: 9.5rem 1fr auto;
  align-items: center;
  margin: 0 0 3.5rem;
  border-radius: 6rem;
  background: var(--red);
  color: #fff;
  overflow: hidden;
}
.sec-head-num {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-right: 0.35rem solid #fff;
  font-size: 6rem;
  font-weight: 700;
}
.sec-head-body {
  padding: 2.8rem 2.6rem;
}
.sec-head h2 {
  margin: 0;
  font-size: 2.7rem;
  line-height: 1.15;
  font-weight: 700;
}
.sec-head p {
  margin: 0.8rem 0 0;
  font-size: 1.85rem;
  line-height: 1.3;
}
.sec-head img {
  width: 8.5rem;
  height: 8.5rem;
  margin-right: 2.6rem;
}

.pato-section {
  padding: 5rem var(--gutter);
}
.pato-section + .pato-section {
  padding-top: 0;
}

/* Egészséges vs. obezitás összehasonlító kártyák */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  align-items: start;
}
.compare-card h3 {
  margin: 0 0 1.4rem;
  padding: 1.8rem 2.2rem;
  border-radius: 1.4rem;
  background: var(--salmon);
  font-size: 1.85rem;
  line-height: 1.28;
}
.compare-body {
  padding: 2.4rem 2.4rem 2.6rem;
  border: 0.2rem solid var(--line);
  font-size: 1.7rem;
  line-height: 1.42;
}
.compare-figure {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  margin: 0 0 2rem;
}
.compare-figure img {
  width: 12rem;
  animation: cells-wobble 4s ease-in-out infinite alternate;
}
@keyframes cells-wobble {
  from {
    transform: scale(1) rotate(-2deg);
  }
  to {
    transform: scale(1.06) rotate(2deg);
  }
}
.compare-figure b {
  display: block;
  font-size: 1.75rem;
}
.compare-figure b + b {
  margin-top: 1.4rem;
}
.compare-body p {
  margin: 0;
}
.trend-list {
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
}
.trend-list li {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.4rem 0;
  border-top: 0.2rem solid var(--line);
}
.trend {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
}
.trend svg {
  width: 1.8rem;
  height: 1.8rem;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trend--up {
  background: var(--red);
  animation: trend-up 1.6s ease-in-out infinite;
}
.trend--down {
  background: #f5a59b;
  animation: trend-down 1.6s ease-in-out infinite;
}
@keyframes trend-up {
  50% {
    transform: translateY(-0.4rem);
  }
}
@keyframes trend-down {
  50% {
    transform: translateY(0.4rem);
  }
}

/* Mechanizmus doboz */
.mech {
  margin-top: 4rem;
  border: 0.2rem solid var(--line);
  border-radius: 1.4rem 1.4rem 0 0;
}
.mech h3 {
  margin: 0;
  padding: 2.2rem 3rem;
  border-radius: 1.2rem 1.2rem 0 0;
  background: var(--salmon);
  font-size: 2.2rem;
  line-height: 1.3;
  text-align: center;
}
.mech-cols {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.mech-col {
  padding: 2.6rem 2.4rem 3rem;
  font-size: 1.7rem;
  line-height: 1.4;
  text-align: center;
}
.mech-col + .mech-col {
  border-left: 0.2rem solid var(--line);
}
.mech-col img {
  margin: 2rem auto 0;
}
.mech-cells {
  width: 22rem;
  animation: cells-wobble 3s ease-in-out infinite alternate;
}
.mech-flow {
  margin-top: 1.6rem;
  font-size: 1.75rem;
}
.mech-flow p {
  margin: 0;
}
.mech-arrow {
  display: block;
  margin: 0.8rem 0;
  font-size: 2.6rem;
  animation: trend-down 1.6s ease-in-out infinite;
}

/* Kerék ábra */
.wheel {
  position: relative;
  margin: 3rem 0 0;
}
.wheel img {
  width: 56rem;
  margin: 0 auto;
}
.wheel-legend {
  display: grid;
  gap: 1rem;
  justify-content: end;
  margin-top: 2rem;
}
.wheel-legend span {
  min-width: 20rem;
  padding: 0.9rem 2rem;
  border-radius: 0.8rem;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
}
.wheel-legend span:first-child {
  background: var(--salmon);
}
.wheel-legend span:last-child {
  background: var(--red);
}

.callout--right {
  flex-direction: row-reverse;
  justify-content: space-between;
  padding-left: 4rem;
}

/* Szervrendszerek ábra pulzáló pontokkal */
.organs-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  font-size: 1.85rem;
  line-height: 1.42;
}
.organs-text p {
  margin: 0;
  padding-left: 2rem;
  border-left: 0.3rem solid var(--salmon);
}
.organs-figure {
  position: relative;
  max-width: 54rem;
  margin: 0 auto;
}
.organs-figure .pulse {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 2.6rem;
  height: 2.6rem;
  margin: -1.3rem 0 0 -1.3rem;
  border-radius: 50%;
  border: 0.25rem solid var(--red);
  opacity: 0;
  animation: pulse-ring 2.4s ease-out infinite;
  animation-delay: calc(var(--i) * 0.2s);
}
@keyframes pulse-ring {
  0% {
    opacity: 0.9;
    transform: scale(0.4);
  }
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

.summary-head {
  margin-bottom: 2rem;
}
.summary-head::after {
  display: none;
}

.pato-closing {
  margin: 3.5rem 0 0;
  font-size: 2.3rem;
  line-height: 1.38;
}

.view-pato .refs {
  background: #fdf5f4;
}

/* ---------- Mozgáscsökkentés ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
