/* Simplified article layout for AI GPT blog posts (en/ru). */

.post {
  padding-top: 110px;
}

.post__head {
  padding-block: 56px 8px;
}

.post h1 {
  margin: 14px 0 0;
  max-width: 26ch;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.02;
}

.post__lede {
  margin: 20px 0 0;
  max-width: 46rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.7;
}

.post__meta {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.post__body {
  padding-block: 28px 72px;
}

.post__body h2 {
  margin: 48px 0 0;
  max-width: 28ch;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.08;
}

.post__body p {
  margin: 14px 0 0;
  max-width: 72ch;
  color: var(--ink-soft);
  line-height: 1.7;
}

.post__body ul {
  margin: 14px 0 0;
  padding-left: 1.25rem;
  max-width: 72ch;
  color: var(--ink-soft);
  line-height: 1.7;
}

.post__body li {
  margin: 7px 0;
}

.post__body li::marker {
  color: var(--green);
  font-weight: 800;
}

.post__body a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post__shot {
  margin: 36px 0 0;
  max-width: 340px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 9 / 16;
  background: #eef2f6;
}

.post__shot picture {
  display: block;
  width: 100%;
  height: 100%;
}

.post__shot img {
  display: block;
  width: 100% !important;
  height: auto !important;
  min-height: 0;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  object-position: center;
}

.post__cta {
  margin-top: 56px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.post__cta h2 {
  margin-top: 0;
}

.post__cta p {
  margin: 12px 0 0;
  max-width: 62ch;
  color: var(--ink-soft);
  line-height: 1.65;
}

.post__cta .hero__actions {
  margin-top: 20px;
}

/* Article links are blue, except primary actions which must retain accessible white text. */
.post__body .button--primary,
.post__body .button--primary:hover,
.post__body .button--primary:focus-visible {
  color: #ffffff;
  text-decoration: none;
}

.post__body .button--secondary,
.post__body .button--secondary:hover,
.post__body .button--secondary:focus-visible {
  color: var(--ink);
  text-decoration: none;
}

.post .faq {
  margin-top: 48px;
}

.post-related {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.post-related h2 {
  margin-top: 0;
}

.post-related__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.post-related__links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
}

.post-related__links a:hover,
.post-related__links a:focus-visible {
  border-color: var(--line-strong);
}

@media (max-width: 820px) {
  .post {
    padding-top: 78px;
  }

  .post__head {
    padding-block: 40px 4px;
  }

  .post__body {
    padding-bottom: 56px;
  }

  .post__shot {
    max-width: 280px;
  }
}
