/* Header + Hero + Footer refresh based on 2_verzió 1.html */
body.page-home-v1 {
  --home-grad: linear-gradient(135deg, #1c3548 0%, #285578 60%, #268699 100%);
}

/* ===== Header (tpl-*) ===== */
body.page-home-v1 .tpl-header {
  font-family: "Poppins", sans-serif;
  position: sticky;
  top: 0;
  z-index: 1000;
}
body.page-home-v1 .tpl-topbar {
  background-color: #1c3548;
  background-image: var(--home-grad);
}
body.page-home-v1 .tpl-topbar-inner,
body.page-home-v1 .tpl-nav-inner {
  width: 100%;
  max-width: min(var(--layout-max, 1680px), calc(100% - 2 * var(--layout-pad-x, 24px)));
  margin: 0 auto;
  padding-left: var(--layout-pad-x, 24px);
  padding-right: var(--layout-pad-x, 24px);
  box-sizing: border-box;
}
body.page-home-v1 .tpl-topbar-inner {
  min-height: 46px;
  padding-top: 8px;
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
body.page-home-v1 .tpl-logo img {
  height: 40px;
  width: auto;
  display: block;
}
body.page-home-v1 .tpl-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
body.page-home-v1 .tpl-topbar-phone {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.96);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}
body.page-home-v1 .tpl-topbar-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}
body.page-home-v1 .tpl-topbar-search:hover {
  background: rgba(255, 255, 255, 0.22);
}
body.page-home-v1 .tpl-topbar-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.32);
}
body.page-home-v1 .tpl-topbar-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.32);
}
body.page-home-v1 .tpl-topbar-lang a {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}
body.page-home-v1 .tpl-topbar-lang a.is-active {
  color: #fff;
}
body.page-home-v1 .tpl-nav {
  background: #fff;
  border-bottom: 1px solid #dde3ea;
}
body.page-home-v1 .tpl-nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
}
body.page-home-v1 .tpl-nav-list {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
body.page-home-v1 .tpl-nav-list a {
  display: flex;
  align-items: center;
  padding: 16px 14px;
  color: #2c3d52;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.35px;
  border-bottom: 3px solid transparent;
}
body.page-home-v1 .tpl-nav-list a:hover {
  color: #0099c4;
  background: rgba(0, 153, 196, 0.06);
  border-bottom-color: #0099c4;
}
body.page-home-v1 .tpl-nav-cta {
  display: flex;
  align-items: center;
}
body.page-home-v1 .tpl-btn.tpl-btn--sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--home-grad);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
body.page-home-v1 .tpl-burger {
  display: none;
}

/* ===== Hero ===== */
body.page-home-v1 .hero {
  position: relative;
  overflow: hidden;
  --hero-panel-w: min(600px, max(280px, min(38%, calc(100vw - 360px))));
  height: 90vh;
  min-height: 520px;
}
body.page-home-v1 .hero-viewport,
body.page-home-v1 .hero-video-bg,
body.page-home-v1 #heroYoutubePlayer {
  position: absolute;
  inset: 0;
}
body.page-home-v1 .hero-media-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(120, 182, 210, 0.16) 0%, rgba(18, 66, 100, 0.68) 58%, rgba(10, 36, 62, 0.82) 100%);
}
body.page-home-v1 .hero-video-bg iframe {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: max(177.77vh, 177.77vw) !important;
  height: max(100vh, 56.25vw) !important;
  min-width: 120% !important;
  min-height: 120% !important;
  max-width: none !important;
  transform: translate(-50%, -50%) !important;
  border: 0 !important;
}
body.page-home-v1 .hero-content-box {
  position: absolute;
  top: 8%;
  bottom: 0;
  left: 0;
  z-index: 6;
  width: var(--hero-panel-w);
  max-width: min(600px, 100%);
  background: #fff;
  border-right: 6px solid var(--navy, #1e3a50);
  border-radius: 0 10px 10px 0;
  box-shadow: 12px 0 40px rgba(30, 58, 80, 0.12);
  overflow: hidden;
}
body.page-home-v1 .hero-right-panel {
  position: absolute;
  top: 8%;
  bottom: 0;
  left: calc(var(--hero-panel-w) + 24px);
  right: 36px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 46px;
  padding-bottom: 24px;
}
body.page-home-v1 .hero-promo-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
body.page-home-v1 .hero-promo-card {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
body.page-home-v1 .hero-title-block h1 {
  font-size: clamp(28px, 2.2vw, 42px);
  color: #fff;
  line-height: 1.2;
}
body.page-home-v1 .hero-title-block p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}
body.page-home-v1 .hero-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
body.page-home-v1 .hero-quick__link {
  min-height: 56px;
}

/* ===== Footer ===== */
body.page-home-v1 .footer {
  background: var(--navy, #1e3a50);
  color: #fff;
  padding: clamp(24px, 3vw, 36px) 0 24px;
}
body.page-home-v1 .footer .wrap {
  padding-bottom: 0;
}
body.page-home-v1 .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 32px 28px;
  margin-bottom: 36px;
  align-items: start;
}
body.page-home-v1 .footer-links-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  min-width: 0;
}
body.page-home-v1 .footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 16px;
}
body.page-home-v1 .footer-brand p,
body.page-home-v1 .footer-col a,
body.page-home-v1 .footer-bottom,
body.page-home-v1 .footer-bottom a {
  color: rgba(255, 255, 255, 0.92);
}
body.page-home-v1 .footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand-light, #6bb3cc);
  margin-bottom: 14px;
}
body.page-home-v1 .footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
body.page-home-v1 .footer-col li {
  margin-bottom: 8px;
}
body.page-home-v1 .footer-socials {
  display: flex;
  gap: 8px;
}
body.page-home-v1 .footer-socials a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.62);
}
body.page-home-v1 .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px 20px;
  font-size: 10px;
  flex-wrap: wrap;
}
body.page-home-v1 .footer-bottom__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  justify-content: flex-end;
  max-width: 100%;
}
body.page-home-v1 .footer-bottom__legal a:not(:last-child)::after {
  content: '|';
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 1200px) {
  body.page-home-v1 .hero {
    min-height: 760px;
    height: auto;
  }
  body.page-home-v1 .hero-content-box,
  body.page-home-v1 .hero-right-panel {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    max-width: none;
  }
  body.page-home-v1 .hero-right-panel {
    padding: 18px 14px 24px;
    gap: 18px;
  }
  body.page-home-v1 .hero-content-box {
    border-radius: 0;
    border-right-width: 0;
  }
  body.page-home-v1 .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.page-home-v1 .footer-links-pair {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  body.page-home-v1 .tpl-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    border: 0;
    background: transparent;
    color: #1e3a50;
    font-size: 22px;
  }
  body.page-home-v1 .tpl-nav-list,
  body.page-home-v1 .tpl-nav-cta {
    display: none;
  }
  body.page-home-v1 .hero-promo-stack,
  body.page-home-v1 .hero-quick {
    grid-template-columns: 1fr;
  }
  body.page-home-v1 .footer-grid {
    grid-template-columns: 1fr;
  }
  body.page-home-v1 .footer-links-pair {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  body.page-home-v1 .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  body.page-home-v1 .footer-bottom__legal {
    justify-content: center;
  }
}

/* ===== Homepage stats — eredeti kártyarács + könnyebb számok ===== */
body.page-home-v1 .hospitals.hospitals-stats {
  padding: var(--section-pad-y, 28px) 0 var(--section-pad-y-sm, 20px);
}

/* Float-rail ne takarja a kártyákat */
@media (min-width: 1025px) {
  body.page-home-v1:has(.mc-float-rail.is-past-hero) .hospitals.hospitals-stats > .wrap {
    padding-left: max(var(--layout-pad-x, 24px), 72px);
  }
}

/* Klinikák rács — desktopon se lógjon ki (minmax + min-width:0) */
body.page-home-v1 .hospitals.hospitals-locations > .wrap {
  overflow-x: clip;
  max-width: min(var(--layout-max, 1680px), calc(100% - 2 * var(--layout-pad-x, 24px)));
  box-sizing: border-box;
}
body.page-home-v1 .hosp-loc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
body.page-home-v1 .hosp-loc {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
body.page-home-v1 .hosp-loc-img {
  width: clamp(72px, 7.5vw, 110px);
  height: clamp(72px, 7.5vw, 110px);
  flex: 0 0 auto;
}
body.page-home-v1 .hosp-loc-info {
  min-width: 0;
  overflow: hidden;
}
body.page-home-v1 .hosp-loc-info h4 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1280px) {
  body.page-home-v1 .hosp-loc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Klinikák: mobilon középre zárt, teljes szélességű 1 oszlop — ne lógjon ki */
@media (max-width: 768px) {
  body.page-home-v1 .hospitals.hospitals-locations > .wrap {
    width: 100% !important;
    max-width: min(var(--layout-max, 1680px), calc(100% - 2 * var(--layout-pad-x, 14px))) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--layout-pad-x, 14px) !important;
    padding-right: var(--layout-pad-x, 14px) !important;
    box-sizing: border-box !important;
    overflow-x: clip;
  }
  body.page-home-v1 .hosp-loc-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 10px !important;
    box-sizing: border-box !important;
  }
  body.page-home-v1 .hosp-loc {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  body.page-home-v1 .hosp-loc-img {
    width: 64px !important;
    height: 64px !important;
    flex: 0 0 64px !important;
  }
  body.page-home-v1 .hosp-loc-info {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden;
  }
  body.page-home-v1 .hosp-loc-info p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

body.page-home-v1 .hospitals.hospitals-stats .hosp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  max-width: none;
}

body.page-home-v1 .hospitals.hospitals-stats .hosp-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 20px 22px;
  background: var(--brand-pale, #e8f4f8);
  border: 1px solid rgba(74, 142, 166, 0.12);
  border-radius: 14px;
  box-shadow: none;
}

body.page-home-v1 .hospitals.hospitals-stats .hosp-stat-icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--white, #fff);
  font-size: 26px;
  line-height: 1;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(30, 58, 80, 0.06));
  border: 1px solid var(--border, #dbe2ea);
}

body.page-home-v1 .hospitals.hospitals-stats .hosp-stat-copy,
body.page-home-v1 .hospitals.hospitals-stats .hosp-stat > div:not(.hosp-stat-icon) {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

body.page-home-v1 .hospitals.hospitals-stats .hosp-stat-num {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.45rem;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
}

body.page-home-v1 .hospitals.hospitals-stats .hosp-stat-num__value {
  display: inline-block;
  white-space: nowrap;
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: clamp(1.35rem, 1.6vw, 1.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--brand-dark, #3a7a94);
  font-variant-numeric: tabular-nums;
}

body.page-home-v1 .hospitals.hospitals-stats .hosp-stat-num__label,
body.page-home-v1 .hospitals.hospitals-stats .hosp-stat-num > span:not(.hosp-stat-num__value) {
  display: inline;
  margin: 0;
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--text-mid, #5a6b7d);
  white-space: normal;
  text-transform: lowercase;
}

body.page-home-v1 .hospitals.hospitals-stats .hosp-stat-desc {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-soft, #8a99a8);
}

@media (max-width: 900px) {
  body.page-home-v1 .hospitals.hospitals-stats .hosp-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  body.page-home-v1 .hospitals.hospitals-stats .hosp-stats {
    grid-template-columns: 1fr;
  }
  body.page-home-v1 .hospitals.hospitals-stats .hosp-stat {
    padding: 16px 18px;
    gap: 14px;
  }
  body.page-home-v1 .hospitals.hospitals-stats .hosp-stat-icon {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }
  body.page-home-v1 .hospitals.hospitals-stats .hosp-stat-num__value {
    font-size: 1.3rem;
  }
}

/* Homepage FAQ: keep imported accordion rows visibly separated. */
body.page-home-v1 .faq-list .faq-item + .faq-item {
  margin-top: 12px;
}
