/*
 * Tartós bérlet aloldal — T1 kompakt fotós hero.
 * Minden komponensszabály a .sp-hero névtérben él. A két későbbi horgony
 * kivételként csak akkor kap scroll offsetet, ha ezt a herót követi ezen az oldalon.
 * A 2026-10-19-i hero-02 kép miatt a desktop médiaréteg a jobb 65%-ra korlátozott;
 * a szövegzóna a fotó üres bal égboltján finoman olvad a márkasötétbe.
 */
.sp-hero {
  --sp-hero-bg: var(--nc-color-surface-dark, #0a2032);
  --sp-hero-fg: var(--nc-color-text-on-dark, #fff);
  --sp-hero-muted: var(--nc-color-text-on-dark-muted, #d5dce5);
  --sp-hero-accent: var(--nc-color-accent-on-dark, #93c5fd);
  --sp-hero-focus: var(--nc-focus-color-on-dark, #93c5fd);
  --sp-hero-btn: var(--nc-btn-primary-bg, #0074ca);
  --sp-hero-btn-hover: var(--nc-btn-primary-bg-hover, #005fa9);
  --sp-hero-btn-active: var(--nc-color-blue-700, #1d4f8f);
  --sp-hero-ease: var(--nc-ease-precision, cubic-bezier(0.2, 0.7, 0.2, 1));
  --sp-hero-ui: 180ms var(--nc-ease-precision, cubic-bezier(0.2, 0.7, 0.2, 1));
  --nc-hero-parallax: 0px;
  --nc-hero-scale: 1;

  container: sp-hero / inline-size;
  position: relative;
  display: block;
  isolation: isolate;
  overflow: clip;
  background: linear-gradient(165deg, #101821 0%, var(--sp-hero-bg) 52%, #0c131b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  color: var(--sp-hero-fg);
  font-family: var(--nc-font-sans, "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  font-size: 1rem;
  line-height: 1.5;
}

.sp-hero,
.sp-hero *,
.sp-hero *::before,
.sp-hero *::after {
  box-sizing: border-box;
}

.sp-hero__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sp-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding: 1.5rem 1rem 1.25rem;
}

.sp-hero__copy {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  mix-blend-mode: normal;
}

.sp-hero__crumbs {
  color: var(--sp-hero-muted);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

.sp-hero__crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-hero__crumbs li {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

.sp-hero__crumbs li + li::before {
  margin-inline: 0.5rem;
  color: var(--sp-hero-muted);
  content: "›" / "";
}

.sp-hero__crumbs a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--sp-hero-muted);
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color var(--sp-hero-ui), text-decoration-color var(--sp-hero-ui);
}

.sp-hero__crumbs a:hover,
.sp-hero__crumbs a:focus-visible {
  color: var(--sp-hero-fg);
  text-decoration: underline;
  text-decoration-color: var(--sp-hero-accent);
}

.sp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0.25rem 0 0;
  color: var(--sp-hero-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.055em;
}

.sp-hero__eyebrow::before {
  width: 1.5rem;
  height: 2px;
  flex: none;
  border-radius: 2px;
  background: var(--nc-color-blue-500, #0074ca);
  content: "";
}

.sp-hero .sp-hero__title {
  margin: 0.75rem 0 0;
  color: var(--sp-hero-fg);
  font-family: inherit;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  animation: sp-hero-title-in 400ms var(--sp-hero-ease) 0ms 1 backwards;
}

.sp-hero__title-line {
  display: inline;
}

.sp-hero__lead {
  max-width: 100%;
  margin: 1rem 0 0;
  color: var(--sp-hero-muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  animation: sp-hero-lead-in 400ms var(--sp-hero-ease) 60ms 1 backwards;
}

@media (max-width: 29.999rem) {
  .sp-hero__lead {
    min-height: 8rem;
  }
}

.sp-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.375rem;
  margin-top: 1.5rem;
}

.sp-hero .sp-hero__cta {
  display: inline-flex;
  width: 100%;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-top-color: var(--nc-btn-specular-top, rgb(255 255 255 / 0.22));
  border-radius: var(--nc-btn-precision-radius, 0.625rem);
  background: var(--sp-hero-btn);
  color: var(--sp-hero-fg);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--nc-btn-shadow-rest, inset 0 1px 0 rgb(255 255 255 / 0.08), 0 8px 20px -10px rgb(0 55 100 / 0.65));
  translate: var(--nc-magnet-x, 0px) var(--nc-magnet-y, 0px);
  transition:
    translate 180ms var(--sp-hero-ease),
    background-color 180ms ease-out,
    box-shadow 220ms ease-out,
    scale 140ms ease-out;
}

.sp-hero .sp-hero__cta:hover,
.sp-hero .sp-hero__cta:focus-visible {
  background: var(--sp-hero-btn-hover);
  box-shadow: var(--nc-btn-shadow-hover, inset 0 1px 0 rgb(255 255 255 / 0.14), 0 12px 26px -10px rgb(0 55 100 / 0.78));
}

.sp-hero .sp-hero__cta:focus-visible {
  translate: none;
}

.sp-hero .sp-hero__cta:active {
  background: var(--sp-hero-btn-active);
  scale: 0.985;
}

.sp-hero .sp-hero__cta svg {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  transition: transform 180ms var(--sp-hero-ease);
}

@media (hover: hover) {
  .sp-hero .sp-hero__cta:hover svg {
    transform: translateX(3px);
  }
}

.sp-hero .sp-hero__cta:focus-visible svg {
  transform: translateX(3px);
}

.sp-hero .sp-hero__secondary {
  display: inline-flex;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: flex-start;
  color: var(--sp-hero-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  text-decoration-color: var(--sp-hero-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color var(--sp-hero-ui), text-decoration-color var(--sp-hero-ui);
}

.sp-hero .sp-hero__secondary:hover,
.sp-hero .sp-hero__secondary:focus-visible {
  color: var(--sp-hero-fg);
  text-decoration: underline;
}

.sp-hero .sp-hero__cta:focus-visible,
.sp-hero .sp-hero__secondary:focus-visible,
.sp-hero__crumbs a:focus-visible {
  outline: 3px solid var(--sp-hero-focus);
  outline-offset: 2px;
}

.sp-hero__facts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  color: var(--sp-hero-fg);
  list-style: none;
}

.sp-hero__facts li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.625rem;
  color: var(--sp-hero-fg);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  transition: color 220ms var(--sp-hero-ease), border-color 220ms var(--sp-hero-ease), transform 220ms var(--sp-hero-ease);
}

.sp-hero__facts li::before {
  width: 0.75rem;
  height: 2px;
  flex: none;
  border-radius: 2px;
  background: var(--nc-color-blue-500, #0074ca);
  content: "";
}

.sp-hero__facts li.is-highlighted {
  color: #ffffff;
}

.sp-hero__media {
  position: relative;
  width: 100%;
  max-width: 60rem;
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  overflow: hidden;
  background: var(--sp-hero-bg);
  pointer-events: none;
}

.sp-hero__media::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(ellipse 65% 55% at 55% 60%,
    rgb(0 140 255 / 0.22) 0%,
    rgb(20 90 220 / 0.1) 42%,
    transparent 70%);
  animation: nc-hero-light 4s ease-out 1;
  content: "";
}

.sp-hero__media::after {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 2rem;
  background: linear-gradient(180deg, var(--sp-hero-bg), transparent);
  pointer-events: none;
  content: "";
}

.sp-hero__picture {
  display: block;
  width: 100%;
  height: 100%;
}

.sp-hero__img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, var(--nc-hero-parallax, 0px), 0) scale(var(--nc-hero-scale, 1));
  transform-origin: 60% 55%;
}

@keyframes sp-hero-title-in {
  from {
    opacity: 0.9;
    transform: translateY(var(--sp-hero-shift, 6px));
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sp-hero-lead-in {
  from {
    opacity: 0.9;
    transform: translateY(var(--sp-hero-shift, 6px));
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Page-specific targets: this stylesheet is loaded only on the Tartós bérlet page. */
.sp-hero ~ .page-section #tartos-ajanlatok,
.sp-hero ~ .page-section#ajanlatkeres {
  scroll-margin-top: calc(var(--nc-header-measured, 4rem) + 1rem);
}

@media (min-width: 22.5rem) {
  .sp-hero__inner {
    padding-inline: 1.25rem;
  }

  .sp-hero .sp-hero__title {
    font-size: 2.125rem;
  }
}

@media (min-width: 30rem) {
  .sp-hero__inner {
    padding-top: 1.75rem;
    padding-bottom: 1.5rem;
  }

  .sp-hero__copy {
    max-width: 35rem;
  }

  .sp-hero__title-line {
    display: block;
  }

  .sp-hero .sp-hero__title {
    font-size: 2.5rem;
  }

  .sp-hero__lead {
    max-width: 35rem;
  }
}

@media (min-width: 48rem) {
  .sp-hero__inner {
    padding: 2rem 2rem 1.75rem;
  }

  .sp-hero__copy {
    max-width: 40rem;
  }

  .sp-hero .sp-hero__title {
    font-size: 2.5rem;
  }

  .sp-hero__lead {
    max-width: 37.5rem;
    font-size: 1.0625rem;
  }

  .sp-hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .sp-hero .sp-hero__cta {
    width: auto;
    min-width: 13rem;
  }

  .sp-hero .sp-hero__secondary {
    padding-inline: 0;
  }

  .sp-hero__facts {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 1.5rem;
  }

  .sp-hero__facts li {
    min-height: 1.5rem;
    padding-inline: 1rem;
    border-left: 1px solid var(--nc-color-border-on-dark, rgb(255 255 255 / 0.14));
  }

  .sp-hero__facts li:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .sp-hero__facts li::before {
    content: none;
  }
}

@media (min-width: 64rem) {
  .sp-hero {
    --sp-hero-shift: 10px;
  }

  .sp-hero__media {
    max-width: 60rem;
    aspect-ratio: 12 / 5;
  }

  .sp-hero__picture,
  .sp-hero__img {
    height: 100%;
  }

  .sp-hero__media::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    background: radial-gradient(ellipse 65% 55% at 55% 60%,
      rgb(0 140 255 / 0.22) 0%,
      rgb(20 90 220 / 0.1) 42%,
      transparent 70%);
    content: "";
  }

  .sp-hero__media::after {
    position: absolute;
    z-index: 2;
    inset: 0;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(90deg,
      var(--sp-hero-bg) 0%,
      var(--sp-hero-bg) 16%,
      color-mix(in oklab, var(--sp-hero-bg) 70%, transparent) 25%,
      transparent 38%);
    content: "";
  }

  .sp-hero .sp-hero__title {
    margin-top: 1rem;
  }

  .sp-hero__lead {
    margin-top: 1.25rem;
  }

  .sp-hero__actions {
    margin-top: 1.75rem;
  }

  /* Wide source fallback: retain its native 2.4:1 crop without cover-clipping. */
  @container sp-hero (min-width: calc(64rem - 1.25rem)) {
    .sp-hero__stage {
      justify-content: center;
      min-height: 30rem;
    }

    .sp-hero__inner {
      padding-block: 3rem;
    }

    .sp-hero__copy {
      max-width: 30rem;
    }

    .sp-hero .sp-hero__title {
      font-size: 2.75rem;
      line-height: 1.12;
    }

    .sp-hero__lead {
      max-width: 27.5rem;
      font-size: 1.0625rem;
    }

    .sp-hero__media {
      position: absolute;
      z-index: 0;
      top: 50%;
      right: 0;
      width: min(65%, 82.5rem);
      max-width: none;
      transform: translateY(-50%);
    }
  }
}

@media (min-width: 75rem) {
  @container sp-hero (min-width: calc(75rem - 1.25rem)) {
    .sp-hero__stage {
      min-height: 32.5rem;
    }

    .sp-hero__inner {
      padding-block: 3.5rem;
    }

    .sp-hero__copy {
      max-width: 34rem;
    }

    .sp-hero .sp-hero__title {
      font-size: 3rem;
    }

    .sp-hero__lead {
      max-width: 31.25rem;
      min-height: 7.2rem;
      font-size: 1.125rem;
    }
  }
}

@media (min-width: 90rem) {
  @container sp-hero (min-width: calc(90rem - 1.25rem)) {
    .sp-hero__stage {
      min-height: 35rem;
    }

    .sp-hero__copy {
      max-width: 36rem;
    }

    .sp-hero .sp-hero__title {
      font-size: 3.25rem;
      line-height: 1.1;
    }

    .sp-hero__lead {
      max-width: 32.5rem;
      font-size: 1.125rem;
    }
  }
}

@container sp-hero (min-width: 2561px) {
  @media (min-width: 64rem) {
    .sp-hero__media {
      -webkit-mask-image: linear-gradient(90deg, #000, #000 calc(100% - 6rem), transparent);
      mask-image: linear-gradient(90deg, #000, #000 calc(100% - 6rem), transparent);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-hero .sp-hero__title,
  .sp-hero__lead,
  .sp-hero__media::before {
    animation: none !important;
  }

  .sp-hero a,
  .sp-hero .sp-hero__cta,
  .sp-hero .sp-hero__cta svg,
  .sp-hero__facts li,
  .sp-hero__facts li::before,
  .sp-hero__img {
    transition: none !important;
    transform: none !important;
    translate: none !important;
    scale: none !important;
  }
}
