body.compare-page,
body.niche-page {
  background: #020202;
}

.compare-page .container,
.niche-page .container {
  width: 100%;
  max-width: 1440px;
}

.compare-page h1,
.compare-page .section-title,
.niche-page .hero-title,
.niche-page .section-title {
  letter-spacing: 0 !important;
  text-wrap: balance;
}

.compare-page section.relative.pt-48 {
  padding-top: 138px;
  padding-bottom: 72px;
}

.compare-page section.relative.pt-48 h1 {
  max-width: 920px;
  margin-bottom: 24px !important;
  font-size: clamp(48px, 5.6vw, 80px) !important;
  line-height: 1 !important;
}

.compare-page section.relative.pt-48 p.text-xl {
  max-width: 720px;
  margin-bottom: 30px !important;
  font-size: 20px;
  line-height: 1.55;
}

.compare-page .section-title,
.niche-page .section-title {
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 0.98;
}

.compare-page .btn-primary-forge,
.compare-page .btn-stealth,
.niche-page .btn-primary-forge,
.niche-page .btn-stealth {
  min-height: 52px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.compare-page .grid:has(> .choice-card),
.compare-page .grid:has(> .pain-card) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.compare-page.compare-bitrix .grid:has(> .pain-card) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compare-page section.py-12 .grid,
.compare-page section.py-16 .grid:not(:has(> .pain-card)) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.compare-page .choice-card,
.compare-page .together-card,
.compare-page .pain-card {
  border-radius: 8px;
}

.compare-page .pain-card {
  min-height: 132px;
  padding: 26px !important;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.compare-page .pain-card p,
.compare-page .choice-card p,
.compare-page .together-card p,
.compare-page .cmp-table td {
  overflow-wrap: anywhere;
}

.compare-page .cmp-table {
  width: 100%;
  table-layout: fixed;
}

.compare-page .cmp-table th,
.compare-page .cmp-table td {
  line-height: 1.5;
}

.compare-page .cmp-table td:first-child {
  color: rgba(255, 255, 255, 0.78);
}

.niche-page section.relative.min-h-screen {
  min-height: 100svh;
  padding-top: 124px;
  padding-bottom: 72px;
}

.niche-page .hero-side-mask {
  background: linear-gradient(to right, #020202 34%, rgba(2, 2, 2, 0.78) 66%, rgba(2, 2, 2, 0.25) 100%);
}

.niche-page .hero-title {
  max-width: 980px;
  margin-bottom: 30px !important;
  font-size: clamp(54px, 6.2vw, 90px);
  line-height: 0.98;
}

.niche-page section.relative.min-h-screen p.text-xl {
  margin-bottom: 34px !important;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.5;
}

.niche-page section.py-16 .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.niche-page .grid.grid-cols-12:has(.step-line) {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(44px, 6vw, 80px);
}

.niche-page .grid.grid-cols-12:has(.step-line) > .col-span-12 {
  grid-column: auto !important;
}

.niche-page .grid.grid-cols-12:has(> .forge-card) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.niche-page .grid.grid-cols-12:has(> .forge-card) > .forge-card {
  grid-column: auto !important;
  min-width: 0;
}

.niche-page .forge-card {
  height: 100%;
  padding: clamp(24px, 2.4vw, 34px) !important;
  border-radius: 8px;
}

.niche-page .forge-card p,
.niche-page .forge-card li {
  line-height: 1.55;
}

.niche-page .forge-card .btn-primary-forge,
.niche-page .forge-card .btn-stealth {
  width: 100%;
  margin-top: auto;
}

.niche-page .space-y-3 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.niche-page .space-y-3 > * {
  margin-top: 0 !important;
}

@media (max-width: 980px) {
  .compare-page section.relative.pt-48 {
    padding-top: 112px;
    padding-bottom: 56px;
  }

  .compare-page section.relative.pt-48 h1 {
    font-size: clamp(38px, 11vw, 54px) !important;
    line-height: 1.04 !important;
  }

  .compare-page section.relative.pt-48 p.text-xl {
    font-size: 17px;
    line-height: 1.5;
  }

  .compare-page .section-title,
  .niche-page .section-title {
    font-size: clamp(32px, 10vw, 44px);
    line-height: 1.04;
  }

  .compare-page section.py-12 .grid,
  .compare-page section.py-16 .grid,
  .compare-page .grid:has(> .choice-card),
  .compare-page .grid:has(> .pain-card),
  .compare-page.compare-bitrix .grid:has(> .pain-card),
  .niche-page section.py-16 .grid,
  .niche-page .grid.grid-cols-12:has(.step-line),
  .niche-page .grid.grid-cols-12:has(> .forge-card) {
    grid-template-columns: 1fr;
  }

  .compare-page .cmp-table,
  .compare-page .cmp-table thead,
  .compare-page .cmp-table tbody,
  .compare-page .cmp-table tr,
  .compare-page .cmp-table th,
  .compare-page .cmp-table td {
    display: block;
    width: 100% !important;
  }

  .compare-page .cmp-table thead {
    display: none;
  }

  .compare-page .cmp-table tr {
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.018);
  }

  .compare-page .cmp-table td {
    padding: 14px 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    font-size: 14px;
  }

  .compare-page .cmp-table td:last-child {
    border-bottom: none !important;
  }

  .compare-page .cmp-table td:first-child {
    background: rgba(255, 255, 255, 0.035);
    font-weight: 700;
  }

  .compare-page .cmp-table td:nth-child(2)::before,
  .compare-page .cmp-table td:nth-child(3)::before {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.32);
  }

  .compare-amocrm .cmp-table td:nth-child(2)::before {
    content: "amoCRM";
  }

  .compare-bitrix .cmp-table td:nth-child(2)::before {
    content: "Битрикс24";
  }

  .compare-page .cmp-table td:nth-child(3)::before {
    content: "SalesWhisper";
    color: rgba(37, 99, 235, 0.8);
  }

  .niche-page section.relative.min-h-screen {
    min-height: auto;
    padding-top: 112px;
    padding-bottom: 64px;
    align-items: flex-start;
  }

  .niche-page .hero-side-mask {
    background: linear-gradient(to bottom, rgba(2, 2, 2, 0.84), rgba(2, 2, 2, 0.58) 58%, #020202 100%);
  }

  .niche-page .hero-title {
    margin-bottom: 24px !important;
    font-size: clamp(40px, 12vw, 56px);
    line-height: 1.02;
  }

  .niche-page section.relative.min-h-screen p.text-xl {
    margin-bottom: 28px !important;
    font-size: 17px;
    line-height: 1.48;
  }

  .niche-page section.relative.min-h-screen .flex.flex-wrap,
  .compare-page section.relative.pt-48 .flex.flex-wrap,
  .compare-page section.text-center .flex.flex-wrap,
  .niche-page section.text-center .flex.flex-wrap {
    flex-direction: column;
    gap: 12px;
  }

  .niche-page section.relative.min-h-screen .btn-primary-forge,
  .niche-page section.relative.min-h-screen .btn-stealth,
  .compare-page section.relative.pt-48 .btn-primary-forge,
  .compare-page section.relative.pt-48 .btn-stealth,
  .compare-page section.text-center .btn-primary-forge,
  .compare-page section.text-center .btn-stealth,
  .niche-page section.text-center .btn-primary-forge,
  .niche-page section.text-center .btn-stealth {
    width: min(100%, 340px);
  }

  .niche-page .forge-card {
    padding: 24px !important;
  }
}

@media (max-width: 420px) {
  .compare-page .container,
  .niche-page .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .compare-page .pain-card {
    padding: 22px !important;
  }
}
