Код IT Загрузка примера кода…

CSS main.css
.tabs-container {
  max-width: 800px;
  margin: 2rem auto;
  font-family: Arial, sans-serif;
}

.tabs-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  border-bottom: 2px solid #ddd;
}

.tab-button {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #555;
  position: relative;
  transition: color 0.2s;
}

.tab-button:hover {
  color: #007bff;
}

.tab-button.active {
  color: #007bff;
  font-weight: bold;
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #007bff;
}

.tab-panel {
  padding: 1.5rem;
  background-color: #fff;
  border: 1px solid #ddd;
  border-top: none;
}

.hidden {
  display: none;
}
.tabs-container {
  max-width: 800px;
  margin: 2rem auto;
  font-family: Arial, sans-serif;
}

.tabs-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  border-bottom: 2px solid #ddd;
}

.tab-button {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #555;
  position: relative;
  transition: color 0.2s;
}

.tab-button:hover {
  color: #007bff;
}

.tab-button.active {
  color: #007bff;
  font-weight: bold;
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #007bff;
}

.tab-panel {
  padding: 1.5rem;
  background-color: #fff;
  border: 1px solid #ddd;
  border-top: none;
}

.hidden {
  display: none;
}