@media screen and (max-width: 767px) {
  .tab {
    display: block;
    padding-left: 15px;     /* Отступ слева */
    padding-right: 15px;    /* Отступ справа */
    box-sizing: border-box; /* чтобы padding учитывался в ширине */
  }

  .tab > div.p {
    width: 100%;  
    padding: 15px 20px 10px 20px !important;
    text-align: left;
   font-weight: 900;
    border:0px;
    cursor: pointer;
    background-color: #EDEEF0 !important;  
    border-radius: 8px;  
    margin-bottom: 15px;    
    box-sizing: border-box;
  }

  .tab > div.active {
    background-color: #F4E049 !important; /* жёлтый фон активного */
    border-radius: 8px;
    font-weight: bold;
    border: none;
    margin-bottom: 8px;
  }

  .tab > div.p {
    position: relative;
    padding-right: 40px !important; /* место под иконку справа */
  }

  .tab > div.p.active::after {
    content: '';
    position: absolute;
    top: 60%;
    right: 25px;
    transform: translateY(-50%);
    width: 20px;  /* размеры иконки */
    height: 20px;
    background-image: url('/pic/icon/arrow-up.svg');
    background-repeat: no-repeat;
    background-size: contain;
  }

  .tab > div.p:not(.active)::after {
    content: '';
    position: absolute;
    top: 60%;
    right: 25px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('/pic/icon/arrow-down.svg');
    background-repeat: no-repeat;
    background-size: contain;
  }
  
 
 .tab > div > span {
    background-color: inherit !important;  /* наследует фон родителя */
    padding: 0 !important;   
    margin: 0 !important;  
    display: block;
    color: inherit !important;  
  }
  
  .accordion-content {
    background-color: white !important;
    padding: 0px 0 20px 0 !important;
    margin: 0  !important;
    font-weight: normal !important;
    color: initial !important;
    width:100% !important;
    
    text-align: left;;  
      transition: max-height 0.3s ease;
  overflow: hidden;
 
}

 
}

@media screen and (min-width: 767px) {
.datblock.sedf3 {
  max-width: 1100px;
  width: 99%;
  margin: 0 auto;
  padding: 0;
}
.accordion-content {
  background-color: white !important;
  padding: 15px 20px;
  box-sizing: border-box;
}

.tab {
  background-color: white ;
  display: flex;
  justify-content: center;
  position: relative;
  margin: 0;
  padding: 0;
}

.tab > div {
  flex: 1 0 auto;
  width: 25%;
  padding: 0x;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
  background-color: #ffffff;  
  border-bottom: 3px solid #C6C6C6;
  box-sizing: border-box;
}

.tab > div.active {
  background-color: #FFEC00 !important;
  border-top-left-radius: 10px;
  border-top-right-radius:10px;
  border: 3px solid #C6C6C6;
  border-bottom: none;
  z-index: 2;
}

.tab > div.active >span{
  padding: 15px 10px 15px 15px;
  background-color: #FFEC00
}

.tab > div>span{
  display: block;
  border-top-left-radius: 10px;
  border-top-right-radius:10px;
  background-color:  #EDEEF0; 
  padding: 20px 10px 10px 15px;
  margin:0 15px;
}

.tab > div.p {
  background-color: transparent; 
}

.tab_content {
  background: white;
  padding-top: 20px;
  min-height: 300px;
}

.tab_content > div {
  display: none;
}

.tab_content > div.active {
  display: block;
  animation: fadeIn 0.3s;
}
 
} 
