.comparison-table {
  overflow-x: auto;
  padding: 18px;
  background: rgba(255, 247, 239, 0.78);
}

.comparison-table table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 16px;
  color: #59627f;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  border-bottom: 1px solid rgba(102, 90, 125, 0.12);
}

.comparison-table thead th {
  color: #334062;
  font-size: 14px;
  font-weight: 900;
  background: rgba(236, 232, 255, 0.46);
}

.comparison-table th:first-child,
.comparison-table td:nth-child(2) {
  color: #334062;
  font-weight: 900;
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
  border-bottom: 0;
}

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

.faq-item {
  min-height: 132px;
  padding: 22px 24px;
}

.faq-item summary {
  color: #303a5d;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
}

.faq-item summary::marker {
  color: #8d78d6;
}

.faq-item p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

@media (max-width: 1120px) {
  .feature-grid-large,
  .architecture-grid,
  .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .architecture-map {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .map-rail {
    width: 10px;
    height: 28px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(132, 168, 255, 0.52), rgba(149, 224, 189, 0.52));
  }
}

@media (max-width: 980px) {
  .compare-row,
  .demo-section {
    grid-template-columns: 1fr;
  }

  .demo-section {
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .why-section,
  .demo-section,
  .architecture-section,
  .comparison-section,
  .faq-section {
    margin: 52px 0;
  }

  .compare-list,
  .demo-console,
  .architecture-map,
  .comparison-table {
    padding: 18px;
  }

  .compare-pain,
  .compare-solution {
    min-height: auto;
    padding: 18px;
  }

  .compare-pain strong,
  .compare-solution strong {
    font-size: 17px;
  }

  .feature-grid-large,
  .architecture-grid,
  .security-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .demo-step {
    grid-template-columns: 42px 1fr;
    min-height: 78px;
    padding: 15px;
  }

  .demo-step span {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  .demo-step strong {
    font-size: 17px;
  }

  .map-layer {
    min-height: 94px;
    padding: 18px;
    font-size: 16px;
  }

  .architecture-card,
  .faq-item {
    min-height: auto;
  }
}
