.familyMortgageNotice {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 28px;
  border-radius: 0;
  background: #EEF0E4;
  color: #403E44;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

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

.familyMortgageNotice .familyMortgageNotice__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 5px 12px;
  border-radius: 0;
  background: #AF4C7B;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.familyMortgageNotice .familyMortgageNotice__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 0;
  background: #AF4C7B;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

.familyMortgageNotice .familyMortgageNotice__badge .familyMortgageNotice__icon {
  width: 18px;
  height: 18px;
  background: #fff;
  color: #AF4C7B;
  font-size: 14px;
}

.familyMortgageNotice .familyMortgageNotice__title {
  margin: 12px 0 5px;
  color: #403E44;
  font-family: inherit;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
}

/* The mobile apartment page has an ID-scoped rule for every h2 inside it. */
#choice_flat .view_flat.flat-v2 .familyMortgageNotice .familyMortgageNotice__title {
  margin: 12px 0 5px;
  color: #403E44;
  font: 700 28px/1.2 Montserrat, Arial, sans-serif;
  text-transform: none;
}

.familyMortgageNotice .familyMortgageNotice__intro {
  margin: 0 0 18px;
  color: #67636C;
}

.familyMortgageNotice .familyMortgageNotice__alert,
.familyMortgageNotice .familyMortgageNotice__footer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 15px 17px;
  border-radius: 0;
  background: #D9DBCA;
}

.familyMortgageNotice .familyMortgageNotice__alert strong {
  display: block;
  font-weight: 700;
}

.familyMortgageNotice .familyMortgageNotice__alert p {
  margin: 3px 0 0;
  color: #67636C;
}

.familyMortgageNotice .familyMortgageNotice__rates {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid #D9DBCA;
  border-radius: 0;
  background: #fff;
}

.familyMortgageNotice .familyMortgageNotice__rates h3 {
  margin: 0;
  padding: 12px 15px 6px;
  color: #403E44;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
}

.familyMortgageNotice table {
  width: 100%;
  border-collapse: collapse;
  color: inherit;
  font: inherit;
  text-align: left;
}

.familyMortgageNotice thead {
  background: #EEF0E4;
}

.familyMortgageNotice .familyMortgageNotice__rates th,
.familyMortgageNotice .familyMortgageNotice__rates td {
  height: auto;
  padding: 6px 12px;
  border-bottom: 1px solid #D9DBCA;
  font: inherit;
  text-align: left;
  vertical-align: top;
}

.familyMortgageNotice thead th {
  color: #67636C;
  font-size: 13px;
  font-weight: 500;
}

.familyMortgageNotice tbody tr:last-child th,
.familyMortgageNotice tbody tr:last-child td {
  border-bottom: 0;
}

.familyMortgageNotice .familyMortgageNotice__terms {
  margin: 24px 0;
}

.familyMortgageNotice .familyMortgageNotice__terms h3 {
  margin: 0 0 10px;
  color: #403E44;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
}

.familyMortgageNotice .familyMortgageNotice__terms ul {
  margin: 0;
  padding: 0 0 0 21px;
  color: #67636C;
}

.familyMortgageNotice .familyMortgageNotice__terms li {
  margin: 0 0 9px;
  padding-left: 2px;
}

.familyMortgageNotice .familyMortgageNotice__terms li::marker {
  color: #AF4C7B;
}

.familyMortgageNotice .familyMortgageNotice__footer {
  align-items: center;
  color: #67636C;
}

@media (max-width: 767px) {
  .familyMortgageNotice {
    padding: 18px 14px;
    border-radius: 0;
    font-size: 14px;
  }

  .familyMortgageNotice .familyMortgageNotice__title {
    font-size: 25px;
  }

  #choice_flat .view_flat.flat-v2 .familyMortgageNotice .familyMortgageNotice__title {
    font-size: 25px;
  }

  .familyMortgageNotice .familyMortgageNotice__rates h3 {
    padding: 12px;
  }

  .familyMortgageNotice thead {
    display: none;
  }

  .familyMortgageNotice .familyMortgageNotice__rates tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 10px;
    padding: 8px 12px;
    border-bottom: 1px solid #D9DBCA;
  }

  .familyMortgageNotice tbody tr:last-child {
    border-bottom: 0;
  }

  .familyMortgageNotice .familyMortgageNotice__rates tbody th,
  .familyMortgageNotice .familyMortgageNotice__rates tbody td {
    padding: 0;
    border: 0;
  }

  .familyMortgageNotice tbody th {
    grid-column: 1 / -1;
    font-weight: 700;
  }

  .familyMortgageNotice tbody td::before {
    display: block;
    color: #67636C;
    font-size: 11px;
  }

  .familyMortgageNotice tbody td:nth-child(2)::before {
    content: 'Ставка';
  }

  .familyMortgageNotice tbody td:nth-child(3)::before {
    content: 'Максимальная сумма';
  }
}

/* Keep the notice separate from the existing bank result table. */
.familyMortgageNotice { margin: 0 0 24px; text-align: left; font-family: inherit; }
.familyMortgageNotice .familyMortgageNotice__title {
  margin: 12px 0 5px !important;
  padding: 0;
  background: none;
  max-width: none;
  width: auto;
  text-align: left;
}
.nm-family-only > .bank._top,
.nm-family-only > .data-mortgage-head { display: none; }
