/* Hero: diagonal brand panel + product strip (placeholders until assets arrive) */
.hero,
.hero * {
  box-sizing: border-box;
}

.hero {
  --hero-blue: var(--primary-color, #008bc4);
  --hero-white: #ffffff;
  --hero-diagonal-end: 78%;
  --hero-pad-x: clamp(1rem, 2.3vw, 1.9rem);
  --hero-pad-top: clamp(1rem, 2.1vw, 1.6rem);
  --hero-pad-bottom: clamp(0.4rem, 1vw, 0.7rem);
  --hero-parallax-back-y: 0px;
  --hero-parallax-front-y: 0px;
  /* Triangle: full top edge, diagonal top-right → bottom-left (no flat cut along the bottom) */
  position: relative;
  overflow: hidden;
  min-height: clamp(22rem, 49vw, 34rem);
  background: var(--hero-white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--hero-blue);
  clip-path: polygon(0 0, 100% 0, 0 var(--hero-diagonal-end));
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 1;
  background: var(--hero-white);
  transform-origin: left center;
  transform: scaleX(1);
  will-change: transform;
  pointer-events: none;
}

.hero_inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  min-height: inherit;
  max-width: 1300px;
  margin: 0 auto;
  padding: var(--hero-pad-top) var(--hero-pad-x) var(--hero-pad-bottom);
}

.hero_copy,
.hero_visual {
  position: relative;
  z-index: 2;
}

.hero_parallax-layer {
  position: absolute;
  inset: -4% -8%;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 78%);
}

.hero_parallax-layer--back {
  transform: translate3d(0, var(--hero-parallax-back-y), 0);
  background: none;
}

.hero_parallax-layer--front {
  transform: translate3d(0, var(--hero-parallax-front-y), 0);
  background: none;
  mix-blend-mode: normal;
}

.hero_heading {
  margin: 0;
  max-width: 23ch;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--hero-white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.12);
  font-size: clamp(1.7rem, 3.6vw + 0.55rem, 3.6rem);
}

.hero_line {
  display: block;
}

.hero_line--accent {
  margin-top: 0;
  font-size: 0.95em;
  letter-spacing: -0.01em;
}

.hero_products {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(0.15rem, 0.45vw, 0.45rem);
  list-style: none;
  margin: 0;
  margin-top: clamp(-4.9rem, -7.5vw, -2.85rem);
  padding: 0;
  width: 100%;
}

.hero_scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: clamp(0.2rem, 1.3vw, 0.55rem);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.1rem, 3.4vw, 2.45rem);
  height: clamp(2.1rem, 3.4vw, 2.45rem);
  border-radius: 50%;
  border: 1px solid #ffffff;
  color: #ffffff;
  background: var(--primary-color, #008bc4);
  text-decoration: none;
  transform: translateX(-50%);
  transition: transform 200ms ease, background-color 200ms ease;
}

.hero_scroll-indicator:hover,
.hero_scroll-indicator:focus-visible {
  transform: translateX(-50%) translateY(-2px);
  background: var(--primary-color, #008bc4);
}

.hero_scroll-indicator:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 2px;
}

.hero_scroll-indicator-arrow {
  width: 0.58rem;
  height: 0.58rem;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg) translateY(-1px) translateX(-1px);
}

.hero_product {
  flex: 0 1 auto;
  width: calc(var(--hero-item-w, clamp(5rem, 9.3vw, 8.6rem)) * 1.4);
  max-width: calc(var(--hero-item-w, 9rem) * 1.4);
  min-width: 0;
}

.hero_product picture {
  display: block;
  width: 100%;
}

.hero_product-image {
  display: block;
  width: 100%;
  height: calc(var(--hero-item-h, clamp(10rem, 24vw, 16rem)) * 1.4);
  max-height: calc(var(--hero-item-h, clamp(10rem, 24vw, 16rem)) * 1.4);
  margin: 0 auto;
  object-fit: contain;
  object-position: center bottom;
  filter: none;
}

/* Desktop composition aligned to the provided mockup */
.hero_product:nth-child(1) {
  --hero-item-w: calc(clamp(5.7rem, 8.8vw, 8rem) * 1.25);
  --hero-item-h: calc(clamp(10.8rem, 18.3vw, 13.8rem) * 1.25);
}

.hero_product:nth-child(2) {
  --hero-item-w: calc(clamp(5.3rem, 8.4vw, 7.7rem) * 1.25);
  --hero-item-h: calc(clamp(10.6rem, 18.5vw, 13.9rem) * 1.25);
}

.hero_product:nth-child(3) {
  --hero-item-w: calc(clamp(7.2rem, 11.4vw, 10rem) * 1.25);
  --hero-item-h: calc(clamp(11.5rem, 19.6vw, 15.2rem) * 1.25);
}

.hero_product:nth-child(4) {
  --hero-item-w: calc(clamp(6.8rem, 10.9vw, 9.3rem) * 1.25);
  --hero-item-h: calc(clamp(13.2rem, 22.8vw, 18.5rem) * 1.25);
}

.hero_product:nth-child(5) {
  --hero-item-w: clamp(7.9rem, 12.9vw, 11.1rem);
  --hero-item-h: clamp(15.1rem, 26.5vw, 22rem);
}

.hero_product:nth-child(6) {
  --hero-item-w: clamp(6.3rem, 9.9vw, 8.7rem);
  --hero-item-h: calc(clamp(17.4rem, 30.8vw, 25.2rem) * 0.8);
}

/* Narrow screens: readable type, tidy product row */
@media (max-width: 520px) {
  .hero {
    min-height: clamp(18rem, 50vh, 31rem);
    --hero-diagonal-end: 70%;
  }

  .hero_inner {
    padding-inline: clamp(0.4rem, 2vw, 0.7rem);
  }

  .hero_heading {
    max-width: 18ch;
    line-height: 1.06;
    font-size: clamp(1.75rem, 7.2vw, 2.35rem);
  }

  .hero_parallax-layer {
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 70%);
  }

  .hero_products {
    display: flex;
    flex-wrap: nowrap;
    align-items: end;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: visible;
    padding-bottom: 0;
    margin-inline: 0;
    margin-top: clamp(-3.2rem, -9.2vw, -1.7rem);
    padding-inline: clamp(0.12rem, 0.8vw, 0.28rem);
    gap: clamp(0.28rem, 1.35vw, 0.5rem);
  }

  .hero_product {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    --hero-mobile-scale: 1;
    --hero-mobile-x: 0rem;
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
  }

  .hero_product-image {
    width: auto;
    max-width: none;
    height: calc(clamp(8.8rem, 34vw, 12.2rem) * var(--hero-mobile-scale) * var(--hero-mobile-height-scale, 1));
    max-height: calc(clamp(8.8rem, 34vw, 12.2rem) * var(--hero-mobile-scale) * var(--hero-mobile-height-scale, 1));
    transform: translateX(var(--hero-mobile-x));
  }

  .hero_product:nth-child(1) {
    --hero-mobile-scale: 0.74;
  }

  .hero_product:nth-child(3) {
    --hero-mobile-scale: 1.2;
    --hero-mobile-x: -30px;
  }

  .hero_product:nth-child(5) {
    --hero-mobile-scale: 1.5;
    --hero-mobile-x: -10px;
  }

  .hero_product:nth-child(6) {
    --hero-mobile-scale: 2;
    --hero-mobile-height-scale: 1.1;
    --hero-mobile-x: 25px;
  }

  .hero_product--desktop-only {
    display: none;
  }

  .hero_scroll-indicator {
    bottom: 0.2rem;
    width: 2rem;
    height: 2rem;
  }
}

@media (max-width: 420px) {
  .hero_product:nth-child(3) {
    --hero-mobile-scale: 1.05;
  }

  .hero_product:nth-child(5) {
    --hero-mobile-scale: 1.25;
  }

  .hero_product:nth-child(6) {
    --hero-mobile-scale: 1.62;
  }
}

@media (min-width: 900px) {
  .hero {
    min-height: clamp(27rem, 49vw, 38rem);
  }

  .hero_heading {
    transform: translateY(0.3rem);
  }

  .hero_products {
    margin-top: clamp(-6rem, -8.6vw, -3.45rem);
  }
}

.hero.hero--skip-intro::after {
  animation: none !important;
  transform: scaleX(0);
}

.hero.hero--skip-intro .hero_copy,
.hero.hero--skip-intro .hero_visual {
  animation: none !important;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: no-preference) {
  .hero.hero--animated::after {
    animation: hero-surface-reveal-right-to-left 1280ms cubic-bezier(0.22, 0.78, 0.18, 1) 330ms both;
  }

  .hero.hero--animated .hero_copy {
    animation: hero-enter-left 1080ms cubic-bezier(0.2, 0.8, 0.2, 1) 960ms both;
  }

  .hero.hero--animated .hero_visual {
    animation: hero-enter-right 1120ms cubic-bezier(0.2, 0.8, 0.2, 1) 1060ms both;
  }

  .hero_scroll-indicator {
    animation: hero-scroll-pulse 3.4s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after {
    animation: none;
    transform: scaleX(0);
  }

  .hero_parallax-layer {
    transform: none;
  }

  .hero_scroll-indicator {
    animation: none;
  }
}

@keyframes hero-surface-reveal-right-to-left {
  0% {
    transform: scaleX(1);
  }

  8% {
    transform: scaleX(1);
  }

  100% {
    transform: scaleX(0);
  }
}

@keyframes hero-enter-left {
  from {
    opacity: 0;
    transform: translate3d(-26px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes hero-enter-right {
  from {
    opacity: 0;
    transform: translate3d(30px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes hero-scroll-pulse {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.94;
  }

  50% {
    transform: translateX(-50%) translateY(5px);
    opacity: 1;
  }
}

.termekek,
.termekek * {
  box-sizing: border-box;
}

.termekek {
  --termek-bg: #eaf5fb;
  --termek-card-surface: #ffffff;
  --termek-brand: #0e8ec4;
  --termek-brand-dark: #086f99;
  --termek-title: #006e98;
  padding: clamp(2.5rem, 4.6vw, 4rem) clamp(1rem, 2.5vw, 2rem) clamp(3rem, 5.3vw, 4.5rem);
  background:
    radial-gradient(circle at 20% 14%, rgba(14, 142, 196, 0.1), transparent 36%),
    radial-gradient(circle at 82% 6%, rgba(6, 111, 153, 0.12), transparent 42%),
    var(--termek-bg);
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.termekek_inner {
  max-width: 1300px;
  margin: 0 auto;
}

.termekek_title {
  margin: 0;
  padding-top: clamp(0.25rem, 0.7vw, 0.55rem);
  text-align: center;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--termek-title);
}

.termekek_rule {
  width: 100%;
  height: 0.2rem;
  margin: clamp(1rem, 2vw, 1.4rem) 0 clamp(1.6rem, 2.5vw, 2.1rem);
  background: var(--termek-brand);
  border-radius: 999px;
}

.termekek_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.35rem);
}

.termek_card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 122, 170, 0.18);
  border-radius: clamp(1rem, 1.7vw, 1.35rem);
  overflow: hidden;
  background: var(--termek-card-surface);
  color: #114762;
  min-height: clamp(27rem, 41vw, 31rem);
  box-shadow:
    0 12px 28px rgba(12, 81, 110, 0.12),
    0 2px 8px rgba(12, 81, 110, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
  text-decoration: none;
  cursor: pointer;
}

.termek_card:hover,
.termek_card:focus-visible {
  transform: translateY(-5px);
  box-shadow:
    0 18px 34px rgba(12, 81, 110, 0.18),
    0 4px 10px rgba(12, 81, 110, 0.1);
}

.termek_card:focus-visible {
  outline: 2px solid rgba(13, 130, 180, 0.52);
  outline-offset: 2px;
}

.termek_card-media {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: clamp(0.55rem, 0.9vw, 0.75rem);
  margin: clamp(0.65rem, 1vw, 0.85rem);
  padding: clamp(0.55rem, 0.9vw, 0.8rem);
  min-height: clamp(10.5rem, 15vw, 13.4rem);
  background: linear-gradient(148deg, #0aa1d8, #0689bd 58%, #067cac);
  border-radius: clamp(0.85rem, 1.3vw, 1.1rem);
  overflow: hidden;
}

.termek_card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(177deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.termek_card-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(7.8rem, 11.8vw, 10.6rem);
  object-fit: contain;
  object-position: center;
  transform-origin: center center;
  filter: drop-shadow(0 7px 10px rgba(7, 65, 89, 0.22));
}

.termek_card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: clamp(0.42rem, 0.8vw, 0.6rem);
  padding: clamp(0.85rem, 1.2vw, 1.1rem) clamp(0.7rem, 1vw, 0.95rem) clamp(1rem, 1.4vw, 1.3rem);
  text-align: center;
}

.termek_card-title {
  margin: 0;
  max-width: 100%;
  font-size: clamp(1.45rem, 1.4vw + 0.7rem, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: #0b6f98;
}

.termek_card-rule {
  width: min(12.8rem, 100%);
  height: 0.1rem;
  margin: 0.1rem 0 0.1rem;
  background: linear-gradient(90deg, rgba(13, 140, 193, 0.35), rgba(13, 140, 193, 0.8), rgba(13, 140, 193, 0.35));
  border-radius: 999px;
}

.termek_card-text {
  margin: 0;
  max-width: 100%;
  font-size: clamp(1rem, 0.75vw + 0.62rem, 1.2rem);
  font-weight: 500;
  line-height: 1.34;
  color: #1a6486;
}

.termek_card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.8rem;
  margin-top: auto;
  padding: 0.54rem 1.15rem 0.58rem;
  border: 0.14rem solid rgba(13, 130, 180, 0.42);
  border-radius: 999px;
  background: linear-gradient(148deg, #0d95cb, #0877a4);
  color: #ffffff;
  font-size: clamp(1.02rem, 0.62vw + 0.72rem, 1.2rem);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(8, 92, 129, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.termek_card:hover .termek_card-button,
.termek_card:focus-visible .termek_card-button {
  transform: translateY(-2px) scale(1.06);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 16px rgba(8, 92, 129, 0.32);
}

@media (max-width: 920px) {
  .termekek_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .termek_card {
    min-height: clamp(25rem, 52vw, 29rem);
  }
}

@media (max-width: 620px) {
  .termekek_grid {
    grid-template-columns: 1fr;
  }

  .termek_card {
    min-height: 0;
  }

  .termek_card-media {
    min-height: clamp(10rem, 44vw, 13rem);
  }

  .termek_card-image {
    height: clamp(7.4rem, 34vw, 10rem);
  }

  .termek_card-content {
    padding-top: 0.95rem;
  }
}
