/* ===== Страница «Нужна ли подписка на ASO-инструмент» ===== */
/* Отдельный файл, чтобы не конфликтовать с правками styles.css в других ветках. */

.tl-answer {
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.1), rgba(52, 211, 153, 0.03));
  border: 1px solid #2e5c4a;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 22px;
}
.tl-answer .tl-a-head {
  font-family: var(--mono); font-size: 12px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--green);
  margin-bottom: 10px;
}
.tl-answer h3 { font-size: 21px; line-height: 1.35; margin-bottom: 10px; }
.tl-answer p { font-size: 14.5px; color: var(--muted); }
.tl-answer p + p { margin-top: 8px; }
.tl-answer b { color: var(--text); }

.tl-money {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin: 18px 0 6px;
}
.tl-m {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 15px 16px;
}
.tl-m .tl-m-num { font-family: var(--mono); font-size: 22px; font-weight: 800; }
.tl-m .tl-m-cap { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.tl-m.green { border-color: #2e5c4a; }
.tl-m.green .tl-m-num { color: var(--green); }
.tl-m.red { border-color: #5c2e2e; }
.tl-m.red .tl-m-num { color: var(--red); }
.tl-m.blue { border-color: #2c3f61; }
.tl-m.blue .tl-m-num { color: var(--blue); }

/* --- три колонки решения --- */
.tl-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tl-col {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 19px;
}
.tl-col.buy { border-color: #2e5c4a; }
.tl-col.no { border-color: #5c2e2e; }
.tl-col.free { border-color: #2c3f61; }
.tl-col h3 {
  font-size: 15px; font-weight: 800; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.tl-col.buy h3 { color: var(--green); }
.tl-col.no h3 { color: var(--red); }
.tl-col.free h3 { color: var(--blue); }
.tl-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.tl-col li { font-size: 13.5px; color: var(--muted); padding-left: 16px; position: relative; }
.tl-col li::before {
  content: '▸'; position: absolute; left: 0; color: var(--faint);
}
.tl-col li b { color: var(--text); }
.tl-col li .tl-price {
  display: block; font-family: var(--mono); font-size: 12px;
  color: var(--amber); margin-top: 3px;
}

/* --- таблица инструментов --- */
.tl-table { display: flex; flex-direction: column; gap: 8px; }
.tl-head, .tl-row {
  display: grid;
  grid-template-columns: minmax(132px, 1.05fr) 96px 122px minmax(150px, 1.45fr) minmax(130px, 1.05fr);
  gap: 12px; align-items: start;
}
.tl-head {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint);
  padding: 0 16px 2px;
}
.tl-row {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 16px; font-size: 13px;
}
.tl-row.verdict-no { opacity: 0.72; }
.tl-row.verdict-test { border-color: #4a4326; background: rgba(251, 191, 36, 0.05); }
.tl-row.verdict-buy { border-color: #2e5c4a; background: rgba(52, 211, 153, 0.05); }
.tl-row .tl-name { font-weight: 700; font-size: 13.5px; }
.tl-row .tl-name small {
  display: block; font-weight: 500; font-size: 11.5px;
  color: var(--faint); margin-top: 2px;
}
.tl-row .tl-price-cell { font-family: var(--mono); font-size: 11.5px; color: var(--amber); }
.tl-row .tl-why { color: var(--muted); font-size: 12.5px; }
.tl-b {
  display: inline-block; font-family: var(--mono); font-size: 10.5px; font-weight: 800;
  padding: 2px 7px; border-radius: 5px; letter-spacing: 0.03em;
  line-height: 1.45; max-width: 100%;
}
.tl-b.yes { background: var(--green-dim); color: var(--green); }
.tl-b.no { background: var(--red-dim); color: var(--red); }
.tl-b.maybe { background: var(--amber-dim); color: var(--amber); }
.tl-b.unk { background: rgba(92, 106, 133, 0.18); color: var(--faint); }

/* --- шаги теста --- */
.tl-steps { display: flex; flex-direction: column; gap: 11px; }
.tl-step {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 15px 17px;
}
.tl-step .tl-n {
  font-family: var(--mono); font-size: 15px; font-weight: 800;
  color: var(--violet); background: var(--violet-dim);
  border-radius: 9px; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.tl-step h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 5px; }
.tl-step h4 .tl-cost {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  color: var(--green); margin-left: 8px;
}
.tl-step p { font-size: 13px; color: var(--muted); }
.tl-step p + p { margin-top: 6px; }
.tl-step .tl-gate {
  margin-top: 8px; font-size: 12.5px; color: var(--text);
  background: var(--bg-soft); border-left: 2px solid var(--amber);
  border-radius: 0 8px 8px 0; padding: 8px 12px;
}
.tl-step .tl-gate b { color: var(--amber); }

/* --- список тестовых ключей --- */
.tl-keys {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px; margin-top: 12px;
}
.tl-keys .tl-k-head {
  font-size: 12.5px; color: var(--muted); margin-bottom: 10px;
}
.tl-keys ol { list-style: none; counter-reset: k; display: grid; gap: 5px; }
.tl-keys li {
  counter-increment: k; font-family: var(--mono); font-size: 12px;
  color: var(--text); padding-left: 30px; position: relative; line-height: 1.5;
}
.tl-keys li::before {
  content: counter(k); position: absolute; left: 0;
  color: var(--faint); font-size: 11px;
}
.tl-keys li .tl-geo { color: var(--blue); }
.tl-keys li .tl-ru { color: var(--faint); font-family: var(--font); font-size: 11.5px; }
.tl-keys li.tl-ctrl .tl-geo { color: var(--amber); }

/* --- риски и оговорки --- */
.tl-risks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.tl-risk-card {
  background: var(--panel); border: 1px solid #4a2f2f;
  border-radius: 12px; padding: 16px 18px;
}
.tl-risk-card h4 {
  font-size: 14px; font-weight: 700; color: var(--red);
  margin-bottom: 6px; display: flex; gap: 8px; align-items: baseline;
}
.tl-risk-card p { font-size: 12.8px; color: var(--muted); }
.tl-risk-card .tl-r-tag {
  font-family: var(--mono); font-size: 11px; color: var(--faint);
  display: block; margin-top: 7px; border-top: 1px dashed var(--line); padding-top: 6px;
}

.tl-caveats {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px;
}
.tl-caveats h4 { font-size: 14.5px; margin-bottom: 10px; }
.tl-caveats ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.tl-caveats li { font-size: 13px; color: var(--muted); padding-left: 15px; position: relative; }
.tl-caveats li::before { content: '?'; position: absolute; left: 0; color: var(--amber); font-weight: 700; }
.tl-caveats li b { color: var(--text); }

/* --- цитаты вендоров --- */
.tl-quotes { display: flex; flex-direction: column; gap: 11px; }
.tl-quote {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 15px 18px;
}
.tl-quote .tl-q-text { font-size: 13.5px; color: var(--text); font-style: italic; }
.tl-quote .tl-q-src {
  font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-top: 7px;
}
.tl-quote .tl-q-src a { color: var(--blue); text-decoration: none; }
.tl-quote .tl-q-src a:hover { text-decoration: underline; }

.tl-note-inline {
  font-size: 12.5px; color: var(--faint); margin-top: 12px;
}

@media (max-width: 900px) {
  .tl-cols, .tl-money, .tl-risks { grid-template-columns: 1fr; }
  .tl-head { display: none; }
  .tl-row {
    grid-template-columns: 1fr; gap: 7px;
  }
  /* на узком экране строка складывается в колонку — подписываем ячейки, */
  /* иначе бейдж «модель» висит сам по себе без объяснения, что это за поле */
  .tl-row > div:nth-child(2)::before { content: 'частотность Play · '; }
  .tl-row > div:nth-child(3)::before { content: 'хвост · '; }
  .tl-row > div:nth-child(4)::before { content: 'цена · '; }
  .tl-row > div:nth-child(2)::before,
  .tl-row > div:nth-child(3)::before,
  .tl-row > div:nth-child(4)::before {
    font-family: var(--mono); font-size: 10.5px; color: var(--faint);
    text-transform: uppercase; letter-spacing: 0.04em;
  }
  .tl-step { grid-template-columns: 1fr; gap: 10px; }
  .tl-answer h3 { font-size: 18px; }
}
