/* Acasă V12 — a composed first screen, even section spacing and a complete ending.
   Only desktop uses viewport minimums. Content can always grow, including at zoom. */
body.v12-home-page .v9-presentation {
  --v9-space: clamp(36px, 4.3vw, 60px);
}

body.v12-home-page .v9-home-hero {
  display: flex;
  align-items: center;
  padding-block: clamp(32px, 4vw, 56px);
}

body.v12-home-page .v9-home-hero-grid {
  align-items: center;
}

body.v12-home-page .v9-home-feature-image > img {
  height: clamp(340px, 31vw, 440px);
  object-position: center 58%;
}

body.v12-home-page .v5-section-heading {
  align-items: end;
  margin-bottom: 24px;
}

/* The four recommendations keep aligned prices without an oversized text area. */
body.v12-home-page .v5-home .pd-product-preview {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 14px;
}

body.v12-home-page .v5-home .pd-product-preview-image {
  flex: 0 0 auto;
  aspect-ratio: 1.3;
}

body.v12-home-page .v5-home .pd-product-preview-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 18px;
}

body.v12-home-page .v5-home .pd-product-preview-copy > h3 {
  font-size: 16px;
  line-height: 1.4;
  min-height: 0;
  margin: 6px 0 14px;
}

body.v12-home-page .v5-home .pd-product-preview-bottom {
  margin-top: auto;
  gap: 8px 12px;
  align-items: baseline;
}

body.v12-home-page .v5-home .pd-product-preview-bottom > strong {
  font-size: 20px;
  line-height: 1.3;
}

body.v12-home-page .v5-home .pd-product-preview-bottom > span {
  font-size: 11px;
}

/* The contact invitation and the footer form one closing block. */
body.v12-home-page .v12-home-ending {
  display: flex;
  flex-direction: column;
  background: #fff;
}

body.v12-home-page .v12-home-ending .v5-home-contact {
  display: flex;
  align-items: center;
  padding-block: clamp(36px, 4vw, 56px);
}

body.v12-home-page .v5-home-contact > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}

body.v12-home-page .v5-home-contact > .container > div {
  min-width: 0;
}

body.v12-home-page .v5-home-contact .v5-eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.5;
}

body.v12-home-page .v5-home-contact h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.18;
}

body.v12-home-page .v5-home-contact p:not(.v5-eyebrow) {
  max-width: 52ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

body.v12-home-page .v5-home-contact .button {
  flex-shrink: 0;
  gap: 20px;
  min-height: 52px;
  max-width: 100%;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: 0 6px 18px #f47b2114;
  white-space: normal;
  text-align: left;
}

body.v12-home-page .v5-home-contact .button .icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

body.v12-home-page .v12-home-ending .v5-footer {
  display: flex;
  flex-direction: column;
  margin-top: 0;
  padding-top: 36px;
}

body.v12-home-page .v12-home-ending .footer-grid {
  flex: 1;
  align-content: center;
  padding-bottom: 32px;
}

body.v12-home-page .v12-home-ending .footer-bottom {
  flex: 0 0 auto;
}

@media (min-width: 1081px) and (min-height: 700px) {
  body.v12-home-page .v9-home-hero {
    min-height: calc(100vh - var(--pd-header-rest-height) - var(--pd-topbar-height));
    min-height: calc(100svh - var(--pd-header-rest-height) - var(--pd-topbar-height));
  }

  body.v12-home-page .v9-home-feature-image > img {
    height: clamp(340px, 45vh, 480px);
    height: clamp(340px, 45svh, 480px);
  }

  body.v12-home-page .v12-home-ending {
    min-height: calc(100vh - var(--pd-header-height));
    min-height: calc(100svh - var(--pd-header-height));
  }

  body.v12-home-page .v12-home-ending .v5-home-contact {
    flex: 1 0 auto;
  }

  body.v12-home-page .v12-home-ending .v5-footer {
    flex: 2 0 auto;
  }
}

@media (max-width: 1080px) {
  body.v12-home-page .v9-home-feature-image > img {
    height: 360px;
  }

  body.v12-home-page .v5-home-contact > .container {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  body.v12-home-page .v9-presentation {
    --v9-space: 32px;
  }

  body.v12-home-page .v9-home-hero {
    padding-block: 28px 32px;
  }

  body.v12-home-page .v9-home-feature-image > img {
    height: auto;
    aspect-ratio: 1.5;
  }

  body.v12-home-page .v5-section-heading {
    align-items: start;
    margin-bottom: 20px;
  }

  body.v12-home-page .v5-home .pd-product-preview-copy {
    padding: 13px;
  }

  body.v12-home-page .v5-home .pd-product-preview-copy > h3 {
    font-size: 15px;
    margin-bottom: 12px;
  }

  body.v12-home-page .v5-home .pd-product-preview-bottom > strong {
    font-size: 18px;
  }

  body.v12-home-page .v5-home-contact > .container {
    align-items: flex-start;
    flex-direction: column;
  }

  body.v12-home-page .v5-home-contact .button {
    justify-content: space-between;
    gap: 12px;
    padding-inline: 18px;
  }

  body.v12-home-page .v12-home-ending .footer-grid {
    padding-bottom: 24px;
  }
}

@media print {
  body.v12-home-page :is(.v9-home-hero, .v12-home-ending) {
    min-height: 0;
  }

  body.v12-home-page .v12-home-ending .v5-footer {
    display: none;
  }
}
