.div-03 {
    margin: auto;
    text-align: left;
    background-color: #fff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 180vh;
    justify-content: center;
    align-content: center;
    margin: 0 auto;
    margin-top: 10vh;
    padding-bottom: 10vh;
}

.card {
    /* Исходные стили */
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 10px 15px 2px rgb(0 0 0 / 20%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    height: 25vh;
    position: relative;
    transition: color 0.3s;
}

.card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #F5CB08;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.5s ease;
    z-index: 1;   
}

.card:hover::before {
    transform: scale(1);
    transform-origin: top left;
}

.card .card-header,
.card h3,
.card p {
    position: relative;
    z-index: 2;
    transition: color 0.3s;
}

.card:hover .card-header *,
.card:hover p {
    color: white;
}

/* Оригинальные стили содержимого карточек */
.card .card-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.card img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.card h3 {
    font-size: 22px;
    font-weight: 600;
}

.card p {
    font-size: 20px;
    color: black;
    line-height: 1.7;
}

.card.large {
    grid-column: span 2;
}
@media (max-width: 1400px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .card {
    height: 30vh;
  }
}
@media (max-width: 1200px) {

}
@media (max-width: 992px) {
  .grid {
    display: flex;
    flex-direction: column;
  }
    .card {
        display: flex;
        height: 32vh;
        flex-direction: column;
        align-items: center;
    }
}

/* До 768px — планшеты */
@media (max-width: 768px) {
  .grid {
    display: flex;
    flex-direction: column;
    padding: 0 20px 20px;
  }
  .card {
    padding: 15px;
  }
}

/* До 576px — мобильные */
@media (max-width: 576px) {
  .card h3 {
    font-size: 18px;
  }
  .card p {
    font-size: 16px;
  }
  .card img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
  }
}

/* До 400px — очень маленькие экраны */
@media (max-width: 400px) {
  .card {
    padding: 10px;
  }
  .card h3 {
    font-size: 16px;
  }
  .card p {
    font-size: 14px;
  }
}