JSFiddle - React, Tailwind, and code Playground

by katerina5452

HTML

<section class="features">
        <ul class="features__list">
          <li class="features__item--banner">
            <div class="features__wrapper">
              <h3 class="features__title">Настоящий городок</h3>
              <p class="features__number">№1</p>
              <p class="features__text">Седона - не аттракцион для туристов, там течет своя жизнь</p>
            </div>
            <img class="features__picture--city" src="img/city_sedona.jpg" alt="The city of Sedona">
          
            <ul class="features__sublist">
              <li class="features__item-point">
                <div class="features__item-wrapper">
                  <img class="features__icon" alt="Icon of a house" src="img/icon-1.jpg" width="79" height="84">
                  <h3 class="features__title">Жилье</h3>
                  <p class="features__text">Рекомендуем пожить в настоящем мотеле, все как в кино!</p>
                </div>
              </li>
              <li class="features__item-point">
                <div class="features__item-wrapper">
                  <img class="features__icon" alt="Icon of food" src="img/icon-3.jpg" width="85" height="84">
                  <h3 class="features__title">Еда</h3>
                  <p class="features__text">Всегда заказывайте фирменный бургер, вы не разочаруетесь!</p>
                </div>
              </li>
              <li class="features__item-point">
                <div class="features__item-wrapper">
                  <img class="features__icon" alt="Icon of gifts" src="img/icon-2.jpg" width="79" height="84">
                  <h3 class="features__title">Сувениры</h3>
                  <p class="features__text">Не только китайского, но и местного производства!</p>
                </div>
              </li>
            </ul>  
          </li>  
        
          <li class="features__item--banner">
            <img class="features__picture--bridge" src="img/bridge-of-devil.jpg" alt="The bridge of the devil">
    ...

CSS

.features__list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    padding: 0;
}
.features__sublist {
    list-style: none;
    padding: 0;
}
.features__number::before {
    content: "—" 
}
.features__number::after {
    content: "—" 
}
.features__number {
    font-size: 14px;
    line-height: 26px;
    text-align: center;
    margin-top: 30px
    
}

.features__list {
    display: flex;
    flex-direction: column;
      
}
.features__item--banner {
    flex-basis: 100%; 
}
.features__item-point{
    flex-basis: 33,3%;
}
.features__icon {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 57px;
    margin-bottom: 32px;
}
.features__title {
    font-size: 21px;
    font-weight: bold;
    line-height: 21px;
    text-align: center;
    max-width: 160px;
    margin: 0;
    padding: 0;

   
}
.features__text {
    font-size: 14px;
    line-height: 21px;
    text-align: center;
    max-width: 302px;
    margin: 0;
}
.features__item--banner{
    color: #ffffff;
    background-color: #81b3d2;
}
.features__item {
    background-color: #eeeeee;
}
.features__item--banner {
    display: flex;
}
.features__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 256px;
    max-width: 400px;
    margin-right: 60px;
    margin-left: 57px;
}
.features__item-wrapper {
    max-width: 400px;
    margin-top: 62px;
    margin-right: 74px;
    margin-bottom: 88px;
    margin-left: 73px;
   
}
.features__sublist {
    display: flex;
}
.features__item--wrapper {
    display: flex;
    }