*,
*::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: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 129%;
}

[class*="__container"] {
  max-width: 900px;
  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 {
  background-color: #ffffff;
}

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

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

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

.header__advertisement {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #EC6B01;
  font-size: 14px;
  line-height: 130%;
}

.benefits {
  padding: 48px 0 64px;
}

.benefits__title {

  margin: 18px 0;
  color: #EC6B01;
  font-size: 42px;
  font-weight: 700;
  line-height: 130%;
}

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

.benefits__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px 0 22px;
}

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

.benefits__item {
  display: flex;
  flex-direction: column;
  padding: 28px 0;
  border-top: 1px solid #dfe3ea;
}

.benefits__item-image {
  width: 100%;
  height: 520px;
  border-radius: 4px;
  object-fit: cover;
}

.benefits__item-title {
  margin: 18px 0;
  text-align: left;
  font-size: 28px;
  font-weight: 700;
  line-height: 130%;
  color: #EC6B01;
}

.benefits__item-title a {
  color: #2563eb;
  text-decoration: none;
}

.benefits__item-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 20px;
  line-height: 130%;
}
.benefits__item-text p {
  line-height: 132%;
}

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

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

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

.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__container > p:not(.legal__updated) {
  margin-bottom: 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__subsection-title {
  margin: 16px 0 4px;
  color: #00184f;
  font-size: 24px;
  font-weight: 700;
  line-height: 130%;
}

.legal__contact-details {
  display: flex;
  margin-bottom: 20px;
  flex-direction: column;
  gap: 8px;
  font-size: 20px;
  line-height: 130%;
}

.legal__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 24px;
  font-size: 20px;
  line-height: 130%;
}

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

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

.footer__container {
  max-width: 950px;
}

.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: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(170px, .7fr) minmax(0, 1fr);
  align-items: start;
  gap: 56px;
}

.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__links {
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.footer__links a {
  line-height: 130%;
  text-decoration: none;
}

.footer__company {
  gap: 14px;
  line-height: 140%;
}

.footer__company a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__copyright {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 37px;
  color: #d4d4d4;
  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__advertisement {
    font-size: 14px;
  }

  .benefits {
    padding: 36px 0 48px;
  }

  .benefits__title {
    font-size: 28px;
  }

  .benefits__hero-image {
    height: 310px;
  }

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

  .benefits__item {
    padding: 24px 0;
    
  }

  .benefits__item-image {
    width: 100%;
    height: 240px;
  }
.benefits__item-text p {
  font-size: 16px;
}
  .benefits__item-title {
  
    font-size: 24px;
  }

  .benefits__item-text {
    gap: 16px;
    font-size: 16px;
  }

  .benefit-card__button {
   
    padding: 12px 20px;
   margin: 16px 0 6px;
  }

  .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__container > p:not(.legal__updated) {
    margin-bottom: 16px;
    font-size: 14px;
  }

  .legal__section {
    gap: 12px;
  }

  .legal__list {
    font-size: 14px;
  }

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

  .legal__subsection-title {
    font-size: 18px;
  }

  .legal__contact-details {
    margin-bottom: 16px;
    font-size: 14px;
  }

  .footer__columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__column {
    width: 100%;
  }

  .footer__links {
    align-items: flex-start;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header__logo,
  .header__logo-image {
    width: 125px;
  }

  .benefits__title {
    font-size: 32px;
  }

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