.ipx-services {
  background: #f7f5f0;
}

.ipx-services-hero {
  height: 478px;
  position: relative;
  overflow: hidden;
}

.ipx-services-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ipx-services-hero .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fbf9f0e6 0%, #fbf9f0c9 43%, transparent 68%);
  backdrop-filter: blur(7px);
  mask-image: linear-gradient(90deg, #000 0%, #000 48%, transparent 70%);
}

.ipx-services-hero .ipx-ru-shell {
  position: relative;
  padding-top: 46px;
}

.tag {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 15px;
  background: #eef4ff;
  color: #67645e;
  font-size: 12px;
  font-weight: 650;
}

.ipx-services h1 {
  margin: 20px 0 0;
  font-size: 38px;
  line-height: 47px;
}

.ipx-services-hero p {
  margin: 15px 0 20px;
  color: #67645e;
  font-size: 18px;
  line-height: 28px;
}

.ipx-s-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  min-height: 46px;
  height: auto;
  border-radius: 10px;
  background: #003db8;
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.ipx-services-hero small {
  margin-left: 14px;
  color: #67645e;
  font-size: 13px;
}

.ipx-services-main {
  padding: 45px 0 65px;
}

.ipx-services h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}

.intro {
  margin: 12px 0 28px;
  color: #5f6f86;
  font-size: 16px;
}

.primary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.primary-cards article,
.other-cards article {
  height: auto;
  background: #fffdfc;
  border: 1px solid #ded7ca;
  border-radius: 20px;
}

.primary-cards article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 304px;
  padding: 23px;
  position: relative;
}

.primary-cards article > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #eef4ff;
  color: #003db8;
}

.primary-cards h3 {
  margin: 20px 0 0;
  font-size: 21px;
  line-height: 26px;
  overflow-wrap: break-word;
}

.primary-cards p,
.other-cards p {
  color: #5f6f86;
  font-size: 14px;
  line-height: 22px;
  overflow-wrap: break-word;
}

.primary-cards a {
  position: static;
  margin-top: auto;
  padding-top: 18px;
  color: #003db8;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.other-title {
  margin-top: 58px !important;
  font-size: 30px !important;
}

.other-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
}

.other-cards article {
  display: flex;
  min-width: 0;
  min-height: 142px;
  gap: 12px;
  padding: 18px;
  color: #003db8;
}

.other-cards article > span {
  flex: 0 0 auto;
}

.other-cards article > div {
  min-width: 0;
}

.other-cards h3 {
  margin: 0;
  color: #10213f;
  font-size: 16px;
  overflow-wrap: break-word;
}

.other-cards p {
  margin: 12px 0;
}

.services-cta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 26px;
  padding: 17px 23px;
  border: 1px solid #ded7ca;
  border-radius: 18px;
  background: #f5eedf;
}

.services-cta > span {
  font-size: 36px;
  color: #003db8;
}

.services-cta h3 {
  margin: 0;
  font-size: 20px;
  overflow-wrap: break-word;
}

.services-cta p {
  margin: 8px 0 0;
  color: #5f6f86;
  font-size: 14px;
  overflow-wrap: break-word;
}

.services-cta .ipx-s-button {
  margin-left: auto;
  width: 230px;
  min-height: 44px;
  justify-content: center;
}

/* The shared tablet header rules precede its base rules; keep this page's header contained. */
@media (min-width: 701px) and (max-width: 900px) {
  body:has(.ipx-services) .ipx-ru-head nav,
  body:has(.ipx-services) .ipx-ru-lang {
    display: none;
  }

  body:has(.ipx-services) .ipx-ru-wa,
  body:has(.ipx-services) .ipx-ru-tg {
    width: 42px;
    height: 42px;
    padding: 9px;
    font-size: 0;
  }

  body:has(.ipx-services) .ipx-ru-wa img,
  body:has(.ipx-services) .ipx-ru-tg img {
    width: 22px;
    height: 22px;
  }

  body:has(.ipx-services) .ipx-ru-head details {
    display: block;
    position: relative;
  }

  body:has(.ipx-services) .ipx-ru-head summary {
    list-style: none;
  }

  body:has(.ipx-services) .ipx-ru-head summary::-webkit-details-marker {
    display: none;
  }

  body:has(.ipx-services) .ipx-ru-head details > div {
    position: absolute;
    right: 0;
    top: 35px;
    z-index: 4;
    width: 160px;
    padding: 8px;
    background: #fff;
    border: 1px solid #dce5f1;
  }

  body:has(.ipx-services) .ipx-ru-head details:not([open]) > div {
    display: none;
  }

  body:has(.ipx-services) .ipx-ru-head details a {
    display: block;
    padding: 8px;
    color: #10213f;
    text-decoration: none;
  }
}

@media (max-width: 600px) {
  .ipx-services-hero {
    height: 990px;
  }

  .ipx-services-hero > img {
    object-position: center bottom;
  }

  .ipx-services-hero .veil {
    height: 470px;
    background: #fbf9f0ba;
    mask-image: none;
  }

  .ipx-services-hero .ipx-ru-shell {
    padding-top: 26px;
  }

  .ipx-services h1 {
    margin-top: 18px;
    font-size: 29px;
    line-height: 36px;
  }

  .ipx-services-hero p {
    margin-top: 15px;
    font-size: 16px;
    line-height: 24px;
  }

  .ipx-services-hero p br {
    display: none;
  }

  .ipx-services-hero .ipx-s-button {
    position: absolute;
    top: 828px;
    width: 350px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .ipx-services-hero small {
    position: absolute;
    top: 889px;
    margin: 0;
    font-size: 12px;
  }

  .ipx-services-main {
    padding: 28px 0 45px;
  }

  .ipx-services h2 {
    font-size: 28px;
  }

  .intro {
    font-size: 14px;
  }

  .primary-cards,
  .other-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .primary-cards article {
    min-height: 220px;
    padding: 17px 17px 15px 81px;
  }

  .primary-cards article > span {
    position: absolute;
    left: 17px;
    top: 17px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .primary-cards h3 {
    margin: 0;
    font-size: 17px;
    line-height: 21px;
  }

  .primary-cards p {
    margin: 10px 0;
    font-size: 12px;
    line-height: 18px;
  }

  .primary-cards a {
    max-width: 100%;
    padding-top: 12px;
    font-size: 11px;
  }

  .other-title {
    margin-top: 40px !important;
    font-size: 25px !important;
  }

  .other-cards article {
    min-height: 126px;
    padding: 17px;
  }

  .other-cards h3 {
    font-size: 16px;
  }

  .other-cards p {
    font-size: 13px;
    line-height: 19px;
  }

  .services-cta {
    display: block;
    padding: 17px;
    margin-top: 24px;
  }

  .services-cta > span {
    float: left;
    margin-right: 10px;
  }

  .services-cta h3 {
    font-size: 17px;
  }

  .services-cta p {
    clear: both;
    padding-top: 10px;
    font-size: 13px;
  }

  .services-cta .ipx-s-button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
  }
}
