/* A light visual refresh for the established homepage structure. */
body.home {
  --home-navy: #0a3e69;
  --home-teal: #089a91;
  --home-orange: #f56a1f;
  --home-ink: #173b59;
  --home-muted: #607789;
  --home-line: #d7e5eb;
  --home-pale: #f1f7f8;
}

body.home .main_content_body {
  color: var(--home-ink);
  overflow: hidden;
}

body.home #top_form_home_page {
  background-color: #f3f7f8;
  background-image: linear-gradient(135deg, rgba(8, 62, 105, .03), rgba(8, 154, 145, .05)), url(/bitrix/templates/ipser_new/img/pattern.png);
  padding-bottom: 42px;
}

body.home #top_form_home_page > .container > .row {
  align-items: start;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr);
}

body.home #top_form_home_page #main_video_block {
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(12, 54, 84, .10);
  float: none;
  margin: 0;
  overflow: hidden;
  width: auto;
  grid-column: 1;
  grid-row: 1;
  width: 100% !important;
}

body.home #top_form_home_page #main_video_block img {
  display: block;
  height: auto;
  margin: 0;
  width: 100%;
}

body.home #top_form_home_page .main__descr {
  float: none;
  margin: 0;
  max-width: none;
  width: auto;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
}

body.home #top_form_home_page .main__descr > div {
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(12, 54, 84, .10);
  padding: 22px 24px;
}

body.home #top_form_home_page input,
body.home #top_form_home_page textarea,
body.home #top_form_home_page select {
  border-color: #aabac5 !important;
  border-radius: 6px !important;
}

body.home #top_form_home_page button,
body.home #top_form_home_page input[type="submit"] {
  background: var(--home-teal) !important;
  border: 0 !important;
  border-radius: 7px !important;
  color: #fff !important;
  font-weight: 700 !important;
}

body.home .ipser-home-intro {
  background: #fff;
  padding: 32px 0 12px;
}

body.home .ipser-home-intro__inner {
  background: linear-gradient(115deg, #f7fbfc, #eef7f6);
  border: 1px solid var(--home-line);
  border-radius: 16px;
  box-shadow: 0 14px 38px rgba(12, 54, 84, .07);
  padding: 27px 30px;
}

body.home .ipser-home-intro h1 {
  color: var(--home-navy);
  letter-spacing: -.02em;
}

body.home .ipser-home-intro__proof {
  color: #3f586c;
}

body.home .ipser-home-intro__link {
  border: 1px solid var(--home-teal);
  border-radius: 8px;
  padding: 10px 15px;
}

body.home h2.steps_to_successful_application {
  color: var(--home-navy);
  font-size: clamp(27px, 3vw, 36px);
  letter-spacing: -.02em;
  margin: 52px auto 10px;
  max-width: 900px;
  padding: 0 20px;
}

body.home .process-item__descr,
body.home .benefits-item__descr {
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  box-shadow: 0 9px 26px rgba(12, 54, 84, .06);
  min-height: 205px;
  padding: 18px;
}

body.home .benefits-item__descr {
  min-height: 145px;
}

body.home #blockVideoOnHomePage .video_link,
body.home .comments .slider-item,
body.home .info .form-wrap,
body.home .feedback .form-wrap {
  border-radius: 14px;
  overflow: hidden;
}

body.home #blockVideoOnHomePage img,
body.home .comments img {
  border-radius: 12px;
}

body.home .comments {
  background: linear-gradient(180deg, #f4f8fa 0%, #ffffff 100%);
  padding-bottom: 70px;
  padding-top: 62px;
}

body.home .comments-title-wrap {
  font-family: Arial, Helvetica, sans-serif;
  margin-bottom: 28px;
}

body.home .comments-title-wrap::after {
  display: none;
}

body.home .comments-title {
  color: var(--home-navy);
  font-size: clamp(52px, 6vw, 78px);
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: 1;
}

body.home .comments-title-descr {
  color: var(--home-muted);
  font-size: 16px;
  margin: 8px 0 0;
}

body.home .comments-slider-wrap {
  margin: 0 auto;
  max-width: 1160px;
  position: relative;
}

body.home .comments-slider-wrap > a {
  text-decoration: none;
}

body.home .comments-slider-wrap > a h2 {
  color: var(--home-navy);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 34px;
}

body.home .comments .slider-item {
  align-items: center;
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 18px;
  box-sizing: border-box;
  box-shadow: 0 18px 48px rgba(12, 54, 84, .10);
  display: grid !important;
  gap: 38px;
  grid-template-columns: 270px minmax(0, 1fr);
  margin: 8px 0 30px;
  min-height: 350px;
  padding: 30px;
}

body.home .comments .slider-item-img-wrap {
  text-align: center;
}

body.home .comments .slider-item-img {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

body.home .comments .slider-item__name {
  color: var(--home-navy);
  font-size: 18px;
  font-weight: 750;
  margin-top: 14px;
}

body.home .comments .slider-item__descr {
  box-sizing: border-box;
  color: #38546a;
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  padding: 0;
  width: 100% !important;
}

body.home .comments .slider-item__descr > a:not(.slider-item-categories__link) {
  color: transparent !important;
  display: inline-block;
  font-size: 0;
  margin: 8px 0 12px;
}

body.home .comments .slider-item__descr > a:not(.slider-item-categories__link) > * {
  color: transparent !important;
  font-size: 0 !important;
}

body.home .comments .slider-item__descr > a:not(.slider-item-categories__link)::after {
  color: var(--home-teal) !important;
  content: "Erfolgsgeschichte lesen →";
  font-size: 16px;
  font-weight: 750;
}

body.home .comments .slider-item-categories {
  border-top: 1px solid var(--home-line);
  margin-top: 18px;
  padding-top: 15px;
}

body.home .comments .slick-arrow {
  background-color: #fff !important;
  border: 1px solid var(--home-line) !important;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(12, 54, 84, .12);
  height: 48px;
  opacity: 1;
  width: 48px;
  z-index: 5;
}

body.home .comments-info {
  background: var(--home-pale);
  border-radius: 12px;
  color: var(--home-muted);
  margin-top: 25px;
  padding: 18px 24px;
}

body.home .info .form-wrap,
body.home .feedback .form-wrap {
  background: #fff;
  border: 1px solid var(--home-line);
  box-shadow: 0 16px 45px rgba(12, 54, 84, .09);
  padding-left: 28px;
  padding-right: 28px;
}

body.home .info .title,
body.home .benefits h2,
body.home .comments h2,
body.home .question .title {
  color: var(--home-navy);
  letter-spacing: -.02em;
}

body.home .ipser-home-faq details {
  background: #fff;
  border-color: var(--home-line);
  border-radius: 10px;
  box-shadow: 0 5px 18px rgba(12, 54, 84, .05);
  margin-bottom: 12px;
}

body.home .question-info-item:last-child {
  background: linear-gradient(145deg, var(--home-navy), #087a7b);
  border-radius: 14px;
  box-sizing: border-box;
  color: #fff;
  overflow: hidden;
  padding: 26px 22px;
  width: 100%;
}

body.home .question-info-item:last-child .question-info-item__title,
body.home .question-info-item:last-child .question-info-item__descr {
  color: #fff;
}

body.home .question-info-item:last-child .question-info-item__title {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 27px !important;
  line-height: 1.18 !important;
  margin: 0 auto 14px !important;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal !important;
}

body.home .question-info-item__btn,
body.home .btn.btn-default {
  border-radius: 8px;
}

@media (max-width: 991px) {
  body.home #top_form_home_page > .container > .row {
    grid-template-columns: 1fr;
  }

  body.home #top_form_home_page #main_video_block,
  body.home #top_form_home_page .main__descr {
    grid-column: 1;
    grid-row: auto;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
  }

  body.home #top_form_home_page .main__descr {
    margin-top: 0 !important;
  }

  body.home .process-item__descr,
  body.home .benefits-item__descr {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  body.home #top_form_home_page {
    padding-bottom: 26px;
  }

  body.home #top_form_home_page > .container > .row {
    gap: 18px;
  }

  body.home #top_form_home_page .main__descr > div,
  body.home .ipser-home-intro__inner,
  body.home .info .form-wrap,
  body.home .feedback .form-wrap {
    border-radius: 12px;
    padding-left: 18px;
    padding-right: 18px;
  }

  body.home .ipser-home-intro {
    padding-top: 22px;
  }

  body.home h2.steps_to_successful_application {
    font-size: 28px;
    margin-top: 38px;
  }

  body.home .comments {
    padding-bottom: 46px;
    padding-top: 46px;
  }

  body.home .comments .slider-item {
    display: block !important;
    margin: 8px 0 24px;
    min-height: 0;
    padding: 20px;
  }

  body.home .comments .slider-item-img-wrap {
    display: block !important;
    margin: 0 auto 24px;
    max-width: 240px;
  }

  body.home .comments .slider-item__descr {
    display: block !important;
    font-size: 16px;
    max-width: none;
    width: 100% !important;
  }
}
