/* «Техписатели в век ИИ» — the landing at /ai/ and /ai/en/ (source/ai/index.html.erb,
   source/ai/en/index.html.erb; both link this file through their frontmatter
   page_css:). Every class starts with ai- so nothing here touches the rest of the
   site; the site's own styles (header, footer, the contact form) stay in main.css. */
.ai-landing {
  color: #333;
  font-family: "ProximaNovaLight", Helvetica, Arial, sans-serif;
}

/* Top and bottom only: a horizontal margin here would outrank a list's own
   "margin: 0 auto" (.ai-services__list) and pin it to the left on wide screens. */
.ai-landing ul {
  list-style: none;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
}

.ai-section-title {
  font-family: "ProximaNovaLight", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 35px;
  line-height: 1.2;
  text-align: center;
  margin: 0 0 45px;
}

/* hero */
.ai-hero {
  background: #f6f9fb;
  padding: 28px 15px 20px;
  text-align: center;
}

.ai-hero__inner {
  max-width: 1020px;
  margin: 0 auto;
}

.ai-lang {
  display: inline-flex;
  margin-bottom: 32px;
  border: 1px solid #d3e2e7;
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
}

.ai-lang__link,
.ai-lang__link:visited {
  padding: 7px 18px;
  font-family: "ProximaNovaReg", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1;
  color: #606c6f;
  text-decoration: none;
}

.ai-lang__link:hover {
  color: #1bbabc;
}

.ai-lang__link[aria-current="true"],
.ai-lang__link[aria-current="true"]:hover {
  background: #1bbabc;
  color: #fff;
}

.ai-hero__title {
  max-width: 760px;
  margin: 0 auto 24px;
  font-family: "ProximaNovaLight", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 1.2;
}

.ai-hero__lead {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 20px;
  line-height: 1.5;
  color: #606c6f;
}

.ai-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px 80px;
}

.ai-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ai-stats__value {
  font-family: "ProximaNovaBold", Helvetica, Arial, sans-serif;
  font-size: 35px;
  line-height: 1.1;
  color: #1bbabc;
}

.ai-stats__label {
  width: 220px;
  max-width: 100%;
  font-size: 16px;
  line-height: 1.4;
  color: #606c6f;
}

/* the coloured announcement bar */
.ai-announce {
  background: #1bbabc;
  color: #fff;
  padding: 32px 15px;
}

.ai-announce__inner {
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 40px;
}

.ai-announce__text {
  flex: 0 1 640px;
}

.ai-announce__title {
  margin: 0 0 6px;
  font-family: "ProximaNovaBold", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 25px;
  line-height: 1.3;
}

.ai-announce__text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.ai-announce__button,
.ai-announce__button:visited {
  display: inline-block;
  padding: 20px 40px;
  border-radius: 6px;
  background: #ed595c;
  color: #fff;
  font-family: "ProximaNovaReg", Helvetica, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.ai-announce__button:hover {
  background: #d94f52;
  color: #fff;
}

/* the hero illustration (source/ai/_illustration.erb): a wide desk scene under
   the lead, standing on the hero's bottom edge like the home page's header photo */
.ai-illustration {
  max-width: 760px;
  margin: 8px auto 0;
}

.ai-illustration svg {
  display: block;
  width: 100%;
  height: auto;
}

/* services */
.ai-services {
  background: #f6f9fb;
  padding: 90px 15px 80px;
}

.ai-services__list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-service {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 25px 35px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 4px 0 #d3e2e7;
}

.ai-service__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e3f5f5;
}

.ai-service__icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.ai-service__body {
  flex: 1 1 auto;
  min-width: 0;
}

.ai-service__title {
  margin: 0 0 6px;
  font-family: "ProximaNovaReg", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
}

.ai-service__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: #606c6f;
}

.ai-service__button,
.ai-service__button:visited {
  flex: none;
  padding: 5px 20px;
  border: 1px solid #ed595c;
  border-radius: 3px;
  color: #ed595c;
  font-family: "ProximaNovaReg", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
}

.ai-service__button:hover {
  background: #ed595c;
  color: #fff;
}

/* clients */
.ai-clients {
  padding: 90px 15px 80px;
}

.ai-clients__inner {
  max-width: 1020px;
  margin: 0 auto;
}

.ai-clients__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px 40px;
}

.ai-clients__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 85px;
}

.ai-clients__logo img {
  max-width: 100%;
  max-height: 55px;
  object-fit: contain;
}

@media screen and (max-width: 767px) {
  .ai-hero {
    padding-bottom: 12px;
  }

  .ai-hero__title {
    font-size: 30px;
  }

  .ai-hero__lead {
    font-size: 18px;
  }

  .ai-section-title {
    font-size: 30px;
    margin-bottom: 32px;
  }

  .ai-services,
  .ai-clients {
    padding-top: 56px;
    padding-bottom: 52px;
  }

  .ai-service {
    flex-wrap: wrap;
    padding: 24px;
  }

  .ai-service__icon {
    display: none;
  }

  .ai-service__body {
    flex-basis: 100%;
  }

  .ai-announce__button {
    padding: 18px 28px;
    font-size: 18px;
  }

  .ai-clients__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
  }
}
