/*
 * services.css — process section styles only.
 *
 * Block 4 prep: legacy .services-section / .service-card stacked-cards rules
 * removed together with the duplicate "Услуги" section on the homepage.
 * Pricing now lives in #pricing (.pricing-* classes in components.css).
 */

/* ==========================================================================
 * Process section — 3 steps grid.
 *
 * Block 4 polish: 3-column grid on desktop, single column on mobile.
 * .process-step--accent marks step 2 (instant + free AI verdict).
 * .process-step__badge is the "Tasuta / Free / Бесплатно" pill (top corner).
 * ========================================================================== */

/* ---------- Section shell ---------- */

.process-section {
  padding: 80px 0;
}

.process-section__header {
  text-align: center;
  margin-bottom: 48px;
  padding: 0 24px;
}

.process-section__header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 12px;
}

.process-section__header p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0;
}

/* ---------- Steps wrapper (3-col desktop, 1-col mobile) ---------- */

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 24px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

/* ---------- Step card ---------- */

.process-step {
  position: relative;
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

/* ---------- Accent variant (Demo 24 h) ---------- */

.process-step--accent {
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 32px rgba(108, 92, 231, 0.2);
}

.process-step--accent .process-step__icon {
  background: rgba(108, 92, 231, 0.15);
  color: var(--accent);
}

/* ---------- Badge ("Kiirendus") ---------- */

.process-step__badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-family: var(--font-body);
  line-height: 1.4;
}

/* ---------- Icon ---------- */

.process-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
  margin-bottom: 20px;
}

.process-step__icon svg {
  width: 24px;
  height: 24px;
}

/* ---------- Header (title + duration) ---------- */

.process-step__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.process-step__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

/* ---------- Bullets ---------- */

.process-step__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.process-step__bullets li {
  position: relative;
  padding-left: 22px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}

/* Checkmark marker via CSS mask — no icon fonts (anti-rule §5) */
.process-step__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}

/* ---------- Mobile (<768px): collapse 3-col grid to single column ---------- */

@media (max-width: 767px) {
  .process-section {
    padding: 56px 0;
  }
  .process-section__header {
    margin-bottom: 32px;
    padding: 0 16px;
  }
  .process-steps {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 20px;
  }
  .process-step {
    padding: 24px;
  }
  .process-step__title {
    font-size: 17px;
  }
  .process-step__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
  }
  .process-step__icon svg {
    width: 20px;
    height: 20px;
  }
}

