/* Направления /ai-helper, /moderation, /text-analysis, /media-processing (макет Solutions.dc.html).
   Только токены кита --st-*: в тёмной теме страницы меняются сами. */

.solutions {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 24px;
  padding-bottom: 64px;
}

.solutions h2 {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--st-color-foreground);
}

.solutions h3 {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: normal;
  color: var(--st-color-foreground);
}

.solutions p {
  margin: 0;
}

/* Строка-вкладки: ссылки на четыре направления, текущая подчёркнута цветом --st-color-primary */
.solutions-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--st-color-border);
}

.solutions-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  color: var(--st-color-muted-foreground);
  text-decoration: none;
}

.solutions-tabs a:hover {
  color: var(--st-color-foreground);
}

.solutions-tabs a[aria-current="page"] {
  border-bottom-color: var(--st-color-primary);
  color: var(--st-color-foreground);
  font-weight: 600;
}

.solutions-tabs a:focus-visible {
  outline: 2px solid var(--st-color-ring);
  outline-offset: -2px;
  border-radius: var(--st-radius-md);
}

.solutions-tab-path {
  font-size: 12px;
  font-weight: 400;
  color: var(--st-color-muted-foreground);
}

/* Первый экран с призывом */
.solutions-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 760px;
}

.solutions-hero h1 {
  margin: 0;
  font-size: 38px;
  line-height: 44px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--st-color-foreground);
  text-wrap: balance;
}

.solutions-hero p {
  font-size: 16px;
  line-height: 25px;
  color: var(--st-color-muted-foreground);
}

.solutions-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Раздел: заголовок и содержимое */
.solutions-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Сетка карточек возможностей и примеров */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.solutions-feature,
.solutions-case {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  background: var(--st-color-card);
  color: var(--st-color-card-foreground);
  border: 1px solid var(--st-color-border);
  border-radius: var(--st-radius-xl);
}

.solutions-feature p,
.solutions-case p {
  font-size: 14px;
  line-height: 21px;
  color: var(--st-color-muted-foreground);
}

.solutions-feature ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.solutions-feature li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 19px;
  color: var(--st-color-muted-foreground);
}

.solutions-feature li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--st-color-primary);
}

.solutions-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--st-radius-lg);
  background: var(--st-color-accent);
  color: var(--st-color-accent-foreground);
}

/* Шаги «Как начать работу» и «Как это работает» */
.solutions-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.solutions-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  background: var(--st-color-card);
  color: var(--st-color-card-foreground);
  border: 1px solid var(--st-color-border);
  border-radius: var(--st-radius-xl);
}

.solutions-steps p {
  margin-top: 2px;
  font-size: 13px;
  line-height: 19px;
  color: var(--st-color-muted-foreground);
}

.solutions-step-number {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--st-color-accent);
  color: var(--st-color-accent-foreground);
  font-size: 13px;
  font-weight: 700;
}

/* Поддерживаемые форматы — строки в карточке */
.solutions-formats {
  margin: 0;
  overflow: hidden;
  background: var(--st-color-card);
  color: var(--st-color-card-foreground);
  border: 1px solid var(--st-color-border);
  border-radius: var(--st-radius-xl);
}

.solutions-formats > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--st-color-border);
  font-size: 14px;
  line-height: 21px;
}

.solutions-formats > div:last-child {
  border-bottom: 0;
}

.solutions-formats dt {
  width: 140px;
  font-weight: 600;
}

.solutions-formats dd {
  margin: 0;
  min-width: 0;
  color: var(--st-color-muted-foreground);
}

/* Призыв — тёмный блок; в тёмной теме токены меняются местами, и блок светлеет */
.solutions-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 24px 28px;
  border-radius: var(--st-radius-2xl);
  background: var(--st-color-foreground);
  color: var(--st-color-background);
}

.solutions-cta > div {
  flex: 1 1 320px;
  max-width: 720px;
}

.solutions .solutions-cta h2 {
  font-size: 20px;
  color: var(--st-color-background);
}

.solutions-cta p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 21px;
  color: var(--st-color-background);
  opacity: 0.85;
}

.solutions-cta .btn-primary:focus-visible {
  outline-color: var(--st-color-background);
}

@media (max-width: 768px) {
  .solutions {
    gap: 28px;
    padding-top: 16px;
  }

  .solutions-tab-path {
    display: none;
  }

  .solutions-hero h1 {
    font-size: 30px;
    line-height: 36px;
  }

  .solutions-grid,
  .solutions-steps {
    grid-template-columns: 1fr;
  }

  .solutions-formats dt {
    width: auto;
  }

  .solutions-cta {
    padding: 18px;
  }
}
