/* Főoldali nyitókártya. Az eredeti kép az előtérben mindig torzítás és vágás nélkül jelenik meg. */
.hero.hero-photo-layout {
  --opening-header: 79px;
  --opening-gutter: max(clamp(28px, 4.9vw, 68px), calc((100% - 1280px) / 2));
  display: grid;
  grid-template: minmax(min-content, 1fr) auto / minmax(0, 1fr);
  min-height: calc(100vh - var(--opening-header));
  min-height: calc(100svh - var(--opening-header));
  padding-inline: var(--opening-gutter);
  position: relative;
  isolation: isolate;
  justify-content: stretch;
  color: #fff;
  background: #172f32;
}
.hero.hero-photo-layout::before,
.hero.hero-photo-layout::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero.hero-photo-layout::before {
  z-index: -3;
  background: radial-gradient(ellipse at 73% 30%, #466064, #172f32 72%);
}
.hero.hero-photo-layout::after {
  z-index: -1;
  background: linear-gradient(90deg, #11272a 0%, #11272afc 23%, #11272af4 38%, #11272ad4 51%, #11272a70 64%, #11272a15 79%, #11272a50 100%),
              linear-gradient(0deg, #11272ac9, transparent 35%);
}
.hero.hero-photo-layout > .hero-opening-image {
  position: absolute;
  z-index: -2;
  inset: 0 11% 0 auto;
  display: block;
  width: auto;
  height: 100%;
  max-width: 68%;
  object-fit: contain;
  object-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 83%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 83%, transparent);
}
.hero.hero-photo-layout > .hero-content {
  width: 100%;
  min-width: 0;
  align-self: center;
  padding: clamp(24px, 4vh, 42px) 0;
  transform: none;
}
.hero.hero-photo-layout .eyebrow {
  margin-bottom: 15px;
  font-size: 13px;
  line-height: 1.3;
}
.hero.hero-photo-layout h1 {
  max-width: min(1060px, 84%);
  font-size: clamp(43px, 4.35vw, 65px);
  line-height: 1.12;
  text-shadow: 0 1px 8px #11272a62;
  transform: none;
  text-wrap: balance;
}
.hero.hero-photo-layout .desktop-break { display: none; }
.hero.hero-photo-layout .hero-subtitle {
  max-width: 490px;
  margin-top: 20px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.44;
  transform: none;
}
.hero.hero-photo-layout > .hero-bottom {
  position: static;
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin: 0;
  padding: 8px 0 clamp(10px, 2vh, 20px);
  border-color: #ffffff55;
  line-height: 1.35;
}
.hero.hero-photo-layout > .hero-bottom > a {
  min-height: 44px;
  gap: 9px;
  margin-inline-start: auto;
}
.hero.hero-photo-layout > .hero-bottom > a > span { font-size: 24px; }
@media (min-width: 769px) and (max-height: 580px) {
  .hero.hero-photo-layout h1 { font-size: clamp(37px, 4.1vw, 56px); }
  .hero.hero-photo-layout .eyebrow { margin-bottom: 11px; }
  .hero.hero-photo-layout .hero-subtitle { margin-top: 14px; }
}
@media (width < 769px) {
  .hero.hero-photo-layout {
    --opening-gutter: clamp(16px, 5.2vw, 42px);
  }
  .hero.hero-photo-layout::before { background: #172f32; }
  .hero.hero-photo-layout::after {
    background: linear-gradient(180deg, #11272a0a 0%, #11272a13 16%, #11272a77 33%, #11272ac9 46%, #11272aea 66%, #11272a 100%);
  }
  .hero.hero-photo-layout > .hero-opening-image {
    inset: 0 0 auto;
    width: 100%;
    height: min(100vw, calc(100vh - var(--opening-header)));
    height: min(100vw, calc(100svh - var(--opening-header)));
    max-width: 100%;
    aspect-ratio: 1;
    object-position: center top;
    -webkit-mask-image: linear-gradient(#000 72%, transparent 100%);
    mask-image: linear-gradient(#000 72%, transparent 100%);
  }
  .hero.hero-photo-layout > .hero-content {
    align-self: center;
    padding-block: clamp(135px, 35vw, 220px) clamp(17px, 3.8svh, 36px);
  }
  .hero.hero-photo-layout .eyebrow {
    margin-bottom: 11px;
    gap: 7px;
    font-size: clamp(10px, 2.75vw, 13px);
    letter-spacing: .12em;
  }
  .hero.hero-photo-layout .eyebrow > span { width: 20px; }
  .hero.hero-photo-layout h1 {
    max-width: 100%;
    font-size: clamp(27px, 8.35vw, 45px);
    text-wrap: wrap;
  }
  .hero.hero-photo-layout .hero-subtitle {
    max-width: 460px;
    margin-top: 12px;
    font-size: clamp(15px, 4.15vw, 19px);
  }
  .hero.hero-photo-layout > .hero-bottom {
    padding: 3px 0 10px;
    font-size: clamp(11.5px, 3.25vw, 15px);
    letter-spacing: .01em;
  }
  .hero.hero-photo-layout > .hero-bottom > a { gap: 6px; }
  .hero.hero-photo-layout > .hero-bottom > a > span { font-size: 21px; }
}
@media (max-width: 760px) {
  .hero.hero-photo-layout { --opening-header: 71px; }
}
@media (width < 769px) and (max-height: 560px) {
  .hero.hero-photo-layout > .hero-content { padding-block: clamp(85px, 28vw, 153px) 14px; }
  .hero.hero-photo-layout .eyebrow { margin-bottom: 7px; }
  .hero.hero-photo-layout h1 { font-size: clamp(25px, 7.6vw, 36px); }
  .hero.hero-photo-layout .hero-subtitle { margin-top: 9px; }
  .hero.hero-photo-layout > .hero-bottom { padding-block: 0 6px; }
}
/* Mobilos finomhangolás: a szöveg közelebb kerül az alsó sorhoz. */
@media (min-width: 350px) and (max-width: 540px) and (min-height: 590px) {
  .hero.hero-photo-layout > .hero-content {
    position: relative;
    inset-block-start: clamp(0px, calc((100svh - 566px) / 2.5), 36px);
  }
}
/* A főoldal nyitóképernyőjén csak a betűméret nő. */
.hero.hero-photo-layout .eyebrow { font-size: 15px; }
.hero.hero-photo-layout h1 { font-size: clamp(48px, 4.86vw, 73px); }
.hero.hero-photo-layout .hero-subtitle { font-size: clamp(20px, 1.82vw, 25px); }
.hero.hero-photo-layout > .hero-bottom { font-size: clamp(15.8px, 1.3vw, 17.7px); }
.home-page .site-header .home-link,
.home-page .site-header .menu-button { font-size: 20.5px; }
.home-page .site-header .wordmark { font-size: 31.5px; }

@media (min-width: 769px) and (max-height: 580px) {
  .hero.hero-photo-layout h1 { font-size: clamp(41px, 4.55vw, 62px); }
}
@media (width < 769px) {
  .hero.hero-photo-layout .eyebrow { font-size: clamp(11px, 3.05vw, 14.4px); }
  .hero.hero-photo-layout h1 { font-size: clamp(29.7px, 9.185vw, 49.5px); }
  .hero.hero-photo-layout .hero-subtitle { font-size: clamp(16.5px, 4.6vw, 21px); }
  .hero.hero-photo-layout > .hero-bottom { font-size: clamp(12.65px, 3.57vw, 16.5px); }
}
@media (max-width: 760px) {
  .home-page .site-header .home-link,
  .home-page .site-header .menu-button { font-size: 18.9px; }
}
@media (width < 769px) and (max-height: 560px) {
  .hero.hero-photo-layout h1 { font-size: clamp(27.5px, 8.36vw, 39.6px); }
}
@media (min-width: 481px) and (width < 769px) and (max-height: 680px) {
  .hero.hero-photo-layout h1 { font-size: clamp(38px, 8vw, 45px); }
}
@media (min-width: 481px) and (width < 769px) and (max-height: 589px) {
  .hero.hero-photo-layout h1 { font-size: clamp(34px, 7.2vw, 41px); }
}

.home-replacement-steps { padding-block: clamp(48px, 6vw, 84px); }
.home-replacement-steps h2 { margin-bottom: 30px; max-width: 24ch; }
.home-replacement-steps .replacement-steps-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 16px;
}
.home-replacement-steps .replacement-step {
  min-width: 0;
  padding: 20px 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.replacement-step .replacement-step-number {
  display: block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .12em;
  margin-bottom: 10px;
}
.replacement-step h3 {
  font: 600 25px/1.22 var(--serif);
  color: var(--ink);
  margin-bottom: 10px;
}
.replacement-step p { font-size: 17px; line-height: 1.55; color: var(--muted); }
.replacement-step a, .insurance-page .insurance-text-link {
  color: var(--accent);
  text-underline-offset: .15em;
  overflow-wrap: anywhere;
}
.home-replacement-steps + .services-section { padding-top: 0; }
.home-insurance-banner { padding-block: 0 clamp(45px, 6vw, 80px); }
.home-insurance-banner .insurance-banner-inner {
  padding: clamp(23px, 3.5vw, 40px);
  background: #eeeae0;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
}
.home-insurance-banner h2 { max-width: none; margin-bottom: 9px; font-size: clamp(28px, 3.2vw, 43px); }
.home-insurance-banner p { max-width: 70ch; font-size: clamp(17px, 1.65vw, 20px); color: var(--muted); }
.insurance-banner-link, .insurance-page .insurance-cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  max-width: 100%;
  padding: 9px 16px;
  margin-top: 16px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
}
.insurance-banner-link:hover, .insurance-page .insurance-cta:hover { background: #29474a; color: #fff; }
.insurance-banner-link:focus-visible, .insurance-page .insurance-cta:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.insurance-page .service-intro { align-items: start; gap: clamp(24px, 4vw, 56px); }
.insurance-page .service-intro h1 { font-size: clamp(38px, 4.5vw, 67px); max-width: 760px; }
.insurance-page .service-lead { margin-top: 18px; }
.insurance-page .insurance-opening-image { display: block; width: 100%; height: auto; border-radius: 8px; }
.insurance-page .insurance-content { max-width: 850px; }
.insurance-page .insurance-content h2 { overflow-wrap: break-word; }
.insurance-page .insurance-content ul, .insurance-page .insurance-content ol { padding-left: 1.35em; }
.insurance-page .insurance-content li { margin-bottom: .5em; }
.insurance-page .insurance-content .insurance-cta { color: #fff; }
@media (max-width: 1099px) {
  .home-replacement-steps .replacement-steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .home-replacement-steps .replacement-steps-list { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .home-replacement-steps .replacement-step { padding: 15px 17px 18px; }
  .replacement-step .replacement-step-number { margin-bottom: 5px; }
  .replacement-step h3 { font-size: 22px; margin-bottom: 7px; }
  .replacement-step p { font-size: 16px; }
  .insurance-page .service-intro h1 { font-size: clamp(34px, 9vw, 42px); }
}
