*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  border: 0;
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
}

html,
body {
  min-height: 100%;
}

body {
  background-color: #f7f8fa;
  color: #231f1f;
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 129%;
}

[class*="__container"] {
  max-width: 864px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: content-box;
}

.wrapper {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
}

.page {
  flex: 1 1 auto;
}

.header {
  border-bottom: 1px solid #0078f0;
  background-color: #ffffff;
  box-shadow: 0 4px 4px rgba(0, 120, 240, 0.25);
}

.header__container {
  display: flex;
  max-width: 1040px;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
}

.header__container::after {
  width: 170px;
  content: "";
  flex: 0 0 170px;
}

.header__logo {
  display: flex;
  width: 170px;
}

.header__logo-image {
  width: 170px;
  height: 40px;
  object-fit: contain;
}

.header__advertisement {
  color: #0078f0;
  font-size: 14px;
  line-height: 130%;
}

.benefits {
  padding: 70px 0 99px;
}

.benefits__title {
  max-width: 850px;
  margin-bottom: 24px;
  color: #00184f;
  font-size: 48px;
  font-weight: 700;
  line-height: 130%;
}

.benefits__hero-image {
  width: 100%;
  height: 576px;
  object-fit: cover;
}

.benefits__intro {
  display: flex;
  flex-direction: column;
  gap: 31px;
  padding: 24px 0 33px;
}

.benefits__intro h2 {
  margin-bottom: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 130%;
}

.benefits__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.benefit-card {
  display: flex;
  flex-direction: column;
  padding: 40px 24px;
  border: 1px solid #e0e4eb;
  border-radius: 16px;
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(35, 31, 31, 0.08);
}

.benefit-card__top {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.benefit-card__image {
  width: 50%;
  height: 280px;
  border-radius: 4px;
  flex: 0 0 50%;
  object-fit: cover;
}

.benefit-card__lead {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
}

.benefit-card__number {
  flex: 0 0 auto;
  color: rgba(37, 99, 235, 0.5);
  font-size: 40px;
  font-weight: 700;
  line-height: 100%;
}

.benefit-card__teaser {
  color: #0035aa;
  font-size: 24px;
  font-weight: 500;
  line-height: 130%;
}

.benefit-card__title {
  margin: 24px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  line-height: 130%;
}

.benefit-card__title a {
  color: #2563eb;
  text-decoration: none;
}

.benefit-card__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 20px;
  line-height: 130%;
}
.benefit-card__text p {
  line-height: 132%;
}

.benefit-card__text a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: underline;
}

.benefit-card__button {
  display: flex;
  width: 100%;
  min-height: 53px;
  margin: 22px 0 30px;
  padding: 16px 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid #0078f0;
  border-radius: 12px;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  line-height: 130%;
  transition: background-color 200ms ease;
}

.benefit-card__button:hover {
  background-color: #0035aa;
}

.benefit-card__subtitle {
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 700;
  line-height: 130%;
}

.legal {
  padding: 70px 0 96px;
}

.legal__title {
  margin-bottom: 12px;
  color: #00184f;
  font-size: 48px;
  font-weight: 700;
  line-height: 130%;
}

.legal__updated {
  margin-bottom: 40px;
  color: #5f6470;
  font-size: 16px;
  line-height: 130%;
}

.legal__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 20px;
  line-height: 130%;
}

.legal__section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal__section-title {
  margin-top: 12px;
  color: #00184f;
  font-size: 32px;
  font-weight: 700;
  line-height: 130%;
}

.legal__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 24px;
}

.legal__link {
  color: #2563eb;
  font-weight: 700;
}

.footer {
  padding: 41px 0 32px;
  background-color: #231F1F;
  color: #ffffff;
}

.footer__container {
  max-width: 1040px;
}

.footer__title {
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 130%;
}

.footer__text {
  margin-bottom: 15px;
  color: #FFFFFF;
  font-size: 14px;
  line-height: 129%;
}

.footer__text--last {
  margin-bottom: 20px;
}

.footer__columns {
  display: flex;
  justify-content: space-between;
  gap: 152px;
}

.footer__column {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  line-height: 100%;
}

.footer__column h3 {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 100%;
}

.footer__column a {
  font-size: 14px;
}

.footer__column strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 100%;
}

.footer__column:nth-child(3) > span:first-of-type {
  margin-bottom: 10px;
  font-weight: 500;
}

.footer__column:nth-child(3) {
  gap: 0;
}

.footer__column:nth-child(3) > h3 {
  margin-bottom: 18px;
}

.footer__column:nth-child(3) > span:nth-of-type(2) {
  margin-bottom: 22px;
}

.footer__column:nth-child(3) > span:last-of-type {
  font-weight: 300;
  line-height: 120%;
}

.footer__copyright {
  margin-top: 37px;
  color: #a9a9a9;
  font-size: 14px;
  line-height: 130%;
  text-align: center;
}

@media (max-width: 767px) {
  body {
    font-size: 20px;
  }

  [class*="__container"] {
    padding: 0 16px;
  }

  .header__container {
    min-height: 86px;
  }

  .header__logo,
  .header__logo-image {
    width: 170px;
    height: 40px;
  }

  .header__container::after {
    display: none;
  }

  .header__advertisement {
    font-size: 14px;
  }

  .benefits {
    padding: 70px 0 99px;
  }

  .benefits__title {
    font-size: 28px;
  }

  .benefits__hero-image {
    height: 310px;
  }

  .benefits__intro h2 {
    font-size: 24px;
  }

  .benefit-card {
    padding: 40px 16px;
    
  }

  .benefit-card__top {
    flex-direction: column-reverse;
    gap: 16px;
  }

  .benefit-card__image {
    width: 100%;
    height: 240px;
    flex-basis: auto;
  }

  .benefit-card__lead {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 15px;
  }

  .benefit-card__number {
    font-size: 40px;
  }

  .benefit-card__teaser {
    font-size: 20px;
  }
.benefit-card__text p {
  font-size: 16px;
}
  .benefit-card__title {
  
    font-size: 24px;
  }

  .benefit-card__text {
    gap: 16px;
    font-size: 16px;
  }

  .benefit-card__button {
   
    padding: 12px 20px;
   margin: 22px 0 35px;
  }

  .benefit-card__subtitle {

    font-size: 20px;
  }

  .legal {
    padding: 40px 0 56px;
  }

  .legal__title {
    font-size: 32px;
  }

  .legal__updated {
    margin-bottom: 24px;
    font-size: 14px;
  }

  .legal__content {
    gap: 16px;
    font-size: 14px;
  }

  .legal__section {
    gap: 12px;
  }

  .legal__section-title {
    margin-top: 8px;
    font-size: 20px;
  }

  .footer__columns {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 0;
    row-gap: 24px;
  }

  .footer__column {
    flex: 1 1 auto;
  }

  .footer__column:first-child {
    flex: 0 0 203px;
  }

  .footer__column:nth-child(2) {
    flex: 1 1 0;
  }

  .footer__column:nth-child(3) {
    flex-basis: 100%;
  }
}

@media (max-width: 480px) {
  .benefits__title {
    font-size: 32px;
  }

  .benefits__hero-image
   {
    height: 299px;
  }
  .benefit-card__image {
    height: 280px;
  }
}
