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

.ma-services {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: none !important;
  margin-right: 0;
  margin-left: -50vw;
  overflow-x: clip;
  overflow-y: visible;
  background: #fff;
  color: #172b42;
  font-family: 'a_AvanteInt Book', 'Avenir Next', Avenir, Arial, sans-serif;
  font-weight: 400;
}

.ma-services::before,
.ma-services::after,
.ma-services__container::before,
.ma-services__container::after,
.ma-services__final-inner::before,
.ma-services__final-inner::after {
  content: none !important;
  display: none !important;
}

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

.ma-services a {
  color: inherit;
  text-decoration: none;
}

.ma-services h1,
.ma-services h2,
.ma-services h3,
.ma-services p {
  margin-top: 0;
}

.ma-services__container {
  width: 100%;
  max-width: 1320px;
  padding-right: 32px;
  padding-left: 32px;
  margin-inline: auto;
}

.ma-services__hero {
  display: grid;
  grid-template-columns: 42.5% 57.5%;
  width: 100%;
  max-width: none;
  min-height: 510px;
  background: #fff;
}

.ma-services__hero-copy {
  position: relative;
  display: flex;
  align-items: center;
  padding: 66px clamp(42px, 5.4vw, 104px) 46px;
  background:
    radial-gradient(circle at 95% 50%, rgba(221, 226, 226, 0.48), transparent 38%),
    linear-gradient(95deg, #fff 0%, #fff 76%, #f5f6f5 100%);
}

.ma-services__breadcrumbs {
  position: absolute;
  top: 22px;
  left: clamp(42px, 5.4vw, 104px);
  margin-bottom: 0;
  color: #3f5062;
  font-size: 12px;
}

.ma-services__breadcrumbs span {
  margin-inline: 8px;
  color: #aeb7c0;
}

.ma-services__hero-inner {
  max-width: 610px;
}

.ma-services__hero h1 {
  margin-bottom: 14px;
  color: #172b42;
  font-size: clamp(36px, 3vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.ma-services__hero-subtitle {
  margin-bottom: 22px;
  color: #172b42;
  font-size: clamp(22px, 1.55vw, 30px);
  font-weight: 600;
  line-height: 1.2;
}

.ma-services__hero-description {
  max-width: 555px;
  margin-bottom: 27px;
  color: #172b42;
  font-size: 16px;
  line-height: 1.65;
}

.ma-services__hero-image,
.ma-services__audience-image {
  min-width: 0;
  overflow: hidden;
}

.ma-services__hero-image img,
.ma-services__audience-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ma-services__hero-image img {
  object-position: 55% center;
}

.ma-services__actions {
  display: flex;
  gap: 22px;
}

.ma-services__button {
  display: inline-flex;
  min-width: 205px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 28px;
  border-radius: 2px;
  font: 700 13px/1 'a_AvanteInt Book', 'Avenir Next', Avenir, Arial, sans-serif;
  letter-spacing: 0.025em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.ma-services__button--gold {
  border: 0;
  background: linear-gradient(105deg, #b58740, #d0a963);
  color: #fff !important;
  box-shadow: 0 7px 18px rgba(162, 118, 52, 0.18);
}

.ma-services__button--gold:hover {
  background: linear-gradient(105deg, #a67835, #c49a52);
}

.ma-services__button--outline {
  border: 1px solid #bd914c;
  background: #fff;
  color: #172b42 !important;
}

.ma-services__button--outline:hover {
  background: #f9f3e9;
}

.ma-services__audience {
  display: grid;
  width: 100%;
  max-width: 1320px;
  min-height: 560px;
  margin: 32px auto;
  overflow: hidden;
  border-top: 1px solid #edf0f2;
  border-bottom: 1px solid #edf0f2;
  background: #fff;
}

.ma-services__audience--left {
  grid-template-columns: 43% 57%;
}

.ma-services__audience--right {
  grid-template-columns: 57% 43%;
}

.ma-services__audience-image img {
  object-position: center;
}

.ma-services__audience-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px clamp(42px, 4.2vw, 84px);
}

.ma-services__eyebrow {
  margin-bottom: 12px;
  color: #334e68;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.ma-services__audience-content > h2 {
  max-width: 760px;
  margin-bottom: 12px;
  color: #172b42;
  font-size: clamp(28px, 2vw, 38px);
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: -0.02em;
}

.ma-services__intro {
  max-width: 780px;
  margin-bottom: 25px;
  color: #26394c;
  font-size: 15px;
  line-height: 1.55;
}

.ma-services__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 34px;
}

.ma-services__feature {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.ma-services__feature > img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.ma-services .ma-services__feature h3 {
  margin-bottom: 5px;
  color: #10283f;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.3 !important;
}

.ma-services__feature p {
  margin-bottom: 0;
  color: #26394c;
  font-size: 13px;
  line-height: 1.45;
}

.ma-services__section-actions {
  margin-top: 28px;
}

.ma-services__benefits {
  padding: 48px 0 52px;
  border-top: 1px solid #e4e9ed;
  border-bottom: 1px solid #e4e9ed;
  background: #fff;
  box-shadow: 0 1px 14px rgba(27, 46, 65, 0.04);
}

.ma-services__benefits h2 {
  margin-bottom: 34px;
  color: #172b42;
  font-size: clamp(28px, 1.85vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.ma-services__benefits-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 26px;
}

.ma-services__benefit {
  text-align: center;
}

.ma-services__benefit-icon {
  display: inline-grid;
  width: 52px;
  height: 52px;
  margin-bottom: 17px;
  place-items: center;
  border: 1.5px solid #233c55;
  border-radius: 50%;
  color: #bd914c;
}

.ma-services__benefit-icon svg {
  width: 24px;
  height: 24px;
}

.ma-services .ma-services__benefit h3 {
  min-height: 40px;
  margin-bottom: 8px;
  color: #10283f;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.4 !important;
}

.ma-services__benefit p {
  margin-bottom: 0;
  color: #26394c;
  font-size: 12px;
  line-height: 1.45;
}

.ma-services__final {
  padding: 52px 0;
  background:
    radial-gradient(circle at 62% 35%, rgba(64, 103, 131, 0.36), transparent 28%),
    linear-gradient(105deg, #173047 0%, #1d4059 54%, #17344d 100%);
  color: #fff;
}

.ma-services__final-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  gap: clamp(60px, 8vw, 150px);
  align-items: center;
  width: 100%;
  max-width: 1320px;
  padding-right: 32px;
  padding-left: 32px;
  margin-inline: auto;
}

.ma-services__final-copy h2 {
  margin-bottom: 21px;
  color: #fff;
  font-size: clamp(32px, 2.2vw, 43px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.ma-services__final-copy > p {
  max-width: 590px;
  margin-bottom: 26px;
  color: #fff;
  font-size: 15px;
  line-height: 1.6;
}

.ma-services__final-card {
  padding: 32px 38px;
  border: 1px solid rgba(208, 220, 230, 0.32);
  background: rgba(9, 35, 55, 0.16);
}

.ma-services__final-card ul {
  display: grid;
  gap: 18px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.ma-services__final-card li {
  display: flex;
  gap: 14px;
  align-items: center;
  color: #eef4f8;
  font-size: 14px;
  line-height: 1.4;
}

.ma-services__final-card li svg {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  padding: 7px;
  border: 1px solid rgba(216, 226, 234, 0.45);
  border-radius: 50%;
  color: #dfb66b;
}

.ma-services__final-card p {
  margin-bottom: 24px;
  color: #fff;
  font-size: 13px;
  line-height: 1.55;
}

.ma-services__modal[hidden] {
  display: none !important;
}

.ma-services__modal {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
}

.ma-services__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 37, 0.72);
}

.ma-services__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 510px);
  max-height: calc(100vh - 40px);
  padding: 32px;
  overflow: auto;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(7, 24, 39, 0.28);
  color: #172b42;
}

.ma-services .ma-services__dialog h2 {
  margin: 0 36px 10px 0;
  color: #172b42;
  font-size: 27px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.ma-services .ma-services__dialog > p {
  margin-bottom: 20px;
  color: #26394c;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.ma-services__dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #172b42;
  font: 300 30px/34px Arial, sans-serif;
  cursor: pointer;
}

.ma-services__form {
  display: grid;
  gap: 15px;
}

.ma-services__form label {
  display: grid;
  gap: 7px;
}

.ma-services .ma-services__form label > span {
  color: #172b42;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.ma-services__form input,
.ma-services__form textarea {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #cbd3da;
  border-radius: 2px;
  outline: none;
  background: #fff;
  color: #172b42;
  font: 400 15px/1.35 'a_AvanteInt Book', 'Avenir Next', Avenir, Arial, sans-serif !important;
}

.ma-services__form input {
  height: 43px;
}

.ma-services__form input:focus,
.ma-services__form textarea:focus {
  border-color: #bd914c;
  box-shadow: 0 0 0 2px rgba(189, 145, 76, 0.14);
}

.ma-services__form-submit {
  width: 100%;
  margin-top: 5px;
  font-size: 13px !important;
  line-height: 1.2 !important;
}

.ma-services__form-message {
  min-height: 20px;
  margin: 0;
  color: #172b42;
  font-size: 14px;
  line-height: 1.4;
}

.ma-services__form-message.is-error {
  color: #a12020;
}

.ma-services__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.ma-services-modal-open {
  overflow: hidden;
}

/* Защита модального окна от глобальных стилей шаблона Bitrix. */
#ma-services .ma-services__modal[hidden] {
  display: none !important;
}

#ma-services .ma-services__modal:not([hidden]) {
  position: fixed !important;
  z-index: 2147483000 !important;
  inset: 0 !important;
  display: grid !important;
  width: 100% !important;
  height: 100% !important;
  padding: 20px !important;
  place-items: center !important;
}

#ma-services .ma-services__modal-backdrop {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  background: rgba(10, 24, 37, 0.72) !important;
}

#ma-services .ma-services__dialog {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  width: min(100%, 510px) !important;
  max-width: 510px !important;
  max-height: calc(100vh - 40px) !important;
  margin: 0 !important;
  padding: 32px !important;
  overflow: auto !important;
  float: none !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: #fff !important;
  box-shadow: 0 24px 80px rgba(7, 24, 39, 0.28) !important;
}

#ma-services .ma-services__dialog-close {
  position: absolute !important;
  z-index: 2 !important;
  top: 14px !important;
  right: 16px !important;
  left: auto !important;
  display: block !important;
  width: 36px !important;
  min-width: 0 !important;
  height: 36px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  border: 0 !important;
  background: transparent !important;
  color: #172b42 !important;
  font: 300 30px/34px Arial, sans-serif !important;
  text-align: center !important;
}

#ma-services .ma-services__form {
  position: static !important;
  display: grid !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 15px !important;
  float: none !important;
}

#ma-services .ma-services__form label {
  position: static !important;
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 7px !important;
  float: none !important;
}

#ma-services .ma-services__form label > span {
  position: static !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

#ma-services .ma-services__form input:not(.ma-services__honeypot),
#ma-services .ma-services__form textarea {
  position: static !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  float: none !important;
  border: 1px solid #cbd3da !important;
  border-radius: 2px !important;
  background: #fff !important;
  color: #172b42 !important;
}

#ma-services .ma-services__form input:not(.ma-services__honeypot) {
  height: 43px !important;
}

#ma-services .ma-services__form textarea {
  height: 105px !important;
  min-height: 105px !important;
  resize: vertical !important;
}

#ma-services .ma-services__honeypot {
  display: none !important;
}

#ma-services .ma-services__form-submit {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 48px !important;
  margin: 5px 0 0 !important;
  padding: 13px 20px !important;
  float: none !important;
  text-align: center !important;
}

#ma-services .ma-services__form-message {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

@media (max-width: 1080px) {
  .ma-services__hero,
  .ma-services__audience--left,
  .ma-services__audience--right {
    grid-template-columns: 1fr 1fr;
  }

  .ma-services__hero-copy,
  .ma-services__audience-content {
    padding-inline: 42px;
  }

  .ma-services__breadcrumbs {
    left: 42px;
  }

  .ma-services__benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .ma-services__container {
    max-width: 680px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .ma-services__hero,
  .ma-services__audience--left,
  .ma-services__audience--right {
    display: flex;
    min-height: auto;
    flex-direction: column;
  }

  .ma-services__audience {
    width: calc(100% - 40px);
    margin-top: 24px;
    margin-bottom: 24px;
  }

  .ma-services__hero-copy {
    min-height: 500px;
    padding: 82px 22px 44px;
  }

  .ma-services__breadcrumbs {
    left: 22px;
  }

  .ma-services__hero-image,
  .ma-services__audience-image {
    height: min(72vw, 440px);
  }

  .ma-services__audience--right .ma-services__audience-image {
    order: -1;
  }

  .ma-services__audience-content {
    padding: 46px 22px 52px;
  }

  .ma-services__features {
    grid-template-columns: 1fr;
  }

  .ma-services__actions {
    flex-direction: column;
  }

  .ma-services__button {
    width: 100%;
  }

  .ma-services__benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 22px;
  }

  .ma-services__final-inner {
    grid-template-columns: 1fr;
    gap: 38px;
    max-width: 680px;
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 480px) {
  .ma-services__hero h1 {
    font-size: 37px;
  }

  .ma-services__hero-subtitle {
    font-size: 24px;
  }

  .ma-services__hero-description {
    font-size: 15px;
  }

  .ma-services__feature {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .ma-services__feature > img {
    width: 36px;
    height: 36px;
  }

  .ma-services__benefits-grid {
    grid-template-columns: 1fr;
  }

  .ma-services__benefit h3 {
    min-height: auto;
  }

  .ma-services__audience {
    width: calc(100% - 28px);
    margin-top: 18px;
    margin-bottom: 18px;
  }

  .ma-services__final-card {
    padding: 27px 22px;
  }

  .ma-services__dialog {
    padding: 24px;
  }

  #ma-services .ma-services__modal:not([hidden]) {
    padding: 12px !important;
  }

  #ma-services .ma-services__dialog {
    max-height: calc(100vh - 24px) !important;
    padding: 24px !important;
  }

  #ma-services .ma-services__dialog h2 {
    font-size: 23px !important;
  }
}
