/*
 * GANTSEV PRIVACY + HOME ADVANTAGES FIT V164
 */

/* ================================================================
   HOME: photograph must end exactly with the right content block.
   The grid row height is defined by the text/content column.
   The image is cropped only inside that fixed row and cannot stretch
   the whole section downward.
   ================================================================ */

@media (min-width: 901px) {
  .advantages.section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .advantages .advantages-grid {
    display: grid !important;
    align-items: stretch !important;

    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;

    grid-auto-rows: auto !important;
  }

  .advantages .advantages-grid > figure {
    position: relative !important;
    align-self: stretch !important;

    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;

    margin: 0 !important;
    overflow: hidden !important;
  }

  .advantages .advantages-grid > figure > img {
    position: absolute !important;
    inset: 0 !important;

    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;

    object-fit: cover !important;
    object-position: center center !important;

    margin: 0 !important;
    transform: none !important;
  }

  .advantages .advantages-content {
    align-self: stretch !important;
    min-height: 0 !important;
    height: auto !important;
  }
}

/*
 * Tablet/mobile keeps a predictable image block. It is no longer
 * influenced by the source image's natural portrait height.
 */
@media (max-width: 900px) {
  .advantages .advantages-grid {
    min-height: 0 !important;
    height: auto !important;
  }

  .advantages .advantages-grid > figure {
    position: relative !important;
    height: clamp(300px, 58vw, 470px) !important;
    min-height: 300px !important;
    max-height: 470px !important;
    overflow: hidden !important;
  }

  .advantages .advantages-grid > figure > img {
    position: absolute !important;
    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    object-position: center center !important;
  }
}

/* ================================================================
   PRIVACY PAGE
   ================================================================ */

.privacy-page-v164 {
  min-height: 70vh;
  padding: 170px 0 120px;
}

.privacy-page-v164__shell {
  width: min(100% - 48px, 1180px);
}

.privacy-page-v164__header {
  max-width: 920px;
  margin: 0 auto 58px;
  text-align: center;
}

.privacy-page-v164__header h1 {
  max-width: 920px;
  margin: 16px auto 24px;
  font-size: clamp(48px, 6vw, 82px);
  line-height: .98;
  font-weight: 400;
}

.privacy-page-v164__intro {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.privacy-page-v164__updated {
  display: inline-block;
  margin: 24px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--soft-ink);
  font-size: 13px;
}

.privacy-page-v164__content {
  max-width: 980px;
  margin: 0 auto;
  border-top: 1px solid var(--gold);
}

.privacy-page-v164__section {
  display: grid;
  grid-template-columns: minmax(230px, .72fr) minmax(0, 1.45fr);
  gap: clamp(30px, 5vw, 80px);

  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.privacy-page-v164__section h2 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.1;
  font-weight: 400;
}

.privacy-page-v164__section p {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.75;
  color: var(--soft-ink);
}

@media (max-width: 760px) {
  .privacy-page-v164 {
    padding: 120px 0 82px;
  }

  .privacy-page-v164__shell {
    width: calc(100% - 30px);
  }

  .privacy-page-v164__header {
    margin-bottom: 42px;
    text-align: left;
  }

  .privacy-page-v164__header h1 {
    margin-left: 0;
    font-size: clamp(42px, 13vw, 60px);
  }

  .privacy-page-v164__intro {
    font-size: 18px;
  }

  .privacy-page-v164__section {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 30px 0;
  }

  .privacy-page-v164__section h2 {
    font-size: 28px;
  }

  .privacy-page-v164__section p {
    font-size: 17px;
    line-height: 1.65;
  }
}
