<div class="wrapper">
  <input class="radio" id="one" name="group" type="radio" checked>
  <input class="radio" id="two" name="group" type="radio">
  <input class="radio" id="three" name="group" type="radio">
  <input class="radio" id="fourth" name="group" type="radio">
  <div class="tabs">
    <label class="tab" id="one-tab" for="one">Вкладка</label>
    <label class="tab" id="two-tab" for="two">Вкладка</label>
    <label class="tab" id="three-tab" for="three">Вкладка</label>
    <label class="tab" id="fourth-tab" for="fourth">Вкладка</label>
  </div>
  <div class="panels">
    <div class="panel" id="one-panel">
      <div class="panel-title">Первый блок</div>
      <p class="panel-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    </div>
    <div class="panel" id="two-panel">
      <div class="panel-title">Второй блок</div>
      <p class="panel-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    </div>
    <div class="panel" id="three-panel">
      <div class="panel-title">Третий блок</div>
      <p class="panel-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    </div>
    <div class="panel" id="fourth-panel">
      <div class="panel-title">Четвертый блок</div>
      <p class="panel-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    </div>
  </div>
</div>
body {
  background: #eee;
  font-family: "Oswald", sans-serif;
  padding: 40px;
}

.wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tab {
  cursor: pointer;
  padding: 10px 40px;
  background: #fff;
  display: inline-flex;
  color: #252525;
}

.tab:not(:last-child) {
  border-right: 2px solid #d0d0d0;
}

.tabs {
  display: flex;
  flex-flow: row nowrap;
  margin-bottom: 20px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
}

.panels {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
  background: #fff;
  min-height: 200px;
  width: 100%;
  max-width: 800px;
  border-radius: 10px;
  overflow: hidden;
  padding: 20px;
}

.panel {
  display: none;
  animation: fadein 0.8s;
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.panel-title {
  font-size: 25px;
  font-weight: bold;
  margin: 10px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.panel-text {
  line-height: 1.5;
  font-size: 17px;
  font-weight: 400;
  margin-top: 20px;
}

.radio {
  display: none;
}

#one:checked ~ .panels #one-panel,
#two:checked ~ .panels #two-panel,
#three:checked ~ .panels #three-panel,
#fourth:checked ~ .panels #fourth-panel {
  display: block;
}

#one:checked ~ .tabs #one-tab,
#two:checked ~ .tabs #two-tab,
#three:checked ~ .tabs #three-tab,
#fourth:checked ~ .tabs #fourth-tab {
  background: cornflowerblue;
  color: #fff;
}

External CSS

  1. https://moonpresence.site/moonpresence/foundation/css/base.css

External JavaScript

This Pen doesn't use any external JavaScript resources.