/* ============================================================
   WAVE-2 — split-сравнение, trust-документы, logo-soup партнёров
   ============================================================ */

/* === VS: «Сами vs Через ВИГ» === */
.vs {
  padding: clamp(64px, 8vw, 110px) 0;
  background: var(--bg);
  position: relative;
}
.vs .wrap { position: relative; z-index: 1; }
.vs .sec-head { max-width: 720px; margin-bottom: 32px; }

.vs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.vs-col {
  padding: 26px 28px 28px;
  display: flex; flex-direction: column;
}
.vs-col.is-bad {
  background: linear-gradient(180deg, rgba(200, 74, 61, 0.04), rgba(200, 74, 61, 0.02));
}
.vs-col.is-good {
  background: linear-gradient(180deg, rgba(200, 168, 110, 0.08), rgba(200, 168, 110, 0.03));
  border-left: 1px solid var(--line);
}

.vs-h {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.vs-h-tag {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.vs-col.is-bad  .vs-h-tag { background: rgba(200, 74, 61, 0.12);  color: #c84a3d; }
.vs-col.is-good .vs-h-tag { background: rgba(200, 168, 110, 0.16); color: var(--accent); }
.vs-h-title {
  display: flex; flex-direction: column; gap: 2px;
}
.vs-h-title b {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.vs-h-title span {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.vs-mid {
  background: var(--bg);
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.vs-mid .vs-mid-row {
  flex: 1;
  display: grid; place-items: center;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid var(--line-2);
  min-height: 70px;
  line-height: 1.3;
}
.vs-mid .vs-mid-row:last-child { border-bottom: 0; }
.vs-mid .vs-mid-head {
  background: var(--bg-3);
  min-height: 90px;
}

.vs-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
  display: flex; align-items: flex-start; gap: 10px;
  min-height: 70px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}
.vs-row:last-child { border-bottom: 0; }
.vs-row .vs-ic {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.vs-col.is-bad  .vs-ic { background: rgba(200, 74, 61, 0.14);  color: #c84a3d; }
.vs-col.is-good .vs-ic { background: rgba(34, 134, 58, 0.14);  color: #228638; }
.vs-row .vs-ic svg { width: 11px; height: 11px; fill: currentColor; }
.vs-row b {
  font-weight: 600;
  color: var(--ink);
}
.vs-row em {
  font-style: normal;
  color: var(--ink-3);
  font-size: 12px;
  display: block;
  margin-top: 2px;
}

@media (max-width: 860px) {
  .vs-grid {
    grid-template-columns: 1fr;
  }
  .vs-mid { display: none; }
  .vs-col.is-good { border-left: 0; border-top: 1px solid var(--line); }
  .vs-row::before {
    content: attr(data-param);
    font-size: 10px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-right: 8px;
    flex-shrink: 0;
  }
  .vs-row { flex-wrap: wrap; }
  .vs-row .vs-ic { order: -1; }
}

/* === TRUST-DOCS === */
.docs-trust {
  padding: clamp(64px, 8vw, 110px) 0;
  background: var(--bg-3);
  position: relative;
}
.docs-trust .wrap { position: relative; z-index: 1; }
.docs-trust .sec-head { max-width: 760px; margin-bottom: 36px; }

.dt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.dt-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 24px;
  display: flex; flex-direction: column;
  gap: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.dt-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px -22px rgba(31, 24, 12, 0.2);
}

.dt-thumb {
  aspect-ratio: 1.45 / 1;
  background:
    linear-gradient(135deg, rgba(31, 24, 12, 0.04) 25%, transparent 25%, transparent 50%, rgba(31, 24, 12, 0.04) 50%, rgba(31, 24, 12, 0.04) 75%, transparent 75%, transparent),
    linear-gradient(180deg, #fafaf5, #efe9df);
  background-size: 16px 16px, 100% 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.dt-thumb::before {
  content: "";
  position: absolute;
  top: 12px; left: 14px; right: 14px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.7;
}
.dt-thumb::after {
  content: "";
  position: absolute;
  top: 22px; left: 14px;
  width: 38%;
  height: 8px;
  background: var(--ink-3);
  opacity: 0.18;
  border-radius: 2px;
  box-shadow:
    0 14px 0 0 rgba(31, 24, 12, 0.13),
    0 26px 0 0 rgba(31, 24, 12, 0.10),
    0 38px 0 0 rgba(31, 24, 12, 0.08),
    0 50px 0 0 rgba(31, 24, 12, 0.06);
}

.dt-doc-name {
  position: relative;
  z-index: 2;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0.8;
  background: rgba(255, 253, 249, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 6px 16px;
  border-radius: 6px;
  border: 1px solid rgba(31, 24, 12, 0.1);
}

.dt-doc-stamp {
  position: absolute;
  bottom: 14px; right: 14px;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid #c84a3d;
  display: grid; place-items: center;
  color: #c84a3d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.1;
  background: rgba(200, 74, 61, 0.06);
  transform: rotate(-12deg);
  z-index: 3;
  opacity: 0.85;
}

.dt-meta {
  display: flex; flex-direction: column;
  gap: 6px;
}
.dt-meta h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.dt-meta p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.5;
}

.dt-bottom {
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #228638;
  letter-spacing: 0.02em;
}
.dt-bottom svg { width: 14px; height: 14px; fill: currentColor; }

.dt-foot {
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-2);
  text-align: center;
  letter-spacing: 0.01em;
}
.dt-foot a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .dt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .dt-grid { grid-template-columns: 1fr; }
}

/* === PARTNERS — logo soup === */
.partners {
  padding: clamp(50px, 6vw, 80px) 0;
  background: var(--bg);
  position: relative;
}
.partners .partners-head {
  text-align: center;
  margin-bottom: 26px;
}
.partners .partners-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.partners .partners-h {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  margin: 6px 0 0;
}

.partners-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.partner {
  display: grid;
  place-items: center;
  padding: 8px 16px;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.3s ease, transform 0.2s ease;
}
.partner:hover {
  filter: grayscale(0) opacity(1);
  transform: scale(1.04);
}
.partner svg { max-width: 100%; height: 28px; }
.partner span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.partner span small {
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.partners-note {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-3);
}
.partners-note b { color: var(--ink-2); font-weight: 600; }

@media (max-width: 900px) {
  .partners-row { grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 22px 0; }
}
@media (max-width: 480px) {
  .partners-row { grid-template-columns: repeat(2, 1fr); }
}

/* === CASES — кейсы клиентов === */
.cases {
  padding: clamp(64px, 8vw, 110px) 0;
  background: var(--bg-3);
  position: relative;
}
.cases .wrap { position: relative; z-index: 1; }
.cases .sec-head { max-width: 720px; margin-bottom: 36px; }

.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.cs-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 28px 28px;
  display: flex; flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.cs-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 24px 50px -28px rgba(31, 24, 12, 0.22);
}

.cs-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
}
.cs-type {
  display: flex; flex-direction: column;
  gap: 2px;
}
.cs-type-l {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.cs-type-n {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.cs-tag {
  font-size: 11px; font-weight: 600;
  padding: 5px 10px;
  background: rgba(200, 168, 110, 0.15);
  color: #8a6c30;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cs-body {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
}
.cs-body b {
  color: var(--ink);
  font-weight: 600;
}

.cs-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}
.cs-stat {
  display: flex; flex-direction: column; gap: 2px;
}
.cs-stat-v {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  line-height: 1;
}
.cs-stat-v sup {
  font-size: 12px;
  font-weight: 500;
  vertical-align: top;
  color: var(--ink-2);
  margin-left: 2px;
}
.cs-stat-l {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.cs-foot {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 8px;
  padding-top: 4px;
}
.cs-foot::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: #5dd96a;
}

@media (max-width: 760px) {
  .cs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cs-card { padding: 22px 22px 24px; }
  .cs-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cs-stat:nth-child(3) { grid-column: span 2; }
}

