/* ============================================================
   SERP Landing page — /tools/positions/
   serp-landing.css v4
   Uses: styles.css (btn, container), tools-styles.css (breadcrumb, mt-feature)
   ============================================================ */

/* ── Page wrapper ────────────────────────────────────────── */
.sp-page {
  padding-bottom: 80px;
}

/* ── Hero ────────────────────────────────────────────────── */
.sp-hero {
  padding-top: 100px;
  padding-bottom: 56px;
}
.sp-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.sp-hero__h1 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  line-height: 1.2;
}
.sp-hero__desc {
  font-size: 17px;
  color: #6B7280;
  line-height: 1.6;
  margin: 0 0 20px;
}
.sp-hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 32px;
}
.sp-hero__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.sp-hero__hint {
  font-size: 13px;
  color: #9CA3AF;
  margin: 0;
}

/* ── Mock UI ─────────────────────────────────────────────── */
.sp-hero__right {
  display: flex;
  justify-content: center;
}
.sp-mock {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  font-size: 13px;
}
.sp-mock__bar {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sp-mock__dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.sp-mock__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.sp-mock__dot--red    { background: #FF5F56; }
.sp-mock__dot--yellow { background: #FFBD2E; }
.sp-mock__dot--green  { background: #27C93F; }
.sp-mock__project {
  font-size: 12px;
  color: #6B7280;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sp-mock__summary {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #f3f4f6;
}
.sp-mock__stat {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid #f3f4f6;
}
.sp-mock__stat:last-child { border-right: none; }
.sp-mock__stat-val {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
.sp-mock__stat-val--blue  { color: #4EA0D2; }
.sp-mock__stat-val--green { color: #16A34A; }
.sp-mock__stat-val--red   { color: #DC2626; }
.sp-mock__stat-label {
  font-size: 11px;
  color: #9CA3AF;
}
.sp-mock__table-wrap {
  overflow-x: auto;
}
.sp-mock__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.sp-mock__table thead th {
  background: #f9fafb;
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  color: #9CA3AF;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.sp-mock__table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}
.sp-mock__table tbody tr:last-child td { border-bottom: none; }
.sp-mock__pos {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  min-width: 24px;
  text-align: center;
  padding: 1px 6px;
  border-radius: 4px;
}
.sp-mock__pos--top  { background: #DCFCE7; color: #16A34A; }
.sp-mock__pos--mid  { background: #FFF7ED; color: #C2410C; }
.sp-mock__pos--low  { background: #FEF2F2; color: #DC2626; }
.sp-mock__up      { color: #16A34A; font-weight: 600; font-size: 12px; }
.sp-mock__down    { color: #DC2626; font-weight: 600; font-size: 12px; }
.sp-mock__neutral { color: #9CA3AF; font-size: 12px; }
.sp-mock__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  font-size: 11px;
  color: #9CA3AF;
}
.sp-mock__auto { color: #16A34A; }

/* ── Sections ────────────────────────────────────────────── */
.sp-section {
  padding-top: 64px;
  padding-bottom: 64px;
}
.sp-section--gray {
  background: #f9fafb;
  border-radius: 20px;
  margin-top: 8px;
}
.sp-section__title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.sp-section__desc {
  font-size: 16px;
  color: #6B7280;
  margin: 0 0 32px;
}

/* ── Steps ───────────────────────────────────────────────── */
.sp-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
  margin-top: 36px;
}
.sp-step {
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  box-sizing: border-box;
}
.sp-step__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  padding-top: 28px; /* align with top of card */
}
.sp-step__num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-step__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.sp-step__desc {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
  margin: 0;
}

/* ── Feature cards ───────────────────────────────────────── */
.sp-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.sp-feature-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  padding: 20px;
}
.sp-feature-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-feature-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}
.sp-feature-card__desc {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.5;
  margin: 0;
}

/* ── Pricing ─────────────────────────────────────────────── */
.sp-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.sp-price-card {
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  padding: 20px 28px;
}
.sp-price-card__label {
  font-size: 12px;
  font-weight: 600;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 8px;
}
.sp-price-card__val {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}
.sp-price-card__per {
  font-size: 12px;
  color: #9CA3AF;
}
.sp-pricing__example {
  font-size: 15px;
  color: #374151;
  background: var(--surface);
  border: 1px solid #dbeafe;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px;
}
.sp-pricing__note {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.6;
  margin: 24px 0 24px;
}
.sp-pricing__cta { margin-top: 8px; }

/* ── FAQ ─────────────────────────────────────────────────── */
.sp-faq-section .sp-section__title { text-align: center; }
.sp-faq__list {
  max-width: 760px;
  margin: 0 auto;
}
.sp-faq__list .faq-item {
  border: none;
  border-bottom: 1px solid #E2E8F0;
  border-radius: 0;
  margin-bottom: 0;
  overflow: visible;
}
.sp-faq__list .faq-item:first-child { border-top: 1px solid #E2E8F0; }
.sp-faq__list .faq-item__question {
  padding: 20px 36px 20px 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  position: relative;
  display: block;
  color: var(--text);
}
.sp-faq__list .faq-item__question::-webkit-details-marker { display: none; }
.sp-faq__list .faq-item__question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--primary);
  transition: transform 0.25s;
  line-height: 1;
}
.sp-faq__list .faq-item[open] .faq-item__question::after {
  transform: translateY(-50%) rotate(45deg);
}
.sp-faq__list .faq-item__answer {
  padding: 0 0 20px;
  font-size: 15px;
  color: #6B7280;
  line-height: 1.65;
  margin: 0;
}

/* ── Pricing: popular badge + who-for ───────────────────── */
.sp-price-card {
  position: relative;
}
.sp-price-card--popular {
  border: 2px solid var(--primary);
}
.sp-price-card__badge {
  position: absolute;
  top: -11px;
  left: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 100px;
  letter-spacing: .3px;
  white-space: nowrap;
}
.sp-price-card__who {
  font-size: 12px;
  color: #9CA3AF;
  line-height: 1.5;
  border-top: 1px solid #F3F4F6;
  padding-top: 10px;
  margin-top: 10px;
}

/* ── Pricing calculator ──────────────────────────────────── */
.sp-calc {
  background: var(--surface);
  border: 1px solid #dbeafe;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 20px;
}
.sp-calc__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
}
.sp-calc__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  margin-bottom: 0;
}
.sp-calc__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sp-calc__label {
  font-size: 13px;
  color: #6B7280;
  font-weight: 500;
}
.sp-calc__input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  box-sizing: border-box;
}
.sp-calc__input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(78,160,210,.1); }
.sp-calc__result {
  font-size: 15px;
  color: var(--text);
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid #E5E7EB;
}
.sp-calc__result strong { color: var(--primary); font-size: 20px; font-weight: 700; }
.sp-calc__hint {
  font-size: 12px;
  color: #9CA3AF;
  margin: 6px 0 0;
  line-height: 1.5;
}
.sp-calc__hint a { color: var(--primary); text-decoration: none; }
.sp-calc__hint a:hover { text-decoration: underline; }

/* ── SEO text block: h3 styles ───────────────────────────── */
.tools-hub__seo h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 28px 0 8px;
}
.tools-hub__seo h3:first-of-type { margin-top: 20px; }

/* ── Mock note ───────────────────────────────────────────── */
.sp-mock__note {
  font-size: 11px;
  color: #9CA3AF;
  text-align: center;
  margin: 8px 0 0;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .sp-features { grid-template-columns: repeat(2, 1fr); }
  .sp-hero__inner { gap: 40px; }
}

@media (max-width: 768px) {
  .sp-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sp-hero__right { display: none; } /* скрываем mock на мобайле */
  .sp-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .sp-step__arrow {
    display: none;
  }
  .sp-step {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }
  .sp-step__num {
    width: 36px;
    height: 36px;
    font-size: 18px;
    border-radius: 10px;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .sp-pricing { grid-template-columns: 1fr; }
  .sp-calc__fields { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .sp-hero { padding-top: 80px; padding-bottom: 40px; }
  .sp-features { grid-template-columns: 1fr; }
  .sp-hero__cta { flex-direction: column; align-items: flex-start; }
  .sp-hero__cta .btn { width: 100%; justify-content: center; }
  .sp-section { padding-top: 48px; padding-bottom: 48px; }
}
