/*! src: 0b2fa06c043ae5381d25bc10ec45e705 */

.max-comparison-section {
  /* Акцентная подложка колонки BotHelp выводится из --max-red, чтобы не заводить свой цвет */
  --max-cmp-accent-bg: rgba(255, 77, 77, 0.07);
  --max-cmp-accent-bg-hover: rgba(255, 77, 77, 0.11);
  box-sizing: border-box;
  padding-top: 50px;
  padding-bottom: 54px;
  background: var(--max-white);
  margin-bottom: 0;
}
.max-comparison-section .content {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  gap: 50px;
}
.max-comparison-header {
  max-width: 820px;
  margin: 0;
  text-align: center;
}
.max-comparison-title {
  margin: 0 0 16px;
  color: var(--max-text);
  font-family: var(--max-font-title);
  font-size: var(--max-fs-h1);
  font-weight: 700;
  line-height: var(--max-lh-tight);
}
.max-comparison-description {
  margin: 0 auto;
  max-width: 680px;
  color: var(--max-text);
  font-family: var(--max-font-body);
  font-size: var(--max-fs-md);
  font-weight: 400;
  line-height: var(--max-lh-md);
  opacity: 0.8;
}
.max-comparison-table {
  box-sizing: border-box;
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
}
.max-comparison-table th,
.max-comparison-table td {
  box-sizing: border-box;
  padding: 20px;
  vertical-align: middle;
  text-align: left;
  border-bottom: 1px solid var(--max-border);
  border-left: 1px solid var(--max-border);
}
.max-comparison-table th:last-child,
.max-comparison-table td:last-child {
  border-right: 1px solid var(--max-border);
}
.max-comparison-table thead th {
  background: var(--max-bg-card);
  border-top: 1px solid var(--max-border);
}
.max-comparison-table tbody th {
  font-weight: normal;
  text-align: left;
}
.max-comparison-table__col-label {
  width: 290px;
}
.max-comparison-table thead th.max-comparison-table__col-accent,
.max-comparison-table td.max-comparison-table__col-accent {
  background: var(--max-cmp-accent-bg);
}
.max-comparison-table__th {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--max-text);
  font-family: var(--max-font-title);
  font-size: var(--max-fs-md);
  font-weight: 700;
  line-height: 21.6px;
  overflow-wrap: break-word;
}
.max-comparison-table__td {
  display: block;
  color: var(--max-text);
  font-family: var(--max-font-body);
  font-size: var(--max-fs-sm);
  font-weight: 400;
  line-height: 20px;
  overflow-wrap: break-word;
}
.max-comparison-table__td--bold {
  font-family: var(--max-font-title);
  font-weight: 700;
}
.max-comparison-table__value {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
/* Повторяет .max-badge-red страницы, но своим классом — чтобы блок был самостоятельным */
.max-comparison-table__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  background-color: var(--max-red);
  color: var(--max-white);
  font-family: var(--max-font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}
.max-comparison-table__check {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--max-red);
  color: var(--max-white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
@media (hover: hover) {
  .max-comparison-table tbody tr:hover th,
  .max-comparison-table tbody tr:hover td {
    background: var(--max-bg-card);
  }
  .max-comparison-table tbody tr:hover td.max-comparison-table__col-accent {
    background: var(--max-cmp-accent-bg-hover);
  }
}
/* ---------- Мобильная перестройка: как в .telegram-compare ---------- */
@media (max-width: 767px) {
  .max-comparison-section .content {
    gap: 30px;
  }
  .max-comparison-description {
    font-size: var(--max-fs-sm);
    line-height: var(--max-lh-body);
  }
  .max-comparison-table colgroup {
    display: none;
  }
  .max-comparison-table {
    display: block;
    width: 100%;
    table-layout: auto;
  }
  .max-comparison-table thead,
  .max-comparison-table tbody,
  .max-comparison-table thead tr,
  .max-comparison-table tbody tr {
    display: block;
    width: 100%;
  }
  .max-comparison-table thead tr {
    display: flex;
    flex-direction: row;
  }
  /* «Критерий» на мобильном не нужен — он уходит в полосу над значениями */
  .max-comparison-table thead th:first-child {
    display: none;
  }
  .max-comparison-table thead th {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px;
    border-top: 1px solid var(--max-border);
    border-bottom: 1px solid var(--max-border);
    border-left: 1px solid var(--max-border);
    text-align: left;
  }
  .max-comparison-table thead th:last-child {
    border-right: 1px solid var(--max-border);
  }
  .max-comparison-table thead .max-comparison-table__th {
    font-size: 14px;
    line-height: 16.8px;
    gap: 6px;
  }
  .max-comparison-table__badge {
    padding: 2px 8px;
    font-size: 11px;
    line-height: 16px;
  }
  .max-comparison-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
  }
  /* Критерий — полосой на всю ширину */
  .max-comparison-table tbody th {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    padding: 10px;
    background: var(--max-bg-card);
    border-left: 1px solid var(--max-border);
    border-right: 1px solid var(--max-border);
    border-bottom: 1px solid var(--max-border);
    text-align: left;
  }
  .max-comparison-table tbody th .max-comparison-table__td {
    font-size: var(--max-fs-sm);
    line-height: 19.2px;
  }
  .max-comparison-table tbody td {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 10px;
    border-left: 1px solid var(--max-border);
    border-bottom: 1px solid var(--max-border);
  }
  .max-comparison-table tbody td:last-child {
    border-right: 1px solid var(--max-border);
  }
  .max-comparison-table tbody td .max-comparison-table__td {
    font-size: 14px;
    line-height: 18px;
  }
  /* Ховер-подсветки на тач-устройствах быть не должно */
  .max-comparison-table tbody tr:hover th {
    background: var(--max-bg-card);
  }
  .max-comparison-table tbody tr:hover td {
    background: transparent;
  }
  .max-comparison-table tbody tr:hover td.max-comparison-table__col-accent {
    background: var(--max-cmp-accent-bg);
  }
}
