/* Демо-ниши, шаги, тарифы, вопросы, форма заявки. */

/* Демо-ниши */
.demo-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.demo-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.demo-card__emoji {
  font-size: 34px;
  line-height: 1;
  margin-bottom: 14px;
}

.demo-card h3 {
  margin-bottom: 8px;
}

.demo-card p {
  color: var(--ink-soft);
  font-size: 15px;
  flex: 1;
  margin-bottom: 20px;
}

/* Как это работает */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 22px;
  border-top: 3px solid var(--brand-soft);
}

.step__num {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}

/* Тарифы */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.plan {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.plan--top {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.plan__badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
}

.plan h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

.plan__note {
  color: var(--ink-muted);
  font-size: 14px;
  min-height: 42px;
  margin-bottom: 18px;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 22px;
}

.plan__price b {
  font-size: 34px;
  letter-spacing: -0.03em;
}

.plan__price span {
  color: var(--ink-muted);
  font-size: 14px;
}

.plan ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 11px;
  flex: 1;
}

.plan li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--ink-soft);
}

.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--accent);
  font-weight: 700;
}

/* Вопросы */
.faq {
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--brand);
  font-size: 22px;
  line-height: 1;
  flex: none;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 96%;
}

/* Заявка */
.lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow);
}

.lead__art {
  text-align: center;
}

.lead__art img {
  width: min(320px, 82%);
  margin: 0 auto 18px;
  filter: drop-shadow(0 18px 34px rgba(35, 30, 140, 0.18));
}

.lead__art p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 auto;
  max-width: 320px;
}

.lead h2 {
  font-size: clamp(24px, 3vw, 32px);
}

.lead__sub {
  color: var(--ink-soft);
  margin-bottom: 26px;
}

@media (max-width: 940px) {
  .steps,
  .plans {
    grid-template-columns: repeat(2, 1fr);
  }

  .lead {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px;
  }

  .lead__art {
    order: -1;
  }

  .lead__art img {
    width: min(200px, 60%);
  }
}

@media (max-width: 720px) {
  .steps,
  .plans {
    grid-template-columns: 1fr;
  }

  .lead {
    padding: 24px;
  }
}
