/**
 * MSGarage főoldal – külön mobil elrendezés (≤768 px).
 * Az asztali home-premium.css érintetlen marad.
 */

.page-home {
  --m-pad-x: max(1.25rem, var(--safe-left));
  --m-section-gap: 3rem;
  --m-card-gap: 1.375rem;
  --m-header-h: 80px;
  --m-cta-bar: calc(4.25rem + var(--safe-bottom));
  --hp-text: #202124;
  --hp-text-muted: #626873;
}

.page-home {
  --header-h: var(--m-header-h);
}

/* ---- Fejléc ---- */

.page-home .header--premium {
  height: calc(var(--m-header-h) + var(--safe-top));
}

.page-home .logo__img {
  height: 56px;
  max-width: 76px;
}

.page-home .container {
  padding-left: var(--m-pad-x);
  padding-right: max(1.25rem, var(--safe-right));
}

/* ---- Hero: cím → videó → CTA (gombok nem fedik a videót) ---- */

/*
 * A home-premium / style.css negatív margin-top a teljes képernyős desktop
 * heróhoz húzza fel a szekciót a fejléc mögé; a belső padding csak a
 * dokumentum-flow-ot egyenlíti ki, nem a fixed fejléc alatti viewportot.
 * Mobilon a címnek a fejléc alatt kell kezdődnie → margin-top: 0.
 */
.page-home .hero.hero--premium.hero--fullscreen,
.page-home .hero.hero--premium {
  margin-top: 0;
  padding-top: 0;
}

.page-home .hero.hero--video {
  position: relative;
  overflow: hidden;
  background-color: #f4f5f7;
  background-image: none;
}

.page-home .hero--premium .hero__glow {
  display: none;
}

.page-home .hero--fullscreen,
.page-home .hero--banner.hero--video.hero--fullscreen {
  min-height: auto;
  max-height: none;
}

.page-home .hero--video .hero__layout,
.page-home .hero__layout--cinema {
  min-height: auto;
  max-height: none;
  gap: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.page-home .hero--fullscreen .hero__inner {
  position: relative;
  z-index: 1;
  min-height: auto;
  padding-top: calc(var(--header-h) + var(--safe-top) + 1rem);
  padding-bottom: 1.25rem;
}

.page-home .hero__intro {
  max-width: none;
  margin-bottom: 0.85rem;
}

.page-home .hero__title-line {
  font-size: clamp(2.125rem, 9vw, 2.5rem);
  line-height: 1.12;
  color: #17191d;
}

.page-home .hero__title-line--accent {
  color: #ed171c;
}

.page-home .hero--premium .hero__subtitle {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0.65rem 0 0;
  color: var(--hp-text-muted);
}

.page-home .hero__media {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: clamp(260px, 78vw, 320px);
  overflow: hidden;
  background-color: #0a0b0d;
  pointer-events: none;
}

.page-home .hero__media .hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-home .hero__media .hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.page-home .hero--premium.hero--video .hero__media .hero__scrim.hero__scrim--video.hero__scrim--cinema {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.25);
  background-image: none;
}

.page-home .hero__actions,
.page-home .hero--fullscreen .hero__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.6875rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 1rem var(--m-pad-x) 0;
  box-sizing: border-box;
}

.page-home .hero--premium .hero__actions .btn,
.page-home .hero--premium .hero__cta,
.page-home .hero--fullscreen .hero__cta {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: none;
  min-height: 54px;
  padding: 0 0.625rem;
  font-size: clamp(0.75rem, 3.1vw, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.15;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  border-radius: 12px;
  box-shadow: none;
}

.page-home .hero--premium .hero__actions .btn--primary {
  background: #ed171c;
  color: #fff;
  box-shadow: 0 4px 12px rgba(237, 23, 28, 0.22);
}

.page-home .hero--premium .hero__actions .btn--primary:hover {
  box-shadow: 0 6px 16px rgba(237, 23, 28, 0.28);
}

.page-home .hero--premium .hero__cta--booking {
  background: #fff;
  color: #17191d !important;
  border: 1px solid rgba(23, 25, 29, 0.14);
}

.page-home .hero--premium .hero__cta--booking:hover {
  background: #fff;
  border-color: rgba(23, 25, 29, 0.22);
  color: #17191d !important;
}

@media (max-width: 380px) {
  .page-home .hero__actions,
  .page-home .hero--fullscreen .hero__actions {
    gap: 0.625rem;
    padding-left: max(1rem, var(--safe-left));
    padding-right: max(1rem, var(--safe-right));
  }

  .page-home .hero--premium .hero__actions .btn,
  .page-home .hero--premium .hero__cta,
  .page-home .hero--fullscreen .hero__cta {
    min-height: 52px;
    padding: 0 0.45rem;
    font-size: 0.6875rem;
    letter-spacing: 0.02em;
  }
}

.page-home .hero__location {
  font-size: 0.875rem;
  line-height: 1.45;
  margin: 0.75rem 0 0;
  padding: 0 var(--m-pad-x);
  color: var(--hp-text-muted);
}

.page-home .hero__location-icon {
  color: #ed171c;
}

.page-home .hero__pillars {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.75rem;
  padding: 1rem var(--m-pad-x) 0;
  margin-top: 0.75rem;
  border-top: 1px solid rgba(23, 25, 29, 0.1);
}

.page-home .hero__pillar {
  color: var(--hp-text);
}

.page-home .hero__pillar-icon {
  background: rgba(237, 23, 28, 0.08);
  color: #ed171c;
}

.page-home .hero__scroll {
  display: none;
}

/* ---- Szekció ritmus ---- */

.page-home .section {
  padding: var(--m-section-gap) 0;
}

.page-home main {
  padding-bottom: var(--m-cta-bar);
}

/* ---- Bizalom sáv: 2 oszlop ---- */

.home-trust {
  margin-top: -0.75rem;
  margin-bottom: 0;
  padding-bottom: 0;
}

.home-trust__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 0.85rem;
  padding: 1.15rem 1.2rem;
  align-items: start;
}

.home-trust__item {
  min-width: 0;
  max-width: none;
  flex: none;
  font-size: 0.8125rem;
  line-height: 1.35;
  gap: 0.5rem;
}

.home-trust__item:nth-child(5) {
  grid-column: 1 / -1;
  max-width: 14rem;
}

.home-trust__icon svg {
  width: 24px;
  height: 24px;
}

/* ---- Kiemelt szolgáltatások ---- */

.home-featured {
  padding: var(--m-section-gap) 0 0;
}

.home-featured__header {
  margin-bottom: 1.15rem;
}

.home-featured__title {
  font-size: clamp(1.6875rem, 7vw, 2rem);
}

.home-featured__grid {
  grid-template-columns: 1fr;
  gap: var(--m-card-gap);
}

.home-service-card__media {
  aspect-ratio: auto;
  height: clamp(180px, 52vw, 210px);
}

.home-service-card__body {
  padding: 1rem 1.15rem 1.1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 0.5rem;
  row-gap: 0.25rem;
  align-items: start;
}

.home-service-card__icon {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
}

.home-service-card__title {
  grid-column: 2 / 4;
  grid-row: 1;
  font-size: 1.1875rem;
  margin-bottom: 0;
  align-self: center;
}

.home-service-card__desc {
  grid-column: 1 / 3;
  grid-row: 2;
  font-size: 0.9375rem;
  line-height: 1.45;
  padding-right: 0;
  margin-top: 0.15rem;
}

.home-service-card__arrow {
  position: static;
  grid-column: 3;
  grid-row: 2;
  width: 2rem;
  height: 2rem;
  align-self: end;
  justify-self: end;
}

.home-featured__more {
  margin-top: 1.15rem;
  font-size: 0.9375rem;
}

/* ---- Paletta: accordion ---- */

.home-palette__grid--desktop {
  display: none;
}

.home-palette__accordion {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.home-palette-acc {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(23, 25, 29, 0.04);
}

.home-palette-acc__summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ed171c;
  padding: 0.85rem 1rem;
}

.home-palette-acc__summary::-webkit-details-marker {
  display: none;
}

.home-palette-acc__list {
  padding: 0 1rem 0.85rem;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--hp-text-muted);
}

.home-palette-acc__list li {
  position: relative;
  padding-left: 0.75rem;
}

.home-palette-acc__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ed171c;
}

.home-palette__header {
  margin-bottom: 1rem;
}

.home-palette__lead {
  font-size: 0.9375rem;
}

.section--palette {
  padding-top: var(--m-section-gap);
  padding-bottom: var(--m-section-gap);
}

/* ---- Flotta ---- */

.home-fleet {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.home-fleet__title {
  font-size: 0.9375rem;
}

.home-fleet__desc {
  font-size: 0.8125rem;
  line-height: 1.45;
}

.home-fleet__cta {
  width: 100%;
  min-height: 60px;
  justify-content: center;
  font-size: 0.9375rem;
}

.home-palette__prices {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
}

/* ---- Foglalási blokk ---- */

.home-booking {
  margin: 0 auto var(--m-section-gap);
  padding-left: var(--m-pad-x);
  padding-right: max(1.25rem, var(--safe-right));
}

.home-booking__inner {
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
}

.home-booking__lead {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
}

.home-booking__lead-icon {
  padding: 0.5rem;
  flex-shrink: 0;
}

.home-booking__title {
  font-size: 1.0625rem;
  line-height: 1.35;
  text-align: left;
}

.home-booking__subtitle {
  display: block;
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
}

.home-booking__perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 0.65rem;
  font-size: 0.75rem;
  justify-content: stretch;
}

.home-booking__cta {
  margin-left: 0;
  width: 100%;
  min-height: 60px !important;
  font-size: 1rem !important;
}

/* ---- További szekciók ---- */

.home-section-head__title {
  font-size: clamp(1.6875rem, 6.5vw, 2rem);
}

.home-section-head__desc {
  font-size: 1rem;
}

.home-process {
  gap: var(--m-card-gap);
}

.home-process__step {
  padding: 1rem;
}

.home-about__intro {
  font-size: 1rem;
}

.home-contact__title {
  font-size: clamp(1.6875rem, 6.5vw, 2rem);
}

.page-home .footer {
  padding-bottom: calc(0.5rem + var(--safe-bottom));
}

.page-home .footer__wrap {
  padding-bottom: 0.5rem;
}
