:root {
  --ai-ink: #000000;
  --ai-warm: #f1eae2;
  --ai-width: 1280px;
}

.ai-services-page main {
  display: block;
  color: var(--ai-ink);
}

.ai-container {
  width: min(var(--ai-width), calc(100% - 112px));
  margin-inline: auto;
}

.ai-eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.ai-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

.ai-rule {
  width: 58px;
  height: 2px;
  display: block;
  background: currentColor;
}

.ai-hero {
  min-height: 500px;
  display: flex;
  align-items: center;
  background-color: #f0dfcd;
  background-image: url('/img/olya-website-assets/ai-services/gradient-hero.png'), url('/img/olya-website-assets/ai-services/hero-img-ai-01.webp');
  background-position: center, center;
  background-size: 100% 100%, cover;
  background-repeat: no-repeat;
}

.ai-hero__content {
  padding-block: 64px;
}

.ai-hero h1,
.ai-heading h2 {
  margin: 0;
  font-family: 'Forum', serif;
  font-size: clamp(42px, 4.2vw, 58px);
  font-weight: 400;
  line-height: 1.12;
}

.ai-hero h1 {
  max-width: 620px;
  margin-top: 10px;
}

.ai-hero .ai-rule {
  margin: 28px 0 30px;
}

.ai-hero .ai-body {
  max-width: 570px;
}

.ai-offerings {
  padding: 70px 0 105px;
  background: #ffffff;
}

.ai-heading {
  text-align: center;
}

.ai-heading h2 {
  margin-top: 10px;
}

.ai-heading .ai-rule {
  margin: 25px auto 0;
}

.ai-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 12px;
  margin-top: 44px;
}

.ai-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #d7d3ce;
  background: #ffffff;
}

.ai-card__image {
  width: 100%;
  aspect-ratio: 800 / 350;
  display: block;
  object-fit: cover;
}

.ai-card__content {
  position: relative;
  flex: 1;
  padding: 62px 32px 28px;
}

.ai-card__icon {
  position: absolute;
  top: 0;
  left: 24px;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
}

.ai-card__icon img {
  width: auto;
  height: auto;
  max-width: 72px;
  max-height: 72px;
  display: block;
}

.ai-card h3 {
  min-height: 2.6em;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.ai-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.ai-why {
  padding: 88px 0 92px;
  background: var(--ai-warm);
}

.ai-why .ai-heading {
  max-width: 970px;
}

.ai-why .ai-body {
  max-width: 920px;
  margin: 32px auto 0;
}

@media (max-width: 900px) {
  .ai-container {
    width: min(var(--ai-width), calc(100% - 64px));
  }

  .ai-hero {
    background-position: center, 62% center;
  }

  .ai-hero__content {
    padding-right: 35%;
  }

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

@media (max-width: 640px) {
  .ai-container {
    width: min(var(--ai-width), calc(100% - 40px));
  }

  .ai-hero {
    min-height: 560px;
    align-items: flex-end;
    background-image: linear-gradient(to right, rgba(241, 226, 210, 0.96) 0%, rgba(241, 226, 210, 0.88) 55%, rgba(241, 226, 210, 0.28) 100%), url('/img/olya-website-assets/ai-services/gradient-hero.png'), url('/img/olya-website-assets/ai-services/hero-img-ai-01.webp');
    background-position: center, center, 65% center;
    background-size: cover, 100% 100%, cover;
  }

  .ai-hero__content {
    padding: 52px 0;
  }

  .ai-hero h1 br {
    display: none;
  }

  .ai-offerings {
    padding: 58px 0 72px;
  }

  .ai-cards {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .ai-card__content {
    padding-inline: 24px;
  }

  .ai-why {
    padding: 64px 0 68px;
  }
}
