/* Блок сравнения тарифов курса. Десктоп — матрица, мобильный — один тариф за раз. */

.tc-section {
  background-color: #F6F5F3;
}

.tc-header {
  margin-bottom: 32px;
}

/* Заголовки блоков на сайте — Lora 600, по левому краю */
.tc-header h2 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 48px;
  margin: 0;
  color: #171F26;
}

.tc-header .tc-subtitle {
  font-weight: 400;
  font-size: 18px;
  line-height: 26px;
  color: #52606D;
  max-width: 720px;
  margin: 12px 0 0;
}

.tc-card {
  background: #fff;
  border: 1px solid #EDEBE8;
  border-radius: 20px;
  overflow: hidden;
}

/* Обе раскладки в разметке, переключение через CSS. */
.tc-mobile {
  display: none;
}

/* ── Десктоп: матрица ─────────────────────────────────────── */

.tc-scroll {
  width: 100%;
  overflow-x: auto;
}

.tc-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.tc-table th,
.tc-table td {
  text-align: left;
  vertical-align: top;
  padding: 16px 20px;
}

.tc-head-row th {
  padding-top: 28px;
  padding-bottom: 24px;
  vertical-align: bottom;
}

.tc-corner {
  width: 30%;
}

/* Высота равна кнопке в шапке колонки: обе прижаты к низу ячейки,
   поэтому их середины совпадают и «Что входит» стоит вровень с кнопками. */
.tc-corner-title {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-weight: 700;
  font-size: 18px;
  line-height: 26px;
  color: #171F26;
}

.tc-corner-note {
  display: block;
  margin-top: 6px;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #52606D;
}

.tc-plan--popular {
  background: #FFFCF4;
}

.tc-plan-name {
  display: block;
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: #171F26;
}

/* Место под плашку резервируется во всех колонках, иначе названия тарифов
   стоят на разной высоте: там, где плашки нет, имя уезжает вверх. */
.tc-badge-slot {
  display: block;
  min-height: 24px;
  margin-bottom: 6px;
}

.tc-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  background: #F5B53D;
  font-weight: 600;
  font-size: 12px;
  line-height: 18px;
  color: #171F26;
  white-space: nowrap;
}

.tc-plan-subtitle {
  display: block;
  margin-top: 6px;
  /* Три строки: описание тарифа бывает длинным, а цены под ним должны
     оставаться на одной высоте во всех колонках. */
  min-height: 60px;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #52606D;
}

.tc-price {
  display: block;
  margin-top: 16px;
}

.tc-price-total {
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  color: #171F26;
}

.tc-price-old {
  margin-left: 8px;
  font-weight: 400;
  font-size: 18px;
  line-height: 26px;
  color: #52606D;
  text-decoration: line-through;
}

.tc-price-discount {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 100px;
  background: #FDECEC;
  font-weight: 600;
  font-size: 12px;
  line-height: 18px;
  color: #BA403E;
}

.tc-price-note {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #52606D;
  min-height: 20px;
}

.tc-cta.btn {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 16px 0 0;
  padding: 13px 16px;
  font-size: 16px;
}

/* Строки */

.tc-row th,
.tc-row td {
  border-top: 1px solid #EDEBE8;
}

.tc-feat {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #52606D;
}

.tc-val {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: #171F26;
}

.tc-icon {
  display: block;
  width: 20px;
  height: 20px;
}

.tc-icon--yes {
  color: #00BB5B;
}

.tc-icon--no {
  color: #B0AAA2;
}

/* Подвал матрицы — общие условия */

.tc-note {
  border-top: 1px solid #EDEBE8;
  padding: 16px 20px;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #52606D;
}

.tc-note a {
  color: #52606D;
}

/* ── Мобильный: один тариф за раз ─────────────────────────── */

@media only screen and (max-width: 767px) {
  .tc-desktop {
    display: none;
  }

  .tc-mobile {
    display: block;
  }

  .tc-header h2 {
    font-size: 28px;
    line-height: 34px;
  }

  .tc-header .tc-subtitle {
    font-size: 16px;
    line-height: 24px;
  }

  /* На мобильной раскладке колонок нет — резервировать нечего */
  .tc-plan-subtitle {
    min-height: 0;
  }

  .tc-badge-slot {
    min-height: 0;
    margin-bottom: 0;
  }

  .tc-header {
    margin-bottom: 24px;
  }
}

.tc-m-tabs {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 20px 0;
  border-bottom: 1px solid #EDEBE8;
  -webkit-overflow-scrolling: touch;
}

.tc-m-tab {
  flex-shrink: 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0 0 12px;
  margin: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.tc-m-tab .tc-m-tab-name {
  display: block;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: #8A8F96;
}

.tc-m-tab .tc-m-tab-price {
  display: block;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #A6ABB2;
}

.tc-m-tab.is-active {
  border-bottom-color: #F5B53D;
}

.tc-m-tab.is-active .tc-m-tab-name {
  color: #171F26;
}

.tc-m-tab.is-active .tc-m-tab-price {
  color: #52606D;
}

.tc-m-panel {
  display: none;
}

.tc-m-panel.is-active {
  display: block;
}

.tc-m-head {
  padding: 20px 20px 0;
}

.tc-m-head .tc-plan-subtitle {
  margin-top: 0;
}

.tc-m-head .tc-price {
  margin-top: 8px;
}

.tc-m-head .tc-cta.btn {
  margin-top: 20px;
}

.tc-m-rows {
  margin-top: 20px;
}

.tc-m-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid #EDEBE8;
}

.tc-m-label {
  font-weight: 400;
  font-size: 15px;
  line-height: 22px;
  color: #52606D;
}

.tc-m-value {
  flex-shrink: 0;
  text-align: right;
  font-weight: 600;
  font-size: 15px;
  line-height: 22px;
  color: #171F26;
}

.tc-m-value .tc-icon {
  margin-left: auto;
}
