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

:root {
  --text: #1f1f24;
  --card-bg: #f6f7f9;
  --radius: 28px;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

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

.page {
  max-width: 1285px;
  margin: 0 auto;
  padding: 60px 40px 80px;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(to top, rgba(184, 60, 255, .95) 0%, rgba(184, 60, 255, 0) 65%),
    linear-gradient(90deg, #a974f6 0%, #6c86f6 55%, #0598e8 100%);
}

/* робот справа (с плавным растворением левого края) */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 46%;
  background: url("img/robot.png") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 60px 80px;
  max-width: 760px;
}

.hero__title {
  margin: 0 0 28px;
  font-size: 56px;
  line-height: 1.15;
  font-weight: 800;
}

.hero__text {
  margin: 0 0 40px;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 400;
}

.hero__btn {
  display: inline-block;
  padding: 16px 44px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.hero__btn:hover { background: #fff; color: #7a4bf5; }

/* ---------- CARDS ---------- */
.services {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 220px;
  padding: 36px 90px;
  border-radius: var(--radius);
  background: var(--card-bg);
}

.card__icon {
  flex: none;
  width: auto;
  height: 210px;
  object-fit: contain;
}

.card__body { max-width: 640px; }

.card__title {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
}

.card__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

/* VIP: иконка слева, текст справа */
.card--reverse { flex-direction: row; }
.card--reverse .card__body { text-align: right; max-width: 560px; }

/* обычные: текст слева, иконка справа */
.card:not(.card--reverse) { flex-direction: row-reverse; }
.card:not(.card--reverse) .card__body { margin-right: auto; }

/* ---------- ПЛАНШЕТ ---------- */
@media (max-width: 1024px) {
  .page { padding: 40px 24px 60px; }
  .hero { min-height: 460px; }
  .hero__content { padding: 48px 48px; }
  .hero__title { font-size: 42px; }
  .card { padding: 32px 48px; }
  .card__icon { height: 170px; }
  .card__title { font-size: 32px; }
}

/* ---------- МОБИЛЬНАЯ ВЕРСИЯ ---------- */
@media (max-width: 768px) {
  .page { padding: 12px 12px 40px; }

  .hero {
    min-height: 0;
    display: block;
    border-radius: 20px;
    text-align: center;
  }

  .hero::after {
    top: 70px;
    bottom: auto;
    right: -150px;
    width: 260px;
    height: 220px;
    background-position: center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
    opacity: .9;
  }

  .hero__content {
    max-width: none;
    padding: 36px 24px 40px;
  }

  .hero__title {
    margin: 0 auto 24px;
    max-width: 200px;
    font-size: 30px;
    line-height: 1.2;
  }

  .hero__text {
    margin: 0 auto 28px;
    font-size: 16px;
    line-height: 1.35;
  }

  .hero__btn { padding: 15px 36px; }

  .services { margin-top: 16px; gap: 14px; }

  .card,
  .card--reverse,
  .card:not(.card--reverse) {
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
    min-height: 0;
    padding: 28px 22px 32px;
    border-radius: 20px;
    text-align: center;
  }

  .card__icon { height: 100px; }

  .card__body,
  .card--reverse .card__body,
  .card:not(.card--reverse) .card__body {
    max-width: none;
    margin: 0;
    text-align: center;
  }

  .card__title { margin-bottom: 14px; font-size: 20px; }
  .card__text { font-size: 16px; line-height: 1.4; }
}
