/* pres-landing.css — блоки SEO-лендингов презентаций.
 *
 * Преимущества в шапке, карточки шагов, сценарии использования, макет
 * ИИ-редактора, отзывы, чипы форматов и FAQ. Общее для
 * /prezentaciya-po-tekstu и /chatgpt-dlya-prezentaciy.
 *
 * Форма — pres-form.css, обложки-примеры и карусель — pres-showcase.css.
 */

* { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
html, body { background: #fff; color: var(--ink); overflow-x: hidden; }
body { -webkit-text-size-adjust: 100%; }

/* ───────── Hero advantages ───────── */
.adv-list {
  display: grid;
  gap: 12px;
}
.adv-item {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px;
  align-items: center;
  line-height: 1.5;
  font-size: 0.9375rem;
  color: #334155;
}
.adv-icon {
  width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  background: #fff;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .adv-list { grid-auto-flow: column; gap: 28px; }
}

/* ───────── Steps ───────── */
.step-card {
  position: relative;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 22px;
  padding: 22px 22px 24px;
  display: grid;
  grid-template-rows: max-content max-content 1fr;
  gap: 14px;
  height: 100%;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15,23,42,.06);
  border-color: #e2e8f0;
}
.step-badge {
  justify-self: start;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 600;
}
.step-title { font-size: 1.0625rem; font-weight: 600; margin-bottom: 4px; }
.step-desc { color: #64748b; font-size: 0.9375rem; line-height: 1.55; }

/* Пунктирная стрелка между шагами — только на десктопе, где карточки
   стоят в ряд. На мобиле они идут колонкой и связка не нужна. */
.step-item { position: relative; }
.step-item + .step-item::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: 24px; /* ширина промежутка grid (gap-6) */
  border-top: 2px dashed #ddd6fe;
  display: none;
}
@media (min-width: 1024px) {
  .step-item + .step-item::before { display: block; }
}

/* Иллюстрация внутри шага: макет интерфейса в тех же цветах, что и форма */
.step-figure {
  background: #f8f9fb;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  padding: 14px;
  height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
}
.fig-line { height: 7px; border-radius: 4px; background: #e2e8f0; }
.fig-line.accent { background: #ddd6fe; }
.fig-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.fig-pill {
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #475569;
  white-space: nowrap;
}
.fig-pill.on { background: #ede9fe; border-color: #ddd6fe; color: var(--brand); font-weight: 600; }
.fig-swatches { display: flex; gap: 6px; }
.fig-swatch { width: 34px; height: 24px; border-radius: 5px; border: 1px solid #e5e7eb; }
.fig-swatch.sel { outline: 2px solid var(--brand); outline-offset: 1px; }
.fig-slides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fig-slide {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  aspect-ratio: 16 / 10;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fig-slide i { display: block; height: 3px; border-radius: 2px; background: #e2e8f0; }
.fig-slide i:first-child { background: #c4b5fd; width: 70%; }

/* ───────── Needs ───────── */
.need-card {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 22px;
  padding: 24px 22px;
  display: grid;
  grid-template-rows: max-content 1fr max-content;
  height: 100%;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.need-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15,23,42,.06);
  border-color: #e2e8f0;
}
.need-title { font-size: 1.0625rem; font-weight: 600; margin-bottom: 6px; }
.need-desc { color: #64748b; font-size: 0.9375rem; line-height: 1.55; }
.need-figure {
  margin-top: 18px;
  border-radius: 14px;
  padding: 16px 20px;
  display: grid;
  justify-items: center;
}
.need-figure .need-slide {
  width: 100%;
  max-width: 190px;
  aspect-ratio: 16 / 10;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(15,23,42,.08);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
}
.need-slide .nh { font-size: 9px; font-weight: 700; color: #0f172a; line-height: 1.2; }
.need-slide .nb { height: 3px; border-radius: 2px; background: #e2e8f0; }
.need-slide .nbars { display: flex; align-items: flex-end; gap: 4px; margin-top: auto; height: 26px; }
.need-slide .nbars span { flex: 1; border-radius: 2px 2px 0 0; }
.need-figure--study { background: #d4fbe9; }
.need-figure--report { background: #e7e1ff; }
.need-figure--talk { background: #f1f5f9; }
.need-figure--promo { background: #ffe4da; }

/* ───────── AI editor mock ───────── */
.editor-mock {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 50px -20px rgba(15,23,42,.22);
}
.editor-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f8f9fb;
  border-bottom: 1px solid #eef0f4;
}
.editor-bar i { width: 10px; height: 10px; border-radius: 50%; display: block; background: #e2e8f0; }
.editor-bar i:nth-child(1) { background: #fca5a5; }
.editor-bar i:nth-child(2) { background: #fcd34d; }
.editor-bar i:nth-child(3) { background: #86efac; }
.editor-body { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 14px; }
.editor-thumbs { display: flex; flex-direction: column; gap: 8px; }
.editor-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #f8f9fb;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.editor-thumb i { height: 3px; border-radius: 2px; background: #e2e8f0; display: block; }
.editor-thumb.active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(124,58,237,.16); }
.editor-thumb.active i:first-child { background: #c4b5fd; }
.editor-canvas {
  border: 1px solid #eef0f4;
  border-radius: 10px;
  padding: 22px 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 190px;
}
.editor-canvas h3 { font-size: 1.0625rem; font-weight: 700; color: #0f172a; }
.editor-canvas .ec-accent { width: 48px; height: 3px; border-radius: 2px; background: var(--brand); }
.editor-canvas .ec-line { height: 6px; border-radius: 3px; background: #eef0f4; }
.editor-chat {
  margin-top: auto;
  align-self: flex-end;
  max-width: 82%;
  background: #ede9fe;
  border: 1px solid #ddd6fe;
  color: #5b21b6;
  font-size: 0.8125rem;
  line-height: 1.45;
  padding: 9px 13px;
  border-radius: 14px 14px 4px 14px;
}
@media (max-width: 640px) {
  .editor-body { grid-template-columns: 60px 1fr; gap: 10px; padding: 10px; }
  .editor-canvas { padding: 16px; min-height: 160px; }
  .editor-chat { max-width: 100%; font-size: 0.75rem; }
}

/* ───────── Reviews ───────── */
.review-card {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 22px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .25s, box-shadow .25s;
}
.review-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(15,23,42,.06); }
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
  margin-bottom: 14px;
}
.review-text { color: #1f2937; line-height: 1.6; font-size: 0.9375rem; margin-bottom: 18px; }
.review-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: #94a3b8;
}
.review-meta .review-name { font-weight: 600; color: #0f172a; font-size: 0.9375rem; }

/* ───────── Formats ───────── */
.format-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
}
.format-chip svg { color: var(--brand); }

/* ───────── FAQ ───────── */
.faq-item {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item:hover { border-color: #e2e8f0; box-shadow: 0 4px 14px rgba(15,23,42,.04); }
.faq-item + .faq-item { margin-top: 10px; }
.faq-summary {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 600;
  color: #0f172a;
  font-size: 0.9375rem;
  list-style: none;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-chevron { color: #94a3b8; transition: transform .25s ease; flex-shrink: 0; }
details[open] .faq-chevron { transform: rotate(180deg); color: var(--brand); }
.faq-content { padding: 0 22px 20px; color: #475569; font-size: 0.9375rem; line-height: 1.65; }

@media (max-width: 768px) {
  .step-card, .need-card { border-radius: 18px; padding: 20px 18px; }
  .review-card { padding: 22px 20px; border-radius: 18px; }
  .review-text { font-size: 0.875rem; }
}
@media (max-width: 640px) {
  .faq-summary { padding: 14px 18px; font-size: 0.875rem; }
  .faq-content { padding: 0 18px 16px; font-size: 0.875rem; }
}

/* Header: tighten action buttons on very narrow widths */
@media (max-width: 380px) {
  header .flex.items-center.gap-2 .inline-flex { padding-left: 10px; padding-right: 10px; font-size: 0.8125rem; }
}
@media (max-width: 767px) {
  footer .flex-col > div { text-align: center; }
  footer .flex.flex-wrap.items-center.justify-center { gap: 12px 18px; font-size: 0.8125rem; }
}
