/* Посадочные страницы продукта (tools/build_pages.py). Подключается после styles.css
   и использует его токены и компоненты: шапка, подвал, hero, FAQ, CTA и мокапы те же,
   здесь — только то, чего на главной нет. */

/* ------------------------------ Hero ------------------------------ */
/* #hero на главной без нижнего отступа (снизу мокап) и с overflow: hidden — без
   отступа по id кнопки здесь обрезались бы краем секции */
#hero.page-hero {
  padding-bottom: clamp(64px, 7vw, 104px);
}
.page-hero__title {
  max-width: 940px;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.08;
}
.page-hero .hero-subtitle {
  max-width: 720px;
}
.page-hero__visual {
  max-width: 980px;
}

.crumbs {
  margin-bottom: 22px;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
}
.crumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.35);
}
.crumbs a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}
.crumbs a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ------------------------------ Sections ------------------------------ */
.page-section {
  padding: clamp(56px, 6.5vw, 92px) 0;
  background-color: #ffffff;
}
.page-section--tint {
  background-color: var(--paper);
}
.page-section--dark {
  background-color: var(--ink-950);
  background-image: radial-gradient(900px 420px at 50% 0%, rgba(30, 74, 40, 0.75), transparent 70%);
  color: rgba(255, 255, 255, 0.82);
}

/* Текстовый блок: подробное описание направления */
.prose h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.prose p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}
.prose p + p {
  margin-top: 16px;
}
.prose a,
.fcard a,
.ccard a,
.question_section_answer a {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Возможности */
.fgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.fcard {
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  background-color: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.page-section--tint .fcard {
  border-color: transparent;
}
.fcard__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background-color: var(--green-100);
  color: var(--green-600);
}
.fcard__icon--blue {
  background-color: var(--blue-100);
  color: var(--blue-500);
}
.fcard__icon--orange {
  background-color: var(--orange-100);
  color: #c26410;
}
.fcard__icon--violet {
  background-color: var(--violet-100);
  color: var(--violet-500);
}
.fcard h3 {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}
.fcard p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Мокап интерфейса рядом с текстом */
.showcase {
  margin: 0;
}
.showcase__caption {
  margin-top: 14px;
  font-size: 13.5px;
  text-align: center;
  color: var(--text-muted);
}

/* Как это работает */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  background-color: var(--card);
  border: 1px solid var(--line);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--ink-900);
  color: var(--green-300);
  font-weight: 800;
  font-size: 15px;
}
.step h3 {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
}
.step p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Преимущества по ролям (тёмная секция) */
.bgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.bcard {
  padding: 30px 28px;
  border-radius: var(--radius-lg);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.bcard h3 {
  color: #ffffff;
  font-size: 19px;
  font-weight: 700;
}
.bcard ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}
.bcard li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.55;
}
.bcard li svg {
  flex: none;
  margin-top: 4px;
  color: var(--green-300);
}

/* Примеры использования */
.cgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.ccard {
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  background-color: var(--card);
  border: 1px solid var(--line);
}
.ccard__tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background-color: var(--green-100);
  color: var(--green-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ccard h3 {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}
.ccard p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Связанные разделы */
.rgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.rcard {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  background-color: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.rcard:hover {
  border-color: var(--green-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.rcard h3 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}
.rcard p {
  flex: 1;
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}
.rcard__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--green-700);
}

/* Блоки главной на вложенной странице */
.page-trust {
  padding-top: clamp(40px, 5vw, 64px);
}
.page-faq {
  padding-top: clamp(56px, 6.5vw, 92px);
}
.page-cta {
  padding-top: clamp(24px, 3vw, 40px);
}

/* 404 */
.page-hero--404 {
  min-height: 70vh;
}
.page-404__links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  list-style: none;
  margin-top: 36px;
}
.page-404__links a {
  color: rgba(255, 255, 255, 0.8);
}

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 1080px) {
  .fgrid,
  .bgrid,
  .cgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .fgrid,
  .bgrid,
  .cgrid,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .prose p {
    font-size: 16px;
  }
  .page-hero .hero-actions .btn {
    width: 100%;
  }
}

/* ------------------------------ Мокап ИИ-скрининга ------------------------------ */
.ai-demo {
  max-width: 460px;
  margin: 0 auto;
  padding: 26px;
  border-radius: 26px;
  background: linear-gradient(150deg, rgba(23, 48, 29, 0.97), rgba(9, 24, 14, 0.99));
  border: 1px solid rgba(141, 198, 63, 0.16);
  box-shadow: 0 30px 90px rgba(8, 27, 14, 0.35), 0 0 70px rgba(141, 198, 63, 0.08);
  text-align: left;
}
.ai-demo__cand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ai-demo__who {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ai-demo__who strong {
  font-size: 16px;
}
.ai-demo__who em {
  font-style: normal;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.ai-demo__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(141, 198, 63, 0.14);
  border: 1px solid rgba(141, 198, 63, 0.3);
}
.ai-demo__score b {
  font-size: 22px;
  line-height: 1;
  color: #b7e186;
}
.ai-demo__score i {
  margin-top: 3px;
  font-style: normal;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}
.ai-demo__label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-300);
}
.ai-demo__summary {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.ai-demo__summary li {
  position: relative;
  padding-left: 22px;
}
.ai-demo__summary li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-300);
}
.ai-demo__summary li.is-ask::before {
  background: var(--orange-400);
}
.ai-demo__chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.ai-demo__bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.88);
}
.ai-demo__bubble--me {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  background: rgba(37, 211, 102, 0.18);
  color: #c9f5da;
}
.ai-demo__stage {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

/* на главной бейдж входит в H1, здесь он стоит над заголовком отдельно */
.page-hero__title {
  margin-top: 22px;
}
