/* Инструменты: CSS-only вкладки */
.tt-radio {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Список вкладок: горизонтальная прокрутка на узких экранах */
.tt-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin: 0 0 22px;
  padding: 4px 0;
  scrollbar-width: none;
}
.tt-tabs::-webkit-scrollbar { display: none; }

.tt-tab {
  flex: 0 0 auto;
  cursor: pointer;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 600;
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.tt-tab:hover { color: var(--ink); }

/* Панели: по умолчанию скрыты */
.tt-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.tt-panel .tt-text h3 { margin: 0 0 8px; }
.tt-lead { margin: 0 0 16px; color: var(--ink-soft); }
.tt-panel .browser { width: 100%; }
.tt-panel .browser img { display: block; width: 100%; height: auto; }

/* Активная вкладка */
#tt-0:checked ~ .tt-tabs .tt-tab:nth-child(1),
#tt-1:checked ~ .tt-tabs .tt-tab:nth-child(2),
#tt-2:checked ~ .tt-tabs .tt-tab:nth-child(3),
#tt-3:checked ~ .tt-tabs .tt-tab:nth-child(4),
#tt-4:checked ~ .tt-tabs .tt-tab:nth-child(5),
#tt-5:checked ~ .tt-tabs .tt-tab:nth-child(6),
#tt-6:checked ~ .tt-tabs .tt-tab:nth-child(7) {
  color: var(--ink);
  border-color: var(--indigo);
  box-shadow: inset 0 0 0 1px var(--indigo);
}

/* Видимая панель */
#tt-0:checked ~ .tt-panels .tt-panel:nth-child(1),
#tt-1:checked ~ .tt-panels .tt-panel:nth-child(2),
#tt-2:checked ~ .tt-panels .tt-panel:nth-child(3),
#tt-3:checked ~ .tt-panels .tt-panel:nth-child(4),
#tt-4:checked ~ .tt-panels .tt-panel:nth-child(5),
#tt-5:checked ~ .tt-panels .tt-panel:nth-child(6),
#tt-6:checked ~ .tt-panels .tt-panel:nth-child(7) {
  display: grid;
}

/* Нижний ряд с чипами */
.tt-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}
.tt-more-t { font-weight: 600; margin-right: 4px; }
.tt-chip {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: .9em;
}

@media (max-width: 800px) {
  .tt-panel { grid-template-columns: 1fr; gap: 20px; }
}

.tt-link{display:inline-block;margin-top:14px;font-weight:600;color:#111;text-decoration:none;border-bottom:1.5px solid rgba(17,17,17,.25)}
.tt-link:hover{border-bottom-color:#111}
