/* ============================================================
 * dobrie-sosedi.css — Styles for the "Добрые Соседи" case page
 * Loaded after _base.css
 * ============================================================ */

/* ── Hero ────────────────────────────────────────────────────── */
.ds-hero {
  background: linear-gradient(135deg, #0f1f3d 0%, #1a3a6e 60%, #1e4d8c 100%);
  color: #fff;
  padding: 5rem 0 4rem;
}

.ds-hero__content {
  max-width: 800px;
}

.ds-hero__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
}

.ds-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.ds-hero__subtitle {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.ds-hero__quote {
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid rgba(255, 255, 255, 0.4);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  font-style: italic;
  font-size: 0.9375rem;
  margin-bottom: 2rem;
  max-width: 680px;
}

.ds-hero__quote-author {
  font-style: normal;
  font-size: 0.8125rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

.ds-hero__cta {
  margin-bottom: 2.5rem;
}

.ds-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.ds-hero__tag {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
}

.ds-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
}

.ds-hero__stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.375rem;
}

.ds-hero__stat-label {
  font-size: 0.8125rem;
  opacity: 0.7;
  line-height: 1.4;
}

/* ── Problem: before/after ───────────────────────────────────── */
.ds-narrative {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  color: var(--color-gray, #4b5563);
}

.ds-narrative p + p {
  margin-top: 1rem;
}

.ds-before-after {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.ds-before-after__card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-top: 3px solid #e5e7eb;
}

.ds-before-after__card--after {
  border-top-color: var(--color-primary, #2563eb);
}

.ds-before-after__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: #9ca3af;
}

.ds-before-after__label--after {
  color: var(--color-primary, #2563eb);
}

.ds-before-after__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.ds-before-after__list li {
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #374151;
}

.ds-before-after__card--after .ds-before-after__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary, #2563eb);
}

.ds-before-after__card:not(.ds-before-after__card--after) .ds-before-after__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d1d5db;
}

/* ── Math section ────────────────────────────────────────────── */
.ds-math-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.ds-math-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.ds-math-step__num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-primary, #2563eb);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ds-math-step__title {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.375rem;
}

.ds-math-step__content p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

.ds-math-result {
  background: #111827;
  color: #fff;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.ds-math-result__text {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-bottom: 0.75rem;
}

.ds-math-result__quote {
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
}

/* ── Solution: evolution ────────────────────────────────────── */
.ds-evolution {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.ds-evolution__item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.ds-evolution__marker {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.ds-evolution__marker--v1 {
  background: #e0e7ff;
  color: #3730a3;
}

.ds-evolution__marker--v2 {
  background: #d1fae5;
  color: #065f46;
}

.ds-evolution__title {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.ds-evolution__content p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 0.5rem;
}

.ds-evolution__note {
  font-size: 0.8125rem;
  color: #6b7280;
  background: #f9fafb;
  border-left: 3px solid #d1d5db;
  padding: 0.625rem 0.875rem;
  border-radius: 0 6px 6px 0;
  margin-top: 0.5rem;
}

/* ── Bot logic: category tabs ───────────────────────────────── */
.ds-categories__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.ds-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.ds-cat-tab:hover {
  background: #e5e7eb;
}

.ds-cat-tab--active {
  background: var(--color-primary, #2563eb);
  color: #fff;
}

.ds-cat-panel {
  display: none;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.ds-cat-panel--active {
  display: block;
}

.ds-cat-panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 640px) {
  .ds-cat-panel__grid {
    grid-template-columns: 1fr;
  }
}

.ds-cat-panel__kw-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.ds-cat-panel__kw-title.mt-4 {
  margin-top: 1rem;
}

.ds-cat-panel__kw-list {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.6;
}

/* Bot bubble */
.ds-bot-bubble {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: #f9fafb;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.875rem;
}

.ds-bot-bubble__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ds-bot-bubble__icon--warning { background: #fee2e2; color: #dc2626; }
.ds-bot-bubble__icon--yellow  { background: #fef3c7; color: #b45309; }
.ds-bot-bubble__icon--blue    { background: #dbeafe; color: #2563eb; }
.ds-bot-bubble__icon--orange  { background: #ffedd5; color: #c2410c; }
.ds-bot-bubble__icon--green   { background: #d1fae5; color: #065f46; }

.ds-bot-bubble__text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #1f2937;
}

.ds-bot-action-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: default;
  color: #fff;
}

.ds-bot-action-btn--red    { background: #dc2626; }
.ds-bot-action-btn--yellow { background: #d97706; }
.ds-bot-action-btn--blue   { background: #2563eb; }
.ds-bot-action-btn--orange { background: #ea580c; }

/* Throttle note */
.ds-throttle-note {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.ds-throttle-note svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #9ca3af;
}

/* ── Flow ────────────────────────────────────────────────────── */
.ds-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.ds-flow::before {
  content: '';
  position: absolute;
  left: 1.125rem;
  top: 2.25rem;
  bottom: 2.25rem;
  width: 2px;
  background: #e5e7eb;
}

.ds-flow__step {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 2rem;
  position: relative;
}

.ds-flow__step:last-child {
  padding-bottom: 0;
}

.ds-flow__step-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-primary, #2563eb);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.ds-flow__step-title {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.ds-flow__step-body p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.65;
  margin: 0;
}

.ds-flow__note {
  font-size: 0.8125rem;
  color: #6b7280;
  background: #f9fafb;
  border-left: 3px solid var(--color-primary, #2563eb);
  padding: 0.625rem 0.875rem;
  border-radius: 0 6px 6px 0;
  margin-top: 0.75rem;
}

.ds-flow__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.ds-flow__cat {
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 6px;
  padding: 0.25rem 0.625rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.ds-flow__cat--other {
  background: #f3f4f6;
  color: #6b7280;
}

.ds-flow__statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.875rem;
}

.ds-flow__status {
  border-radius: 20px;
  padding: 0.3rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.ds-flow__status--done     { background: #d1fae5; color: #065f46; }
.ds-flow__status--active   { background: #dbeafe; color: #1d4ed8; }
.ds-flow__status--pending  { background: #f3f4f6; color: #6b7280; }
.ds-flow__status--optional { background: #fef3c7; color: #92400e; }

/* ── CRM Features ────────────────────────────────────────────── */
.ds-crm-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.ds-crm-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.ds-crm-feature__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--color-primary, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ds-crm-feature__title {
  font-weight: 600;
  color: #111827;
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
}

.ds-crm-feature__content p {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

/* ── Results metrics ─────────────────────────────────────────── */
.ds-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.ds-metric {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.ds-metric__value {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary, #2563eb);
}

.ds-metric__suffix {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary, #2563eb);
  margin-bottom: 0.375rem;
}

.ds-metric__label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.375rem;
  line-height: 1.4;
}

.ds-results-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.ds-results-summary__title {
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  font-size: 1.0625rem;
}

.ds-results-summary__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.ds-results-summary__list li {
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.5;
}

.ds-results-summary__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary, #2563eb);
}

/* ── Why-us grid ─────────────────────────────────────────────── */
.ds-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.ds-why-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.ds-why-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--color-primary, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.ds-why-card__title {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.ds-why-card p {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

/* ── CTA section ─────────────────────────────────────────────── */
.section--cta {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f1f3d 100%);
  color: #fff;
}

.section--cta .section__title {
  color: #fff;
}

.section--cta .section__subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.ds-cta-actions {
  margin-top: 1.5rem;
}
